A better compile fix for Wine (which lacks pbt.h).
[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 ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790 ac_env_PKG_CONFIG_value=$PKG_CONFIG
791 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793 ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794 ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795 ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796 ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797 ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798 ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799 ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800 ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
801 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846 ac_env_HILDON_LIBS_value=$HILDON_LIBS
847 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850 ac_env_GST_CFLAGS_value=$GST_CFLAGS
851 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853 ac_env_GST_LIBS_set=${GST_LIBS+set}
854 ac_env_GST_LIBS_value=$GST_LIBS
855 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856 ac_cv_env_GST_LIBS_value=$GST_LIBS
857
858 #
859 # Report the --help message.
860 #
861 if test "$ac_init_help" = "long"; then
862   # Omit some internal or obsolete options to make the list less imposing.
863   # This message is too long to be a string in the A/UX 3.1 sh.
864   cat <<_ACEOF
865 \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
866
867 Usage: $0 [OPTION]... [VAR=VALUE]...
868
869 To assign environment variables (e.g., CC, CFLAGS...), specify them as
870 VAR=VALUE.  See below for descriptions of some of the useful variables.
871
872 Defaults for the options are specified in brackets.
873
874 Configuration:
875   -h, --help              display this help and exit
876       --help=short        display options specific to this package
877       --help=recursive    display the short help of all the included packages
878   -V, --version           display version information and exit
879   -q, --quiet, --silent   do not print \`checking...' messages
880       --cache-file=FILE   cache test results in FILE [disabled]
881   -C, --config-cache      alias for \`--cache-file=config.cache'
882   -n, --no-create         do not create output files
883       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
884
885 _ACEOF
886
887   cat <<_ACEOF
888 Installation directories:
889   --prefix=PREFIX         install architecture-independent files in PREFIX
890                           [$ac_default_prefix]
891   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
892                           [PREFIX]
893
894 By default, \`make install' will install all the files in
895 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
896 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897 for instance \`--prefix=\$HOME'.
898
899 For better control, use the options below.
900
901 Fine tuning of the installation directories:
902   --bindir=DIR           user executables [EPREFIX/bin]
903   --sbindir=DIR          system admin executables [EPREFIX/sbin]
904   --libexecdir=DIR       program executables [EPREFIX/libexec]
905   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
906   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
907   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
908   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
909   --libdir=DIR           object code libraries [EPREFIX/lib]
910   --includedir=DIR       C header files [PREFIX/include]
911   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
912   --infodir=DIR          info documentation [PREFIX/info]
913   --mandir=DIR           man documentation [PREFIX/man]
914 _ACEOF
915
916   cat <<\_ACEOF
917
918 X features:
919   --x-includes=DIR    X include files are in DIR
920   --x-libraries=DIR   X library files are in DIR
921
922 System types:
923   --build=BUILD     configure for building on BUILD [guessed]
924   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
925   --target=TARGET   configure for building compilers for TARGET [HOST]
926 _ACEOF
927 fi
928
929 if test -n "$ac_init_help"; then
930   case $ac_init_help in
931      short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
932    esac
933   cat <<\_ACEOF
934
935 Optional Features:
936   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
937   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
938   --enable-gui            use GUI classes
939   --enable-monolithic     build wxWidgets as single library
940   --enable-plugins        build parts of wxWidgets as loadable components
941   --enable-universal      use wxWidgets GUI controls instead of native ones
942   --enable-nanox          use NanoX
943   --disable-gtk2          use GTK+ 1.2 instead of 2.0
944   --enable-gpe            use GNOME PDA Environment features if possible
945   --enable-shared         create shared library code
946   --enable-optimise       create optimised code
947   --enable-debug          same as debug_flag and debug_info
948   --enable-stl            use STL for containers
949   --enable-omf            use OMF object format
950   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
951   --enable-debug_info     create code with debugging information
952   --enable-debug_gdb      create code with extra GDB debugging information
953   --enable-debug_cntxt    use wxDebugContext
954   --enable-mem_tracing    create code with memory tracing
955   --enable-profile        create code with profiling information
956   --enable-no_rtti        create code without RTTI information
957   --enable-no_exceptions  create code without C++ exceptions handling
958   --enable-permissive     compile code disregarding strict ANSI
959   --enable-no_deps        create code without dependency information
960   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
961   --enable-compat24       enable wxWidgets 2.4 compatibility
962   --disable-compat26      disable wxWidgets 2.6 compatibility
963   --disable-rpath         disable use of rpath for uninstalled builds
964   --enable-intl           use internationalization system
965   --enable-config         use wxConfig (and derived) classes
966   --enable-protocols      use wxProtocol and derived classes
967   --enable-ftp            use wxFTP (requires wxProtocol
968   --enable-http           use wxHTTP (requires wxProtocol
969   --enable-fileproto      use wxFileProto class (requires wxProtocol
970   --enable-sockets        use socket/network classes
971   --enable-ole            use OLE classes (Win32 only)
972   --enable-dataobj        use data object classes
973   --enable-ipc            use interprocess communication (wxSocket etc.)
974   --enable-apple_ieee     use the Apple IEEE codec
975   --enable-arcstream      use wxArchive streams
976   --enable-backtrace      use wxStackWalker class for getting backtraces
977   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
978   --enable-cmdline        use wxCmdLineParser class
979   --enable-datetime       use wxDateTime class
980   --enable-debugreport    use wxDebugReport class
981   --enable-dialupman      use dialup network classes
982   --enable-dynlib         use wxLibrary class for DLL loading
983   --enable-dynamicloader  use (new) wxDynamicLibrary class
984   --enable-exceptions     build exception-safe library
985   --enable-ffile          use wxFFile class
986   --enable-file           use wxFile class
987   --enable-filesystem     use virtual file systems classes
988   --enable-fontmap        use font encodings conversion classes
989   --enable-fs_inet        use virtual HTTP/FTP filesystems
990   --enable-fs_zip         use virtual ZIP filesystems
991   --enable-geometry       use geometry class
992   --enable-log            use logging system
993   --enable-longlong       use wxLongLong class
994   --enable-mimetype       use wxMimeTypesManager
995   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
996   --enable-snglinst       use wxSingleInstanceChecker class
997   --enable-std_iostreams  use standard C++ stream classes
998   --enable-std_string     use standard C++ string classes
999   --enable-stdpaths       use wxStandardPaths class
1000   --enable-stopwatch      use wxStopWatch class
1001   --enable-streams        use wxStream etc classes
1002   --enable-sysoptions     use wxSystemOptions
1003   --enable-textbuf        use wxTextBuffer class
1004   --enable-textfile       use wxTextFile class
1005   --enable-timer          use wxTimer class
1006   --enable-unicode        compile wxString with Unicode support
1007   --enable-sound          use wxSound class
1008   --enable-mediactrl      use wxMediaCtrl class
1009   --enable-gstreamer8      force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1010   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1011   --enable-zipstream      use wxZip streams
1012   --enable-url            use wxURL class
1013   --enable-protocol       use wxProtocol class
1014   --enable-protocol-http  HTTP support in wxProtocol
1015   --enable-protocol-ftp   FTP support in wxProtocol
1016   --enable-protocol-file  FILE support in wxProtocol
1017   --enable-threads        use threads
1018   --enable-docview        use document view architecture
1019   --enable-help           use help subsystem
1020   --enable-mshtmlhelp     use MS HTML Help (win32)
1021   --enable-html           use wxHTML sub-library
1022   --enable-htmlhelp       use wxHTML-based help
1023   --enable-xrc            use XRC resources sub-library
1024   --enable-aui            use AUI docking library
1025   --enable-constraints    use layout-constraints system
1026   --enable-printarch      use printing architecture
1027   --enable-mdi            use multiple document interface architecture
1028   --enable-mdidoc         use docview architecture with MDI
1029   --enable-loggui         use standard GUI logger
1030   --enable-logwin         use wxLogWindow
1031   --enable-logdialog      use wxLogDialog
1032   --enable-webkit         use wxWebKitCtrl (Mac)
1033   --enable-richtext       use wxRichTextCtrl
1034   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1035   --enable-prologio       not available; see contrib
1036   --enable-resources      not available; see contrib
1037   --enable-clipboard      use wxClipboard class
1038   --enable-dnd            use Drag'n'Drop classes
1039   --enable-metafile       use win32 metafiles
1040   --enable-controls       use all usual controls
1041   --enable-accel          use accelerators
1042   --enable-button         use wxButton class
1043   --enable-bmpbutton      use wxBitmapButton class
1044   --enable-calendar       use wxCalendarCtrl class
1045   --enable-caret          use wxCaret class
1046   --enable-checkbox       use wxCheckBox class
1047   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1048   --enable-choice         use wxChoice class
1049   --enable-choicebook     use wxChoicebook class
1050   --enable-colourpicker   use wxColourPickerCtrl class
1051   --enable-combobox       use wxComboBox class
1052   --enable-comboctrl      use wxComboCtrl class
1053   --enable-datepick       use wxDatePickerCtrl class
1054   --enable-dirpicker      use wxDirPickerCtrl class
1055   --enable-display        use wxDisplay class
1056   --enable-filepicker     use wxFilePickerCtrl class
1057   --enable-fontpicker     use wxFontPickerCtrl class
1058   --enable-gauge          use wxGauge class
1059   --enable-grid           use wxGrid class
1060   --enable-dataviewctrl,  use wxDataViewCtrl class
1061   --enable-hyperlink      use wxHyperlinkCtrl class
1062   --enable-imaglist       use wxImageList class
1063   --enable-listbook       use wxListbook class
1064   --enable-listbox        use wxListBox class
1065   --enable-listctrl       use wxListCtrl class
1066   --enable-notebook       use wxNotebook class
1067   --enable-odcombobox     use wxOwnerDrawnComboBox class
1068   --enable-radiobox       use wxRadioBox class
1069   --enable-radiobtn       use wxRadioButton class
1070   --enable-sash           use wxSashWindow class
1071   --enable-scrollbar      use wxScrollBar class and scrollable windows
1072   --enable-slider         use wxSlider class
1073   --enable-spinbtn        use wxSpinButton class
1074   --enable-spinctrl       use wxSpinCtrl class
1075   --enable-splitter       use wxSplitterWindow class
1076   --enable-statbmp        use wxStaticBitmap class
1077   --enable-statbox        use wxStaticBox class
1078   --enable-statline       use wxStaticLine class
1079   --enable-stattext       use wxStaticText class
1080   --enable-statusbar      use wxStatusBar class
1081   --enable-tabdialog      use wxTabControl class
1082   --enable-textctrl       use wxTextCtrl class
1083   --enable-togglebtn      use wxToggleButton class
1084   --enable-toolbar        use wxToolBar class
1085   --enable-tbarnative     use native wxToolBar class
1086   --enable-treebook       use wxTreebook class
1087   --enable-toolbook       use wxToolbook class
1088   --enable-treectrl       use wxTreeCtrl class
1089   --enable-tipwindow      use wxTipWindow class
1090   --enable-popupwin       use wxPopUpWindow class
1091   --enable-commondlg      use all common dialogs
1092   --enable-choicedlg      use wxChoiceDialog
1093   --enable-coldlg         use wxColourDialog
1094   --enable-filedlg        use wxFileDialog
1095   --enable-finddlg        use wxFindReplaceDialog
1096   --enable-fontdlg        use wxFontDialog
1097   --enable-dirdlg         use wxDirDialog
1098   --enable-msgdlg         use wxMessageDialog
1099   --enable-numberdlg      use wxNumberEntryDialog
1100   --enable-splash         use wxSplashScreen
1101   --enable-textdlg        use wxTextDialog
1102   --enable-tipdlg         use startup tips
1103   --enable-progressdlg    use wxProgressDialog
1104   --enable-wizarddlg      use wxWizard
1105   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1106   --enable-miniframe      use wxMiniFrame class
1107   --enable-tooltips       use wxToolTip class
1108   --enable-splines        use spline drawing code
1109   --enable-mousewheel     use mousewheel
1110   --enable-validators     use wxValidator and derived classes
1111   --enable-busyinfo       use wxBusyInfo
1112   --enable-joystick       use wxJoystick
1113   --enable-metafiles      use wxMetaFile (Win32 only)
1114   --enable-dragimage      use wxDragImage
1115   --enable-accessibility  enable accessibility support
1116   --enable-dccache        cache temporary wxDC objects (Win32 only)
1117   --enable-palette        use wxPalette class
1118   --enable-image          use wxImage class
1119   --enable-gif            use gif images (GIF file format)
1120   --enable-pcx            use pcx images (PCX file format)
1121   --enable-iff            use iff images (IFF file format)
1122   --enable-pnm            use pnm images (PNM file format)
1123   --enable-xpm            use xpm images (XPM file format)
1124   --enable-icocur         use Windows ICO and CUR formats
1125   --enable-official_build official build of wxWidgets (win32 DLL only)
1126   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1127   --disable-largefile     omit support for large files
1128   --disable-gtktest       do not try to compile and run a test GTK+ program
1129   --disable-gtktest       Do not try to compile and run a test GTK program
1130   --disable-sdltest       Do not try to compile and run a test SDL program
1131   --enable-omf            use OMF object format (OS/2)
1132   --disable-dependency-tracking
1133                           don't use dependency tracking even if the compiler
1134                           can
1135   --disable-precomp-headers
1136                           don't use precompiled headers even if compiler can
1137
1138 Optional Packages:
1139   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1140   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1141   --without-subdirs       don't generate makefiles for samples/demos/...
1142   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1143   --with-motif            use Motif/Lesstif
1144   --with-mac              use Mac OS X
1145   --with-cocoa            use Cocoa
1146   --with-wine             use Wine
1147   --with-msw              use MS-Windows
1148   --with-pm               use OS/2 Presentation Manager
1149   --with-mgl              use SciTech MGL
1150   --with-directfb         use DirectFB
1151   --with-microwin         use MicroWindows
1152   --with-x11              use X11
1153   --with-libpng           use libpng (PNG image format)
1154   --with-libjpeg          use libjpeg (JPEG file format)
1155   --with-libtiff          use libtiff (TIFF file format)
1156   --with-libxpm           use libxpm (XPM file format)
1157   --with-libmspack        use libmspack (CHM help files loading)
1158   --with-sdl              use SDL for audio on Unix
1159   --with-gnomeprint       use GNOME print for printing under GNOME
1160   --with-gnomevfs         use GNOME VFS for associating MIME types
1161   --with-hildon           use Hildon framework for Nokia 770
1162   --with-opengl           use OpenGL (or Mesa)
1163   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1164   --with-regex            enable support for wxRegEx class
1165   --with-zlib             use zlib for LZW compression
1166   --with-odbc             use the IODBC and wxODBC classes
1167   --with-expat            enable XML support using expat parser
1168   --with-flavour=NAME     specify a name to identify this build
1169   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1170   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1171   --with-x                use the X Window System
1172   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1173   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1174   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1175   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1176   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1177
1178 Some influential environment variables:
1179   CC          C compiler command
1180   CFLAGS      C compiler flags
1181   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1182               nonstandard directory <lib dir>
1183   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184               headers in a nonstandard directory <include dir>
1185   CPP         C preprocessor
1186   CXX         C++ compiler command
1187   CXXFLAGS    C++ compiler flags
1188   CXXCPP      C++ preprocessor
1189   PKG_CONFIG  path to pkg-config utility
1190   DIRECTFB_CFLAGS
1191               C compiler flags for DIRECTFB, overriding pkg-config
1192   DIRECTFB_LIBS
1193               linker flags for DIRECTFB, overriding pkg-config
1194   PANGOX_CFLAGS
1195               C compiler flags for PANGOX, overriding pkg-config
1196   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1197   PANGOFT2_CFLAGS
1198               C compiler flags for PANGOFT2, overriding pkg-config
1199   PANGOFT2_LIBS
1200               linker flags for PANGOFT2, overriding pkg-config
1201   PANGOXFT_CFLAGS
1202               C compiler flags for PANGOXFT, overriding pkg-config
1203   PANGOXFT_LIBS
1204               linker flags for PANGOXFT, overriding pkg-config
1205   LIBGNOMEPRINTUI_CFLAGS
1206               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1207   LIBGNOMEPRINTUI_LIBS
1208               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1209   GNOMEVFS_CFLAGS
1210               C compiler flags for GNOMEVFS, overriding pkg-config
1211   GNOMEVFS_LIBS
1212               linker flags for GNOMEVFS, overriding pkg-config
1213   HILDON_CFLAGS
1214               C compiler flags for HILDON, overriding pkg-config
1215   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1216   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1217   GST_LIBS    linker flags for GST, overriding pkg-config
1218
1219 Use these variables to override the choices made by `configure' or to help
1220 it to find libraries and programs with nonstandard names/locations.
1221
1222 Report bugs to <wx-dev@lists.wxwidgets.org>.
1223 _ACEOF
1224 fi
1225
1226 if test "$ac_init_help" = "recursive"; then
1227   # If there are subdirs, report their specific --help.
1228   ac_popdir=`pwd`
1229   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1230     test -d $ac_dir || continue
1231     ac_builddir=.
1232
1233 if test "$ac_dir" != .; then
1234   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1235   # A "../" for each directory in $ac_dir_suffix.
1236   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1237 else
1238   ac_dir_suffix= ac_top_builddir=
1239 fi
1240
1241 case $srcdir in
1242   .)  # No --srcdir option.  We are building in place.
1243     ac_srcdir=.
1244     if test -z "$ac_top_builddir"; then
1245        ac_top_srcdir=.
1246     else
1247        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1248     fi ;;
1249   [\\/]* | ?:[\\/]* )  # Absolute path.
1250     ac_srcdir=$srcdir$ac_dir_suffix;
1251     ac_top_srcdir=$srcdir ;;
1252   *) # Relative path.
1253     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1254     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1255 esac
1256
1257 # Do not use `cd foo && pwd` to compute absolute paths, because
1258 # the directories may not exist.
1259 case `pwd` in
1260 .) ac_abs_builddir="$ac_dir";;
1261 *)
1262   case "$ac_dir" in
1263   .) ac_abs_builddir=`pwd`;;
1264   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1265   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1266   esac;;
1267 esac
1268 case $ac_abs_builddir in
1269 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1270 *)
1271   case ${ac_top_builddir}. in
1272   .) ac_abs_top_builddir=$ac_abs_builddir;;
1273   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1274   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1275   esac;;
1276 esac
1277 case $ac_abs_builddir in
1278 .) ac_abs_srcdir=$ac_srcdir;;
1279 *)
1280   case $ac_srcdir in
1281   .) ac_abs_srcdir=$ac_abs_builddir;;
1282   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1283   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1284   esac;;
1285 esac
1286 case $ac_abs_builddir in
1287 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1288 *)
1289   case $ac_top_srcdir in
1290   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1291   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1292   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1293   esac;;
1294 esac
1295
1296     cd $ac_dir
1297     # Check for guested configure; otherwise get Cygnus style configure.
1298     if test -f $ac_srcdir/configure.gnu; then
1299       echo
1300       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1301     elif test -f $ac_srcdir/configure; then
1302       echo
1303       $SHELL $ac_srcdir/configure  --help=recursive
1304     elif test -f $ac_srcdir/configure.ac ||
1305            test -f $ac_srcdir/configure.in; then
1306       echo
1307       $ac_configure --help
1308     else
1309       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1310     fi
1311     cd "$ac_popdir"
1312   done
1313 fi
1314
1315 test -n "$ac_init_help" && exit 0
1316 if $ac_init_version; then
1317   cat <<\_ACEOF
1318 wxWidgets configure 2.7.0
1319 generated by GNU Autoconf 2.59
1320
1321 Copyright (C) 2003 Free Software Foundation, Inc.
1322 This configure script is free software; the Free Software Foundation
1323 gives unlimited permission to copy, distribute and modify it.
1324 _ACEOF
1325   exit 0
1326 fi
1327 exec 5>config.log
1328 cat >&5 <<_ACEOF
1329 This file contains any messages produced by compilers while
1330 running configure, to aid debugging if configure makes a mistake.
1331
1332 It was created by wxWidgets $as_me 2.7.0, which was
1333 generated by GNU Autoconf 2.59.  Invocation command line was
1334
1335   $ $0 $@
1336
1337 _ACEOF
1338 {
1339 cat <<_ASUNAME
1340 ## --------- ##
1341 ## Platform. ##
1342 ## --------- ##
1343
1344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1349
1350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1351 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1352
1353 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1354 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1356 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1357 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1358 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1359 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1360
1361 _ASUNAME
1362
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366   IFS=$as_save_IFS
1367   test -z "$as_dir" && as_dir=.
1368   echo "PATH: $as_dir"
1369 done
1370
1371 } >&5
1372
1373 cat >&5 <<_ACEOF
1374
1375
1376 ## ----------- ##
1377 ## Core tests. ##
1378 ## ----------- ##
1379
1380 _ACEOF
1381
1382
1383 # Keep a trace of the command line.
1384 # Strip out --no-create and --no-recursion so they do not pile up.
1385 # Strip out --silent because we don't want to record it for future runs.
1386 # Also quote any args containing shell meta-characters.
1387 # Make two passes to allow for proper duplicate-argument suppression.
1388 ac_configure_args=
1389 ac_configure_args0=
1390 ac_configure_args1=
1391 ac_sep=
1392 ac_must_keep_next=false
1393 for ac_pass in 1 2
1394 do
1395   for ac_arg
1396   do
1397     case $ac_arg in
1398     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1399     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400     | -silent | --silent | --silen | --sile | --sil)
1401       continue ;;
1402     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1403       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1404     esac
1405     case $ac_pass in
1406     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1407     2)
1408       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1409       if test $ac_must_keep_next = true; then
1410         ac_must_keep_next=false # Got value, back to normal.
1411       else
1412         case $ac_arg in
1413           *=* | --config-cache | -C | -disable-* | --disable-* \
1414           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1415           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1416           | -with-* | --with-* | -without-* | --without-* | --x)
1417             case "$ac_configure_args0 " in
1418               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1419             esac
1420             ;;
1421           -* ) ac_must_keep_next=true ;;
1422         esac
1423       fi
1424       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1425       # Get rid of the leading space.
1426       ac_sep=" "
1427       ;;
1428     esac
1429   done
1430 done
1431 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433
1434 # When interrupted or exit'd, cleanup temporary files, and complete
1435 # config.log.  We remove comments because anyway the quotes in there
1436 # would cause problems or look ugly.
1437 # WARNING: Be sure not to use single quotes in there, as some shells,
1438 # such as our DU 5.0 friend, will then `close' the trap.
1439 trap 'exit_status=$?
1440   # Save into config.log some information that might help in debugging.
1441   {
1442     echo
1443
1444     cat <<\_ASBOX
1445 ## ---------------- ##
1446 ## Cache variables. ##
1447 ## ---------------- ##
1448 _ASBOX
1449     echo
1450     # The following way of writing the cache mishandles newlines in values,
1451 {
1452   (set) 2>&1 |
1453     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1454     *ac_space=\ *)
1455       sed -n \
1456         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1457           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1458       ;;
1459     *)
1460       sed -n \
1461         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1462       ;;
1463     esac;
1464 }
1465     echo
1466
1467     cat <<\_ASBOX
1468 ## ----------------- ##
1469 ## Output variables. ##
1470 ## ----------------- ##
1471 _ASBOX
1472     echo
1473     for ac_var in $ac_subst_vars
1474     do
1475       eval ac_val=$`echo $ac_var`
1476       echo "$ac_var='"'"'$ac_val'"'"'"
1477     done | sort
1478     echo
1479
1480     if test -n "$ac_subst_files"; then
1481       cat <<\_ASBOX
1482 ## ------------- ##
1483 ## Output files. ##
1484 ## ------------- ##
1485 _ASBOX
1486       echo
1487       for ac_var in $ac_subst_files
1488       do
1489         eval ac_val=$`echo $ac_var`
1490         echo "$ac_var='"'"'$ac_val'"'"'"
1491       done | sort
1492       echo
1493     fi
1494
1495     if test -s confdefs.h; then
1496       cat <<\_ASBOX
1497 ## ----------- ##
1498 ## confdefs.h. ##
1499 ## ----------- ##
1500 _ASBOX
1501       echo
1502       sed "/^$/d" confdefs.h | sort
1503       echo
1504     fi
1505     test "$ac_signal" != 0 &&
1506       echo "$as_me: caught signal $ac_signal"
1507     echo "$as_me: exit $exit_status"
1508   } >&5
1509   rm -f core *.core &&
1510   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1511     exit $exit_status
1512      ' 0
1513 for ac_signal in 1 2 13 15; do
1514   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1515 done
1516 ac_signal=0
1517
1518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1519 rm -rf conftest* confdefs.h
1520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1521 echo >confdefs.h
1522
1523 # Predefined preprocessor variables.
1524
1525 cat >>confdefs.h <<_ACEOF
1526 #define PACKAGE_NAME "$PACKAGE_NAME"
1527 _ACEOF
1528
1529
1530 cat >>confdefs.h <<_ACEOF
1531 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1532 _ACEOF
1533
1534
1535 cat >>confdefs.h <<_ACEOF
1536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1537 _ACEOF
1538
1539
1540 cat >>confdefs.h <<_ACEOF
1541 #define PACKAGE_STRING "$PACKAGE_STRING"
1542 _ACEOF
1543
1544
1545 cat >>confdefs.h <<_ACEOF
1546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1547 _ACEOF
1548
1549
1550 # Let the site file select an alternate cache file if it wants to.
1551 # Prefer explicitly selected file to automatically selected ones.
1552 if test -z "$CONFIG_SITE"; then
1553   if test "x$prefix" != xNONE; then
1554     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1555   else
1556     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1557   fi
1558 fi
1559 for ac_site_file in $CONFIG_SITE; do
1560   if test -r "$ac_site_file"; then
1561     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1562 echo "$as_me: loading site script $ac_site_file" >&6;}
1563     sed 's/^/| /' "$ac_site_file" >&5
1564     . "$ac_site_file"
1565   fi
1566 done
1567
1568 if test -r "$cache_file"; then
1569   # Some versions of bash will fail to source /dev/null (special
1570   # files actually), so we avoid doing that.
1571   if test -f "$cache_file"; then
1572     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1573 echo "$as_me: loading cache $cache_file" >&6;}
1574     case $cache_file in
1575       [\\/]* | ?:[\\/]* ) . $cache_file;;
1576       *)                      . ./$cache_file;;
1577     esac
1578   fi
1579 else
1580   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1581 echo "$as_me: creating cache $cache_file" >&6;}
1582   >$cache_file
1583 fi
1584
1585 # Check that the precious variables saved in the cache have kept the same
1586 # value.
1587 ac_cache_corrupted=false
1588 for ac_var in `(set) 2>&1 |
1589                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1590   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1591   eval ac_new_set=\$ac_env_${ac_var}_set
1592   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1593   eval ac_new_val="\$ac_env_${ac_var}_value"
1594   case $ac_old_set,$ac_new_set in
1595     set,)
1596       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1597 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1598       ac_cache_corrupted=: ;;
1599     ,set)
1600       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1601 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1602       ac_cache_corrupted=: ;;
1603     ,);;
1604     *)
1605       if test "x$ac_old_val" != "x$ac_new_val"; then
1606         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1607 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1608         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1609 echo "$as_me:   former value:  $ac_old_val" >&2;}
1610         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1611 echo "$as_me:   current value: $ac_new_val" >&2;}
1612         ac_cache_corrupted=:
1613       fi;;
1614   esac
1615   # Pass precious variables to config.status.
1616   if test "$ac_new_set" = set; then
1617     case $ac_new_val in
1618     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1619       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1620     *) ac_arg=$ac_var=$ac_new_val ;;
1621     esac
1622     case " $ac_configure_args " in
1623       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1624       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1625     esac
1626   fi
1627 done
1628 if $ac_cache_corrupted; then
1629   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1630 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1631   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1632 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1633    { (exit 1); exit 1; }; }
1634 fi
1635
1636 ac_ext=c
1637 ac_cpp='$CPP $CPPFLAGS'
1638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671 ac_aux_dir=
1672 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1673   if test -f $ac_dir/install-sh; then
1674     ac_aux_dir=$ac_dir
1675     ac_install_sh="$ac_aux_dir/install-sh -c"
1676     break
1677   elif test -f $ac_dir/install.sh; then
1678     ac_aux_dir=$ac_dir
1679     ac_install_sh="$ac_aux_dir/install.sh -c"
1680     break
1681   elif test -f $ac_dir/shtool; then
1682     ac_aux_dir=$ac_dir
1683     ac_install_sh="$ac_aux_dir/shtool install -c"
1684     break
1685   fi
1686 done
1687 if test -z "$ac_aux_dir"; then
1688   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1689 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1690    { (exit 1); exit 1; }; }
1691 fi
1692 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1693 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1694 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1695
1696 # Make sure we can run config.sub.
1697 $ac_config_sub sun4 >/dev/null 2>&1 ||
1698   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1699 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1700    { (exit 1); exit 1; }; }
1701
1702 echo "$as_me:$LINENO: checking build system type" >&5
1703 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1704 if test "${ac_cv_build+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   ac_cv_build_alias=$build_alias
1708 test -z "$ac_cv_build_alias" &&
1709   ac_cv_build_alias=`$ac_config_guess`
1710 test -z "$ac_cv_build_alias" &&
1711   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1712 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1713    { (exit 1); exit 1; }; }
1714 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1715   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1716 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1717    { (exit 1); exit 1; }; }
1718
1719 fi
1720 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1721 echo "${ECHO_T}$ac_cv_build" >&6
1722 build=$ac_cv_build
1723 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726
1727
1728 echo "$as_me:$LINENO: checking host system type" >&5
1729 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1730 if test "${ac_cv_host+set}" = set; then
1731   echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733   ac_cv_host_alias=$host_alias
1734 test -z "$ac_cv_host_alias" &&
1735   ac_cv_host_alias=$ac_cv_build_alias
1736 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1737   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1738 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1739    { (exit 1); exit 1; }; }
1740
1741 fi
1742 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1743 echo "${ECHO_T}$ac_cv_host" >&6
1744 host=$ac_cv_host
1745 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750 echo "$as_me:$LINENO: checking target system type" >&5
1751 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1752 if test "${ac_cv_target+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   ac_cv_target_alias=$target_alias
1756 test "x$ac_cv_target_alias" = "x" &&
1757   ac_cv_target_alias=$ac_cv_host_alias
1758 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1759   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1760 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1761    { (exit 1); exit 1; }; }
1762
1763 fi
1764 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1765 echo "${ECHO_T}$ac_cv_target" >&6
1766 target=$ac_cv_target
1767 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772 # The aliases save the names the user supplied, while $host etc.
1773 # will get canonicalized.
1774 test -n "$target_alias" &&
1775   test "$program_prefix$program_suffix$program_transform_name" = \
1776     NONENONEs,x,x, &&
1777   program_prefix=${target_alias}-
1778
1779
1780
1781 wx_major_version_number=2
1782 wx_minor_version_number=7
1783 wx_release_number=0
1784 wx_subrelease_number=1
1785
1786 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1787 WX_VERSION=$WX_RELEASE.$wx_release_number
1788 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1789
1790 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1791
1792
1793
1794
1795 USE_UNIX=1
1796 USE_OS2=0
1797 USE_WIN32=0
1798 USE_DOS=0
1799 USE_BEOS=0
1800 USE_MAC=0
1801
1802 USE_AIX=
1803 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1804 USE_GNU=                            USE_HPUX=
1805 USE_LINUX=
1806 USE_NETBSD=
1807 USE_OPENBSD=
1808 USE_OSF=                            USE_SGI=
1809 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1810 USE_ULTRIX=
1811 USE_UNIXWARE=
1812
1813 USE_ALPHA=
1814
1815 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1816
1817 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1818
1819 DEFAULT_wxUSE_COCOA=0
1820 DEFAULT_wxUSE_GTK=0
1821 DEFAULT_wxUSE_MAC=0
1822 DEFAULT_wxUSE_MGL=0
1823 DEFAULT_wxUSE_MICROWIN=0
1824 DEFAULT_wxUSE_MOTIF=0
1825 DEFAULT_wxUSE_MSW=0
1826 DEFAULT_wxUSE_PM=0
1827 DEFAULT_wxUSE_X11=0
1828 DEFAULT_wxUSE_DFB=0
1829
1830 DEFAULT_DEFAULT_wxUSE_COCOA=0
1831 DEFAULT_DEFAULT_wxUSE_GTK=0
1832 DEFAULT_DEFAULT_wxUSE_MAC=0
1833 DEFAULT_DEFAULT_wxUSE_MGL=0
1834 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1835 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1836 DEFAULT_DEFAULT_wxUSE_MSW=0
1837 DEFAULT_DEFAULT_wxUSE_PM=0
1838 DEFAULT_DEFAULT_wxUSE_X11=0
1839 DEFAULT_DEFAULT_wxUSE_DFB=0
1840
1841 PROGRAM_EXT=
1842 SO_SUFFIX=so
1843 SAMPLES_RPATH_FLAG=
1844 SAMPLES_RPATH_POSTLINK=
1845
1846 DEFAULT_STD_FLAG=yes
1847
1848 case "${host}" in
1849   *-hp-hpux* )
1850     USE_HPUX=1
1851     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853     SO_SUFFIX=sl
1854     cat >>confdefs.h <<\_ACEOF
1855 #define __HPUX__ 1
1856 _ACEOF
1857
1858
1859             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1860   ;;
1861   *-*-linux* )
1862     USE_LINUX=1
1863     cat >>confdefs.h <<\_ACEOF
1864 #define __LINUX__ 1
1865 _ACEOF
1866
1867     TMP=`uname -m`
1868     if test "x$TMP" = "xalpha"; then
1869       USE_ALPHA=1
1870       cat >>confdefs.h <<\_ACEOF
1871 #define __ALPHA__ 1
1872 _ACEOF
1873
1874     fi
1875     DEFAULT_DEFAULT_wxUSE_GTK=1
1876   ;;
1877   *-*-gnu* | *-*-k*bsd*-gnu )
1878     USE_GNU=1
1879     TMP=`uname -m`
1880     if test "x$TMP" = "xalpha"; then
1881       USE_ALPHA=1
1882       cat >>confdefs.h <<\_ACEOF
1883 #define __ALPHA__ 1
1884 _ACEOF
1885
1886     fi
1887     DEFAULT_DEFAULT_wxUSE_GTK=1
1888   ;;
1889   *-*-irix5* | *-*-irix6* )
1890     USE_SGI=1
1891     USE_SVR4=1
1892     cat >>confdefs.h <<\_ACEOF
1893 #define __SGI__ 1
1894 _ACEOF
1895
1896     cat >>confdefs.h <<\_ACEOF
1897 #define __SVR4__ 1
1898 _ACEOF
1899
1900     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901   ;;
1902   *-*-solaris2* )
1903     USE_SUN=1
1904     USE_SOLARIS=1
1905     USE_SVR4=1
1906     cat >>confdefs.h <<\_ACEOF
1907 #define __SUN__ 1
1908 _ACEOF
1909
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __SOLARIS__ 1
1912 _ACEOF
1913
1914     cat >>confdefs.h <<\_ACEOF
1915 #define __SVR4__ 1
1916 _ACEOF
1917
1918     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1920   ;;
1921   *-*-sunos4* )
1922     USE_SUN=1
1923     USE_SUNOS=1
1924     USE_BSD=1
1925     cat >>confdefs.h <<\_ACEOF
1926 #define __SUN__ 1
1927 _ACEOF
1928
1929     cat >>confdefs.h <<\_ACEOF
1930 #define __SUNOS__ 1
1931 _ACEOF
1932
1933     cat >>confdefs.h <<\_ACEOF
1934 #define __BSD__ 1
1935 _ACEOF
1936
1937     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1938   ;;
1939   *-*-freebsd*)
1940     USE_BSD=1
1941     USE_FREEBSD=1
1942     cat >>confdefs.h <<\_ACEOF
1943 #define __FREEBSD__ 1
1944 _ACEOF
1945
1946     cat >>confdefs.h <<\_ACEOF
1947 #define __BSD__ 1
1948 _ACEOF
1949
1950     DEFAULT_DEFAULT_wxUSE_GTK=1
1951   ;;
1952   *-*-openbsd*|*-*-mirbsd*)
1953     USE_BSD=1
1954     USE_OPENBSD=1
1955     cat >>confdefs.h <<\_ACEOF
1956 #define __OPENBSD__ 1
1957 _ACEOF
1958
1959     cat >>confdefs.h <<\_ACEOF
1960 #define __BSD__ 1
1961 _ACEOF
1962
1963     DEFAULT_DEFAULT_wxUSE_GTK=1
1964   ;;
1965   *-*-netbsd*)
1966     USE_BSD=1
1967     USE_NETBSD=1
1968     cat >>confdefs.h <<\_ACEOF
1969 #define __NETBSD__ 1
1970 _ACEOF
1971
1972     cat >>confdefs.h <<\_ACEOF
1973 #define __BSD__ 1
1974 _ACEOF
1975
1976     DEFAULT_DEFAULT_wxUSE_GTK=1
1977     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1978
1979             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1980   ;;
1981   *-*-osf* )
1982     USE_ALPHA=1
1983     USE_OSF=1
1984     cat >>confdefs.h <<\_ACEOF
1985 #define __ALPHA__ 1
1986 _ACEOF
1987
1988     cat >>confdefs.h <<\_ACEOF
1989 #define __OSF__ 1
1990 _ACEOF
1991
1992     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1994   ;;
1995   *-*-dgux5* )
1996     USE_ALPHA=1
1997     USE_SVR4=1
1998     cat >>confdefs.h <<\_ACEOF
1999 #define __ALPHA__ 1
2000 _ACEOF
2001
2002     cat >>confdefs.h <<\_ACEOF
2003 #define __SVR4__ 1
2004 _ACEOF
2005
2006     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2007   ;;
2008   *-*-sysv5* )
2009     USE_SYSV=1
2010     USE_SVR4=1
2011     cat >>confdefs.h <<\_ACEOF
2012 #define __SYSV__ 1
2013 _ACEOF
2014
2015     cat >>confdefs.h <<\_ACEOF
2016 #define __SVR4__ 1
2017 _ACEOF
2018
2019     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2020   ;;
2021   *-*-aix* )
2022     USE_AIX=1
2023     USE_SYSV=1
2024     USE_SVR4=1
2025                         SO_SUFFIX=a
2026     cat >>confdefs.h <<\_ACEOF
2027 #define __AIX__ 1
2028 _ACEOF
2029
2030     cat >>confdefs.h <<\_ACEOF
2031 #define __SYSV__ 1
2032 _ACEOF
2033
2034     cat >>confdefs.h <<\_ACEOF
2035 #define __SVR4__ 1
2036 _ACEOF
2037
2038     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2039   ;;
2040
2041   *-*-*UnixWare*)
2042     USE_SYSV=1
2043     USE_SVR4=1
2044     USE_UNIXWARE=1
2045     cat >>confdefs.h <<\_ACEOF
2046 #define __UNIXWARE__ 1
2047 _ACEOF
2048
2049   ;;
2050
2051   *-*-cygwin* | *-*-mingw32* )
2052                 SO_SUFFIX=dll
2053     PROGRAM_EXT=".exe"
2054     DEFAULT_DEFAULT_wxUSE_MSW=1
2055     DEFAULT_STD_FLAG=no
2056   ;;
2057
2058   *-pc-msdosdjgpp )
2059     USE_UNIX=0
2060     USE_DOS=1
2061     cat >>confdefs.h <<\_ACEOF
2062 #define __DOS__ 1
2063 _ACEOF
2064
2065     PROGRAM_EXT=".exe"
2066     DEFAULT_DEFAULT_wxUSE_MGL=1
2067   ;;
2068
2069   *-pc-os2_emx | *-pc-os2-emx )
2070     cat >>confdefs.h <<\_ACEOF
2071 #define __EMX__ 1
2072 _ACEOF
2073
2074     USE_OS2=1
2075     cat >>confdefs.h <<\_ACEOF
2076 #define __OS2__ 1
2077 _ACEOF
2078
2079     PROGRAM_EXT=".exe"
2080     DEFAULT_DEFAULT_wxUSE_PM=1
2081         CXX=gcc
2082     LDFLAGS="$LDFLAGS -Zcrtdll"
2083                         ac_executable_extensions=".exe"
2084     export ac_executable_extensions
2085             ac_save_IFS="$IFS"
2086     IFS='\\'
2087     ac_TEMP_PATH=
2088     for ac_dir in $PATH; do
2089       IFS=$ac_save_IFS
2090       if test -z "$ac_TEMP_PATH"; then
2091         ac_TEMP_PATH="$ac_dir"
2092       else
2093         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2094       fi
2095     done
2096     export PATH="$ac_TEMP_PATH"
2097     unset ac_TEMP_PATH
2098     DEFAULT_STD_FLAG=no
2099   ;;
2100
2101   *-*-darwin* )
2102         USE_BSD=1
2103     USE_DARWIN=1
2104     SO_SUFFIX=dylib
2105     cat >>confdefs.h <<\_ACEOF
2106 #define __BSD__ 1
2107 _ACEOF
2108
2109     cat >>confdefs.h <<\_ACEOF
2110 #define __DARWIN__ 1
2111 _ACEOF
2112
2113     cat >>confdefs.h <<\_ACEOF
2114 #define TARGET_CARBON 1
2115 _ACEOF
2116
2117     DEFAULT_DEFAULT_wxUSE_MAC=1
2118     DEFAULT_STD_FLAG=no
2119   ;;
2120   powerpc-apple-macos* )
2121         USE_UNIX=0
2122             ac_cv_c_bigendian=yes
2123     SO_SUFFIX=shlib
2124             DEFAULT_DEFAULT_wxUSE_MAC=1
2125     DEFAULT_STD_FLAG=no
2126   ;;
2127
2128   *-*-beos* )
2129         USE_BEOS=1
2130     cat >>confdefs.h <<\_ACEOF
2131 #define __BEOS__ 1
2132 _ACEOF
2133
2134   ;;
2135
2136   *)
2137     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2138 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2139     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2140 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2141
2142     DEFAULT_DEFAULT_wxUSE_X11=1
2143     DEFAULT_wxUSE_SHARED=no
2144 esac
2145
2146
2147
2148
2149           wx_arg_cache_file="configarg.cache"
2150           echo "loading argument cache $wx_arg_cache_file"
2151           rm -f ${wx_arg_cache_file}.tmp
2152           touch ${wx_arg_cache_file}.tmp
2153           touch ${wx_arg_cache_file}
2154
2155
2156 DEBUG_CONFIGURE=0
2157 if test $DEBUG_CONFIGURE = 1; then
2158   DEFAULT_wxUSE_UNIVERSAL=no
2159   DEFAULT_wxUSE_STL=no
2160
2161   DEFAULT_wxUSE_NANOX=no
2162
2163   DEFAULT_wxUSE_THREADS=yes
2164
2165   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2166   DEFAULT_wxUSE_OPTIMISE=no
2167   DEFAULT_wxUSE_PROFILE=no
2168   DEFAULT_wxUSE_NO_DEPS=no
2169   DEFAULT_wxUSE_NO_RTTI=no
2170   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2171   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2172   DEFAULT_wxUSE_RPATH=yes
2173   DEFAULT_wxUSE_PERMISSIVE=no
2174   DEFAULT_wxUSE_DEBUG_FLAG=yes
2175   DEFAULT_wxUSE_DEBUG_INFO=yes
2176   DEFAULT_wxUSE_DEBUG_GDB=yes
2177   DEFAULT_wxUSE_MEM_TRACING=no
2178   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179   DEFAULT_wxUSE_DMALLOC=no
2180   DEFAULT_wxUSE_APPLE_IEEE=no
2181
2182   DEFAULT_wxUSE_EXCEPTIONS=no
2183   DEFAULT_wxUSE_LOG=yes
2184   DEFAULT_wxUSE_LOGWINDOW=no
2185   DEFAULT_wxUSE_LOGGUI=no
2186   DEFAULT_wxUSE_LOGDIALOG=no
2187
2188   DEFAULT_wxUSE_GUI=yes
2189   DEFAULT_wxUSE_CONTROLS=no
2190
2191   DEFAULT_wxUSE_REGEX=no
2192   DEFAULT_wxUSE_XML=no
2193   DEFAULT_wxUSE_EXPAT=no
2194   DEFAULT_wxUSE_ZLIB=no
2195   DEFAULT_wxUSE_LIBPNG=no
2196   DEFAULT_wxUSE_LIBJPEG=no
2197   DEFAULT_wxUSE_LIBTIFF=no
2198   DEFAULT_wxUSE_LIBXPM=no
2199   DEFAULT_wxUSE_LIBMSPACK=no
2200   DEFAULT_wxUSE_LIBSDL=no
2201   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2202   DEFAULT_wxUSE_LIBGNOMEVFS=no
2203   DEFAULT_wxUSE_LIBHILDON=no
2204   DEFAULT_wxUSE_ODBC=no
2205   DEFAULT_wxUSE_OPENGL=no
2206
2207   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2208   DEFAULT_wxUSE_STACKWALKER=no
2209   DEFAULT_wxUSE_DEBUGREPORT=no
2210   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2211   DEFAULT_wxUSE_STD_IOSTREAM=no
2212   DEFAULT_wxUSE_STD_STRING=no
2213   DEFAULT_wxUSE_CMDLINE_PARSER=no
2214   DEFAULT_wxUSE_DATETIME=no
2215   DEFAULT_wxUSE_TIMER=no
2216   DEFAULT_wxUSE_STOPWATCH=no
2217   DEFAULT_wxUSE_FILE=no
2218   DEFAULT_wxUSE_FFILE=no
2219   DEFAULT_wxUSE_STDPATHS=no
2220   DEFAULT_wxUSE_TEXTBUFFER=no
2221   DEFAULT_wxUSE_TEXTFILE=no
2222   DEFAULT_wxUSE_SOUND=no
2223   DEFAULT_wxUSE_MEDIACTRL=no
2224   DEFAULT_wxUSE_GSTREAMER8=no
2225   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2226   DEFAULT_wxUSE_INTL=no
2227   DEFAULT_wxUSE_CONFIG=no
2228   DEFAULT_wxUSE_FONTMAP=no
2229   DEFAULT_wxUSE_STREAMS=no
2230   DEFAULT_wxUSE_SOCKETS=no
2231   DEFAULT_wxUSE_OLE=no
2232   DEFAULT_wxUSE_DATAOBJ=no
2233   DEFAULT_wxUSE_DIALUP_MANAGER=no
2234   DEFAULT_wxUSE_JOYSTICK=no
2235   DEFAULT_wxUSE_DYNLIB_CLASS=no
2236   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2237   DEFAULT_wxUSE_LONGLONG=no
2238   DEFAULT_wxUSE_GEOMETRY=no
2239
2240   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2241   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2242   DEFAULT_wxUSE_POSTSCRIPT=no
2243
2244   DEFAULT_wxUSE_CLIPBOARD=no
2245   DEFAULT_wxUSE_TOOLTIPS=no
2246   DEFAULT_wxUSE_DRAG_AND_DROP=no
2247   DEFAULT_wxUSE_DRAGIMAGE=no
2248   DEFAULT_wxUSE_SPLINES=no
2249   DEFAULT_wxUSE_MOUSEWHEEL=no
2250
2251   DEFAULT_wxUSE_MDI=no
2252   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2253   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2254   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2255
2256   DEFAULT_wxUSE_RESOURCES=no
2257   DEFAULT_wxUSE_CONSTRAINTS=no
2258   DEFAULT_wxUSE_IPC=no
2259   DEFAULT_wxUSE_HELP=no
2260   DEFAULT_wxUSE_MS_HTML_HELP=no
2261   DEFAULT_wxUSE_WXHTML_HELP=no
2262   DEFAULT_wxUSE_TREELAYOUT=no
2263   DEFAULT_wxUSE_METAFILE=no
2264   DEFAULT_wxUSE_MIMETYPE=no
2265   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2266   DEFAULT_wxUSE_PROTOCOL=no
2267   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2268   DEFAULT_wxUSE_PROTOCOL_FTP=no
2269   DEFAULT_wxUSE_PROTOCOL_FILE=no
2270   DEFAULT_wxUSE_URL=no
2271
2272   DEFAULT_wxUSE_COMMONDLGS=no
2273   DEFAULT_wxUSE_CHOICEDLG=no
2274   DEFAULT_wxUSE_COLOURDLG=no
2275   DEFAULT_wxUSE_DIRDLG=no
2276   DEFAULT_wxUSE_FILEDLG=no
2277   DEFAULT_wxUSE_FINDREPLDLG=no
2278   DEFAULT_wxUSE_FONTDLG=no
2279   DEFAULT_wxUSE_MSGDLG=no
2280   DEFAULT_wxUSE_NUMBERDLG=no
2281   DEFAULT_wxUSE_TEXTDLG=no
2282   DEFAULT_wxUSE_SPLASH=no
2283   DEFAULT_wxUSE_STARTUP_TIPS=no
2284   DEFAULT_wxUSE_PROGRESSDLG=no
2285   DEFAULT_wxUSE_WIZARDDLG=no
2286
2287   DEFAULT_wxUSE_MENUS=no
2288   DEFAULT_wxUSE_MINIFRAME=no
2289   DEFAULT_wxUSE_HTML=no
2290   DEFAULT_wxUSE_RICHTEXT=no
2291   DEFAULT_wxUSE_XRC=no
2292   DEFAULT_wxUSE_AUI=no
2293   DEFAULT_wxUSE_WEBKIT=no
2294   DEFAULT_wxUSE_FILESYSTEM=no
2295   DEFAULT_wxUSE_FS_INET=no
2296   DEFAULT_wxUSE_FS_ZIP=no
2297   DEFAULT_wxUSE_BUSYINFO=no
2298   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2299   DEFAULT_wxUSE_ZIPSTREAM=no
2300   DEFAULT_wxUSE_VALIDATORS=no
2301
2302   DEFAULT_wxUSE_ACCEL=no
2303   DEFAULT_wxUSE_BUTTON=no
2304   DEFAULT_wxUSE_BMPBUTTON=no
2305   DEFAULT_wxUSE_CALCTRL=no
2306   DEFAULT_wxUSE_CARET=no
2307   DEFAULT_wxUSE_CHECKBOX=no
2308   DEFAULT_wxUSE_CHECKLST=no
2309   DEFAULT_wxUSE_CHOICE=no
2310   DEFAULT_wxUSE_CHOICEBOOK=no
2311   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2312   DEFAULT_wxUSE_COMBOBOX=no
2313   DEFAULT_wxUSE_COMBOCTRL=no
2314   DEFAULT_wxUSE_DATEPICKCTRL=no
2315   DEFAULT_wxUSE_DISPLAY=no
2316   DEFAULT_wxUSE_DIRPICKERCTRL=no
2317   DEFAULT_wxUSE_FILEPICKERCTRL=no
2318   DEFAULT_wxUSE_FONTPICKERCTRL=no
2319   DEFAULT_wxUSE_GAUGE=no
2320   DEFAULT_wxUSE_GRID=no
2321   DEFAULT_wxUSE_HYPERLINKCTRL=no
2322   DEFAULT_wxUSE_DATAVIEWCTRL=no
2323   DEFAULT_wxUSE_IMAGLIST=no
2324   DEFAULT_wxUSE_LISTBOOK=no
2325   DEFAULT_wxUSE_LISTBOX=no
2326   DEFAULT_wxUSE_LISTCTRL=no
2327   DEFAULT_wxUSE_NOTEBOOK=no
2328   DEFAULT_wxUSE_ODCOMBOBOX=no
2329   DEFAULT_wxUSE_RADIOBOX=no
2330   DEFAULT_wxUSE_RADIOBTN=no
2331   DEFAULT_wxUSE_SASH=no
2332   DEFAULT_wxUSE_SCROLLBAR=no
2333   DEFAULT_wxUSE_SLIDER=no
2334   DEFAULT_wxUSE_SPINBTN=no
2335   DEFAULT_wxUSE_SPINCTRL=no
2336   DEFAULT_wxUSE_SPLITTER=no
2337   DEFAULT_wxUSE_STATBMP=no
2338   DEFAULT_wxUSE_STATBOX=no
2339   DEFAULT_wxUSE_STATLINE=no
2340   DEFAULT_wxUSE_STATTEXT=no
2341   DEFAULT_wxUSE_STATUSBAR=yes
2342   DEFAULT_wxUSE_TAB_DIALOG=no
2343   DEFAULT_wxUSE_TEXTCTRL=no
2344   DEFAULT_wxUSE_TOGGLEBTN=no
2345   DEFAULT_wxUSE_TOOLBAR=no
2346   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2347   DEFAULT_wxUSE_TREEBOOK=no
2348   DEFAULT_wxUSE_TOOLBOOK=no
2349   DEFAULT_wxUSE_TREECTRL=no
2350   DEFAULT_wxUSE_POPUPWIN=no
2351   DEFAULT_wxUSE_TIPWINDOW=no
2352
2353   DEFAULT_wxUSE_UNICODE=no
2354   DEFAULT_wxUSE_UNICODE_MSLU=no
2355   DEFAULT_wxUSE_WCSRTOMBS=no
2356
2357   DEFAULT_wxUSE_PALETTE=no
2358   DEFAULT_wxUSE_IMAGE=no
2359   DEFAULT_wxUSE_GIF=no
2360   DEFAULT_wxUSE_PCX=no
2361   DEFAULT_wxUSE_PNM=no
2362   DEFAULT_wxUSE_IFF=no
2363   DEFAULT_wxUSE_XPM=no
2364   DEFAULT_wxUSE_ICO_CUR=no
2365   DEFAULT_wxUSE_ACCESSIBILITY=no
2366
2367   DEFAULT_wxUSE_MONOLITHIC=no
2368   DEFAULT_wxUSE_PLUGINS=no
2369   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2370 else
2371   DEFAULT_wxUSE_UNIVERSAL=no
2372   DEFAULT_wxUSE_STL=no
2373
2374   DEFAULT_wxUSE_NANOX=no
2375
2376   DEFAULT_wxUSE_THREADS=yes
2377
2378   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2379   DEFAULT_wxUSE_OPTIMISE=yes
2380   DEFAULT_wxUSE_PROFILE=no
2381   DEFAULT_wxUSE_NO_DEPS=no
2382   DEFAULT_wxUSE_NO_RTTI=no
2383   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2384   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2385   DEFAULT_wxUSE_RPATH=yes
2386   DEFAULT_wxUSE_PERMISSIVE=no
2387   DEFAULT_wxUSE_DEBUG_FLAG=no
2388   DEFAULT_wxUSE_DEBUG_INFO=no
2389   DEFAULT_wxUSE_DEBUG_GDB=no
2390   DEFAULT_wxUSE_MEM_TRACING=no
2391   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2392   DEFAULT_wxUSE_DMALLOC=no
2393   DEFAULT_wxUSE_APPLE_IEEE=yes
2394
2395   DEFAULT_wxUSE_EXCEPTIONS=yes
2396   DEFAULT_wxUSE_LOG=yes
2397   DEFAULT_wxUSE_LOGWINDOW=yes
2398   DEFAULT_wxUSE_LOGGUI=yes
2399   DEFAULT_wxUSE_LOGDIALOG=yes
2400
2401   DEFAULT_wxUSE_GUI=yes
2402
2403   DEFAULT_wxUSE_REGEX=yes
2404   DEFAULT_wxUSE_XML=yes
2405   DEFAULT_wxUSE_EXPAT=yes
2406   DEFAULT_wxUSE_ZLIB=yes
2407   DEFAULT_wxUSE_LIBPNG=yes
2408   DEFAULT_wxUSE_LIBJPEG=yes
2409   DEFAULT_wxUSE_LIBTIFF=yes
2410   DEFAULT_wxUSE_LIBXPM=yes
2411   DEFAULT_wxUSE_LIBMSPACK=yes
2412   DEFAULT_wxUSE_LIBSDL=no
2413   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2414   DEFAULT_wxUSE_LIBGNOMEVFS=no
2415   DEFAULT_wxUSE_LIBHILDON=no
2416   DEFAULT_wxUSE_ODBC=no
2417   DEFAULT_wxUSE_OPENGL=no
2418
2419   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2420   DEFAULT_wxUSE_STACKWALKER=yes
2421   DEFAULT_wxUSE_DEBUGREPORT=yes
2422   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2423   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2424   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2425   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2426   DEFAULT_wxUSE_DATETIME=yes
2427   DEFAULT_wxUSE_TIMER=yes
2428   DEFAULT_wxUSE_STOPWATCH=yes
2429   DEFAULT_wxUSE_FILE=yes
2430   DEFAULT_wxUSE_FFILE=yes
2431   DEFAULT_wxUSE_STDPATHS=yes
2432   DEFAULT_wxUSE_TEXTBUFFER=yes
2433   DEFAULT_wxUSE_TEXTFILE=yes
2434   DEFAULT_wxUSE_SOUND=yes
2435   DEFAULT_wxUSE_MEDIACTRL=no
2436   DEFAULT_wxUSE_GSTREAMER8=no
2437   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2438   DEFAULT_wxUSE_INTL=yes
2439   DEFAULT_wxUSE_CONFIG=yes
2440   DEFAULT_wxUSE_FONTMAP=yes
2441   DEFAULT_wxUSE_STREAMS=yes
2442   DEFAULT_wxUSE_SOCKETS=yes
2443   DEFAULT_wxUSE_OLE=yes
2444   DEFAULT_wxUSE_DATAOBJ=yes
2445   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2446   DEFAULT_wxUSE_JOYSTICK=yes
2447   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2448   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2449   DEFAULT_wxUSE_LONGLONG=yes
2450   DEFAULT_wxUSE_GEOMETRY=yes
2451
2452   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2453   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2454   DEFAULT_wxUSE_POSTSCRIPT=yes
2455
2456   DEFAULT_wxUSE_CLIPBOARD=yes
2457   DEFAULT_wxUSE_TOOLTIPS=yes
2458   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2459   DEFAULT_wxUSE_DRAGIMAGE=yes
2460   DEFAULT_wxUSE_SPLINES=yes
2461   DEFAULT_wxUSE_MOUSEWHEEL=yes
2462
2463   DEFAULT_wxUSE_MDI=yes
2464   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2465   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2466   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2467
2468   DEFAULT_wxUSE_RESOURCES=no
2469   DEFAULT_wxUSE_CONSTRAINTS=yes
2470   DEFAULT_wxUSE_IPC=yes
2471   DEFAULT_wxUSE_HELP=yes
2472   DEFAULT_wxUSE_MS_HTML_HELP=yes
2473   DEFAULT_wxUSE_WXHTML_HELP=yes
2474   DEFAULT_wxUSE_TREELAYOUT=yes
2475   DEFAULT_wxUSE_METAFILE=yes
2476   DEFAULT_wxUSE_MIMETYPE=yes
2477   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2478   DEFAULT_wxUSE_PROTOCOL=yes
2479   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2480   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2481   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2482   DEFAULT_wxUSE_URL=yes
2483
2484   DEFAULT_wxUSE_COMMONDLGS=yes
2485   DEFAULT_wxUSE_CHOICEDLG=yes
2486   DEFAULT_wxUSE_COLOURDLG=yes
2487   DEFAULT_wxUSE_DIRDLG=yes
2488   DEFAULT_wxUSE_FILEDLG=yes
2489   DEFAULT_wxUSE_FINDREPLDLG=yes
2490   DEFAULT_wxUSE_FONTDLG=yes
2491   DEFAULT_wxUSE_MSGDLG=yes
2492   DEFAULT_wxUSE_NUMBERDLG=yes
2493   DEFAULT_wxUSE_TEXTDLG=yes
2494   DEFAULT_wxUSE_SPLASH=yes
2495   DEFAULT_wxUSE_STARTUP_TIPS=yes
2496   DEFAULT_wxUSE_PROGRESSDLG=yes
2497   DEFAULT_wxUSE_WIZARDDLG=yes
2498
2499   DEFAULT_wxUSE_MENUS=yes
2500   DEFAULT_wxUSE_MINIFRAME=yes
2501   DEFAULT_wxUSE_HTML=yes
2502   DEFAULT_wxUSE_RICHTEXT=yes
2503   DEFAULT_wxUSE_XRC=yes
2504   DEFAULT_wxUSE_AUI=yes
2505   DEFAULT_wxUSE_WEBKIT=yes
2506   DEFAULT_wxUSE_FILESYSTEM=yes
2507   DEFAULT_wxUSE_FS_INET=yes
2508   DEFAULT_wxUSE_FS_ZIP=yes
2509   DEFAULT_wxUSE_BUSYINFO=yes
2510   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2511   DEFAULT_wxUSE_ZIPSTREAM=yes
2512   DEFAULT_wxUSE_VALIDATORS=yes
2513
2514   DEFAULT_wxUSE_ACCEL=yes
2515   DEFAULT_wxUSE_BUTTON=yes
2516   DEFAULT_wxUSE_BMPBUTTON=yes
2517   DEFAULT_wxUSE_CALCTRL=yes
2518   DEFAULT_wxUSE_CARET=yes
2519   DEFAULT_wxUSE_CHECKBOX=yes
2520   DEFAULT_wxUSE_CHECKLST=yes
2521   DEFAULT_wxUSE_CHOICE=yes
2522   DEFAULT_wxUSE_CHOICEBOOK=yes
2523   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2524   DEFAULT_wxUSE_COMBOBOX=yes
2525   DEFAULT_wxUSE_COMBOCTRL=yes
2526   DEFAULT_wxUSE_DATEPICKCTRL=yes
2527   DEFAULT_wxUSE_DISPLAY=yes
2528   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2529   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2530   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2531   DEFAULT_wxUSE_GAUGE=yes
2532   DEFAULT_wxUSE_GRID=yes
2533   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2534   DEFAULT_wxUSE_DATAVIEWCTRL=no
2535   DEFAULT_wxUSE_IMAGLIST=yes
2536   DEFAULT_wxUSE_LISTBOOK=yes
2537   DEFAULT_wxUSE_LISTBOX=yes
2538   DEFAULT_wxUSE_LISTCTRL=yes
2539   DEFAULT_wxUSE_NOTEBOOK=yes
2540   DEFAULT_wxUSE_ODCOMBOBOX=yes
2541   DEFAULT_wxUSE_RADIOBOX=yes
2542   DEFAULT_wxUSE_RADIOBTN=yes
2543   DEFAULT_wxUSE_SASH=yes
2544   DEFAULT_wxUSE_SCROLLBAR=yes
2545   DEFAULT_wxUSE_SLIDER=yes
2546   DEFAULT_wxUSE_SPINBTN=yes
2547   DEFAULT_wxUSE_SPINCTRL=yes
2548   DEFAULT_wxUSE_SPLITTER=yes
2549   DEFAULT_wxUSE_STATBMP=yes
2550   DEFAULT_wxUSE_STATBOX=yes
2551   DEFAULT_wxUSE_STATLINE=yes
2552   DEFAULT_wxUSE_STATTEXT=yes
2553   DEFAULT_wxUSE_STATUSBAR=yes
2554   DEFAULT_wxUSE_TAB_DIALOG=no
2555   DEFAULT_wxUSE_TEXTCTRL=yes
2556   DEFAULT_wxUSE_TOGGLEBTN=yes
2557   DEFAULT_wxUSE_TOOLBAR=yes
2558   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2559   DEFAULT_wxUSE_TREEBOOK=yes
2560   DEFAULT_wxUSE_TOOLBOOK=yes
2561   DEFAULT_wxUSE_TREECTRL=yes
2562   DEFAULT_wxUSE_POPUPWIN=yes
2563   DEFAULT_wxUSE_TIPWINDOW=yes
2564
2565   DEFAULT_wxUSE_UNICODE=no
2566   DEFAULT_wxUSE_UNICODE_MSLU=yes
2567   DEFAULT_wxUSE_WCSRTOMBS=no
2568
2569   DEFAULT_wxUSE_PALETTE=yes
2570   DEFAULT_wxUSE_IMAGE=yes
2571   DEFAULT_wxUSE_GIF=yes
2572   DEFAULT_wxUSE_PCX=yes
2573   DEFAULT_wxUSE_IFF=no
2574   DEFAULT_wxUSE_PNM=yes
2575   DEFAULT_wxUSE_XPM=yes
2576   DEFAULT_wxUSE_ICO_CUR=yes
2577   DEFAULT_wxUSE_ACCESSIBILITY=no
2578
2579   DEFAULT_wxUSE_MONOLITHIC=no
2580   DEFAULT_wxUSE_PLUGINS=no
2581   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2582
2583     DEFAULT_wxUSE_GTK2=yes
2584 fi
2585
2586
2587
2588
2589 for toolkit in `echo $ALL_TOOLKITS`; do
2590   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2591   if test "x$LINE" != "x" ; then
2592     has_toolkit_in_cache=1
2593     eval "DEFAULT_$LINE"
2594     eval "CACHE_$toolkit=1"
2595
2596     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2597     if test "x$LINE" != "x" ; then
2598         eval "DEFAULT_$LINE"
2599     fi
2600   fi
2601 done
2602
2603
2604
2605           enablestring=
2606           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2607 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2608           no_cache=0
2609           # Check whether --enable-gui or --disable-gui was given.
2610 if test "${enable_gui+set}" = set; then
2611   enableval="$enable_gui"
2612
2613                           if test "$enableval" = yes; then
2614                             ac_cv_use_gui='wxUSE_GUI=yes'
2615                           else
2616                             ac_cv_use_gui='wxUSE_GUI=no'
2617                           fi
2618
2619 else
2620
2621                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2622                           if test "x$LINE" != x ; then
2623                             eval "DEFAULT_$LINE"
2624                           else
2625                             no_cache=1
2626                           fi
2627
2628                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2629
2630 fi;
2631
2632           eval "$ac_cv_use_gui"
2633           if test "$no_cache" != 1; then
2634             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2635           fi
2636
2637           if test "$wxUSE_GUI" = yes; then
2638             echo "$as_me:$LINENO: result: yes" >&5
2639 echo "${ECHO_T}yes" >&6
2640           else
2641             echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643           fi
2644
2645
2646           enablestring=
2647           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2648 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2649           no_cache=0
2650           # Check whether --enable-monolithic or --disable-monolithic was given.
2651 if test "${enable_monolithic+set}" = set; then
2652   enableval="$enable_monolithic"
2653
2654                           if test "$enableval" = yes; then
2655                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2656                           else
2657                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2658                           fi
2659
2660 else
2661
2662                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2663                           if test "x$LINE" != x ; then
2664                             eval "DEFAULT_$LINE"
2665                           else
2666                             no_cache=1
2667                           fi
2668
2669                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2670
2671 fi;
2672
2673           eval "$ac_cv_use_monolithic"
2674           if test "$no_cache" != 1; then
2675             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2676           fi
2677
2678           if test "$wxUSE_MONOLITHIC" = yes; then
2679             echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6
2681           else
2682             echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684           fi
2685
2686
2687           enablestring=
2688           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2689 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2690           no_cache=0
2691           # Check whether --enable-plugins or --disable-plugins was given.
2692 if test "${enable_plugins+set}" = set; then
2693   enableval="$enable_plugins"
2694
2695                           if test "$enableval" = yes; then
2696                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2697                           else
2698                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2699                           fi
2700
2701 else
2702
2703                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2704                           if test "x$LINE" != x ; then
2705                             eval "DEFAULT_$LINE"
2706                           else
2707                             no_cache=1
2708                           fi
2709
2710                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2711
2712 fi;
2713
2714           eval "$ac_cv_use_plugins"
2715           if test "$no_cache" != 1; then
2716             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2717           fi
2718
2719           if test "$wxUSE_PLUGINS" = yes; then
2720             echo "$as_me:$LINENO: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2722           else
2723             echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725           fi
2726
2727
2728           withstring=without
2729           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2730 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2731           no_cache=0
2732
2733 # Check whether --with-subdirs or --without-subdirs was given.
2734 if test "${with_subdirs+set}" = set; then
2735   withval="$with_subdirs"
2736
2737                         if test "$withval" = yes; then
2738                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2739                         else
2740                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2741                         fi
2742
2743 else
2744
2745                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2746                         if test "x$LINE" != x ; then
2747                           eval "DEFAULT_$LINE"
2748                         else
2749                           no_cache=1
2750                         fi
2751
2752                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2753
2754 fi;
2755
2756           eval "$ac_cv_use_subdirs"
2757           if test "$no_cache" != 1; then
2758             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2759           fi
2760
2761           if test "$wxWITH_SUBDIRS" = yes; then
2762             echo "$as_me:$LINENO: result: yes" >&5
2763 echo "${ECHO_T}yes" >&6
2764           else
2765             echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2767           fi
2768
2769
2770 if test "$wxUSE_GUI" = "yes"; then
2771
2772
2773           enablestring=
2774           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2775 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2776           no_cache=0
2777           # Check whether --enable-universal or --disable-universal was given.
2778 if test "${enable_universal+set}" = set; then
2779   enableval="$enable_universal"
2780
2781                           if test "$enableval" = yes; then
2782                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2783                           else
2784                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2785                           fi
2786
2787 else
2788
2789                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2790                           if test "x$LINE" != x ; then
2791                             eval "DEFAULT_$LINE"
2792                           else
2793                             no_cache=1
2794                           fi
2795
2796                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2797
2798 fi;
2799
2800           eval "$ac_cv_use_universal"
2801           if test "$no_cache" != 1; then
2802             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2803           fi
2804
2805           if test "$wxUSE_UNIVERSAL" = yes; then
2806             echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808           else
2809             echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2811           fi
2812
2813
2814 # Check whether --with-gtk or --without-gtk was given.
2815 if test "${with_gtk+set}" = set; then
2816   withval="$with_gtk"
2817   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2818 fi;
2819
2820 # Check whether --with-motif or --without-motif was given.
2821 if test "${with_motif+set}" = set; then
2822   withval="$with_motif"
2823   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2824 fi;
2825
2826 # Check whether --with-mac or --without-mac was given.
2827 if test "${with_mac+set}" = set; then
2828   withval="$with_mac"
2829   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2830 fi;
2831
2832 # Check whether --with-cocoa or --without-cocoa was given.
2833 if test "${with_cocoa+set}" = set; then
2834   withval="$with_cocoa"
2835   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2836 fi;
2837
2838 # Check whether --with-wine or --without-wine was given.
2839 if test "${with_wine+set}" = set; then
2840   withval="$with_wine"
2841   wxUSE_WINE="$withval" CACHE_WINE=1
2842 fi;
2843
2844 # Check whether --with-msw or --without-msw was given.
2845 if test "${with_msw+set}" = set; then
2846   withval="$with_msw"
2847   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2848 fi;
2849
2850 # Check whether --with-pm or --without-pm was given.
2851 if test "${with_pm+set}" = set; then
2852   withval="$with_pm"
2853   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2854 fi;
2855
2856 # Check whether --with-mgl or --without-mgl was given.
2857 if test "${with_mgl+set}" = set; then
2858   withval="$with_mgl"
2859   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2860 fi;
2861
2862 # Check whether --with-directfb or --without-directfb was given.
2863 if test "${with_directfb+set}" = set; then
2864   withval="$with_directfb"
2865   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2866 fi;
2867
2868 # Check whether --with-microwin or --without-microwin was given.
2869 if test "${with_microwin+set}" = set; then
2870   withval="$with_microwin"
2871   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2872 fi;
2873
2874 # Check whether --with-x11 or --without-x11 was given.
2875 if test "${with_x11+set}" = set; then
2876   withval="$with_x11"
2877   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2878 fi;
2879
2880           enablestring=
2881           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2882 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2883           no_cache=0
2884           # Check whether --enable-nanox or --disable-nanox was given.
2885 if test "${enable_nanox+set}" = set; then
2886   enableval="$enable_nanox"
2887
2888                           if test "$enableval" = yes; then
2889                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2890                           else
2891                             ac_cv_use_nanox='wxUSE_NANOX=no'
2892                           fi
2893
2894 else
2895
2896                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2897                           if test "x$LINE" != x ; then
2898                             eval "DEFAULT_$LINE"
2899                           else
2900                             no_cache=1
2901                           fi
2902
2903                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2904
2905 fi;
2906
2907           eval "$ac_cv_use_nanox"
2908           if test "$no_cache" != 1; then
2909             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2910           fi
2911
2912           if test "$wxUSE_NANOX" = yes; then
2913             echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6
2915           else
2916             echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2918           fi
2919
2920
2921 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2922 if test "${enable_gtk2+set}" = set; then
2923   enableval="$enable_gtk2"
2924   wxUSE_GTK2="$enableval"
2925 fi;
2926
2927           enablestring=
2928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2929 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2930           no_cache=0
2931           # Check whether --enable-gpe or --disable-gpe was given.
2932 if test "${enable_gpe+set}" = set; then
2933   enableval="$enable_gpe"
2934
2935                           if test "$enableval" = yes; then
2936                             ac_cv_use_gpe='wxUSE_GPE=yes'
2937                           else
2938                             ac_cv_use_gpe='wxUSE_GPE=no'
2939                           fi
2940
2941 else
2942
2943                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2944                           if test "x$LINE" != x ; then
2945                             eval "DEFAULT_$LINE"
2946                           else
2947                             no_cache=1
2948                           fi
2949
2950                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2951
2952 fi;
2953
2954           eval "$ac_cv_use_gpe"
2955           if test "$no_cache" != 1; then
2956             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2957           fi
2958
2959           if test "$wxUSE_GPE" = yes; then
2960             echo "$as_me:$LINENO: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2962           else
2963             echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965           fi
2966
2967
2968
2969           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2970 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2971           no_cache=0
2972
2973 # Check whether --with-libpng or --without-libpng was given.
2974 if test "${with_libpng+set}" = set; then
2975   withval="$with_libpng"
2976
2977                         if test "$withval" = yes; then
2978                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2979                         elif test "$withval" = no; then
2980                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2981                         elif test "$withval" = sys; then
2982                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2983                         elif test "$withval" = builtin; then
2984                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2985                         else
2986                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2987 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2988    { (exit 1); exit 1; }; }
2989                         fi
2990
2991 else
2992
2993                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2994                         if test "x$LINE" != x ; then
2995                           eval "DEFAULT_$LINE"
2996                         else
2997                           no_cache=1
2998                         fi
2999
3000                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3001
3002 fi;
3003
3004           eval "$ac_cv_use_libpng"
3005           if test "$no_cache" != 1; then
3006             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3007           fi
3008
3009           if test "$wxUSE_LIBPNG" = yes; then
3010             echo "$as_me:$LINENO: result: yes" >&5
3011 echo "${ECHO_T}yes" >&6
3012           elif test "$wxUSE_LIBPNG" = no; then
3013             echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015           elif test "$wxUSE_LIBPNG" = sys; then
3016             echo "$as_me:$LINENO: result: system version" >&5
3017 echo "${ECHO_T}system version" >&6
3018           elif test "$wxUSE_LIBPNG" = builtin; then
3019             echo "$as_me:$LINENO: result: builtin version" >&5
3020 echo "${ECHO_T}builtin version" >&6
3021           else
3022             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3023 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3024    { (exit 1); exit 1; }; }
3025           fi
3026
3027
3028           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3029 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3030           no_cache=0
3031
3032 # Check whether --with-libjpeg or --without-libjpeg was given.
3033 if test "${with_libjpeg+set}" = set; then
3034   withval="$with_libjpeg"
3035
3036                         if test "$withval" = yes; then
3037                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3038                         elif test "$withval" = no; then
3039                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3040                         elif test "$withval" = sys; then
3041                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3042                         elif test "$withval" = builtin; then
3043                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3044                         else
3045                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3046 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3047    { (exit 1); exit 1; }; }
3048                         fi
3049
3050 else
3051
3052                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3053                         if test "x$LINE" != x ; then
3054                           eval "DEFAULT_$LINE"
3055                         else
3056                           no_cache=1
3057                         fi
3058
3059                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3060
3061 fi;
3062
3063           eval "$ac_cv_use_libjpeg"
3064           if test "$no_cache" != 1; then
3065             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3066           fi
3067
3068           if test "$wxUSE_LIBJPEG" = yes; then
3069             echo "$as_me:$LINENO: result: yes" >&5
3070 echo "${ECHO_T}yes" >&6
3071           elif test "$wxUSE_LIBJPEG" = no; then
3072             echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3074           elif test "$wxUSE_LIBJPEG" = sys; then
3075             echo "$as_me:$LINENO: result: system version" >&5
3076 echo "${ECHO_T}system version" >&6
3077           elif test "$wxUSE_LIBJPEG" = builtin; then
3078             echo "$as_me:$LINENO: result: builtin version" >&5
3079 echo "${ECHO_T}builtin version" >&6
3080           else
3081             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3082 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3083    { (exit 1); exit 1; }; }
3084           fi
3085
3086
3087           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3088 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3089           no_cache=0
3090
3091 # Check whether --with-libtiff or --without-libtiff was given.
3092 if test "${with_libtiff+set}" = set; then
3093   withval="$with_libtiff"
3094
3095                         if test "$withval" = yes; then
3096                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3097                         elif test "$withval" = no; then
3098                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3099                         elif test "$withval" = sys; then
3100                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3101                         elif test "$withval" = builtin; then
3102                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3103                         else
3104                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3105 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3106    { (exit 1); exit 1; }; }
3107                         fi
3108
3109 else
3110
3111                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3112                         if test "x$LINE" != x ; then
3113                           eval "DEFAULT_$LINE"
3114                         else
3115                           no_cache=1
3116                         fi
3117
3118                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3119
3120 fi;
3121
3122           eval "$ac_cv_use_libtiff"
3123           if test "$no_cache" != 1; then
3124             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3125           fi
3126
3127           if test "$wxUSE_LIBTIFF" = yes; then
3128             echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6
3130           elif test "$wxUSE_LIBTIFF" = no; then
3131             echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133           elif test "$wxUSE_LIBTIFF" = sys; then
3134             echo "$as_me:$LINENO: result: system version" >&5
3135 echo "${ECHO_T}system version" >&6
3136           elif test "$wxUSE_LIBTIFF" = builtin; then
3137             echo "$as_me:$LINENO: result: builtin version" >&5
3138 echo "${ECHO_T}builtin version" >&6
3139           else
3140             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3141 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3142    { (exit 1); exit 1; }; }
3143           fi
3144
3145
3146           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3147 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3148           no_cache=0
3149
3150 # Check whether --with-libxpm or --without-libxpm was given.
3151 if test "${with_libxpm+set}" = set; then
3152   withval="$with_libxpm"
3153
3154                         if test "$withval" = yes; then
3155                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3156                         elif test "$withval" = no; then
3157                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3158                         elif test "$withval" = sys; then
3159                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3160                         elif test "$withval" = builtin; then
3161                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3162                         else
3163                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3164 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3165    { (exit 1); exit 1; }; }
3166                         fi
3167
3168 else
3169
3170                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3171                         if test "x$LINE" != x ; then
3172                           eval "DEFAULT_$LINE"
3173                         else
3174                           no_cache=1
3175                         fi
3176
3177                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3178
3179 fi;
3180
3181           eval "$ac_cv_use_libxpm"
3182           if test "$no_cache" != 1; then
3183             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3184           fi
3185
3186           if test "$wxUSE_LIBXPM" = yes; then
3187             echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6
3189           elif test "$wxUSE_LIBXPM" = no; then
3190             echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192           elif test "$wxUSE_LIBXPM" = sys; then
3193             echo "$as_me:$LINENO: result: system version" >&5
3194 echo "${ECHO_T}system version" >&6
3195           elif test "$wxUSE_LIBXPM" = builtin; then
3196             echo "$as_me:$LINENO: result: builtin version" >&5
3197 echo "${ECHO_T}builtin version" >&6
3198           else
3199             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3200 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3201    { (exit 1); exit 1; }; }
3202           fi
3203
3204
3205           withstring=
3206           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3207 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3208           no_cache=0
3209
3210 # Check whether --with-libmspack or --without-libmspack was given.
3211 if test "${with_libmspack+set}" = set; then
3212   withval="$with_libmspack"
3213
3214                         if test "$withval" = yes; then
3215                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3216                         else
3217                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3218                         fi
3219
3220 else
3221
3222                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3223                         if test "x$LINE" != x ; then
3224                           eval "DEFAULT_$LINE"
3225                         else
3226                           no_cache=1
3227                         fi
3228
3229                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3230
3231 fi;
3232
3233           eval "$ac_cv_use_libmspack"
3234           if test "$no_cache" != 1; then
3235             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3236           fi
3237
3238           if test "$wxUSE_LIBMSPACK" = yes; then
3239             echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241           else
3242             echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244           fi
3245
3246
3247           withstring=
3248           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3249 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3250           no_cache=0
3251
3252 # Check whether --with-sdl or --without-sdl was given.
3253 if test "${with_sdl+set}" = set; then
3254   withval="$with_sdl"
3255
3256                         if test "$withval" = yes; then
3257                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3258                         else
3259                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3260                         fi
3261
3262 else
3263
3264                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3265                         if test "x$LINE" != x ; then
3266                           eval "DEFAULT_$LINE"
3267                         else
3268                           no_cache=1
3269                         fi
3270
3271                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3272
3273 fi;
3274
3275           eval "$ac_cv_use_sdl"
3276           if test "$no_cache" != 1; then
3277             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3278           fi
3279
3280           if test "$wxUSE_LIBSDL" = yes; then
3281             echo "$as_me:$LINENO: result: yes" >&5
3282 echo "${ECHO_T}yes" >&6
3283           else
3284             echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3286           fi
3287
3288
3289           withstring=
3290           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3291 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3292           no_cache=0
3293
3294 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3295 if test "${with_gnomeprint+set}" = set; then
3296   withval="$with_gnomeprint"
3297
3298                         if test "$withval" = yes; then
3299                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3300                         else
3301                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3302                         fi
3303
3304 else
3305
3306                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3307                         if test "x$LINE" != x ; then
3308                           eval "DEFAULT_$LINE"
3309                         else
3310                           no_cache=1
3311                         fi
3312
3313                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3314
3315 fi;
3316
3317           eval "$ac_cv_use_gnomeprint"
3318           if test "$no_cache" != 1; then
3319             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3320           fi
3321
3322           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3323             echo "$as_me:$LINENO: result: yes" >&5
3324 echo "${ECHO_T}yes" >&6
3325           else
3326             echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328           fi
3329
3330
3331           withstring=
3332           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3333 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3334           no_cache=0
3335
3336 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3337 if test "${with_gnomevfs+set}" = set; then
3338   withval="$with_gnomevfs"
3339
3340                         if test "$withval" = yes; then
3341                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3342                         else
3343                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3344                         fi
3345
3346 else
3347
3348                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3349                         if test "x$LINE" != x ; then
3350                           eval "DEFAULT_$LINE"
3351                         else
3352                           no_cache=1
3353                         fi
3354
3355                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3356
3357 fi;
3358
3359           eval "$ac_cv_use_gnomevfs"
3360           if test "$no_cache" != 1; then
3361             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3362           fi
3363
3364           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3365             echo "$as_me:$LINENO: result: yes" >&5
3366 echo "${ECHO_T}yes" >&6
3367           else
3368             echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370           fi
3371
3372
3373           withstring=
3374           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3375 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3376           no_cache=0
3377
3378 # Check whether --with-hildon or --without-hildon was given.
3379 if test "${with_hildon+set}" = set; then
3380   withval="$with_hildon"
3381
3382                         if test "$withval" = yes; then
3383                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3384                         else
3385                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3386                         fi
3387
3388 else
3389
3390                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3391                         if test "x$LINE" != x ; then
3392                           eval "DEFAULT_$LINE"
3393                         else
3394                           no_cache=1
3395                         fi
3396
3397                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3398
3399 fi;
3400
3401           eval "$ac_cv_use_hildon"
3402           if test "$no_cache" != 1; then
3403             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3404           fi
3405
3406           if test "$wxUSE_LIBHILDON" = yes; then
3407             echo "$as_me:$LINENO: result: yes" >&5
3408 echo "${ECHO_T}yes" >&6
3409           else
3410             echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412           fi
3413
3414
3415           withstring=
3416           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3417 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3418           no_cache=0
3419
3420 # Check whether --with-opengl or --without-opengl was given.
3421 if test "${with_opengl+set}" = set; then
3422   withval="$with_opengl"
3423
3424                         if test "$withval" = yes; then
3425                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3426                         else
3427                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3428                         fi
3429
3430 else
3431
3432                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3433                         if test "x$LINE" != x ; then
3434                           eval "DEFAULT_$LINE"
3435                         else
3436                           no_cache=1
3437                         fi
3438
3439                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3440
3441 fi;
3442
3443           eval "$ac_cv_use_opengl"
3444           if test "$no_cache" != 1; then
3445             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3446           fi
3447
3448           if test "$wxUSE_OPENGL" = yes; then
3449             echo "$as_me:$LINENO: result: yes" >&5
3450 echo "${ECHO_T}yes" >&6
3451           else
3452             echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454           fi
3455
3456
3457 fi
3458
3459
3460           withstring=
3461           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3462 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3463           no_cache=0
3464
3465 # Check whether --with-dmalloc or --without-dmalloc was given.
3466 if test "${with_dmalloc+set}" = set; then
3467   withval="$with_dmalloc"
3468
3469                         if test "$withval" = yes; then
3470                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3471                         else
3472                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3473                         fi
3474
3475 else
3476
3477                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3478                         if test "x$LINE" != x ; then
3479                           eval "DEFAULT_$LINE"
3480                         else
3481                           no_cache=1
3482                         fi
3483
3484                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3485
3486 fi;
3487
3488           eval "$ac_cv_use_dmalloc"
3489           if test "$no_cache" != 1; then
3490             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3491           fi
3492
3493           if test "$wxUSE_DMALLOC" = yes; then
3494             echo "$as_me:$LINENO: result: yes" >&5
3495 echo "${ECHO_T}yes" >&6
3496           else
3497             echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3499           fi
3500
3501
3502           echo "$as_me:$LINENO: checking for --with-regex" >&5
3503 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3504           no_cache=0
3505
3506 # Check whether --with-regex or --without-regex was given.
3507 if test "${with_regex+set}" = set; then
3508   withval="$with_regex"
3509
3510                         if test "$withval" = yes; then
3511                           ac_cv_use_regex='wxUSE_REGEX=yes'
3512                         elif test "$withval" = no; then
3513                           ac_cv_use_regex='wxUSE_REGEX=no'
3514                         elif test "$withval" = sys; then
3515                           ac_cv_use_regex='wxUSE_REGEX=sys'
3516                         elif test "$withval" = builtin; then
3517                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3518                         else
3519                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3520 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3521    { (exit 1); exit 1; }; }
3522                         fi
3523
3524 else
3525
3526                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3527                         if test "x$LINE" != x ; then
3528                           eval "DEFAULT_$LINE"
3529                         else
3530                           no_cache=1
3531                         fi
3532
3533                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3534
3535 fi;
3536
3537           eval "$ac_cv_use_regex"
3538           if test "$no_cache" != 1; then
3539             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3540           fi
3541
3542           if test "$wxUSE_REGEX" = yes; then
3543             echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6
3545           elif test "$wxUSE_REGEX" = no; then
3546             echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548           elif test "$wxUSE_REGEX" = sys; then
3549             echo "$as_me:$LINENO: result: system version" >&5
3550 echo "${ECHO_T}system version" >&6
3551           elif test "$wxUSE_REGEX" = builtin; then
3552             echo "$as_me:$LINENO: result: builtin version" >&5
3553 echo "${ECHO_T}builtin version" >&6
3554           else
3555             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3556 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3557    { (exit 1); exit 1; }; }
3558           fi
3559
3560
3561           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3562 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3563           no_cache=0
3564
3565 # Check whether --with-zlib or --without-zlib was given.
3566 if test "${with_zlib+set}" = set; then
3567   withval="$with_zlib"
3568
3569                         if test "$withval" = yes; then
3570                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3571                         elif test "$withval" = no; then
3572                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3573                         elif test "$withval" = sys; then
3574                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3575                         elif test "$withval" = builtin; then
3576                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3577                         else
3578                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3579 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3580    { (exit 1); exit 1; }; }
3581                         fi
3582
3583 else
3584
3585                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3586                         if test "x$LINE" != x ; then
3587                           eval "DEFAULT_$LINE"
3588                         else
3589                           no_cache=1
3590                         fi
3591
3592                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3593
3594 fi;
3595
3596           eval "$ac_cv_use_zlib"
3597           if test "$no_cache" != 1; then
3598             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3599           fi
3600
3601           if test "$wxUSE_ZLIB" = yes; then
3602             echo "$as_me:$LINENO: result: yes" >&5
3603 echo "${ECHO_T}yes" >&6
3604           elif test "$wxUSE_ZLIB" = no; then
3605             echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607           elif test "$wxUSE_ZLIB" = sys; then
3608             echo "$as_me:$LINENO: result: system version" >&5
3609 echo "${ECHO_T}system version" >&6
3610           elif test "$wxUSE_ZLIB" = builtin; then
3611             echo "$as_me:$LINENO: result: builtin version" >&5
3612 echo "${ECHO_T}builtin version" >&6
3613           else
3614             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3615 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3616    { (exit 1); exit 1; }; }
3617           fi
3618
3619
3620           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3621 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3622           no_cache=0
3623
3624 # Check whether --with-odbc or --without-odbc was given.
3625 if test "${with_odbc+set}" = set; then
3626   withval="$with_odbc"
3627
3628                         if test "$withval" = yes; then
3629                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3630                         elif test "$withval" = no; then
3631                           ac_cv_use_odbc='wxUSE_ODBC=no'
3632                         elif test "$withval" = sys; then
3633                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3634                         elif test "$withval" = builtin; then
3635                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3636                         else
3637                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3638 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3639    { (exit 1); exit 1; }; }
3640                         fi
3641
3642 else
3643
3644                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3645                         if test "x$LINE" != x ; then
3646                           eval "DEFAULT_$LINE"
3647                         else
3648                           no_cache=1
3649                         fi
3650
3651                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3652
3653 fi;
3654
3655           eval "$ac_cv_use_odbc"
3656           if test "$no_cache" != 1; then
3657             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_ODBC" = yes; then
3661             echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6
3663           elif test "$wxUSE_ODBC" = no; then
3664             echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666           elif test "$wxUSE_ODBC" = sys; then
3667             echo "$as_me:$LINENO: result: system version" >&5
3668 echo "${ECHO_T}system version" >&6
3669           elif test "$wxUSE_ODBC" = builtin; then
3670             echo "$as_me:$LINENO: result: builtin version" >&5
3671 echo "${ECHO_T}builtin version" >&6
3672           else
3673             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676           fi
3677
3678
3679           echo "$as_me:$LINENO: checking for --with-expat" >&5
3680 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3681           no_cache=0
3682
3683 # Check whether --with-expat or --without-expat was given.
3684 if test "${with_expat+set}" = set; then
3685   withval="$with_expat"
3686
3687                         if test "$withval" = yes; then
3688                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3689                         elif test "$withval" = no; then
3690                           ac_cv_use_expat='wxUSE_EXPAT=no'
3691                         elif test "$withval" = sys; then
3692                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3693                         elif test "$withval" = builtin; then
3694                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3695                         else
3696                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3697 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3698    { (exit 1); exit 1; }; }
3699                         fi
3700
3701 else
3702
3703                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3704                         if test "x$LINE" != x ; then
3705                           eval "DEFAULT_$LINE"
3706                         else
3707                           no_cache=1
3708                         fi
3709
3710                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3711
3712 fi;
3713
3714           eval "$ac_cv_use_expat"
3715           if test "$no_cache" != 1; then
3716             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3717           fi
3718
3719           if test "$wxUSE_EXPAT" = yes; then
3720             echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3722           elif test "$wxUSE_EXPAT" = no; then
3723             echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3725           elif test "$wxUSE_EXPAT" = sys; then
3726             echo "$as_me:$LINENO: result: system version" >&5
3727 echo "${ECHO_T}system version" >&6
3728           elif test "$wxUSE_EXPAT" = builtin; then
3729             echo "$as_me:$LINENO: result: builtin version" >&5
3730 echo "${ECHO_T}builtin version" >&6
3731           else
3732             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3733 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3734    { (exit 1); exit 1; }; }
3735           fi
3736
3737
3738
3739
3740           enablestring=
3741           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3742 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3743           no_cache=0
3744           # Check whether --enable-shared or --disable-shared was given.
3745 if test "${enable_shared+set}" = set; then
3746   enableval="$enable_shared"
3747
3748                           if test "$enableval" = yes; then
3749                             ac_cv_use_shared='wxUSE_SHARED=yes'
3750                           else
3751                             ac_cv_use_shared='wxUSE_SHARED=no'
3752                           fi
3753
3754 else
3755
3756                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3757                           if test "x$LINE" != x ; then
3758                             eval "DEFAULT_$LINE"
3759                           else
3760                             no_cache=1
3761                           fi
3762
3763                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3764
3765 fi;
3766
3767           eval "$ac_cv_use_shared"
3768           if test "$no_cache" != 1; then
3769             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3770           fi
3771
3772           if test "$wxUSE_SHARED" = yes; then
3773             echo "$as_me:$LINENO: result: yes" >&5
3774 echo "${ECHO_T}yes" >&6
3775           else
3776             echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778           fi
3779
3780
3781           enablestring=
3782           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3783 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3784           no_cache=0
3785           # Check whether --enable-optimise or --disable-optimise was given.
3786 if test "${enable_optimise+set}" = set; then
3787   enableval="$enable_optimise"
3788
3789                           if test "$enableval" = yes; then
3790                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3791                           else
3792                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3793                           fi
3794
3795 else
3796
3797                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3798                           if test "x$LINE" != x ; then
3799                             eval "DEFAULT_$LINE"
3800                           else
3801                             no_cache=1
3802                           fi
3803
3804                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3805
3806 fi;
3807
3808           eval "$ac_cv_use_optimise"
3809           if test "$no_cache" != 1; then
3810             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3811           fi
3812
3813           if test "$wxUSE_OPTIMISE" = yes; then
3814             echo "$as_me:$LINENO: result: yes" >&5
3815 echo "${ECHO_T}yes" >&6
3816           else
3817             echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819           fi
3820
3821
3822           enablestring=
3823           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3824 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3825           no_cache=0
3826           # Check whether --enable-debug or --disable-debug was given.
3827 if test "${enable_debug+set}" = set; then
3828   enableval="$enable_debug"
3829
3830                           if test "$enableval" = yes; then
3831                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3832                           else
3833                             ac_cv_use_debug='wxUSE_DEBUG=no'
3834                           fi
3835
3836 else
3837
3838                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3839                           if test "x$LINE" != x ; then
3840                             eval "DEFAULT_$LINE"
3841                           else
3842                             no_cache=1
3843                           fi
3844
3845                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3846
3847 fi;
3848
3849           eval "$ac_cv_use_debug"
3850           if test "$no_cache" != 1; then
3851             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3852           fi
3853
3854           if test "$wxUSE_DEBUG" = yes; then
3855             echo "$as_me:$LINENO: result: yes" >&5
3856 echo "${ECHO_T}yes" >&6
3857           else
3858             echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3860           fi
3861
3862
3863           enablestring=
3864           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3865 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3866           no_cache=0
3867           # Check whether --enable-stl or --disable-stl was given.
3868 if test "${enable_stl+set}" = set; then
3869   enableval="$enable_stl"
3870
3871                           if test "$enableval" = yes; then
3872                             ac_cv_use_stl='wxUSE_STL=yes'
3873                           else
3874                             ac_cv_use_stl='wxUSE_STL=no'
3875                           fi
3876
3877 else
3878
3879                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3880                           if test "x$LINE" != x ; then
3881                             eval "DEFAULT_$LINE"
3882                           else
3883                             no_cache=1
3884                           fi
3885
3886                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3887
3888 fi;
3889
3890           eval "$ac_cv_use_stl"
3891           if test "$no_cache" != 1; then
3892             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3893           fi
3894
3895           if test "$wxUSE_STL" = yes; then
3896             echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6
3898           else
3899             echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901           fi
3902
3903 if test "$USE_OS2" = "1"; then
3904     DEFAULT_wxUSE_OMF=no
3905
3906           enablestring=
3907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3908 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3909           no_cache=0
3910           # Check whether --enable-omf or --disable-omf was given.
3911 if test "${enable_omf+set}" = set; then
3912   enableval="$enable_omf"
3913
3914                           if test "$enableval" = yes; then
3915                             ac_cv_use_omf='wxUSE_OMF=yes'
3916                           else
3917                             ac_cv_use_omf='wxUSE_OMF=no'
3918                           fi
3919
3920 else
3921
3922                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3923                           if test "x$LINE" != x ; then
3924                             eval "DEFAULT_$LINE"
3925                           else
3926                             no_cache=1
3927                           fi
3928
3929                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3930
3931 fi;
3932
3933           eval "$ac_cv_use_omf"
3934           if test "$no_cache" != 1; then
3935             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3936           fi
3937
3938           if test "$wxUSE_OMF" = yes; then
3939             echo "$as_me:$LINENO: result: yes" >&5
3940 echo "${ECHO_T}yes" >&6
3941           else
3942             echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944           fi
3945
3946 fi
3947
3948 if test "$wxUSE_DEBUG" = "yes"; then
3949   DEFAULT_wxUSE_DEBUG_FLAG=yes
3950   DEFAULT_wxUSE_DEBUG_INFO=yes
3951   BUILD=debug
3952 elif test "$wxUSE_DEBUG" = "no"; then
3953   DEFAULT_wxUSE_DEBUG_FLAG=no
3954   DEFAULT_wxUSE_DEBUG_INFO=no
3955   BUILD=release
3956 fi
3957
3958
3959           enablestring=
3960           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3961 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3962           no_cache=0
3963           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3964 if test "${enable_debug_flag+set}" = set; then
3965   enableval="$enable_debug_flag"
3966
3967                           if test "$enableval" = yes; then
3968                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3969                           else
3970                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3971                           fi
3972
3973 else
3974
3975                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3976                           if test "x$LINE" != x ; then
3977                             eval "DEFAULT_$LINE"
3978                           else
3979                             no_cache=1
3980                           fi
3981
3982                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3983
3984 fi;
3985
3986           eval "$ac_cv_use_debug_flag"
3987           if test "$no_cache" != 1; then
3988             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3989           fi
3990
3991           if test "$wxUSE_DEBUG_FLAG" = yes; then
3992             echo "$as_me:$LINENO: result: yes" >&5
3993 echo "${ECHO_T}yes" >&6
3994           else
3995             echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997           fi
3998
3999
4000           enablestring=
4001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4002 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4003           no_cache=0
4004           # Check whether --enable-debug_info or --disable-debug_info was given.
4005 if test "${enable_debug_info+set}" = set; then
4006   enableval="$enable_debug_info"
4007
4008                           if test "$enableval" = yes; then
4009                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4010                           else
4011                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4012                           fi
4013
4014 else
4015
4016                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4017                           if test "x$LINE" != x ; then
4018                             eval "DEFAULT_$LINE"
4019                           else
4020                             no_cache=1
4021                           fi
4022
4023                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4024
4025 fi;
4026
4027           eval "$ac_cv_use_debug_info"
4028           if test "$no_cache" != 1; then
4029             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4030           fi
4031
4032           if test "$wxUSE_DEBUG_INFO" = yes; then
4033             echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4035           else
4036             echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038           fi
4039
4040
4041           enablestring=
4042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4043 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4044           no_cache=0
4045           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4046 if test "${enable_debug_gdb+set}" = set; then
4047   enableval="$enable_debug_gdb"
4048
4049                           if test "$enableval" = yes; then
4050                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4051                           else
4052                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4053                           fi
4054
4055 else
4056
4057                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4058                           if test "x$LINE" != x ; then
4059                             eval "DEFAULT_$LINE"
4060                           else
4061                             no_cache=1
4062                           fi
4063
4064                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4065
4066 fi;
4067
4068           eval "$ac_cv_use_debug_gdb"
4069           if test "$no_cache" != 1; then
4070             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4071           fi
4072
4073           if test "$wxUSE_DEBUG_GDB" = yes; then
4074             echo "$as_me:$LINENO: result: yes" >&5
4075 echo "${ECHO_T}yes" >&6
4076           else
4077             echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079           fi
4080
4081
4082           enablestring=
4083           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4084 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4085           no_cache=0
4086           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4087 if test "${enable_debug_cntxt+set}" = set; then
4088   enableval="$enable_debug_cntxt"
4089
4090                           if test "$enableval" = yes; then
4091                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4092                           else
4093                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4094                           fi
4095
4096 else
4097
4098                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4099                           if test "x$LINE" != x ; then
4100                             eval "DEFAULT_$LINE"
4101                           else
4102                             no_cache=1
4103                           fi
4104
4105                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4106
4107 fi;
4108
4109           eval "$ac_cv_use_debug_cntxt"
4110           if test "$no_cache" != 1; then
4111             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4112           fi
4113
4114           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4115             echo "$as_me:$LINENO: result: yes" >&5
4116 echo "${ECHO_T}yes" >&6
4117           else
4118             echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4120           fi
4121
4122
4123           enablestring=
4124           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4125 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4126           no_cache=0
4127           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4128 if test "${enable_mem_tracing+set}" = set; then
4129   enableval="$enable_mem_tracing"
4130
4131                           if test "$enableval" = yes; then
4132                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4133                           else
4134                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4135                           fi
4136
4137 else
4138
4139                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4140                           if test "x$LINE" != x ; then
4141                             eval "DEFAULT_$LINE"
4142                           else
4143                             no_cache=1
4144                           fi
4145
4146                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4147
4148 fi;
4149
4150           eval "$ac_cv_use_mem_tracing"
4151           if test "$no_cache" != 1; then
4152             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4153           fi
4154
4155           if test "$wxUSE_MEM_TRACING" = yes; then
4156             echo "$as_me:$LINENO: result: yes" >&5
4157 echo "${ECHO_T}yes" >&6
4158           else
4159             echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161           fi
4162
4163
4164           enablestring=
4165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4166 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4167           no_cache=0
4168           # Check whether --enable-profile or --disable-profile was given.
4169 if test "${enable_profile+set}" = set; then
4170   enableval="$enable_profile"
4171
4172                           if test "$enableval" = yes; then
4173                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4174                           else
4175                             ac_cv_use_profile='wxUSE_PROFILE=no'
4176                           fi
4177
4178 else
4179
4180                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4181                           if test "x$LINE" != x ; then
4182                             eval "DEFAULT_$LINE"
4183                           else
4184                             no_cache=1
4185                           fi
4186
4187                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4188
4189 fi;
4190
4191           eval "$ac_cv_use_profile"
4192           if test "$no_cache" != 1; then
4193             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4194           fi
4195
4196           if test "$wxUSE_PROFILE" = yes; then
4197             echo "$as_me:$LINENO: result: yes" >&5
4198 echo "${ECHO_T}yes" >&6
4199           else
4200             echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4202           fi
4203
4204
4205           enablestring=
4206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4207 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4208           no_cache=0
4209           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4210 if test "${enable_no_rtti+set}" = set; then
4211   enableval="$enable_no_rtti"
4212
4213                           if test "$enableval" = yes; then
4214                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4215                           else
4216                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4217                           fi
4218
4219 else
4220
4221                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4222                           if test "x$LINE" != x ; then
4223                             eval "DEFAULT_$LINE"
4224                           else
4225                             no_cache=1
4226                           fi
4227
4228                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4229
4230 fi;
4231
4232           eval "$ac_cv_use_no_rtti"
4233           if test "$no_cache" != 1; then
4234             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4235           fi
4236
4237           if test "$wxUSE_NO_RTTI" = yes; then
4238             echo "$as_me:$LINENO: result: yes" >&5
4239 echo "${ECHO_T}yes" >&6
4240           else
4241             echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4243           fi
4244
4245
4246           enablestring=
4247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4248 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4249           no_cache=0
4250           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4251 if test "${enable_no_exceptions+set}" = set; then
4252   enableval="$enable_no_exceptions"
4253
4254                           if test "$enableval" = yes; then
4255                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4256                           else
4257                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4258                           fi
4259
4260 else
4261
4262                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4263                           if test "x$LINE" != x ; then
4264                             eval "DEFAULT_$LINE"
4265                           else
4266                             no_cache=1
4267                           fi
4268
4269                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4270
4271 fi;
4272
4273           eval "$ac_cv_use_no_exceptions"
4274           if test "$no_cache" != 1; then
4275             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4276           fi
4277
4278           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4279             echo "$as_me:$LINENO: result: yes" >&5
4280 echo "${ECHO_T}yes" >&6
4281           else
4282             echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4284           fi
4285
4286
4287           enablestring=
4288           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4289 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4290           no_cache=0
4291           # Check whether --enable-permissive or --disable-permissive was given.
4292 if test "${enable_permissive+set}" = set; then
4293   enableval="$enable_permissive"
4294
4295                           if test "$enableval" = yes; then
4296                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4297                           else
4298                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4299                           fi
4300
4301 else
4302
4303                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4304                           if test "x$LINE" != x ; then
4305                             eval "DEFAULT_$LINE"
4306                           else
4307                             no_cache=1
4308                           fi
4309
4310                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4311
4312 fi;
4313
4314           eval "$ac_cv_use_permissive"
4315           if test "$no_cache" != 1; then
4316             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4317           fi
4318
4319           if test "$wxUSE_PERMISSIVE" = yes; then
4320             echo "$as_me:$LINENO: result: yes" >&5
4321 echo "${ECHO_T}yes" >&6
4322           else
4323             echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325           fi
4326
4327
4328           enablestring=
4329           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4330 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4331           no_cache=0
4332           # Check whether --enable-no_deps or --disable-no_deps was given.
4333 if test "${enable_no_deps+set}" = set; then
4334   enableval="$enable_no_deps"
4335
4336                           if test "$enableval" = yes; then
4337                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4338                           else
4339                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4340                           fi
4341
4342 else
4343
4344                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4345                           if test "x$LINE" != x ; then
4346                             eval "DEFAULT_$LINE"
4347                           else
4348                             no_cache=1
4349                           fi
4350
4351                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4352
4353 fi;
4354
4355           eval "$ac_cv_use_no_deps"
4356           if test "$no_cache" != 1; then
4357             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4358           fi
4359
4360           if test "$wxUSE_NO_DEPS" = yes; then
4361             echo "$as_me:$LINENO: result: yes" >&5
4362 echo "${ECHO_T}yes" >&6
4363           else
4364             echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4366           fi
4367
4368
4369           enablestring=
4370           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4371 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4372           no_cache=0
4373           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4374 if test "${enable_universal_binary+set}" = set; then
4375   enableval="$enable_universal_binary"
4376
4377                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4378
4379 else
4380
4381                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4382                           if test "x$LINE" != x ; then
4383                             eval "DEFAULT_$LINE"
4384                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4385                           else
4386                             no_cache=1
4387                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4388                           fi
4389
4390 fi;
4391
4392           eval "$wx_cv_use_universal_binary"
4393           if test "$no_cache" != 1; then
4394             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4395           fi
4396
4397           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4398 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4399
4400
4401
4402           enablestring=enable
4403           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4404 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4405           no_cache=0
4406           # Check whether --enable-compat24 or --disable-compat24 was given.
4407 if test "${enable_compat24+set}" = set; then
4408   enableval="$enable_compat24"
4409
4410                           if test "$enableval" = yes; then
4411                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4412                           else
4413                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4414                           fi
4415
4416 else
4417
4418                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4419                           if test "x$LINE" != x ; then
4420                             eval "DEFAULT_$LINE"
4421                           else
4422                             no_cache=1
4423                           fi
4424
4425                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4426
4427 fi;
4428
4429           eval "$ac_cv_use_compat24"
4430           if test "$no_cache" != 1; then
4431             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4432           fi
4433
4434           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4435             echo "$as_me:$LINENO: result: yes" >&5
4436 echo "${ECHO_T}yes" >&6
4437           else
4438             echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4440           fi
4441
4442
4443           enablestring=disable
4444           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4445 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4446           no_cache=0
4447           # Check whether --enable-compat26 or --disable-compat26 was given.
4448 if test "${enable_compat26+set}" = set; then
4449   enableval="$enable_compat26"
4450
4451                           if test "$enableval" = yes; then
4452                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4453                           else
4454                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4455                           fi
4456
4457 else
4458
4459                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4460                           if test "x$LINE" != x ; then
4461                             eval "DEFAULT_$LINE"
4462                           else
4463                             no_cache=1
4464                           fi
4465
4466                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4467
4468 fi;
4469
4470           eval "$ac_cv_use_compat26"
4471           if test "$no_cache" != 1; then
4472             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4473           fi
4474
4475           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4476             echo "$as_me:$LINENO: result: yes" >&5
4477 echo "${ECHO_T}yes" >&6
4478           else
4479             echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4481           fi
4482
4483
4484
4485           enablestring=
4486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4487 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4488           no_cache=0
4489           # Check whether --enable-rpath or --disable-rpath was given.
4490 if test "${enable_rpath+set}" = set; then
4491   enableval="$enable_rpath"
4492
4493                           if test "$enableval" = yes; then
4494                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4495                           else
4496                             ac_cv_use_rpath='wxUSE_RPATH=no'
4497                           fi
4498
4499 else
4500
4501                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4502                           if test "x$LINE" != x ; then
4503                             eval "DEFAULT_$LINE"
4504                           else
4505                             no_cache=1
4506                           fi
4507
4508                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4509
4510 fi;
4511
4512           eval "$ac_cv_use_rpath"
4513           if test "$no_cache" != 1; then
4514             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4515           fi
4516
4517           if test "$wxUSE_RPATH" = yes; then
4518             echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4520           else
4521             echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4523           fi
4524
4525
4526
4527
4528
4529           enablestring=
4530           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4531 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4532           no_cache=0
4533           # Check whether --enable-intl or --disable-intl was given.
4534 if test "${enable_intl+set}" = set; then
4535   enableval="$enable_intl"
4536
4537                           if test "$enableval" = yes; then
4538                             ac_cv_use_intl='wxUSE_INTL=yes'
4539                           else
4540                             ac_cv_use_intl='wxUSE_INTL=no'
4541                           fi
4542
4543 else
4544
4545                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4546                           if test "x$LINE" != x ; then
4547                             eval "DEFAULT_$LINE"
4548                           else
4549                             no_cache=1
4550                           fi
4551
4552                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4553
4554 fi;
4555
4556           eval "$ac_cv_use_intl"
4557           if test "$no_cache" != 1; then
4558             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4559           fi
4560
4561           if test "$wxUSE_INTL" = yes; then
4562             echo "$as_me:$LINENO: result: yes" >&5
4563 echo "${ECHO_T}yes" >&6
4564           else
4565             echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6
4567           fi
4568
4569
4570           enablestring=
4571           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4572 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4573           no_cache=0
4574           # Check whether --enable-config or --disable-config was given.
4575 if test "${enable_config+set}" = set; then
4576   enableval="$enable_config"
4577
4578                           if test "$enableval" = yes; then
4579                             ac_cv_use_config='wxUSE_CONFIG=yes'
4580                           else
4581                             ac_cv_use_config='wxUSE_CONFIG=no'
4582                           fi
4583
4584 else
4585
4586                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4587                           if test "x$LINE" != x ; then
4588                             eval "DEFAULT_$LINE"
4589                           else
4590                             no_cache=1
4591                           fi
4592
4593                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4594
4595 fi;
4596
4597           eval "$ac_cv_use_config"
4598           if test "$no_cache" != 1; then
4599             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4600           fi
4601
4602           if test "$wxUSE_CONFIG" = yes; then
4603             echo "$as_me:$LINENO: result: yes" >&5
4604 echo "${ECHO_T}yes" >&6
4605           else
4606             echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4608           fi
4609
4610
4611
4612           enablestring=
4613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4614 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4615           no_cache=0
4616           # Check whether --enable-protocols or --disable-protocols was given.
4617 if test "${enable_protocols+set}" = set; then
4618   enableval="$enable_protocols"
4619
4620                           if test "$enableval" = yes; then
4621                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4622                           else
4623                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4624                           fi
4625
4626 else
4627
4628                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4629                           if test "x$LINE" != x ; then
4630                             eval "DEFAULT_$LINE"
4631                           else
4632                             no_cache=1
4633                           fi
4634
4635                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4636
4637 fi;
4638
4639           eval "$ac_cv_use_protocols"
4640           if test "$no_cache" != 1; then
4641             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4642           fi
4643
4644           if test "$wxUSE_PROTOCOL" = yes; then
4645             echo "$as_me:$LINENO: result: yes" >&5
4646 echo "${ECHO_T}yes" >&6
4647           else
4648             echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6
4650           fi
4651
4652
4653           enablestring=
4654           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4655 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4656           no_cache=0
4657           # Check whether --enable-ftp or --disable-ftp was given.
4658 if test "${enable_ftp+set}" = set; then
4659   enableval="$enable_ftp"
4660
4661                           if test "$enableval" = yes; then
4662                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4663                           else
4664                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4665                           fi
4666
4667 else
4668
4669                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4670                           if test "x$LINE" != x ; then
4671                             eval "DEFAULT_$LINE"
4672                           else
4673                             no_cache=1
4674                           fi
4675
4676                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4677
4678 fi;
4679
4680           eval "$ac_cv_use_ftp"
4681           if test "$no_cache" != 1; then
4682             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4683           fi
4684
4685           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4686             echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6
4688           else
4689             echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4691           fi
4692
4693
4694           enablestring=
4695           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4696 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4697           no_cache=0
4698           # Check whether --enable-http or --disable-http was given.
4699 if test "${enable_http+set}" = set; then
4700   enableval="$enable_http"
4701
4702                           if test "$enableval" = yes; then
4703                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4704                           else
4705                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4706                           fi
4707
4708 else
4709
4710                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4711                           if test "x$LINE" != x ; then
4712                             eval "DEFAULT_$LINE"
4713                           else
4714                             no_cache=1
4715                           fi
4716
4717                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4718
4719 fi;
4720
4721           eval "$ac_cv_use_http"
4722           if test "$no_cache" != 1; then
4723             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4724           fi
4725
4726           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4727             echo "$as_me:$LINENO: result: yes" >&5
4728 echo "${ECHO_T}yes" >&6
4729           else
4730             echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732           fi
4733
4734
4735           enablestring=
4736           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4737 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4738           no_cache=0
4739           # Check whether --enable-fileproto or --disable-fileproto was given.
4740 if test "${enable_fileproto+set}" = set; then
4741   enableval="$enable_fileproto"
4742
4743                           if test "$enableval" = yes; then
4744                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4745                           else
4746                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4747                           fi
4748
4749 else
4750
4751                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4752                           if test "x$LINE" != x ; then
4753                             eval "DEFAULT_$LINE"
4754                           else
4755                             no_cache=1
4756                           fi
4757
4758                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4759
4760 fi;
4761
4762           eval "$ac_cv_use_fileproto"
4763           if test "$no_cache" != 1; then
4764             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4765           fi
4766
4767           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4768             echo "$as_me:$LINENO: result: yes" >&5
4769 echo "${ECHO_T}yes" >&6
4770           else
4771             echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773           fi
4774
4775
4776           enablestring=
4777           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4778 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4779           no_cache=0
4780           # Check whether --enable-sockets or --disable-sockets was given.
4781 if test "${enable_sockets+set}" = set; then
4782   enableval="$enable_sockets"
4783
4784                           if test "$enableval" = yes; then
4785                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4786                           else
4787                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4788                           fi
4789
4790 else
4791
4792                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4793                           if test "x$LINE" != x ; then
4794                             eval "DEFAULT_$LINE"
4795                           else
4796                             no_cache=1
4797                           fi
4798
4799                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4800
4801 fi;
4802
4803           eval "$ac_cv_use_sockets"
4804           if test "$no_cache" != 1; then
4805             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4806           fi
4807
4808           if test "$wxUSE_SOCKETS" = yes; then
4809             echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6
4811           else
4812             echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6
4814           fi
4815
4816
4817           enablestring=
4818           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4819 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4820           no_cache=0
4821           # Check whether --enable-ole or --disable-ole was given.
4822 if test "${enable_ole+set}" = set; then
4823   enableval="$enable_ole"
4824
4825                           if test "$enableval" = yes; then
4826                             ac_cv_use_ole='wxUSE_OLE=yes'
4827                           else
4828                             ac_cv_use_ole='wxUSE_OLE=no'
4829                           fi
4830
4831 else
4832
4833                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4834                           if test "x$LINE" != x ; then
4835                             eval "DEFAULT_$LINE"
4836                           else
4837                             no_cache=1
4838                           fi
4839
4840                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4841
4842 fi;
4843
4844           eval "$ac_cv_use_ole"
4845           if test "$no_cache" != 1; then
4846             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4847           fi
4848
4849           if test "$wxUSE_OLE" = yes; then
4850             echo "$as_me:$LINENO: result: yes" >&5
4851 echo "${ECHO_T}yes" >&6
4852           else
4853             echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855           fi
4856
4857
4858           enablestring=
4859           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4860 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4861           no_cache=0
4862           # Check whether --enable-dataobj or --disable-dataobj was given.
4863 if test "${enable_dataobj+set}" = set; then
4864   enableval="$enable_dataobj"
4865
4866                           if test "$enableval" = yes; then
4867                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4868                           else
4869                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4870                           fi
4871
4872 else
4873
4874                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4875                           if test "x$LINE" != x ; then
4876                             eval "DEFAULT_$LINE"
4877                           else
4878                             no_cache=1
4879                           fi
4880
4881                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4882
4883 fi;
4884
4885           eval "$ac_cv_use_dataobj"
4886           if test "$no_cache" != 1; then
4887             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4888           fi
4889
4890           if test "$wxUSE_DATAOBJ" = yes; then
4891             echo "$as_me:$LINENO: result: yes" >&5
4892 echo "${ECHO_T}yes" >&6
4893           else
4894             echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896           fi
4897
4898
4899
4900           enablestring=
4901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4902 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4903           no_cache=0
4904           # Check whether --enable-ipc or --disable-ipc was given.
4905 if test "${enable_ipc+set}" = set; then
4906   enableval="$enable_ipc"
4907
4908                           if test "$enableval" = yes; then
4909                             ac_cv_use_ipc='wxUSE_IPC=yes'
4910                           else
4911                             ac_cv_use_ipc='wxUSE_IPC=no'
4912                           fi
4913
4914 else
4915
4916                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4917                           if test "x$LINE" != x ; then
4918                             eval "DEFAULT_$LINE"
4919                           else
4920                             no_cache=1
4921                           fi
4922
4923                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4924
4925 fi;
4926
4927           eval "$ac_cv_use_ipc"
4928           if test "$no_cache" != 1; then
4929             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4930           fi
4931
4932           if test "$wxUSE_IPC" = yes; then
4933             echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6
4935           else
4936             echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4938           fi
4939
4940
4941
4942           enablestring=
4943           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4944 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4945           no_cache=0
4946           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4947 if test "${enable_apple_ieee+set}" = set; then
4948   enableval="$enable_apple_ieee"
4949
4950                           if test "$enableval" = yes; then
4951                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4952                           else
4953                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4954                           fi
4955
4956 else
4957
4958                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4959                           if test "x$LINE" != x ; then
4960                             eval "DEFAULT_$LINE"
4961                           else
4962                             no_cache=1
4963                           fi
4964
4965                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4966
4967 fi;
4968
4969           eval "$ac_cv_use_apple_ieee"
4970           if test "$no_cache" != 1; then
4971             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4972           fi
4973
4974           if test "$wxUSE_APPLE_IEEE" = yes; then
4975             echo "$as_me:$LINENO: result: yes" >&5
4976 echo "${ECHO_T}yes" >&6
4977           else
4978             echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4980           fi
4981
4982
4983           enablestring=
4984           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4985 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4986           no_cache=0
4987           # Check whether --enable-arcstream or --disable-arcstream was given.
4988 if test "${enable_arcstream+set}" = set; then
4989   enableval="$enable_arcstream"
4990
4991                           if test "$enableval" = yes; then
4992                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4993                           else
4994                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4995                           fi
4996
4997 else
4998
4999                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5000                           if test "x$LINE" != x ; then
5001                             eval "DEFAULT_$LINE"
5002                           else
5003                             no_cache=1
5004                           fi
5005
5006                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5007
5008 fi;
5009
5010           eval "$ac_cv_use_arcstream"
5011           if test "$no_cache" != 1; then
5012             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5013           fi
5014
5015           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5016             echo "$as_me:$LINENO: result: yes" >&5
5017 echo "${ECHO_T}yes" >&6
5018           else
5019             echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6
5021           fi
5022
5023
5024           enablestring=
5025           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5026 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5027           no_cache=0
5028           # Check whether --enable-backtrace or --disable-backtrace was given.
5029 if test "${enable_backtrace+set}" = set; then
5030   enableval="$enable_backtrace"
5031
5032                           if test "$enableval" = yes; then
5033                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5034                           else
5035                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5036                           fi
5037
5038 else
5039
5040                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5041                           if test "x$LINE" != x ; then
5042                             eval "DEFAULT_$LINE"
5043                           else
5044                             no_cache=1
5045                           fi
5046
5047                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5048
5049 fi;
5050
5051           eval "$ac_cv_use_backtrace"
5052           if test "$no_cache" != 1; then
5053             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5054           fi
5055
5056           if test "$wxUSE_STACKWALKER" = yes; then
5057             echo "$as_me:$LINENO: result: yes" >&5
5058 echo "${ECHO_T}yes" >&6
5059           else
5060             echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062           fi
5063
5064
5065           enablestring=
5066           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5067 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5068           no_cache=0
5069           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5070 if test "${enable_catch_segvs+set}" = set; then
5071   enableval="$enable_catch_segvs"
5072
5073                           if test "$enableval" = yes; then
5074                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5075                           else
5076                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5077                           fi
5078
5079 else
5080
5081                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5082                           if test "x$LINE" != x ; then
5083                             eval "DEFAULT_$LINE"
5084                           else
5085                             no_cache=1
5086                           fi
5087
5088                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5089
5090 fi;
5091
5092           eval "$ac_cv_use_catch_segvs"
5093           if test "$no_cache" != 1; then
5094             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5095           fi
5096
5097           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5098             echo "$as_me:$LINENO: result: yes" >&5
5099 echo "${ECHO_T}yes" >&6
5100           else
5101             echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6
5103           fi
5104
5105
5106           enablestring=
5107           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5108 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5109           no_cache=0
5110           # Check whether --enable-cmdline or --disable-cmdline was given.
5111 if test "${enable_cmdline+set}" = set; then
5112   enableval="$enable_cmdline"
5113
5114                           if test "$enableval" = yes; then
5115                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5116                           else
5117                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5118                           fi
5119
5120 else
5121
5122                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5123                           if test "x$LINE" != x ; then
5124                             eval "DEFAULT_$LINE"
5125                           else
5126                             no_cache=1
5127                           fi
5128
5129                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5130
5131 fi;
5132
5133           eval "$ac_cv_use_cmdline"
5134           if test "$no_cache" != 1; then
5135             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5136           fi
5137
5138           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5139             echo "$as_me:$LINENO: result: yes" >&5
5140 echo "${ECHO_T}yes" >&6
5141           else
5142             echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5144           fi
5145
5146
5147           enablestring=
5148           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5149 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5150           no_cache=0
5151           # Check whether --enable-datetime or --disable-datetime was given.
5152 if test "${enable_datetime+set}" = set; then
5153   enableval="$enable_datetime"
5154
5155                           if test "$enableval" = yes; then
5156                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5157                           else
5158                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5159                           fi
5160
5161 else
5162
5163                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5164                           if test "x$LINE" != x ; then
5165                             eval "DEFAULT_$LINE"
5166                           else
5167                             no_cache=1
5168                           fi
5169
5170                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5171
5172 fi;
5173
5174           eval "$ac_cv_use_datetime"
5175           if test "$no_cache" != 1; then
5176             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5177           fi
5178
5179           if test "$wxUSE_DATETIME" = yes; then
5180             echo "$as_me:$LINENO: result: yes" >&5
5181 echo "${ECHO_T}yes" >&6
5182           else
5183             echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185           fi
5186
5187
5188           enablestring=
5189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5190 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5191           no_cache=0
5192           # Check whether --enable-debugreport or --disable-debugreport was given.
5193 if test "${enable_debugreport+set}" = set; then
5194   enableval="$enable_debugreport"
5195
5196                           if test "$enableval" = yes; then
5197                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5198                           else
5199                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5200                           fi
5201
5202 else
5203
5204                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5205                           if test "x$LINE" != x ; then
5206                             eval "DEFAULT_$LINE"
5207                           else
5208                             no_cache=1
5209                           fi
5210
5211                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5212
5213 fi;
5214
5215           eval "$ac_cv_use_debugreport"
5216           if test "$no_cache" != 1; then
5217             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5218           fi
5219
5220           if test "$wxUSE_DEBUGREPORT" = yes; then
5221             echo "$as_me:$LINENO: result: yes" >&5
5222 echo "${ECHO_T}yes" >&6
5223           else
5224             echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5226           fi
5227
5228
5229           enablestring=
5230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5231 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5232           no_cache=0
5233           # Check whether --enable-dialupman or --disable-dialupman was given.
5234 if test "${enable_dialupman+set}" = set; then
5235   enableval="$enable_dialupman"
5236
5237                           if test "$enableval" = yes; then
5238                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5239                           else
5240                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5241                           fi
5242
5243 else
5244
5245                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5246                           if test "x$LINE" != x ; then
5247                             eval "DEFAULT_$LINE"
5248                           else
5249                             no_cache=1
5250                           fi
5251
5252                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5253
5254 fi;
5255
5256           eval "$ac_cv_use_dialupman"
5257           if test "$no_cache" != 1; then
5258             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5259           fi
5260
5261           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5262             echo "$as_me:$LINENO: result: yes" >&5
5263 echo "${ECHO_T}yes" >&6
5264           else
5265             echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6
5267           fi
5268
5269
5270           enablestring=
5271           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5272 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5273           no_cache=0
5274           # Check whether --enable-dynlib or --disable-dynlib was given.
5275 if test "${enable_dynlib+set}" = set; then
5276   enableval="$enable_dynlib"
5277
5278                           if test "$enableval" = yes; then
5279                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5280                           else
5281                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5282                           fi
5283
5284 else
5285
5286                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5287                           if test "x$LINE" != x ; then
5288                             eval "DEFAULT_$LINE"
5289                           else
5290                             no_cache=1
5291                           fi
5292
5293                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5294
5295 fi;
5296
5297           eval "$ac_cv_use_dynlib"
5298           if test "$no_cache" != 1; then
5299             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5300           fi
5301
5302           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5303             echo "$as_me:$LINENO: result: yes" >&5
5304 echo "${ECHO_T}yes" >&6
5305           else
5306             echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6
5308           fi
5309
5310
5311           enablestring=
5312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5313 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5314           no_cache=0
5315           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5316 if test "${enable_dynamicloader+set}" = set; then
5317   enableval="$enable_dynamicloader"
5318
5319                           if test "$enableval" = yes; then
5320                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5321                           else
5322                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5323                           fi
5324
5325 else
5326
5327                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5328                           if test "x$LINE" != x ; then
5329                             eval "DEFAULT_$LINE"
5330                           else
5331                             no_cache=1
5332                           fi
5333
5334                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5335
5336 fi;
5337
5338           eval "$ac_cv_use_dynamicloader"
5339           if test "$no_cache" != 1; then
5340             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5341           fi
5342
5343           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5344             echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6
5346           else
5347             echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5349           fi
5350
5351
5352           enablestring=
5353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5354 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5355           no_cache=0
5356           # Check whether --enable-exceptions or --disable-exceptions was given.
5357 if test "${enable_exceptions+set}" = set; then
5358   enableval="$enable_exceptions"
5359
5360                           if test "$enableval" = yes; then
5361                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5362                           else
5363                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5364                           fi
5365
5366 else
5367
5368                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5369                           if test "x$LINE" != x ; then
5370                             eval "DEFAULT_$LINE"
5371                           else
5372                             no_cache=1
5373                           fi
5374
5375                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5376
5377 fi;
5378
5379           eval "$ac_cv_use_exceptions"
5380           if test "$no_cache" != 1; then
5381             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5382           fi
5383
5384           if test "$wxUSE_EXCEPTIONS" = yes; then
5385             echo "$as_me:$LINENO: result: yes" >&5
5386 echo "${ECHO_T}yes" >&6
5387           else
5388             echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5390           fi
5391
5392
5393           enablestring=
5394           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5395 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5396           no_cache=0
5397           # Check whether --enable-ffile or --disable-ffile was given.
5398 if test "${enable_ffile+set}" = set; then
5399   enableval="$enable_ffile"
5400
5401                           if test "$enableval" = yes; then
5402                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5403                           else
5404                             ac_cv_use_ffile='wxUSE_FFILE=no'
5405                           fi
5406
5407 else
5408
5409                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5410                           if test "x$LINE" != x ; then
5411                             eval "DEFAULT_$LINE"
5412                           else
5413                             no_cache=1
5414                           fi
5415
5416                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5417
5418 fi;
5419
5420           eval "$ac_cv_use_ffile"
5421           if test "$no_cache" != 1; then
5422             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5423           fi
5424
5425           if test "$wxUSE_FFILE" = yes; then
5426             echo "$as_me:$LINENO: result: yes" >&5
5427 echo "${ECHO_T}yes" >&6
5428           else
5429             echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5431           fi
5432
5433
5434           enablestring=
5435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5436 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5437           no_cache=0
5438           # Check whether --enable-file or --disable-file was given.
5439 if test "${enable_file+set}" = set; then
5440   enableval="$enable_file"
5441
5442                           if test "$enableval" = yes; then
5443                             ac_cv_use_file='wxUSE_FILE=yes'
5444                           else
5445                             ac_cv_use_file='wxUSE_FILE=no'
5446                           fi
5447
5448 else
5449
5450                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5451                           if test "x$LINE" != x ; then
5452                             eval "DEFAULT_$LINE"
5453                           else
5454                             no_cache=1
5455                           fi
5456
5457                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5458
5459 fi;
5460
5461           eval "$ac_cv_use_file"
5462           if test "$no_cache" != 1; then
5463             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5464           fi
5465
5466           if test "$wxUSE_FILE" = yes; then
5467             echo "$as_me:$LINENO: result: yes" >&5
5468 echo "${ECHO_T}yes" >&6
5469           else
5470             echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6
5472           fi
5473
5474
5475           enablestring=
5476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5477 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5478           no_cache=0
5479           # Check whether --enable-filesystem or --disable-filesystem was given.
5480 if test "${enable_filesystem+set}" = set; then
5481   enableval="$enable_filesystem"
5482
5483                           if test "$enableval" = yes; then
5484                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5485                           else
5486                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5487                           fi
5488
5489 else
5490
5491                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5492                           if test "x$LINE" != x ; then
5493                             eval "DEFAULT_$LINE"
5494                           else
5495                             no_cache=1
5496                           fi
5497
5498                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5499
5500 fi;
5501
5502           eval "$ac_cv_use_filesystem"
5503           if test "$no_cache" != 1; then
5504             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5505           fi
5506
5507           if test "$wxUSE_FILESYSTEM" = yes; then
5508             echo "$as_me:$LINENO: result: yes" >&5
5509 echo "${ECHO_T}yes" >&6
5510           else
5511             echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6
5513           fi
5514
5515
5516           enablestring=
5517           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5518 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5519           no_cache=0
5520           # Check whether --enable-fontmap or --disable-fontmap was given.
5521 if test "${enable_fontmap+set}" = set; then
5522   enableval="$enable_fontmap"
5523
5524                           if test "$enableval" = yes; then
5525                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5526                           else
5527                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5528                           fi
5529
5530 else
5531
5532                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5533                           if test "x$LINE" != x ; then
5534                             eval "DEFAULT_$LINE"
5535                           else
5536                             no_cache=1
5537                           fi
5538
5539                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5540
5541 fi;
5542
5543           eval "$ac_cv_use_fontmap"
5544           if test "$no_cache" != 1; then
5545             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5546           fi
5547
5548           if test "$wxUSE_FONTMAP" = yes; then
5549             echo "$as_me:$LINENO: result: yes" >&5
5550 echo "${ECHO_T}yes" >&6
5551           else
5552             echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5554           fi
5555
5556
5557           enablestring=
5558           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5559 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5560           no_cache=0
5561           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5562 if test "${enable_fs_inet+set}" = set; then
5563   enableval="$enable_fs_inet"
5564
5565                           if test "$enableval" = yes; then
5566                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5567                           else
5568                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5569                           fi
5570
5571 else
5572
5573                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5574                           if test "x$LINE" != x ; then
5575                             eval "DEFAULT_$LINE"
5576                           else
5577                             no_cache=1
5578                           fi
5579
5580                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5581
5582 fi;
5583
5584           eval "$ac_cv_use_fs_inet"
5585           if test "$no_cache" != 1; then
5586             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5587           fi
5588
5589           if test "$wxUSE_FS_INET" = yes; then
5590             echo "$as_me:$LINENO: result: yes" >&5
5591 echo "${ECHO_T}yes" >&6
5592           else
5593             echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5595           fi
5596
5597
5598           enablestring=
5599           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5600 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5601           no_cache=0
5602           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5603 if test "${enable_fs_zip+set}" = set; then
5604   enableval="$enable_fs_zip"
5605
5606                           if test "$enableval" = yes; then
5607                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5608                           else
5609                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5610                           fi
5611
5612 else
5613
5614                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5615                           if test "x$LINE" != x ; then
5616                             eval "DEFAULT_$LINE"
5617                           else
5618                             no_cache=1
5619                           fi
5620
5621                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5622
5623 fi;
5624
5625           eval "$ac_cv_use_fs_zip"
5626           if test "$no_cache" != 1; then
5627             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5628           fi
5629
5630           if test "$wxUSE_FS_ZIP" = yes; then
5631             echo "$as_me:$LINENO: result: yes" >&5
5632 echo "${ECHO_T}yes" >&6
5633           else
5634             echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5636           fi
5637
5638
5639           enablestring=
5640           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5641 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5642           no_cache=0
5643           # Check whether --enable-geometry or --disable-geometry was given.
5644 if test "${enable_geometry+set}" = set; then
5645   enableval="$enable_geometry"
5646
5647                           if test "$enableval" = yes; then
5648                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5649                           else
5650                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5651                           fi
5652
5653 else
5654
5655                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5656                           if test "x$LINE" != x ; then
5657                             eval "DEFAULT_$LINE"
5658                           else
5659                             no_cache=1
5660                           fi
5661
5662                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5663
5664 fi;
5665
5666           eval "$ac_cv_use_geometry"
5667           if test "$no_cache" != 1; then
5668             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5669           fi
5670
5671           if test "$wxUSE_GEOMETRY" = yes; then
5672             echo "$as_me:$LINENO: result: yes" >&5
5673 echo "${ECHO_T}yes" >&6
5674           else
5675             echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677           fi
5678
5679
5680           enablestring=
5681           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5682 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5683           no_cache=0
5684           # Check whether --enable-log or --disable-log was given.
5685 if test "${enable_log+set}" = set; then
5686   enableval="$enable_log"
5687
5688                           if test "$enableval" = yes; then
5689                             ac_cv_use_log='wxUSE_LOG=yes'
5690                           else
5691                             ac_cv_use_log='wxUSE_LOG=no'
5692                           fi
5693
5694 else
5695
5696                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5697                           if test "x$LINE" != x ; then
5698                             eval "DEFAULT_$LINE"
5699                           else
5700                             no_cache=1
5701                           fi
5702
5703                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5704
5705 fi;
5706
5707           eval "$ac_cv_use_log"
5708           if test "$no_cache" != 1; then
5709             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5710           fi
5711
5712           if test "$wxUSE_LOG" = yes; then
5713             echo "$as_me:$LINENO: result: yes" >&5
5714 echo "${ECHO_T}yes" >&6
5715           else
5716             echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718           fi
5719
5720
5721           enablestring=
5722           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5723 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5724           no_cache=0
5725           # Check whether --enable-longlong or --disable-longlong was given.
5726 if test "${enable_longlong+set}" = set; then
5727   enableval="$enable_longlong"
5728
5729                           if test "$enableval" = yes; then
5730                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5731                           else
5732                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5733                           fi
5734
5735 else
5736
5737                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5738                           if test "x$LINE" != x ; then
5739                             eval "DEFAULT_$LINE"
5740                           else
5741                             no_cache=1
5742                           fi
5743
5744                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5745
5746 fi;
5747
5748           eval "$ac_cv_use_longlong"
5749           if test "$no_cache" != 1; then
5750             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5751           fi
5752
5753           if test "$wxUSE_LONGLONG" = yes; then
5754             echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6
5756           else
5757             echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5759           fi
5760
5761
5762           enablestring=
5763           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5764 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5765           no_cache=0
5766           # Check whether --enable-mimetype or --disable-mimetype was given.
5767 if test "${enable_mimetype+set}" = set; then
5768   enableval="$enable_mimetype"
5769
5770                           if test "$enableval" = yes; then
5771                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5772                           else
5773                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5774                           fi
5775
5776 else
5777
5778                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5779                           if test "x$LINE" != x ; then
5780                             eval "DEFAULT_$LINE"
5781                           else
5782                             no_cache=1
5783                           fi
5784
5785                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5786
5787 fi;
5788
5789           eval "$ac_cv_use_mimetype"
5790           if test "$no_cache" != 1; then
5791             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5792           fi
5793
5794           if test "$wxUSE_MIMETYPE" = yes; then
5795             echo "$as_me:$LINENO: result: yes" >&5
5796 echo "${ECHO_T}yes" >&6
5797           else
5798             echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800           fi
5801
5802
5803           enablestring=
5804           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5805 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5806           no_cache=0
5807           # Check whether --enable-mslu or --disable-mslu was given.
5808 if test "${enable_mslu+set}" = set; then
5809   enableval="$enable_mslu"
5810
5811                           if test "$enableval" = yes; then
5812                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5813                           else
5814                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5815                           fi
5816
5817 else
5818
5819                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5820                           if test "x$LINE" != x ; then
5821                             eval "DEFAULT_$LINE"
5822                           else
5823                             no_cache=1
5824                           fi
5825
5826                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5827
5828 fi;
5829
5830           eval "$ac_cv_use_mslu"
5831           if test "$no_cache" != 1; then
5832             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5833           fi
5834
5835           if test "$wxUSE_UNICODE_MSLU" = yes; then
5836             echo "$as_me:$LINENO: result: yes" >&5
5837 echo "${ECHO_T}yes" >&6
5838           else
5839             echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841           fi
5842
5843
5844           enablestring=
5845           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5846 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5847           no_cache=0
5848           # Check whether --enable-snglinst or --disable-snglinst was given.
5849 if test "${enable_snglinst+set}" = set; then
5850   enableval="$enable_snglinst"
5851
5852                           if test "$enableval" = yes; then
5853                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5854                           else
5855                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5856                           fi
5857
5858 else
5859
5860                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5861                           if test "x$LINE" != x ; then
5862                             eval "DEFAULT_$LINE"
5863                           else
5864                             no_cache=1
5865                           fi
5866
5867                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5868
5869 fi;
5870
5871           eval "$ac_cv_use_snglinst"
5872           if test "$no_cache" != 1; then
5873             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5874           fi
5875
5876           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5877             echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6
5879           else
5880             echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882           fi
5883
5884
5885           enablestring=
5886           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5887 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5888           no_cache=0
5889           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5890 if test "${enable_std_iostreams+set}" = set; then
5891   enableval="$enable_std_iostreams"
5892
5893                           if test "$enableval" = yes; then
5894                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5895                           else
5896                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5897                           fi
5898
5899 else
5900
5901                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5902                           if test "x$LINE" != x ; then
5903                             eval "DEFAULT_$LINE"
5904                           else
5905                             no_cache=1
5906                           fi
5907
5908                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5909
5910 fi;
5911
5912           eval "$ac_cv_use_std_iostreams"
5913           if test "$no_cache" != 1; then
5914             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5915           fi
5916
5917           if test "$wxUSE_STD_IOSTREAM" = yes; then
5918             echo "$as_me:$LINENO: result: yes" >&5
5919 echo "${ECHO_T}yes" >&6
5920           else
5921             echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5923           fi
5924
5925
5926           enablestring=
5927           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5928 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5929           no_cache=0
5930           # Check whether --enable-std_string or --disable-std_string was given.
5931 if test "${enable_std_string+set}" = set; then
5932   enableval="$enable_std_string"
5933
5934                           if test "$enableval" = yes; then
5935                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5936                           else
5937                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5938                           fi
5939
5940 else
5941
5942                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5943                           if test "x$LINE" != x ; then
5944                             eval "DEFAULT_$LINE"
5945                           else
5946                             no_cache=1
5947                           fi
5948
5949                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5950
5951 fi;
5952
5953           eval "$ac_cv_use_std_string"
5954           if test "$no_cache" != 1; then
5955             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5956           fi
5957
5958           if test "$wxUSE_STD_STRING" = yes; then
5959             echo "$as_me:$LINENO: result: yes" >&5
5960 echo "${ECHO_T}yes" >&6
5961           else
5962             echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964           fi
5965
5966
5967           enablestring=
5968           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5969 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5970           no_cache=0
5971           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5972 if test "${enable_stdpaths+set}" = set; then
5973   enableval="$enable_stdpaths"
5974
5975                           if test "$enableval" = yes; then
5976                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5977                           else
5978                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5979                           fi
5980
5981 else
5982
5983                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5984                           if test "x$LINE" != x ; then
5985                             eval "DEFAULT_$LINE"
5986                           else
5987                             no_cache=1
5988                           fi
5989
5990                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5991
5992 fi;
5993
5994           eval "$ac_cv_use_stdpaths"
5995           if test "$no_cache" != 1; then
5996             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5997           fi
5998
5999           if test "$wxUSE_STDPATHS" = yes; then
6000             echo "$as_me:$LINENO: result: yes" >&5
6001 echo "${ECHO_T}yes" >&6
6002           else
6003             echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6
6005           fi
6006
6007
6008           enablestring=
6009           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6010 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6011           no_cache=0
6012           # Check whether --enable-stopwatch or --disable-stopwatch was given.
6013 if test "${enable_stopwatch+set}" = set; then
6014   enableval="$enable_stopwatch"
6015
6016                           if test "$enableval" = yes; then
6017                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6018                           else
6019                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6020                           fi
6021
6022 else
6023
6024                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6025                           if test "x$LINE" != x ; then
6026                             eval "DEFAULT_$LINE"
6027                           else
6028                             no_cache=1
6029                           fi
6030
6031                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6032
6033 fi;
6034
6035           eval "$ac_cv_use_stopwatch"
6036           if test "$no_cache" != 1; then
6037             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6038           fi
6039
6040           if test "$wxUSE_STOPWATCH" = yes; then
6041             echo "$as_me:$LINENO: result: yes" >&5
6042 echo "${ECHO_T}yes" >&6
6043           else
6044             echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6046           fi
6047
6048
6049           enablestring=
6050           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6051 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6052           no_cache=0
6053           # Check whether --enable-streams or --disable-streams was given.
6054 if test "${enable_streams+set}" = set; then
6055   enableval="$enable_streams"
6056
6057                           if test "$enableval" = yes; then
6058                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6059                           else
6060                             ac_cv_use_streams='wxUSE_STREAMS=no'
6061                           fi
6062
6063 else
6064
6065                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6066                           if test "x$LINE" != x ; then
6067                             eval "DEFAULT_$LINE"
6068                           else
6069                             no_cache=1
6070                           fi
6071
6072                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6073
6074 fi;
6075
6076           eval "$ac_cv_use_streams"
6077           if test "$no_cache" != 1; then
6078             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6079           fi
6080
6081           if test "$wxUSE_STREAMS" = yes; then
6082             echo "$as_me:$LINENO: result: yes" >&5
6083 echo "${ECHO_T}yes" >&6
6084           else
6085             echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6087           fi
6088
6089
6090           enablestring=
6091           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6092 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6093           no_cache=0
6094           # Check whether --enable-system_options or --disable-system_options was given.
6095 if test "${enable_system_options+set}" = set; then
6096   enableval="$enable_system_options"
6097
6098                           if test "$enableval" = yes; then
6099                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6100                           else
6101                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6102                           fi
6103
6104 else
6105
6106                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6107                           if test "x$LINE" != x ; then
6108                             eval "DEFAULT_$LINE"
6109                           else
6110                             no_cache=1
6111                           fi
6112
6113                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6114
6115 fi;
6116
6117           eval "$ac_cv_use_system_options"
6118           if test "$no_cache" != 1; then
6119             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6120           fi
6121
6122           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6123             echo "$as_me:$LINENO: result: yes" >&5
6124 echo "${ECHO_T}yes" >&6
6125           else
6126             echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6128           fi
6129
6130
6131           enablestring=
6132           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6133 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6134           no_cache=0
6135           # Check whether --enable-textbuf or --disable-textbuf was given.
6136 if test "${enable_textbuf+set}" = set; then
6137   enableval="$enable_textbuf"
6138
6139                           if test "$enableval" = yes; then
6140                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6141                           else
6142                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6143                           fi
6144
6145 else
6146
6147                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6148                           if test "x$LINE" != x ; then
6149                             eval "DEFAULT_$LINE"
6150                           else
6151                             no_cache=1
6152                           fi
6153
6154                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6155
6156 fi;
6157
6158           eval "$ac_cv_use_textbuf"
6159           if test "$no_cache" != 1; then
6160             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6161           fi
6162
6163           if test "$wxUSE_TEXTBUFFER" = yes; then
6164             echo "$as_me:$LINENO: result: yes" >&5
6165 echo "${ECHO_T}yes" >&6
6166           else
6167             echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6169           fi
6170
6171
6172           enablestring=
6173           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6174 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6175           no_cache=0
6176           # Check whether --enable-textfile or --disable-textfile was given.
6177 if test "${enable_textfile+set}" = set; then
6178   enableval="$enable_textfile"
6179
6180                           if test "$enableval" = yes; then
6181                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6182                           else
6183                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6184                           fi
6185
6186 else
6187
6188                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6189                           if test "x$LINE" != x ; then
6190                             eval "DEFAULT_$LINE"
6191                           else
6192                             no_cache=1
6193                           fi
6194
6195                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6196
6197 fi;
6198
6199           eval "$ac_cv_use_textfile"
6200           if test "$no_cache" != 1; then
6201             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6202           fi
6203
6204           if test "$wxUSE_TEXTFILE" = yes; then
6205             echo "$as_me:$LINENO: result: yes" >&5
6206 echo "${ECHO_T}yes" >&6
6207           else
6208             echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6
6210           fi
6211
6212
6213           enablestring=
6214           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6215 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6216           no_cache=0
6217           # Check whether --enable-timer or --disable-timer was given.
6218 if test "${enable_timer+set}" = set; then
6219   enableval="$enable_timer"
6220
6221                           if test "$enableval" = yes; then
6222                             ac_cv_use_timer='wxUSE_TIMER=yes'
6223                           else
6224                             ac_cv_use_timer='wxUSE_TIMER=no'
6225                           fi
6226
6227 else
6228
6229                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6230                           if test "x$LINE" != x ; then
6231                             eval "DEFAULT_$LINE"
6232                           else
6233                             no_cache=1
6234                           fi
6235
6236                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6237
6238 fi;
6239
6240           eval "$ac_cv_use_timer"
6241           if test "$no_cache" != 1; then
6242             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6243           fi
6244
6245           if test "$wxUSE_TIMER" = yes; then
6246             echo "$as_me:$LINENO: result: yes" >&5
6247 echo "${ECHO_T}yes" >&6
6248           else
6249             echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251           fi
6252
6253
6254           enablestring=
6255           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6256 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6257           no_cache=0
6258           # Check whether --enable-unicode or --disable-unicode was given.
6259 if test "${enable_unicode+set}" = set; then
6260   enableval="$enable_unicode"
6261
6262                           if test "$enableval" = yes; then
6263                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6264                           else
6265                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6266                           fi
6267
6268 else
6269
6270                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6271                           if test "x$LINE" != x ; then
6272                             eval "DEFAULT_$LINE"
6273                           else
6274                             no_cache=1
6275                           fi
6276
6277                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6278
6279 fi;
6280
6281           eval "$ac_cv_use_unicode"
6282           if test "$no_cache" != 1; then
6283             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6284           fi
6285
6286           if test "$wxUSE_UNICODE" = yes; then
6287             echo "$as_me:$LINENO: result: yes" >&5
6288 echo "${ECHO_T}yes" >&6
6289           else
6290             echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6292           fi
6293
6294
6295           enablestring=
6296           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6297 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6298           no_cache=0
6299           # Check whether --enable-sound or --disable-sound was given.
6300 if test "${enable_sound+set}" = set; then
6301   enableval="$enable_sound"
6302
6303                           if test "$enableval" = yes; then
6304                             ac_cv_use_sound='wxUSE_SOUND=yes'
6305                           else
6306                             ac_cv_use_sound='wxUSE_SOUND=no'
6307                           fi
6308
6309 else
6310
6311                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6312                           if test "x$LINE" != x ; then
6313                             eval "DEFAULT_$LINE"
6314                           else
6315                             no_cache=1
6316                           fi
6317
6318                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6319
6320 fi;
6321
6322           eval "$ac_cv_use_sound"
6323           if test "$no_cache" != 1; then
6324             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6325           fi
6326
6327           if test "$wxUSE_SOUND" = yes; then
6328             echo "$as_me:$LINENO: result: yes" >&5
6329 echo "${ECHO_T}yes" >&6
6330           else
6331             echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6
6333           fi
6334
6335
6336           enablestring=
6337           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6338 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6339           no_cache=0
6340           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6341 if test "${enable_mediactrl+set}" = set; then
6342   enableval="$enable_mediactrl"
6343
6344                           if test "$enableval" = yes; then
6345                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6346                           else
6347                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6348                           fi
6349
6350 else
6351
6352                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6353                           if test "x$LINE" != x ; then
6354                             eval "DEFAULT_$LINE"
6355                           else
6356                             no_cache=1
6357                           fi
6358
6359                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6360
6361 fi;
6362
6363           eval "$ac_cv_use_mediactrl"
6364           if test "$no_cache" != 1; then
6365             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6366           fi
6367
6368           if test "$wxUSE_MEDIACTRL" = yes; then
6369             echo "$as_me:$LINENO: result: yes" >&5
6370 echo "${ECHO_T}yes" >&6
6371           else
6372             echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6
6374           fi
6375
6376
6377           enablestring=
6378           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6379 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6380           no_cache=0
6381           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6382 if test "${enable_gstreamer8+set}" = set; then
6383   enableval="$enable_gstreamer8"
6384
6385                           if test "$enableval" = yes; then
6386                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6387                           else
6388                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6389                           fi
6390
6391 else
6392
6393                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6394                           if test "x$LINE" != x ; then
6395                             eval "DEFAULT_$LINE"
6396                           else
6397                             no_cache=1
6398                           fi
6399
6400                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6401
6402 fi;
6403
6404           eval "$ac_cv_use_gstreamer8"
6405           if test "$no_cache" != 1; then
6406             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6407           fi
6408
6409           if test "$wxUSE_GSTREAMER8" = yes; then
6410             echo "$as_me:$LINENO: result: yes" >&5
6411 echo "${ECHO_T}yes" >&6
6412           else
6413             echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6
6415           fi
6416
6417
6418           enablestring=
6419           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6420 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6421           no_cache=0
6422           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6423 if test "${enable_printfposparam+set}" = set; then
6424   enableval="$enable_printfposparam"
6425
6426                           if test "$enableval" = yes; then
6427                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6428                           else
6429                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6430                           fi
6431
6432 else
6433
6434                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6435                           if test "x$LINE" != x ; then
6436                             eval "DEFAULT_$LINE"
6437                           else
6438                             no_cache=1
6439                           fi
6440
6441                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6442
6443 fi;
6444
6445           eval "$ac_cv_use_printfposparam"
6446           if test "$no_cache" != 1; then
6447             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6448           fi
6449
6450           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6451             echo "$as_me:$LINENO: result: yes" >&5
6452 echo "${ECHO_T}yes" >&6
6453           else
6454             echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6
6456           fi
6457
6458
6459           enablestring=
6460           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6461 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6462           no_cache=0
6463           # Check whether --enable-zipstream or --disable-zipstream was given.
6464 if test "${enable_zipstream+set}" = set; then
6465   enableval="$enable_zipstream"
6466
6467                           if test "$enableval" = yes; then
6468                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6469                           else
6470                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6471                           fi
6472
6473 else
6474
6475                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6476                           if test "x$LINE" != x ; then
6477                             eval "DEFAULT_$LINE"
6478                           else
6479                             no_cache=1
6480                           fi
6481
6482                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6483
6484 fi;
6485
6486           eval "$ac_cv_use_zipstream"
6487           if test "$no_cache" != 1; then
6488             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6489           fi
6490
6491           if test "$wxUSE_ZIPSTREAM" = yes; then
6492             echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6
6494           else
6495             echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6
6497           fi
6498
6499
6500
6501           enablestring=
6502           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6503 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6504           no_cache=0
6505           # Check whether --enable-url or --disable-url was given.
6506 if test "${enable_url+set}" = set; then
6507   enableval="$enable_url"
6508
6509                           if test "$enableval" = yes; then
6510                             ac_cv_use_url='wxUSE_URL=yes'
6511                           else
6512                             ac_cv_use_url='wxUSE_URL=no'
6513                           fi
6514
6515 else
6516
6517                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6518                           if test "x$LINE" != x ; then
6519                             eval "DEFAULT_$LINE"
6520                           else
6521                             no_cache=1
6522                           fi
6523
6524                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6525
6526 fi;
6527
6528           eval "$ac_cv_use_url"
6529           if test "$no_cache" != 1; then
6530             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6531           fi
6532
6533           if test "$wxUSE_URL" = yes; then
6534             echo "$as_me:$LINENO: result: yes" >&5
6535 echo "${ECHO_T}yes" >&6
6536           else
6537             echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6
6539           fi
6540
6541
6542           enablestring=
6543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6544 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6545           no_cache=0
6546           # Check whether --enable-protocol or --disable-protocol was given.
6547 if test "${enable_protocol+set}" = set; then
6548   enableval="$enable_protocol"
6549
6550                           if test "$enableval" = yes; then
6551                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6552                           else
6553                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6554                           fi
6555
6556 else
6557
6558                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6559                           if test "x$LINE" != x ; then
6560                             eval "DEFAULT_$LINE"
6561                           else
6562                             no_cache=1
6563                           fi
6564
6565                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6566
6567 fi;
6568
6569           eval "$ac_cv_use_protocol"
6570           if test "$no_cache" != 1; then
6571             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6572           fi
6573
6574           if test "$wxUSE_PROTOCOL" = yes; then
6575             echo "$as_me:$LINENO: result: yes" >&5
6576 echo "${ECHO_T}yes" >&6
6577           else
6578             echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6
6580           fi
6581
6582
6583           enablestring=
6584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6585 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6586           no_cache=0
6587           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6588 if test "${enable_protocol_http+set}" = set; then
6589   enableval="$enable_protocol_http"
6590
6591                           if test "$enableval" = yes; then
6592                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6593                           else
6594                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6595                           fi
6596
6597 else
6598
6599                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6600                           if test "x$LINE" != x ; then
6601                             eval "DEFAULT_$LINE"
6602                           else
6603                             no_cache=1
6604                           fi
6605
6606                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6607
6608 fi;
6609
6610           eval "$ac_cv_use_protocol_http"
6611           if test "$no_cache" != 1; then
6612             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6613           fi
6614
6615           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6616             echo "$as_me:$LINENO: result: yes" >&5
6617 echo "${ECHO_T}yes" >&6
6618           else
6619             echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6
6621           fi
6622
6623
6624           enablestring=
6625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6626 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6627           no_cache=0
6628           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6629 if test "${enable_protocol_ftp+set}" = set; then
6630   enableval="$enable_protocol_ftp"
6631
6632                           if test "$enableval" = yes; then
6633                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6634                           else
6635                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6636                           fi
6637
6638 else
6639
6640                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6641                           if test "x$LINE" != x ; then
6642                             eval "DEFAULT_$LINE"
6643                           else
6644                             no_cache=1
6645                           fi
6646
6647                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6648
6649 fi;
6650
6651           eval "$ac_cv_use_protocol_ftp"
6652           if test "$no_cache" != 1; then
6653             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6654           fi
6655
6656           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6657             echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6
6659           else
6660             echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6662           fi
6663
6664
6665           enablestring=
6666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6667 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6668           no_cache=0
6669           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6670 if test "${enable_protocol_file+set}" = set; then
6671   enableval="$enable_protocol_file"
6672
6673                           if test "$enableval" = yes; then
6674                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6675                           else
6676                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6677                           fi
6678
6679 else
6680
6681                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6682                           if test "x$LINE" != x ; then
6683                             eval "DEFAULT_$LINE"
6684                           else
6685                             no_cache=1
6686                           fi
6687
6688                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6689
6690 fi;
6691
6692           eval "$ac_cv_use_protocol_file"
6693           if test "$no_cache" != 1; then
6694             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6695           fi
6696
6697           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6698             echo "$as_me:$LINENO: result: yes" >&5
6699 echo "${ECHO_T}yes" >&6
6700           else
6701             echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6
6703           fi
6704
6705
6706
6707
6708
6709           enablestring=
6710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6711 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6712           no_cache=0
6713           # Check whether --enable-threads or --disable-threads was given.
6714 if test "${enable_threads+set}" = set; then
6715   enableval="$enable_threads"
6716
6717                           if test "$enableval" = yes; then
6718                             ac_cv_use_threads='wxUSE_THREADS=yes'
6719                           else
6720                             ac_cv_use_threads='wxUSE_THREADS=no'
6721                           fi
6722
6723 else
6724
6725                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6726                           if test "x$LINE" != x ; then
6727                             eval "DEFAULT_$LINE"
6728                           else
6729                             no_cache=1
6730                           fi
6731
6732                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6733
6734 fi;
6735
6736           eval "$ac_cv_use_threads"
6737           if test "$no_cache" != 1; then
6738             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6739           fi
6740
6741           if test "$wxUSE_THREADS" = yes; then
6742             echo "$as_me:$LINENO: result: yes" >&5
6743 echo "${ECHO_T}yes" >&6
6744           else
6745             echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6
6747           fi
6748
6749
6750 if test "$wxUSE_GUI" = "yes"; then
6751
6752
6753
6754           enablestring=
6755           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6756 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6757           no_cache=0
6758           # Check whether --enable-docview or --disable-docview was given.
6759 if test "${enable_docview+set}" = set; then
6760   enableval="$enable_docview"
6761
6762                           if test "$enableval" = yes; then
6763                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6764                           else
6765                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6766                           fi
6767
6768 else
6769
6770                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6771                           if test "x$LINE" != x ; then
6772                             eval "DEFAULT_$LINE"
6773                           else
6774                             no_cache=1
6775                           fi
6776
6777                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6778
6779 fi;
6780
6781           eval "$ac_cv_use_docview"
6782           if test "$no_cache" != 1; then
6783             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6784           fi
6785
6786           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6787             echo "$as_me:$LINENO: result: yes" >&5
6788 echo "${ECHO_T}yes" >&6
6789           else
6790             echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6
6792           fi
6793
6794
6795           enablestring=
6796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6797 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6798           no_cache=0
6799           # Check whether --enable-help or --disable-help was given.
6800 if test "${enable_help+set}" = set; then
6801   enableval="$enable_help"
6802
6803                           if test "$enableval" = yes; then
6804                             ac_cv_use_help='wxUSE_HELP=yes'
6805                           else
6806                             ac_cv_use_help='wxUSE_HELP=no'
6807                           fi
6808
6809 else
6810
6811                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6812                           if test "x$LINE" != x ; then
6813                             eval "DEFAULT_$LINE"
6814                           else
6815                             no_cache=1
6816                           fi
6817
6818                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6819
6820 fi;
6821
6822           eval "$ac_cv_use_help"
6823           if test "$no_cache" != 1; then
6824             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6825           fi
6826
6827           if test "$wxUSE_HELP" = yes; then
6828             echo "$as_me:$LINENO: result: yes" >&5
6829 echo "${ECHO_T}yes" >&6
6830           else
6831             echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6
6833           fi
6834
6835
6836           enablestring=
6837           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6838 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6839           no_cache=0
6840           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6841 if test "${enable_mshtmlhelp+set}" = set; then
6842   enableval="$enable_mshtmlhelp"
6843
6844                           if test "$enableval" = yes; then
6845                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6846                           else
6847                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6848                           fi
6849
6850 else
6851
6852                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6853                           if test "x$LINE" != x ; then
6854                             eval "DEFAULT_$LINE"
6855                           else
6856                             no_cache=1
6857                           fi
6858
6859                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6860
6861 fi;
6862
6863           eval "$ac_cv_use_mshtmlhelp"
6864           if test "$no_cache" != 1; then
6865             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6866           fi
6867
6868           if test "$wxUSE_MS_HTML_HELP" = yes; then
6869             echo "$as_me:$LINENO: result: yes" >&5
6870 echo "${ECHO_T}yes" >&6
6871           else
6872             echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6
6874           fi
6875
6876
6877           enablestring=
6878           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6879 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6880           no_cache=0
6881           # Check whether --enable-html or --disable-html was given.
6882 if test "${enable_html+set}" = set; then
6883   enableval="$enable_html"
6884
6885                           if test "$enableval" = yes; then
6886                             ac_cv_use_html='wxUSE_HTML=yes'
6887                           else
6888                             ac_cv_use_html='wxUSE_HTML=no'
6889                           fi
6890
6891 else
6892
6893                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6894                           if test "x$LINE" != x ; then
6895                             eval "DEFAULT_$LINE"
6896                           else
6897                             no_cache=1
6898                           fi
6899
6900                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6901
6902 fi;
6903
6904           eval "$ac_cv_use_html"
6905           if test "$no_cache" != 1; then
6906             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6907           fi
6908
6909           if test "$wxUSE_HTML" = yes; then
6910             echo "$as_me:$LINENO: result: yes" >&5
6911 echo "${ECHO_T}yes" >&6
6912           else
6913             echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6
6915           fi
6916
6917
6918           enablestring=
6919           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6920 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6921           no_cache=0
6922           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6923 if test "${enable_htmlhelp+set}" = set; then
6924   enableval="$enable_htmlhelp"
6925
6926                           if test "$enableval" = yes; then
6927                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6928                           else
6929                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6930                           fi
6931
6932 else
6933
6934                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6935                           if test "x$LINE" != x ; then
6936                             eval "DEFAULT_$LINE"
6937                           else
6938                             no_cache=1
6939                           fi
6940
6941                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6942
6943 fi;
6944
6945           eval "$ac_cv_use_htmlhelp"
6946           if test "$no_cache" != 1; then
6947             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6948           fi
6949
6950           if test "$wxUSE_WXHTML_HELP" = yes; then
6951             echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6
6953           else
6954             echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956           fi
6957
6958
6959           enablestring=
6960           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6961 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6962           no_cache=0
6963           # Check whether --enable-xrc or --disable-xrc was given.
6964 if test "${enable_xrc+set}" = set; then
6965   enableval="$enable_xrc"
6966
6967                           if test "$enableval" = yes; then
6968                             ac_cv_use_xrc='wxUSE_XRC=yes'
6969                           else
6970                             ac_cv_use_xrc='wxUSE_XRC=no'
6971                           fi
6972
6973 else
6974
6975                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6976                           if test "x$LINE" != x ; then
6977                             eval "DEFAULT_$LINE"
6978                           else
6979                             no_cache=1
6980                           fi
6981
6982                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6983
6984 fi;
6985
6986           eval "$ac_cv_use_xrc"
6987           if test "$no_cache" != 1; then
6988             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6989           fi
6990
6991           if test "$wxUSE_XRC" = yes; then
6992             echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994           else
6995             echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997           fi
6998
6999
7000           enablestring=
7001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7002 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7003           no_cache=0
7004           # Check whether --enable-aui or --disable-aui was given.
7005 if test "${enable_aui+set}" = set; then
7006   enableval="$enable_aui"
7007
7008                           if test "$enableval" = yes; then
7009                             ac_cv_use_aui='wxUSE_AUI=yes'
7010                           else
7011                             ac_cv_use_aui='wxUSE_AUI=no'
7012                           fi
7013
7014 else
7015
7016                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7017                           if test "x$LINE" != x ; then
7018                             eval "DEFAULT_$LINE"
7019                           else
7020                             no_cache=1
7021                           fi
7022
7023                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7024
7025 fi;
7026
7027           eval "$ac_cv_use_aui"
7028           if test "$no_cache" != 1; then
7029             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7030           fi
7031
7032           if test "$wxUSE_AUI" = yes; then
7033             echo "$as_me:$LINENO: result: yes" >&5
7034 echo "${ECHO_T}yes" >&6
7035           else
7036             echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7038           fi
7039
7040
7041           enablestring=
7042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7043 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7044           no_cache=0
7045           # Check whether --enable-constraints or --disable-constraints was given.
7046 if test "${enable_constraints+set}" = set; then
7047   enableval="$enable_constraints"
7048
7049                           if test "$enableval" = yes; then
7050                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7051                           else
7052                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7053                           fi
7054
7055 else
7056
7057                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7058                           if test "x$LINE" != x ; then
7059                             eval "DEFAULT_$LINE"
7060                           else
7061                             no_cache=1
7062                           fi
7063
7064                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7065
7066 fi;
7067
7068           eval "$ac_cv_use_constraints"
7069           if test "$no_cache" != 1; then
7070             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7071           fi
7072
7073           if test "$wxUSE_CONSTRAINTS" = yes; then
7074             echo "$as_me:$LINENO: result: yes" >&5
7075 echo "${ECHO_T}yes" >&6
7076           else
7077             echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6
7079           fi
7080
7081
7082           enablestring=
7083           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7084 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7085           no_cache=0
7086           # Check whether --enable-printarch or --disable-printarch was given.
7087 if test "${enable_printarch+set}" = set; then
7088   enableval="$enable_printarch"
7089
7090                           if test "$enableval" = yes; then
7091                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7092                           else
7093                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7094                           fi
7095
7096 else
7097
7098                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7099                           if test "x$LINE" != x ; then
7100                             eval "DEFAULT_$LINE"
7101                           else
7102                             no_cache=1
7103                           fi
7104
7105                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7106
7107 fi;
7108
7109           eval "$ac_cv_use_printarch"
7110           if test "$no_cache" != 1; then
7111             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7112           fi
7113
7114           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7115             echo "$as_me:$LINENO: result: yes" >&5
7116 echo "${ECHO_T}yes" >&6
7117           else
7118             echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6
7120           fi
7121
7122
7123           enablestring=
7124           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7125 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7126           no_cache=0
7127           # Check whether --enable-mdi or --disable-mdi was given.
7128 if test "${enable_mdi+set}" = set; then
7129   enableval="$enable_mdi"
7130
7131                           if test "$enableval" = yes; then
7132                             ac_cv_use_mdi='wxUSE_MDI=yes'
7133                           else
7134                             ac_cv_use_mdi='wxUSE_MDI=no'
7135                           fi
7136
7137 else
7138
7139                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7140                           if test "x$LINE" != x ; then
7141                             eval "DEFAULT_$LINE"
7142                           else
7143                             no_cache=1
7144                           fi
7145
7146                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7147
7148 fi;
7149
7150           eval "$ac_cv_use_mdi"
7151           if test "$no_cache" != 1; then
7152             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7153           fi
7154
7155           if test "$wxUSE_MDI" = yes; then
7156             echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7158           else
7159             echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7161           fi
7162
7163
7164           enablestring=
7165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7166 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7167           no_cache=0
7168           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7169 if test "${enable_mdidoc+set}" = set; then
7170   enableval="$enable_mdidoc"
7171
7172                           if test "$enableval" = yes; then
7173                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7174                           else
7175                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7176                           fi
7177
7178 else
7179
7180                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7181                           if test "x$LINE" != x ; then
7182                             eval "DEFAULT_$LINE"
7183                           else
7184                             no_cache=1
7185                           fi
7186
7187                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7188
7189 fi;
7190
7191           eval "$ac_cv_use_mdidoc"
7192           if test "$no_cache" != 1; then
7193             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7194           fi
7195
7196           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7197             echo "$as_me:$LINENO: result: yes" >&5
7198 echo "${ECHO_T}yes" >&6
7199           else
7200             echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6
7202           fi
7203
7204
7205           enablestring=
7206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7207 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7208           no_cache=0
7209           # Check whether --enable-loggui or --disable-loggui was given.
7210 if test "${enable_loggui+set}" = set; then
7211   enableval="$enable_loggui"
7212
7213                           if test "$enableval" = yes; then
7214                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7215                           else
7216                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7217                           fi
7218
7219 else
7220
7221                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7222                           if test "x$LINE" != x ; then
7223                             eval "DEFAULT_$LINE"
7224                           else
7225                             no_cache=1
7226                           fi
7227
7228                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7229
7230 fi;
7231
7232           eval "$ac_cv_use_loggui"
7233           if test "$no_cache" != 1; then
7234             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7235           fi
7236
7237           if test "$wxUSE_LOGGUI" = yes; then
7238             echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7240           else
7241             echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243           fi
7244
7245
7246           enablestring=
7247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7248 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7249           no_cache=0
7250           # Check whether --enable-logwin or --disable-logwin was given.
7251 if test "${enable_logwin+set}" = set; then
7252   enableval="$enable_logwin"
7253
7254                           if test "$enableval" = yes; then
7255                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7256                           else
7257                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7258                           fi
7259
7260 else
7261
7262                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7263                           if test "x$LINE" != x ; then
7264                             eval "DEFAULT_$LINE"
7265                           else
7266                             no_cache=1
7267                           fi
7268
7269                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7270
7271 fi;
7272
7273           eval "$ac_cv_use_logwin"
7274           if test "$no_cache" != 1; then
7275             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7276           fi
7277
7278           if test "$wxUSE_LOGWINDOW" = yes; then
7279             echo "$as_me:$LINENO: result: yes" >&5
7280 echo "${ECHO_T}yes" >&6
7281           else
7282             echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284           fi
7285
7286
7287           enablestring=
7288           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7289 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7290           no_cache=0
7291           # Check whether --enable-logdialog or --disable-logdialog was given.
7292 if test "${enable_logdialog+set}" = set; then
7293   enableval="$enable_logdialog"
7294
7295                           if test "$enableval" = yes; then
7296                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7297                           else
7298                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7299                           fi
7300
7301 else
7302
7303                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7304                           if test "x$LINE" != x ; then
7305                             eval "DEFAULT_$LINE"
7306                           else
7307                             no_cache=1
7308                           fi
7309
7310                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7311
7312 fi;
7313
7314           eval "$ac_cv_use_logdialog"
7315           if test "$no_cache" != 1; then
7316             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7317           fi
7318
7319           if test "$wxUSE_LOGDIALOG" = yes; then
7320             echo "$as_me:$LINENO: result: yes" >&5
7321 echo "${ECHO_T}yes" >&6
7322           else
7323             echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325           fi
7326
7327
7328           enablestring=
7329           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7330 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7331           no_cache=0
7332           # Check whether --enable-webkit or --disable-webkit was given.
7333 if test "${enable_webkit+set}" = set; then
7334   enableval="$enable_webkit"
7335
7336                           if test "$enableval" = yes; then
7337                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7338                           else
7339                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7340                           fi
7341
7342 else
7343
7344                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7345                           if test "x$LINE" != x ; then
7346                             eval "DEFAULT_$LINE"
7347                           else
7348                             no_cache=1
7349                           fi
7350
7351                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7352
7353 fi;
7354
7355           eval "$ac_cv_use_webkit"
7356           if test "$no_cache" != 1; then
7357             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7358           fi
7359
7360           if test "$wxUSE_WEBKIT" = yes; then
7361             echo "$as_me:$LINENO: result: yes" >&5
7362 echo "${ECHO_T}yes" >&6
7363           else
7364             echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366           fi
7367
7368
7369           enablestring=
7370           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7371 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7372           no_cache=0
7373           # Check whether --enable-html or --disable-html was given.
7374 if test "${enable_html+set}" = set; then
7375   enableval="$enable_html"
7376
7377                           if test "$enableval" = yes; then
7378                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7379                           else
7380                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7381                           fi
7382
7383 else
7384
7385                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7386                           if test "x$LINE" != x ; then
7387                             eval "DEFAULT_$LINE"
7388                           else
7389                             no_cache=1
7390                           fi
7391
7392                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7393
7394 fi;
7395
7396           eval "$ac_cv_use_html"
7397           if test "$no_cache" != 1; then
7398             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7399           fi
7400
7401           if test "$wxUSE_RICHTEXT" = yes; then
7402             echo "$as_me:$LINENO: result: yes" >&5
7403 echo "${ECHO_T}yes" >&6
7404           else
7405             echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6
7407           fi
7408
7409
7410
7411           enablestring=
7412           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7413 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7414           no_cache=0
7415           # Check whether --enable-postscript or --disable-postscript was given.
7416 if test "${enable_postscript+set}" = set; then
7417   enableval="$enable_postscript"
7418
7419                           if test "$enableval" = yes; then
7420                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7421                           else
7422                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7423                           fi
7424
7425 else
7426
7427                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7428                           if test "x$LINE" != x ; then
7429                             eval "DEFAULT_$LINE"
7430                           else
7431                             no_cache=1
7432                           fi
7433
7434                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7435
7436 fi;
7437
7438           eval "$ac_cv_use_postscript"
7439           if test "$no_cache" != 1; then
7440             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7441           fi
7442
7443           if test "$wxUSE_POSTSCRIPT" = yes; then
7444             echo "$as_me:$LINENO: result: yes" >&5
7445 echo "${ECHO_T}yes" >&6
7446           else
7447             echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7449           fi
7450
7451
7452
7453
7454
7455           enablestring=
7456           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7457 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7458           no_cache=0
7459           # Check whether --enable-prologio or --disable-prologio was given.
7460 if test "${enable_prologio+set}" = set; then
7461   enableval="$enable_prologio"
7462
7463                           if test "$enableval" = yes; then
7464                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7465                           else
7466                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7467                           fi
7468
7469 else
7470
7471                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7472                           if test "x$LINE" != x ; then
7473                             eval "DEFAULT_$LINE"
7474                           else
7475                             no_cache=1
7476                           fi
7477
7478                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7479
7480 fi;
7481
7482           eval "$ac_cv_use_prologio"
7483           if test "$no_cache" != 1; then
7484             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7485           fi
7486
7487           if test "$wxUSE_PROLOGIO" = yes; then
7488             echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6
7490           else
7491             echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7493           fi
7494
7495
7496           enablestring=
7497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7498 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7499           no_cache=0
7500           # Check whether --enable-resources or --disable-resources was given.
7501 if test "${enable_resources+set}" = set; then
7502   enableval="$enable_resources"
7503
7504                           if test "$enableval" = yes; then
7505                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7506                           else
7507                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7508                           fi
7509
7510 else
7511
7512                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7513                           if test "x$LINE" != x ; then
7514                             eval "DEFAULT_$LINE"
7515                           else
7516                             no_cache=1
7517                           fi
7518
7519                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7520
7521 fi;
7522
7523           eval "$ac_cv_use_resources"
7524           if test "$no_cache" != 1; then
7525             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7526           fi
7527
7528           if test "$wxUSE_RESOURCES" = yes; then
7529             echo "$as_me:$LINENO: result: yes" >&5
7530 echo "${ECHO_T}yes" >&6
7531           else
7532             echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534           fi
7535
7536
7537
7538
7539           enablestring=
7540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7541 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7542           no_cache=0
7543           # Check whether --enable-clipboard or --disable-clipboard was given.
7544 if test "${enable_clipboard+set}" = set; then
7545   enableval="$enable_clipboard"
7546
7547                           if test "$enableval" = yes; then
7548                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7549                           else
7550                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7551                           fi
7552
7553 else
7554
7555                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7556                           if test "x$LINE" != x ; then
7557                             eval "DEFAULT_$LINE"
7558                           else
7559                             no_cache=1
7560                           fi
7561
7562                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7563
7564 fi;
7565
7566           eval "$ac_cv_use_clipboard"
7567           if test "$no_cache" != 1; then
7568             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7569           fi
7570
7571           if test "$wxUSE_CLIPBOARD" = yes; then
7572             echo "$as_me:$LINENO: result: yes" >&5
7573 echo "${ECHO_T}yes" >&6
7574           else
7575             echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577           fi
7578
7579
7580           enablestring=
7581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7582 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7583           no_cache=0
7584           # Check whether --enable-dnd or --disable-dnd was given.
7585 if test "${enable_dnd+set}" = set; then
7586   enableval="$enable_dnd"
7587
7588                           if test "$enableval" = yes; then
7589                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7590                           else
7591                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7592                           fi
7593
7594 else
7595
7596                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7597                           if test "x$LINE" != x ; then
7598                             eval "DEFAULT_$LINE"
7599                           else
7600                             no_cache=1
7601                           fi
7602
7603                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7604
7605 fi;
7606
7607           eval "$ac_cv_use_dnd"
7608           if test "$no_cache" != 1; then
7609             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7610           fi
7611
7612           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7613             echo "$as_me:$LINENO: result: yes" >&5
7614 echo "${ECHO_T}yes" >&6
7615           else
7616             echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7618           fi
7619
7620
7621           enablestring=
7622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7623 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7624           no_cache=0
7625           # Check whether --enable-metafile or --disable-metafile was given.
7626 if test "${enable_metafile+set}" = set; then
7627   enableval="$enable_metafile"
7628
7629                           if test "$enableval" = yes; then
7630                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7631                           else
7632                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7633                           fi
7634
7635 else
7636
7637                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7638                           if test "x$LINE" != x ; then
7639                             eval "DEFAULT_$LINE"
7640                           else
7641                             no_cache=1
7642                           fi
7643
7644                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7645
7646 fi;
7647
7648           eval "$ac_cv_use_metafile"
7649           if test "$no_cache" != 1; then
7650             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7651           fi
7652
7653           if test "$wxUSE_METAFILE" = yes; then
7654             echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7656           else
7657             echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659           fi
7660
7661
7662
7663
7664
7665           enablestring=
7666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7667 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7668           no_cache=0
7669           # Check whether --enable-controls or --disable-controls was given.
7670 if test "${enable_controls+set}" = set; then
7671   enableval="$enable_controls"
7672
7673                           if test "$enableval" = yes; then
7674                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7675                           else
7676                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7677                           fi
7678
7679 else
7680
7681                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7682                           if test "x$LINE" != x ; then
7683                             eval "DEFAULT_$LINE"
7684                           else
7685                             no_cache=1
7686                           fi
7687
7688                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7689
7690 fi;
7691
7692           eval "$ac_cv_use_controls"
7693           if test "$no_cache" != 1; then
7694             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7695           fi
7696
7697           if test "$wxUSE_CONTROLS" = yes; then
7698             echo "$as_me:$LINENO: result: yes" >&5
7699 echo "${ECHO_T}yes" >&6
7700           else
7701             echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7703           fi
7704
7705
7706 if test "$wxUSE_CONTROLS" = "yes"; then
7707   DEFAULT_wxUSE_ACCEL=yes
7708   DEFAULT_wxUSE_BMPBUTTON=yes
7709   DEFAULT_wxUSE_BUTTON=yes
7710   DEFAULT_wxUSE_CALCTRL=yes
7711   DEFAULT_wxUSE_CARET=yes
7712   DEFAULT_wxUSE_COMBOBOX=yes
7713   DEFAULT_wxUSE_CHECKBOX=yes
7714   DEFAULT_wxUSE_CHECKLISTBOX=yes
7715   DEFAULT_wxUSE_CHOICE=yes
7716   DEFAULT_wxUSE_CHOICEBOOK=yes
7717   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7718   DEFAULT_wxUSE_COMBOBOX=yes
7719   DEFAULT_wxUSE_DATEPICKCTRL=yes
7720   DEFAULT_wxUSE_DISPLAY=yes
7721   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7722   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7723   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7724   DEFAULT_wxUSE_GAUGE=yes
7725   DEFAULT_wxUSE_GRID=yes
7726   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7727   DEFAULT_wxUSE_DATAVIEWCTRL=no
7728   DEFAULT_wxUSE_IMAGLIST=yes
7729   DEFAULT_wxUSE_LISTBOOK=yes
7730   DEFAULT_wxUSE_LISTBOX=yes
7731   DEFAULT_wxUSE_LISTCTRL=yes
7732   DEFAULT_wxUSE_NOTEBOOK=yes
7733   DEFAULT_wxUSE_RADIOBOX=yes
7734   DEFAULT_wxUSE_RADIOBTN=yes
7735   DEFAULT_wxUSE_SASH=yes
7736   DEFAULT_wxUSE_SCROLLBAR=yes
7737   DEFAULT_wxUSE_SLIDER=yes
7738   DEFAULT_wxUSE_SPINBTN=yes
7739   DEFAULT_wxUSE_SPINCTRL=yes
7740   DEFAULT_wxUSE_SPLITTER=yes
7741   DEFAULT_wxUSE_STATBMP=yes
7742   DEFAULT_wxUSE_STATBOX=yes
7743   DEFAULT_wxUSE_STATLINE=yes
7744   DEFAULT_wxUSE_STATUSBAR=yes
7745   DEFAULT_wxUSE_TAB_DIALOG=yes
7746   DEFAULT_wxUSE_TOGGLEBTN=yes
7747   DEFAULT_wxUSE_TOOLBAR=yes
7748   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7749   DEFAULT_wxUSE_TOOLTIPS=yes
7750   DEFAULT_wxUSE_TREEBOOK=yes
7751   DEFAULT_wxUSE_TOOLBOOK=yes
7752   DEFAULT_wxUSE_TREECTRL=yes
7753   DEFAULT_wxUSE_POPUPWIN=yes
7754   DEFAULT_wxUSE_TIPWINDOW=yes
7755 elif test "$wxUSE_CONTROLS" = "no"; then
7756   DEFAULT_wxUSE_ACCEL=no
7757   DEFAULT_wxUSE_BMPBUTTON=no
7758   DEFAULT_wxUSE_BUTTON=no
7759   DEFAULT_wxUSE_CALCTRL=no
7760   DEFAULT_wxUSE_CARET=no
7761   DEFAULT_wxUSE_COMBOBOX=no
7762   DEFAULT_wxUSE_CHECKBOX=no
7763   DEFAULT_wxUSE_CHECKLISTBOX=no
7764   DEFAULT_wxUSE_CHOICE=no
7765   DEFAULT_wxUSE_CHOICEBOOK=no
7766   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7767   DEFAULT_wxUSE_COMBOBOX=no
7768   DEFAULT_wxUSE_DATEPICKCTRL=no
7769   DEFAULT_wxUSE_DISPLAY=no
7770   DEFAULT_wxUSE_DIRPICKERCTRL=no
7771   DEFAULT_wxUSE_FILEPICKERCTRL=no
7772   DEFAULT_wxUSE_FONTPICKERCTRL=no
7773   DEFAULT_wxUSE_GAUGE=no
7774   DEFAULT_wxUSE_GRID=no
7775   DEFAULT_wxUSE_HYPERLINKCTRL=no
7776   DEFAULT_wxUSE_DATAVIEWCTRL=no
7777   DEFAULT_wxUSE_IMAGLIST=no
7778   DEFAULT_wxUSE_LISTBOOK=no
7779   DEFAULT_wxUSE_LISTBOX=no
7780   DEFAULT_wxUSE_LISTCTRL=no
7781   DEFAULT_wxUSE_NOTEBOOK=no
7782   DEFAULT_wxUSE_RADIOBOX=no
7783   DEFAULT_wxUSE_RADIOBTN=no
7784   DEFAULT_wxUSE_SASH=no
7785   DEFAULT_wxUSE_SCROLLBAR=no
7786   DEFAULT_wxUSE_SLIDER=no
7787   DEFAULT_wxUSE_SPINBTN=no
7788   DEFAULT_wxUSE_SPINCTRL=no
7789   DEFAULT_wxUSE_SPLITTER=no
7790   DEFAULT_wxUSE_STATBMP=no
7791   DEFAULT_wxUSE_STATBOX=no
7792   DEFAULT_wxUSE_STATLINE=no
7793   DEFAULT_wxUSE_STATUSBAR=no
7794   DEFAULT_wxUSE_TAB_DIALOG=no
7795   DEFAULT_wxUSE_TOGGLEBTN=no
7796   DEFAULT_wxUSE_TOOLBAR=no
7797   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7798   DEFAULT_wxUSE_TOOLTIPS=no
7799   DEFAULT_wxUSE_TREEBOOK=no
7800   DEFAULT_wxUSE_TOOLBOOK=no
7801   DEFAULT_wxUSE_TREECTRL=no
7802   DEFAULT_wxUSE_POPUPWIN=no
7803   DEFAULT_wxUSE_TIPWINDOW=no
7804 fi
7805
7806
7807           enablestring=
7808           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7809 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7810           no_cache=0
7811           # Check whether --enable-accel or --disable-accel was given.
7812 if test "${enable_accel+set}" = set; then
7813   enableval="$enable_accel"
7814
7815                           if test "$enableval" = yes; then
7816                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7817                           else
7818                             ac_cv_use_accel='wxUSE_ACCEL=no'
7819                           fi
7820
7821 else
7822
7823                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7824                           if test "x$LINE" != x ; then
7825                             eval "DEFAULT_$LINE"
7826                           else
7827                             no_cache=1
7828                           fi
7829
7830                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7831
7832 fi;
7833
7834           eval "$ac_cv_use_accel"
7835           if test "$no_cache" != 1; then
7836             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7837           fi
7838
7839           if test "$wxUSE_ACCEL" = yes; then
7840             echo "$as_me:$LINENO: result: yes" >&5
7841 echo "${ECHO_T}yes" >&6
7842           else
7843             echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7845           fi
7846
7847
7848           enablestring=
7849           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7850 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7851           no_cache=0
7852           # Check whether --enable-button or --disable-button was given.
7853 if test "${enable_button+set}" = set; then
7854   enableval="$enable_button"
7855
7856                           if test "$enableval" = yes; then
7857                             ac_cv_use_button='wxUSE_BUTTON=yes'
7858                           else
7859                             ac_cv_use_button='wxUSE_BUTTON=no'
7860                           fi
7861
7862 else
7863
7864                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7865                           if test "x$LINE" != x ; then
7866                             eval "DEFAULT_$LINE"
7867                           else
7868                             no_cache=1
7869                           fi
7870
7871                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7872
7873 fi;
7874
7875           eval "$ac_cv_use_button"
7876           if test "$no_cache" != 1; then
7877             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7878           fi
7879
7880           if test "$wxUSE_BUTTON" = yes; then
7881             echo "$as_me:$LINENO: result: yes" >&5
7882 echo "${ECHO_T}yes" >&6
7883           else
7884             echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886           fi
7887
7888
7889           enablestring=
7890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7891 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7892           no_cache=0
7893           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7894 if test "${enable_bmpbutton+set}" = set; then
7895   enableval="$enable_bmpbutton"
7896
7897                           if test "$enableval" = yes; then
7898                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7899                           else
7900                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7901                           fi
7902
7903 else
7904
7905                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7906                           if test "x$LINE" != x ; then
7907                             eval "DEFAULT_$LINE"
7908                           else
7909                             no_cache=1
7910                           fi
7911
7912                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7913
7914 fi;
7915
7916           eval "$ac_cv_use_bmpbutton"
7917           if test "$no_cache" != 1; then
7918             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7919           fi
7920
7921           if test "$wxUSE_BMPBUTTON" = yes; then
7922             echo "$as_me:$LINENO: result: yes" >&5
7923 echo "${ECHO_T}yes" >&6
7924           else
7925             echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6
7927           fi
7928
7929
7930           enablestring=
7931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7932 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7933           no_cache=0
7934           # Check whether --enable-calendar or --disable-calendar was given.
7935 if test "${enable_calendar+set}" = set; then
7936   enableval="$enable_calendar"
7937
7938                           if test "$enableval" = yes; then
7939                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7940                           else
7941                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7942                           fi
7943
7944 else
7945
7946                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7947                           if test "x$LINE" != x ; then
7948                             eval "DEFAULT_$LINE"
7949                           else
7950                             no_cache=1
7951                           fi
7952
7953                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7954
7955 fi;
7956
7957           eval "$ac_cv_use_calendar"
7958           if test "$no_cache" != 1; then
7959             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7960           fi
7961
7962           if test "$wxUSE_CALCTRL" = yes; then
7963             echo "$as_me:$LINENO: result: yes" >&5
7964 echo "${ECHO_T}yes" >&6
7965           else
7966             echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7968           fi
7969
7970
7971           enablestring=
7972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7973 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7974           no_cache=0
7975           # Check whether --enable-caret or --disable-caret was given.
7976 if test "${enable_caret+set}" = set; then
7977   enableval="$enable_caret"
7978
7979                           if test "$enableval" = yes; then
7980                             ac_cv_use_caret='wxUSE_CARET=yes'
7981                           else
7982                             ac_cv_use_caret='wxUSE_CARET=no'
7983                           fi
7984
7985 else
7986
7987                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7988                           if test "x$LINE" != x ; then
7989                             eval "DEFAULT_$LINE"
7990                           else
7991                             no_cache=1
7992                           fi
7993
7994                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7995
7996 fi;
7997
7998           eval "$ac_cv_use_caret"
7999           if test "$no_cache" != 1; then
8000             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8001           fi
8002
8003           if test "$wxUSE_CARET" = yes; then
8004             echo "$as_me:$LINENO: result: yes" >&5
8005 echo "${ECHO_T}yes" >&6
8006           else
8007             echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6
8009           fi
8010
8011
8012           enablestring=
8013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8014 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8015           no_cache=0
8016           # Check whether --enable-checkbox or --disable-checkbox was given.
8017 if test "${enable_checkbox+set}" = set; then
8018   enableval="$enable_checkbox"
8019
8020                           if test "$enableval" = yes; then
8021                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8022                           else
8023                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8024                           fi
8025
8026 else
8027
8028                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8029                           if test "x$LINE" != x ; then
8030                             eval "DEFAULT_$LINE"
8031                           else
8032                             no_cache=1
8033                           fi
8034
8035                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8036
8037 fi;
8038
8039           eval "$ac_cv_use_checkbox"
8040           if test "$no_cache" != 1; then
8041             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8042           fi
8043
8044           if test "$wxUSE_CHECKBOX" = yes; then
8045             echo "$as_me:$LINENO: result: yes" >&5
8046 echo "${ECHO_T}yes" >&6
8047           else
8048             echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8050           fi
8051
8052
8053           enablestring=
8054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8055 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8056           no_cache=0
8057           # Check whether --enable-checklst or --disable-checklst was given.
8058 if test "${enable_checklst+set}" = set; then
8059   enableval="$enable_checklst"
8060
8061                           if test "$enableval" = yes; then
8062                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8063                           else
8064                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8065                           fi
8066
8067 else
8068
8069                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8070                           if test "x$LINE" != x ; then
8071                             eval "DEFAULT_$LINE"
8072                           else
8073                             no_cache=1
8074                           fi
8075
8076                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8077
8078 fi;
8079
8080           eval "$ac_cv_use_checklst"
8081           if test "$no_cache" != 1; then
8082             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8083           fi
8084
8085           if test "$wxUSE_CHECKLST" = yes; then
8086             echo "$as_me:$LINENO: result: yes" >&5
8087 echo "${ECHO_T}yes" >&6
8088           else
8089             echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8091           fi
8092
8093
8094           enablestring=
8095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8096 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8097           no_cache=0
8098           # Check whether --enable-choice or --disable-choice was given.
8099 if test "${enable_choice+set}" = set; then
8100   enableval="$enable_choice"
8101
8102                           if test "$enableval" = yes; then
8103                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8104                           else
8105                             ac_cv_use_choice='wxUSE_CHOICE=no'
8106                           fi
8107
8108 else
8109
8110                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8111                           if test "x$LINE" != x ; then
8112                             eval "DEFAULT_$LINE"
8113                           else
8114                             no_cache=1
8115                           fi
8116
8117                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8118
8119 fi;
8120
8121           eval "$ac_cv_use_choice"
8122           if test "$no_cache" != 1; then
8123             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8124           fi
8125
8126           if test "$wxUSE_CHOICE" = yes; then
8127             echo "$as_me:$LINENO: result: yes" >&5
8128 echo "${ECHO_T}yes" >&6
8129           else
8130             echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6
8132           fi
8133
8134
8135           enablestring=
8136           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8137 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8138           no_cache=0
8139           # Check whether --enable-choicebook or --disable-choicebook was given.
8140 if test "${enable_choicebook+set}" = set; then
8141   enableval="$enable_choicebook"
8142
8143                           if test "$enableval" = yes; then
8144                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8145                           else
8146                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8147                           fi
8148
8149 else
8150
8151                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8152                           if test "x$LINE" != x ; then
8153                             eval "DEFAULT_$LINE"
8154                           else
8155                             no_cache=1
8156                           fi
8157
8158                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8159
8160 fi;
8161
8162           eval "$ac_cv_use_choicebook"
8163           if test "$no_cache" != 1; then
8164             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8165           fi
8166
8167           if test "$wxUSE_CHOICEBOOK" = yes; then
8168             echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170           else
8171             echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8173           fi
8174
8175
8176           enablestring=
8177           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8178 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8179           no_cache=0
8180           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8181 if test "${enable_colourpicker+set}" = set; then
8182   enableval="$enable_colourpicker"
8183
8184                           if test "$enableval" = yes; then
8185                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8186                           else
8187                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8188                           fi
8189
8190 else
8191
8192                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8193                           if test "x$LINE" != x ; then
8194                             eval "DEFAULT_$LINE"
8195                           else
8196                             no_cache=1
8197                           fi
8198
8199                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8200
8201 fi;
8202
8203           eval "$ac_cv_use_colourpicker"
8204           if test "$no_cache" != 1; then
8205             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8206           fi
8207
8208           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8209             echo "$as_me:$LINENO: result: yes" >&5
8210 echo "${ECHO_T}yes" >&6
8211           else
8212             echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6
8214           fi
8215
8216
8217           enablestring=
8218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8219 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8220           no_cache=0
8221           # Check whether --enable-combobox or --disable-combobox was given.
8222 if test "${enable_combobox+set}" = set; then
8223   enableval="$enable_combobox"
8224
8225                           if test "$enableval" = yes; then
8226                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8227                           else
8228                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8229                           fi
8230
8231 else
8232
8233                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8234                           if test "x$LINE" != x ; then
8235                             eval "DEFAULT_$LINE"
8236                           else
8237                             no_cache=1
8238                           fi
8239
8240                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8241
8242 fi;
8243
8244           eval "$ac_cv_use_combobox"
8245           if test "$no_cache" != 1; then
8246             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8247           fi
8248
8249           if test "$wxUSE_COMBOBOX" = yes; then
8250             echo "$as_me:$LINENO: result: yes" >&5
8251 echo "${ECHO_T}yes" >&6
8252           else
8253             echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8255           fi
8256
8257
8258           enablestring=
8259           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8260 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8261           no_cache=0
8262           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8263 if test "${enable_comboctrl+set}" = set; then
8264   enableval="$enable_comboctrl"
8265
8266                           if test "$enableval" = yes; then
8267                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8268                           else
8269                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8270                           fi
8271
8272 else
8273
8274                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8275                           if test "x$LINE" != x ; then
8276                             eval "DEFAULT_$LINE"
8277                           else
8278                             no_cache=1
8279                           fi
8280
8281                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8282
8283 fi;
8284
8285           eval "$ac_cv_use_comboctrl"
8286           if test "$no_cache" != 1; then
8287             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8288           fi
8289
8290           if test "$wxUSE_COMBOCTRL" = yes; then
8291             echo "$as_me:$LINENO: result: yes" >&5
8292 echo "${ECHO_T}yes" >&6
8293           else
8294             echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296           fi
8297
8298
8299           enablestring=
8300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8301 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8302           no_cache=0
8303           # Check whether --enable-datepick or --disable-datepick was given.
8304 if test "${enable_datepick+set}" = set; then
8305   enableval="$enable_datepick"
8306
8307                           if test "$enableval" = yes; then
8308                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8309                           else
8310                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8311                           fi
8312
8313 else
8314
8315                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8316                           if test "x$LINE" != x ; then
8317                             eval "DEFAULT_$LINE"
8318                           else
8319                             no_cache=1
8320                           fi
8321
8322                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8323
8324 fi;
8325
8326           eval "$ac_cv_use_datepick"
8327           if test "$no_cache" != 1; then
8328             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8329           fi
8330
8331           if test "$wxUSE_DATEPICKCTRL" = yes; then
8332             echo "$as_me:$LINENO: result: yes" >&5
8333 echo "${ECHO_T}yes" >&6
8334           else
8335             echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8337           fi
8338
8339
8340           enablestring=
8341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8342 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8343           no_cache=0
8344           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8345 if test "${enable_dirpicker+set}" = set; then
8346   enableval="$enable_dirpicker"
8347
8348                           if test "$enableval" = yes; then
8349                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8350                           else
8351                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8352                           fi
8353
8354 else
8355
8356                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8357                           if test "x$LINE" != x ; then
8358                             eval "DEFAULT_$LINE"
8359                           else
8360                             no_cache=1
8361                           fi
8362
8363                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8364
8365 fi;
8366
8367           eval "$ac_cv_use_dirpicker"
8368           if test "$no_cache" != 1; then
8369             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8370           fi
8371
8372           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8373             echo "$as_me:$LINENO: result: yes" >&5
8374 echo "${ECHO_T}yes" >&6
8375           else
8376             echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8378           fi
8379
8380
8381           enablestring=
8382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8383 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8384           no_cache=0
8385           # Check whether --enable-display or --disable-display was given.
8386 if test "${enable_display+set}" = set; then
8387   enableval="$enable_display"
8388
8389                           if test "$enableval" = yes; then
8390                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8391                           else
8392                             ac_cv_use_display='wxUSE_DISPLAY=no'
8393                           fi
8394
8395 else
8396
8397                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8398                           if test "x$LINE" != x ; then
8399                             eval "DEFAULT_$LINE"
8400                           else
8401                             no_cache=1
8402                           fi
8403
8404                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8405
8406 fi;
8407
8408           eval "$ac_cv_use_display"
8409           if test "$no_cache" != 1; then
8410             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8411           fi
8412
8413           if test "$wxUSE_DISPLAY" = yes; then
8414             echo "$as_me:$LINENO: result: yes" >&5
8415 echo "${ECHO_T}yes" >&6
8416           else
8417             echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8419           fi
8420
8421
8422           enablestring=
8423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8424 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8425           no_cache=0
8426           # Check whether --enable-filepicker or --disable-filepicker was given.
8427 if test "${enable_filepicker+set}" = set; then
8428   enableval="$enable_filepicker"
8429
8430                           if test "$enableval" = yes; then
8431                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8432                           else
8433                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8434                           fi
8435
8436 else
8437
8438                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8439                           if test "x$LINE" != x ; then
8440                             eval "DEFAULT_$LINE"
8441                           else
8442                             no_cache=1
8443                           fi
8444
8445                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8446
8447 fi;
8448
8449           eval "$ac_cv_use_filepicker"
8450           if test "$no_cache" != 1; then
8451             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8452           fi
8453
8454           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8455             echo "$as_me:$LINENO: result: yes" >&5
8456 echo "${ECHO_T}yes" >&6
8457           else
8458             echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6
8460           fi
8461
8462
8463           enablestring=
8464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8465 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8466           no_cache=0
8467           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8468 if test "${enable_fontpicker+set}" = set; then
8469   enableval="$enable_fontpicker"
8470
8471                           if test "$enableval" = yes; then
8472                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8473                           else
8474                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8475                           fi
8476
8477 else
8478
8479                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8480                           if test "x$LINE" != x ; then
8481                             eval "DEFAULT_$LINE"
8482                           else
8483                             no_cache=1
8484                           fi
8485
8486                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8487
8488 fi;
8489
8490           eval "$ac_cv_use_fontpicker"
8491           if test "$no_cache" != 1; then
8492             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8493           fi
8494
8495           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8496             echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6
8498           else
8499             echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8501           fi
8502
8503
8504           enablestring=
8505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8506 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8507           no_cache=0
8508           # Check whether --enable-gauge or --disable-gauge was given.
8509 if test "${enable_gauge+set}" = set; then
8510   enableval="$enable_gauge"
8511
8512                           if test "$enableval" = yes; then
8513                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8514                           else
8515                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8516                           fi
8517
8518 else
8519
8520                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8521                           if test "x$LINE" != x ; then
8522                             eval "DEFAULT_$LINE"
8523                           else
8524                             no_cache=1
8525                           fi
8526
8527                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8528
8529 fi;
8530
8531           eval "$ac_cv_use_gauge"
8532           if test "$no_cache" != 1; then
8533             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8534           fi
8535
8536           if test "$wxUSE_GAUGE" = yes; then
8537             echo "$as_me:$LINENO: result: yes" >&5
8538 echo "${ECHO_T}yes" >&6
8539           else
8540             echo "$as_me:$LINENO: result: no" >&5
8541 echo "${ECHO_T}no" >&6
8542           fi
8543
8544
8545           enablestring=
8546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8547 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8548           no_cache=0
8549           # Check whether --enable-grid or --disable-grid was given.
8550 if test "${enable_grid+set}" = set; then
8551   enableval="$enable_grid"
8552
8553                           if test "$enableval" = yes; then
8554                             ac_cv_use_grid='wxUSE_GRID=yes'
8555                           else
8556                             ac_cv_use_grid='wxUSE_GRID=no'
8557                           fi
8558
8559 else
8560
8561                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8562                           if test "x$LINE" != x ; then
8563                             eval "DEFAULT_$LINE"
8564                           else
8565                             no_cache=1
8566                           fi
8567
8568                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8569
8570 fi;
8571
8572           eval "$ac_cv_use_grid"
8573           if test "$no_cache" != 1; then
8574             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8575           fi
8576
8577           if test "$wxUSE_GRID" = yes; then
8578             echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6
8580           else
8581             echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6
8583           fi
8584
8585
8586           enablestring=
8587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8588 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8589           no_cache=0
8590           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8591 if test "${enable_dataviewctrl+set}" = set; then
8592   enableval="$enable_dataviewctrl"
8593
8594                           if test "$enableval" = yes; then
8595                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8596                           else
8597                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8598                           fi
8599
8600 else
8601
8602                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8603                           if test "x$LINE" != x ; then
8604                             eval "DEFAULT_$LINE"
8605                           else
8606                             no_cache=1
8607                           fi
8608
8609                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8610
8611 fi;
8612
8613           eval "$ac_cv_use_dataviewctrl"
8614           if test "$no_cache" != 1; then
8615             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8616           fi
8617
8618           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8619             echo "$as_me:$LINENO: result: yes" >&5
8620 echo "${ECHO_T}yes" >&6
8621           else
8622             echo "$as_me:$LINENO: result: no" >&5
8623 echo "${ECHO_T}no" >&6
8624           fi
8625
8626
8627           enablestring=
8628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8629 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8630           no_cache=0
8631           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8632 if test "${enable_hyperlink+set}" = set; then
8633   enableval="$enable_hyperlink"
8634
8635                           if test "$enableval" = yes; then
8636                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8637                           else
8638                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8639                           fi
8640
8641 else
8642
8643                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8644                           if test "x$LINE" != x ; then
8645                             eval "DEFAULT_$LINE"
8646                           else
8647                             no_cache=1
8648                           fi
8649
8650                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8651
8652 fi;
8653
8654           eval "$ac_cv_use_hyperlink"
8655           if test "$no_cache" != 1; then
8656             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8657           fi
8658
8659           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8660             echo "$as_me:$LINENO: result: yes" >&5
8661 echo "${ECHO_T}yes" >&6
8662           else
8663             echo "$as_me:$LINENO: result: no" >&5
8664 echo "${ECHO_T}no" >&6
8665           fi
8666
8667
8668           enablestring=
8669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8670 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8671           no_cache=0
8672           # Check whether --enable-imaglist or --disable-imaglist was given.
8673 if test "${enable_imaglist+set}" = set; then
8674   enableval="$enable_imaglist"
8675
8676                           if test "$enableval" = yes; then
8677                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8678                           else
8679                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8680                           fi
8681
8682 else
8683
8684                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8685                           if test "x$LINE" != x ; then
8686                             eval "DEFAULT_$LINE"
8687                           else
8688                             no_cache=1
8689                           fi
8690
8691                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8692
8693 fi;
8694
8695           eval "$ac_cv_use_imaglist"
8696           if test "$no_cache" != 1; then
8697             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8698           fi
8699
8700           if test "$wxUSE_IMAGLIST" = yes; then
8701             echo "$as_me:$LINENO: result: yes" >&5
8702 echo "${ECHO_T}yes" >&6
8703           else
8704             echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8706           fi
8707
8708
8709           enablestring=
8710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8711 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8712           no_cache=0
8713           # Check whether --enable-listbook or --disable-listbook was given.
8714 if test "${enable_listbook+set}" = set; then
8715   enableval="$enable_listbook"
8716
8717                           if test "$enableval" = yes; then
8718                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8719                           else
8720                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8721                           fi
8722
8723 else
8724
8725                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8726                           if test "x$LINE" != x ; then
8727                             eval "DEFAULT_$LINE"
8728                           else
8729                             no_cache=1
8730                           fi
8731
8732                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8733
8734 fi;
8735
8736           eval "$ac_cv_use_listbook"
8737           if test "$no_cache" != 1; then
8738             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8739           fi
8740
8741           if test "$wxUSE_LISTBOOK" = yes; then
8742             echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6
8744           else
8745             echo "$as_me:$LINENO: result: no" >&5
8746 echo "${ECHO_T}no" >&6
8747           fi
8748
8749
8750           enablestring=
8751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8752 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8753           no_cache=0
8754           # Check whether --enable-listbox or --disable-listbox was given.
8755 if test "${enable_listbox+set}" = set; then
8756   enableval="$enable_listbox"
8757
8758                           if test "$enableval" = yes; then
8759                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8760                           else
8761                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8762                           fi
8763
8764 else
8765
8766                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8767                           if test "x$LINE" != x ; then
8768                             eval "DEFAULT_$LINE"
8769                           else
8770                             no_cache=1
8771                           fi
8772
8773                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8774
8775 fi;
8776
8777           eval "$ac_cv_use_listbox"
8778           if test "$no_cache" != 1; then
8779             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8780           fi
8781
8782           if test "$wxUSE_LISTBOX" = yes; then
8783             echo "$as_me:$LINENO: result: yes" >&5
8784 echo "${ECHO_T}yes" >&6
8785           else
8786             echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6
8788           fi
8789
8790
8791           enablestring=
8792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8793 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8794           no_cache=0
8795           # Check whether --enable-listctrl or --disable-listctrl was given.
8796 if test "${enable_listctrl+set}" = set; then
8797   enableval="$enable_listctrl"
8798
8799                           if test "$enableval" = yes; then
8800                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8801                           else
8802                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8803                           fi
8804
8805 else
8806
8807                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8808                           if test "x$LINE" != x ; then
8809                             eval "DEFAULT_$LINE"
8810                           else
8811                             no_cache=1
8812                           fi
8813
8814                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8815
8816 fi;
8817
8818           eval "$ac_cv_use_listctrl"
8819           if test "$no_cache" != 1; then
8820             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8821           fi
8822
8823           if test "$wxUSE_LISTCTRL" = yes; then
8824             echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826           else
8827             echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6
8829           fi
8830
8831
8832           enablestring=
8833           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8834 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8835           no_cache=0
8836           # Check whether --enable-notebook or --disable-notebook was given.
8837 if test "${enable_notebook+set}" = set; then
8838   enableval="$enable_notebook"
8839
8840                           if test "$enableval" = yes; then
8841                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8842                           else
8843                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8844                           fi
8845
8846 else
8847
8848                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8849                           if test "x$LINE" != x ; then
8850                             eval "DEFAULT_$LINE"
8851                           else
8852                             no_cache=1
8853                           fi
8854
8855                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8856
8857 fi;
8858
8859           eval "$ac_cv_use_notebook"
8860           if test "$no_cache" != 1; then
8861             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8862           fi
8863
8864           if test "$wxUSE_NOTEBOOK" = yes; then
8865             echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8867           else
8868             echo "$as_me:$LINENO: result: no" >&5
8869 echo "${ECHO_T}no" >&6
8870           fi
8871
8872
8873           enablestring=
8874           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8875 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8876           no_cache=0
8877           # Check whether --enable-odcombobox or --disable-odcombobox was given.
8878 if test "${enable_odcombobox+set}" = set; then
8879   enableval="$enable_odcombobox"
8880
8881                           if test "$enableval" = yes; then
8882                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8883                           else
8884                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8885                           fi
8886
8887 else
8888
8889                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8890                           if test "x$LINE" != x ; then
8891                             eval "DEFAULT_$LINE"
8892                           else
8893                             no_cache=1
8894                           fi
8895
8896                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8897
8898 fi;
8899
8900           eval "$ac_cv_use_odcombobox"
8901           if test "$no_cache" != 1; then
8902             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8903           fi
8904
8905           if test "$wxUSE_ODCOMBOBOX" = yes; then
8906             echo "$as_me:$LINENO: result: yes" >&5
8907 echo "${ECHO_T}yes" >&6
8908           else
8909             echo "$as_me:$LINENO: result: no" >&5
8910 echo "${ECHO_T}no" >&6
8911           fi
8912
8913
8914           enablestring=
8915           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8916 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8917           no_cache=0
8918           # Check whether --enable-radiobox or --disable-radiobox was given.
8919 if test "${enable_radiobox+set}" = set; then
8920   enableval="$enable_radiobox"
8921
8922                           if test "$enableval" = yes; then
8923                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8924                           else
8925                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8926                           fi
8927
8928 else
8929
8930                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8931                           if test "x$LINE" != x ; then
8932                             eval "DEFAULT_$LINE"
8933                           else
8934                             no_cache=1
8935                           fi
8936
8937                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8938
8939 fi;
8940
8941           eval "$ac_cv_use_radiobox"
8942           if test "$no_cache" != 1; then
8943             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8944           fi
8945
8946           if test "$wxUSE_RADIOBOX" = yes; then
8947             echo "$as_me:$LINENO: result: yes" >&5
8948 echo "${ECHO_T}yes" >&6
8949           else
8950             echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8952           fi
8953
8954
8955           enablestring=
8956           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8957 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8958           no_cache=0
8959           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8960 if test "${enable_radiobtn+set}" = set; then
8961   enableval="$enable_radiobtn"
8962
8963                           if test "$enableval" = yes; then
8964                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8965                           else
8966                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8967                           fi
8968
8969 else
8970
8971                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8972                           if test "x$LINE" != x ; then
8973                             eval "DEFAULT_$LINE"
8974                           else
8975                             no_cache=1
8976                           fi
8977
8978                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8979
8980 fi;
8981
8982           eval "$ac_cv_use_radiobtn"
8983           if test "$no_cache" != 1; then
8984             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8985           fi
8986
8987           if test "$wxUSE_RADIOBTN" = yes; then
8988             echo "$as_me:$LINENO: result: yes" >&5
8989 echo "${ECHO_T}yes" >&6
8990           else
8991             echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6
8993           fi
8994
8995
8996           enablestring=
8997           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8998 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8999           no_cache=0
9000           # Check whether --enable-sash or --disable-sash was given.
9001 if test "${enable_sash+set}" = set; then
9002   enableval="$enable_sash"
9003
9004                           if test "$enableval" = yes; then
9005                             ac_cv_use_sash='wxUSE_SASH=yes'
9006                           else
9007                             ac_cv_use_sash='wxUSE_SASH=no'
9008                           fi
9009
9010 else
9011
9012                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9013                           if test "x$LINE" != x ; then
9014                             eval "DEFAULT_$LINE"
9015                           else
9016                             no_cache=1
9017                           fi
9018
9019                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9020
9021 fi;
9022
9023           eval "$ac_cv_use_sash"
9024           if test "$no_cache" != 1; then
9025             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9026           fi
9027
9028           if test "$wxUSE_SASH" = yes; then
9029             echo "$as_me:$LINENO: result: yes" >&5
9030 echo "${ECHO_T}yes" >&6
9031           else
9032             echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9034           fi
9035
9036
9037           enablestring=
9038           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9039 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9040           no_cache=0
9041           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9042 if test "${enable_scrollbar+set}" = set; then
9043   enableval="$enable_scrollbar"
9044
9045                           if test "$enableval" = yes; then
9046                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9047                           else
9048                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9049                           fi
9050
9051 else
9052
9053                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9054                           if test "x$LINE" != x ; then
9055                             eval "DEFAULT_$LINE"
9056                           else
9057                             no_cache=1
9058                           fi
9059
9060                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9061
9062 fi;
9063
9064           eval "$ac_cv_use_scrollbar"
9065           if test "$no_cache" != 1; then
9066             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9067           fi
9068
9069           if test "$wxUSE_SCROLLBAR" = yes; then
9070             echo "$as_me:$LINENO: result: yes" >&5
9071 echo "${ECHO_T}yes" >&6
9072           else
9073             echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9075           fi
9076
9077
9078           enablestring=
9079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9080 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9081           no_cache=0
9082           # Check whether --enable-slider or --disable-slider was given.
9083 if test "${enable_slider+set}" = set; then
9084   enableval="$enable_slider"
9085
9086                           if test "$enableval" = yes; then
9087                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9088                           else
9089                             ac_cv_use_slider='wxUSE_SLIDER=no'
9090                           fi
9091
9092 else
9093
9094                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9095                           if test "x$LINE" != x ; then
9096                             eval "DEFAULT_$LINE"
9097                           else
9098                             no_cache=1
9099                           fi
9100
9101                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9102
9103 fi;
9104
9105           eval "$ac_cv_use_slider"
9106           if test "$no_cache" != 1; then
9107             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9108           fi
9109
9110           if test "$wxUSE_SLIDER" = yes; then
9111             echo "$as_me:$LINENO: result: yes" >&5
9112 echo "${ECHO_T}yes" >&6
9113           else
9114             echo "$as_me:$LINENO: result: no" >&5
9115 echo "${ECHO_T}no" >&6
9116           fi
9117
9118
9119           enablestring=
9120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9121 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9122           no_cache=0
9123           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9124 if test "${enable_spinbtn+set}" = set; then
9125   enableval="$enable_spinbtn"
9126
9127                           if test "$enableval" = yes; then
9128                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9129                           else
9130                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9131                           fi
9132
9133 else
9134
9135                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9136                           if test "x$LINE" != x ; then
9137                             eval "DEFAULT_$LINE"
9138                           else
9139                             no_cache=1
9140                           fi
9141
9142                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9143
9144 fi;
9145
9146           eval "$ac_cv_use_spinbtn"
9147           if test "$no_cache" != 1; then
9148             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9149           fi
9150
9151           if test "$wxUSE_SPINBTN" = yes; then
9152             echo "$as_me:$LINENO: result: yes" >&5
9153 echo "${ECHO_T}yes" >&6
9154           else
9155             echo "$as_me:$LINENO: result: no" >&5
9156 echo "${ECHO_T}no" >&6
9157           fi
9158
9159
9160           enablestring=
9161           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9162 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9163           no_cache=0
9164           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9165 if test "${enable_spinctrl+set}" = set; then
9166   enableval="$enable_spinctrl"
9167
9168                           if test "$enableval" = yes; then
9169                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9170                           else
9171                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9172                           fi
9173
9174 else
9175
9176                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9177                           if test "x$LINE" != x ; then
9178                             eval "DEFAULT_$LINE"
9179                           else
9180                             no_cache=1
9181                           fi
9182
9183                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9184
9185 fi;
9186
9187           eval "$ac_cv_use_spinctrl"
9188           if test "$no_cache" != 1; then
9189             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9190           fi
9191
9192           if test "$wxUSE_SPINCTRL" = yes; then
9193             echo "$as_me:$LINENO: result: yes" >&5
9194 echo "${ECHO_T}yes" >&6
9195           else
9196             echo "$as_me:$LINENO: result: no" >&5
9197 echo "${ECHO_T}no" >&6
9198           fi
9199
9200
9201           enablestring=
9202           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9203 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9204           no_cache=0
9205           # Check whether --enable-splitter or --disable-splitter was given.
9206 if test "${enable_splitter+set}" = set; then
9207   enableval="$enable_splitter"
9208
9209                           if test "$enableval" = yes; then
9210                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9211                           else
9212                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9213                           fi
9214
9215 else
9216
9217                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9218                           if test "x$LINE" != x ; then
9219                             eval "DEFAULT_$LINE"
9220                           else
9221                             no_cache=1
9222                           fi
9223
9224                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9225
9226 fi;
9227
9228           eval "$ac_cv_use_splitter"
9229           if test "$no_cache" != 1; then
9230             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9231           fi
9232
9233           if test "$wxUSE_SPLITTER" = yes; then
9234             echo "$as_me:$LINENO: result: yes" >&5
9235 echo "${ECHO_T}yes" >&6
9236           else
9237             echo "$as_me:$LINENO: result: no" >&5
9238 echo "${ECHO_T}no" >&6
9239           fi
9240
9241
9242           enablestring=
9243           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9244 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9245           no_cache=0
9246           # Check whether --enable-statbmp or --disable-statbmp was given.
9247 if test "${enable_statbmp+set}" = set; then
9248   enableval="$enable_statbmp"
9249
9250                           if test "$enableval" = yes; then
9251                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9252                           else
9253                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9254                           fi
9255
9256 else
9257
9258                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9259                           if test "x$LINE" != x ; then
9260                             eval "DEFAULT_$LINE"
9261                           else
9262                             no_cache=1
9263                           fi
9264
9265                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9266
9267 fi;
9268
9269           eval "$ac_cv_use_statbmp"
9270           if test "$no_cache" != 1; then
9271             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9272           fi
9273
9274           if test "$wxUSE_STATBMP" = yes; then
9275             echo "$as_me:$LINENO: result: yes" >&5
9276 echo "${ECHO_T}yes" >&6
9277           else
9278             echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6
9280           fi
9281
9282
9283           enablestring=
9284           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9285 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9286           no_cache=0
9287           # Check whether --enable-statbox or --disable-statbox was given.
9288 if test "${enable_statbox+set}" = set; then
9289   enableval="$enable_statbox"
9290
9291                           if test "$enableval" = yes; then
9292                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9293                           else
9294                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9295                           fi
9296
9297 else
9298
9299                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9300                           if test "x$LINE" != x ; then
9301                             eval "DEFAULT_$LINE"
9302                           else
9303                             no_cache=1
9304                           fi
9305
9306                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9307
9308 fi;
9309
9310           eval "$ac_cv_use_statbox"
9311           if test "$no_cache" != 1; then
9312             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9313           fi
9314
9315           if test "$wxUSE_STATBOX" = yes; then
9316             echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6
9318           else
9319             echo "$as_me:$LINENO: result: no" >&5
9320 echo "${ECHO_T}no" >&6
9321           fi
9322
9323
9324           enablestring=
9325           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9326 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9327           no_cache=0
9328           # Check whether --enable-statline or --disable-statline was given.
9329 if test "${enable_statline+set}" = set; then
9330   enableval="$enable_statline"
9331
9332                           if test "$enableval" = yes; then
9333                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9334                           else
9335                             ac_cv_use_statline='wxUSE_STATLINE=no'
9336                           fi
9337
9338 else
9339
9340                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9341                           if test "x$LINE" != x ; then
9342                             eval "DEFAULT_$LINE"
9343                           else
9344                             no_cache=1
9345                           fi
9346
9347                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9348
9349 fi;
9350
9351           eval "$ac_cv_use_statline"
9352           if test "$no_cache" != 1; then
9353             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9354           fi
9355
9356           if test "$wxUSE_STATLINE" = yes; then
9357             echo "$as_me:$LINENO: result: yes" >&5
9358 echo "${ECHO_T}yes" >&6
9359           else
9360             echo "$as_me:$LINENO: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9362           fi
9363
9364
9365           enablestring=
9366           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9367 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9368           no_cache=0
9369           # Check whether --enable-stattext or --disable-stattext was given.
9370 if test "${enable_stattext+set}" = set; then
9371   enableval="$enable_stattext"
9372
9373                           if test "$enableval" = yes; then
9374                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9375                           else
9376                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9377                           fi
9378
9379 else
9380
9381                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9382                           if test "x$LINE" != x ; then
9383                             eval "DEFAULT_$LINE"
9384                           else
9385                             no_cache=1
9386                           fi
9387
9388                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9389
9390 fi;
9391
9392           eval "$ac_cv_use_stattext"
9393           if test "$no_cache" != 1; then
9394             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9395           fi
9396
9397           if test "$wxUSE_STATTEXT" = yes; then
9398             echo "$as_me:$LINENO: result: yes" >&5
9399 echo "${ECHO_T}yes" >&6
9400           else
9401             echo "$as_me:$LINENO: result: no" >&5
9402 echo "${ECHO_T}no" >&6
9403           fi
9404
9405
9406           enablestring=
9407           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9408 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9409           no_cache=0
9410           # Check whether --enable-statusbar or --disable-statusbar was given.
9411 if test "${enable_statusbar+set}" = set; then
9412   enableval="$enable_statusbar"
9413
9414                           if test "$enableval" = yes; then
9415                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9416                           else
9417                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9418                           fi
9419
9420 else
9421
9422                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9423                           if test "x$LINE" != x ; then
9424                             eval "DEFAULT_$LINE"
9425                           else
9426                             no_cache=1
9427                           fi
9428
9429                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9430
9431 fi;
9432
9433           eval "$ac_cv_use_statusbar"
9434           if test "$no_cache" != 1; then
9435             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9436           fi
9437
9438           if test "$wxUSE_STATUSBAR" = yes; then
9439             echo "$as_me:$LINENO: result: yes" >&5
9440 echo "${ECHO_T}yes" >&6
9441           else
9442             echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6
9444           fi
9445
9446
9447           enablestring=
9448           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9449 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9450           no_cache=0
9451           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9452 if test "${enable_tabdialog+set}" = set; then
9453   enableval="$enable_tabdialog"
9454
9455                           if test "$enableval" = yes; then
9456                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9457                           else
9458                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9459                           fi
9460
9461 else
9462
9463                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9464                           if test "x$LINE" != x ; then
9465                             eval "DEFAULT_$LINE"
9466                           else
9467                             no_cache=1
9468                           fi
9469
9470                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9471
9472 fi;
9473
9474           eval "$ac_cv_use_tabdialog"
9475           if test "$no_cache" != 1; then
9476             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9477           fi
9478
9479           if test "$wxUSE_TAB_DIALOG" = yes; then
9480             echo "$as_me:$LINENO: result: yes" >&5
9481 echo "${ECHO_T}yes" >&6
9482           else
9483             echo "$as_me:$LINENO: result: no" >&5
9484 echo "${ECHO_T}no" >&6
9485           fi
9486
9487
9488           enablestring=
9489           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9490 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9491           no_cache=0
9492           # Check whether --enable-textctrl or --disable-textctrl was given.
9493 if test "${enable_textctrl+set}" = set; then
9494   enableval="$enable_textctrl"
9495
9496                           if test "$enableval" = yes; then
9497                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9498                           else
9499                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9500                           fi
9501
9502 else
9503
9504                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9505                           if test "x$LINE" != x ; then
9506                             eval "DEFAULT_$LINE"
9507                           else
9508                             no_cache=1
9509                           fi
9510
9511                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9512
9513 fi;
9514
9515           eval "$ac_cv_use_textctrl"
9516           if test "$no_cache" != 1; then
9517             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9518           fi
9519
9520           if test "$wxUSE_TEXTCTRL" = yes; then
9521             echo "$as_me:$LINENO: result: yes" >&5
9522 echo "${ECHO_T}yes" >&6
9523           else
9524             echo "$as_me:$LINENO: result: no" >&5
9525 echo "${ECHO_T}no" >&6
9526           fi
9527
9528
9529           enablestring=
9530           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9531 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9532           no_cache=0
9533           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9534 if test "${enable_togglebtn+set}" = set; then
9535   enableval="$enable_togglebtn"
9536
9537                           if test "$enableval" = yes; then
9538                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9539                           else
9540                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9541                           fi
9542
9543 else
9544
9545                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9546                           if test "x$LINE" != x ; then
9547                             eval "DEFAULT_$LINE"
9548                           else
9549                             no_cache=1
9550                           fi
9551
9552                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9553
9554 fi;
9555
9556           eval "$ac_cv_use_togglebtn"
9557           if test "$no_cache" != 1; then
9558             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9559           fi
9560
9561           if test "$wxUSE_TOGGLEBTN" = yes; then
9562             echo "$as_me:$LINENO: result: yes" >&5
9563 echo "${ECHO_T}yes" >&6
9564           else
9565             echo "$as_me:$LINENO: result: no" >&5
9566 echo "${ECHO_T}no" >&6
9567           fi
9568
9569
9570           enablestring=
9571           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9572 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9573           no_cache=0
9574           # Check whether --enable-toolbar or --disable-toolbar was given.
9575 if test "${enable_toolbar+set}" = set; then
9576   enableval="$enable_toolbar"
9577
9578                           if test "$enableval" = yes; then
9579                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9580                           else
9581                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9582                           fi
9583
9584 else
9585
9586                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9587                           if test "x$LINE" != x ; then
9588                             eval "DEFAULT_$LINE"
9589                           else
9590                             no_cache=1
9591                           fi
9592
9593                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9594
9595 fi;
9596
9597           eval "$ac_cv_use_toolbar"
9598           if test "$no_cache" != 1; then
9599             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9600           fi
9601
9602           if test "$wxUSE_TOOLBAR" = yes; then
9603             echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6
9605           else
9606             echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9608           fi
9609
9610
9611           enablestring=
9612           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9613 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9614           no_cache=0
9615           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9616 if test "${enable_tbarnative+set}" = set; then
9617   enableval="$enable_tbarnative"
9618
9619                           if test "$enableval" = yes; then
9620                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9621                           else
9622                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9623                           fi
9624
9625 else
9626
9627                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9628                           if test "x$LINE" != x ; then
9629                             eval "DEFAULT_$LINE"
9630                           else
9631                             no_cache=1
9632                           fi
9633
9634                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9635
9636 fi;
9637
9638           eval "$ac_cv_use_tbarnative"
9639           if test "$no_cache" != 1; then
9640             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9641           fi
9642
9643           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9644             echo "$as_me:$LINENO: result: yes" >&5
9645 echo "${ECHO_T}yes" >&6
9646           else
9647             echo "$as_me:$LINENO: result: no" >&5
9648 echo "${ECHO_T}no" >&6
9649           fi
9650
9651
9652           enablestring=
9653           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9654 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9655           no_cache=0
9656           # Check whether --enable-treebook or --disable-treebook was given.
9657 if test "${enable_treebook+set}" = set; then
9658   enableval="$enable_treebook"
9659
9660                           if test "$enableval" = yes; then
9661                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9662                           else
9663                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9664                           fi
9665
9666 else
9667
9668                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9669                           if test "x$LINE" != x ; then
9670                             eval "DEFAULT_$LINE"
9671                           else
9672                             no_cache=1
9673                           fi
9674
9675                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9676
9677 fi;
9678
9679           eval "$ac_cv_use_treebook"
9680           if test "$no_cache" != 1; then
9681             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9682           fi
9683
9684           if test "$wxUSE_TREEBOOK" = yes; then
9685             echo "$as_me:$LINENO: result: yes" >&5
9686 echo "${ECHO_T}yes" >&6
9687           else
9688             echo "$as_me:$LINENO: result: no" >&5
9689 echo "${ECHO_T}no" >&6
9690           fi
9691
9692
9693           enablestring=
9694           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9695 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9696           no_cache=0
9697           # Check whether --enable-toolbook or --disable-toolbook was given.
9698 if test "${enable_toolbook+set}" = set; then
9699   enableval="$enable_toolbook"
9700
9701                           if test "$enableval" = yes; then
9702                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9703                           else
9704                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9705                           fi
9706
9707 else
9708
9709                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9710                           if test "x$LINE" != x ; then
9711                             eval "DEFAULT_$LINE"
9712                           else
9713                             no_cache=1
9714                           fi
9715
9716                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9717
9718 fi;
9719
9720           eval "$ac_cv_use_toolbook"
9721           if test "$no_cache" != 1; then
9722             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9723           fi
9724
9725           if test "$wxUSE_TOOLBOOK" = yes; then
9726             echo "$as_me:$LINENO: result: yes" >&5
9727 echo "${ECHO_T}yes" >&6
9728           else
9729             echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9731           fi
9732
9733
9734           enablestring=
9735           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9736 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9737           no_cache=0
9738           # Check whether --enable-treectrl or --disable-treectrl was given.
9739 if test "${enable_treectrl+set}" = set; then
9740   enableval="$enable_treectrl"
9741
9742                           if test "$enableval" = yes; then
9743                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9744                           else
9745                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9746                           fi
9747
9748 else
9749
9750                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9751                           if test "x$LINE" != x ; then
9752                             eval "DEFAULT_$LINE"
9753                           else
9754                             no_cache=1
9755                           fi
9756
9757                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9758
9759 fi;
9760
9761           eval "$ac_cv_use_treectrl"
9762           if test "$no_cache" != 1; then
9763             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9764           fi
9765
9766           if test "$wxUSE_TREECTRL" = yes; then
9767             echo "$as_me:$LINENO: result: yes" >&5
9768 echo "${ECHO_T}yes" >&6
9769           else
9770             echo "$as_me:$LINENO: result: no" >&5
9771 echo "${ECHO_T}no" >&6
9772           fi
9773
9774
9775           enablestring=
9776           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9777 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9778           no_cache=0
9779           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9780 if test "${enable_tipwindow+set}" = set; then
9781   enableval="$enable_tipwindow"
9782
9783                           if test "$enableval" = yes; then
9784                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9785                           else
9786                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9787                           fi
9788
9789 else
9790
9791                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9792                           if test "x$LINE" != x ; then
9793                             eval "DEFAULT_$LINE"
9794                           else
9795                             no_cache=1
9796                           fi
9797
9798                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9799
9800 fi;
9801
9802           eval "$ac_cv_use_tipwindow"
9803           if test "$no_cache" != 1; then
9804             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9805           fi
9806
9807           if test "$wxUSE_TIPWINDOW" = yes; then
9808             echo "$as_me:$LINENO: result: yes" >&5
9809 echo "${ECHO_T}yes" >&6
9810           else
9811             echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9813           fi
9814
9815
9816           enablestring=
9817           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9818 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9819           no_cache=0
9820           # Check whether --enable-popupwin or --disable-popupwin was given.
9821 if test "${enable_popupwin+set}" = set; then
9822   enableval="$enable_popupwin"
9823
9824                           if test "$enableval" = yes; then
9825                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9826                           else
9827                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9828                           fi
9829
9830 else
9831
9832                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9833                           if test "x$LINE" != x ; then
9834                             eval "DEFAULT_$LINE"
9835                           else
9836                             no_cache=1
9837                           fi
9838
9839                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9840
9841 fi;
9842
9843           eval "$ac_cv_use_popupwin"
9844           if test "$no_cache" != 1; then
9845             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9846           fi
9847
9848           if test "$wxUSE_POPUPWIN" = yes; then
9849             echo "$as_me:$LINENO: result: yes" >&5
9850 echo "${ECHO_T}yes" >&6
9851           else
9852             echo "$as_me:$LINENO: result: no" >&5
9853 echo "${ECHO_T}no" >&6
9854           fi
9855
9856
9857
9858
9859           enablestring=
9860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9861 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9862           no_cache=0
9863           # Check whether --enable-commondlg or --disable-commondlg was given.
9864 if test "${enable_commondlg+set}" = set; then
9865   enableval="$enable_commondlg"
9866
9867                           if test "$enableval" = yes; then
9868                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9869                           else
9870                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9871                           fi
9872
9873 else
9874
9875                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9876                           if test "x$LINE" != x ; then
9877                             eval "DEFAULT_$LINE"
9878                           else
9879                             no_cache=1
9880                           fi
9881
9882                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9883
9884 fi;
9885
9886           eval "$ac_cv_use_commondlg"
9887           if test "$no_cache" != 1; then
9888             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9889           fi
9890
9891           if test "$wxUSE_COMMONDLGS" = yes; then
9892             echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9894           else
9895             echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6
9897           fi
9898
9899
9900           enablestring=
9901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9902 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9903           no_cache=0
9904           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9905 if test "${enable_choicedlg+set}" = set; then
9906   enableval="$enable_choicedlg"
9907
9908                           if test "$enableval" = yes; then
9909                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9910                           else
9911                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9912                           fi
9913
9914 else
9915
9916                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9917                           if test "x$LINE" != x ; then
9918                             eval "DEFAULT_$LINE"
9919                           else
9920                             no_cache=1
9921                           fi
9922
9923                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9924
9925 fi;
9926
9927           eval "$ac_cv_use_choicedlg"
9928           if test "$no_cache" != 1; then
9929             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9930           fi
9931
9932           if test "$wxUSE_CHOICEDLG" = yes; then
9933             echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9935           else
9936             echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9938           fi
9939
9940
9941           enablestring=
9942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9943 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9944           no_cache=0
9945           # Check whether --enable-coldlg or --disable-coldlg was given.
9946 if test "${enable_coldlg+set}" = set; then
9947   enableval="$enable_coldlg"
9948
9949                           if test "$enableval" = yes; then
9950                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9951                           else
9952                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9953                           fi
9954
9955 else
9956
9957                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9958                           if test "x$LINE" != x ; then
9959                             eval "DEFAULT_$LINE"
9960                           else
9961                             no_cache=1
9962                           fi
9963
9964                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9965
9966 fi;
9967
9968           eval "$ac_cv_use_coldlg"
9969           if test "$no_cache" != 1; then
9970             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9971           fi
9972
9973           if test "$wxUSE_COLOURDLG" = yes; then
9974             echo "$as_me:$LINENO: result: yes" >&5
9975 echo "${ECHO_T}yes" >&6
9976           else
9977             echo "$as_me:$LINENO: result: no" >&5
9978 echo "${ECHO_T}no" >&6
9979           fi
9980
9981
9982           enablestring=
9983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9984 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9985           no_cache=0
9986           # Check whether --enable-filedlg or --disable-filedlg was given.
9987 if test "${enable_filedlg+set}" = set; then
9988   enableval="$enable_filedlg"
9989
9990                           if test "$enableval" = yes; then
9991                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9992                           else
9993                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9994                           fi
9995
9996 else
9997
9998                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9999                           if test "x$LINE" != x ; then
10000                             eval "DEFAULT_$LINE"
10001                           else
10002                             no_cache=1
10003                           fi
10004
10005                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10006
10007 fi;
10008
10009           eval "$ac_cv_use_filedlg"
10010           if test "$no_cache" != 1; then
10011             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10012           fi
10013
10014           if test "$wxUSE_FILEDLG" = yes; then
10015             echo "$as_me:$LINENO: result: yes" >&5
10016 echo "${ECHO_T}yes" >&6
10017           else
10018             echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10020           fi
10021
10022
10023           enablestring=
10024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10025 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10026           no_cache=0
10027           # Check whether --enable-finddlg or --disable-finddlg was given.
10028 if test "${enable_finddlg+set}" = set; then
10029   enableval="$enable_finddlg"
10030
10031                           if test "$enableval" = yes; then
10032                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10033                           else
10034                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10035                           fi
10036
10037 else
10038
10039                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10040                           if test "x$LINE" != x ; then
10041                             eval "DEFAULT_$LINE"
10042                           else
10043                             no_cache=1
10044                           fi
10045
10046                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10047
10048 fi;
10049
10050           eval "$ac_cv_use_finddlg"
10051           if test "$no_cache" != 1; then
10052             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10053           fi
10054
10055           if test "$wxUSE_FINDREPLDLG" = yes; then
10056             echo "$as_me:$LINENO: result: yes" >&5
10057 echo "${ECHO_T}yes" >&6
10058           else
10059             echo "$as_me:$LINENO: result: no" >&5
10060 echo "${ECHO_T}no" >&6
10061           fi
10062
10063
10064           enablestring=
10065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10066 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10067           no_cache=0
10068           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10069 if test "${enable_fontdlg+set}" = set; then
10070   enableval="$enable_fontdlg"
10071
10072                           if test "$enableval" = yes; then
10073                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10074                           else
10075                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10076                           fi
10077
10078 else
10079
10080                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10081                           if test "x$LINE" != x ; then
10082                             eval "DEFAULT_$LINE"
10083                           else
10084                             no_cache=1
10085                           fi
10086
10087                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10088
10089 fi;
10090
10091           eval "$ac_cv_use_fontdlg"
10092           if test "$no_cache" != 1; then
10093             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10094           fi
10095
10096           if test "$wxUSE_FONTDLG" = yes; then
10097             echo "$as_me:$LINENO: result: yes" >&5
10098 echo "${ECHO_T}yes" >&6
10099           else
10100             echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6
10102           fi
10103
10104
10105           enablestring=
10106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10107 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10108           no_cache=0
10109           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10110 if test "${enable_dirdlg+set}" = set; then
10111   enableval="$enable_dirdlg"
10112
10113                           if test "$enableval" = yes; then
10114                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10115                           else
10116                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10117                           fi
10118
10119 else
10120
10121                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10122                           if test "x$LINE" != x ; then
10123                             eval "DEFAULT_$LINE"
10124                           else
10125                             no_cache=1
10126                           fi
10127
10128                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10129
10130 fi;
10131
10132           eval "$ac_cv_use_dirdlg"
10133           if test "$no_cache" != 1; then
10134             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10135           fi
10136
10137           if test "$wxUSE_DIRDLG" = yes; then
10138             echo "$as_me:$LINENO: result: yes" >&5
10139 echo "${ECHO_T}yes" >&6
10140           else
10141             echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10143           fi
10144
10145
10146           enablestring=
10147           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10148 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10149           no_cache=0
10150           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10151 if test "${enable_msgdlg+set}" = set; then
10152   enableval="$enable_msgdlg"
10153
10154                           if test "$enableval" = yes; then
10155                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10156                           else
10157                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10158                           fi
10159
10160 else
10161
10162                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10163                           if test "x$LINE" != x ; then
10164                             eval "DEFAULT_$LINE"
10165                           else
10166                             no_cache=1
10167                           fi
10168
10169                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10170
10171 fi;
10172
10173           eval "$ac_cv_use_msgdlg"
10174           if test "$no_cache" != 1; then
10175             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10176           fi
10177
10178           if test "$wxUSE_MSGDLG" = yes; then
10179             echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6
10181           else
10182             echo "$as_me:$LINENO: result: no" >&5
10183 echo "${ECHO_T}no" >&6
10184           fi
10185
10186
10187           enablestring=
10188           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10189 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10190           no_cache=0
10191           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10192 if test "${enable_numberdlg+set}" = set; then
10193   enableval="$enable_numberdlg"
10194
10195                           if test "$enableval" = yes; then
10196                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10197                           else
10198                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10199                           fi
10200
10201 else
10202
10203                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10204                           if test "x$LINE" != x ; then
10205                             eval "DEFAULT_$LINE"
10206                           else
10207                             no_cache=1
10208                           fi
10209
10210                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10211
10212 fi;
10213
10214           eval "$ac_cv_use_numberdlg"
10215           if test "$no_cache" != 1; then
10216             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10217           fi
10218
10219           if test "$wxUSE_NUMBERDLG" = yes; then
10220             echo "$as_me:$LINENO: result: yes" >&5
10221 echo "${ECHO_T}yes" >&6
10222           else
10223             echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10225           fi
10226
10227
10228           enablestring=
10229           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10230 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10231           no_cache=0
10232           # Check whether --enable-splash or --disable-splash was given.
10233 if test "${enable_splash+set}" = set; then
10234   enableval="$enable_splash"
10235
10236                           if test "$enableval" = yes; then
10237                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10238                           else
10239                             ac_cv_use_splash='wxUSE_SPLASH=no'
10240                           fi
10241
10242 else
10243
10244                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10245                           if test "x$LINE" != x ; then
10246                             eval "DEFAULT_$LINE"
10247                           else
10248                             no_cache=1
10249                           fi
10250
10251                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10252
10253 fi;
10254
10255           eval "$ac_cv_use_splash"
10256           if test "$no_cache" != 1; then
10257             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10258           fi
10259
10260           if test "$wxUSE_SPLASH" = yes; then
10261             echo "$as_me:$LINENO: result: yes" >&5
10262 echo "${ECHO_T}yes" >&6
10263           else
10264             echo "$as_me:$LINENO: result: no" >&5
10265 echo "${ECHO_T}no" >&6
10266           fi
10267
10268
10269           enablestring=
10270           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10271 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10272           no_cache=0
10273           # Check whether --enable-textdlg or --disable-textdlg was given.
10274 if test "${enable_textdlg+set}" = set; then
10275   enableval="$enable_textdlg"
10276
10277                           if test "$enableval" = yes; then
10278                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10279                           else
10280                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10281                           fi
10282
10283 else
10284
10285                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10286                           if test "x$LINE" != x ; then
10287                             eval "DEFAULT_$LINE"
10288                           else
10289                             no_cache=1
10290                           fi
10291
10292                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10293
10294 fi;
10295
10296           eval "$ac_cv_use_textdlg"
10297           if test "$no_cache" != 1; then
10298             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10299           fi
10300
10301           if test "$wxUSE_TEXTDLG" = yes; then
10302             echo "$as_me:$LINENO: result: yes" >&5
10303 echo "${ECHO_T}yes" >&6
10304           else
10305             echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6
10307           fi
10308
10309
10310           enablestring=
10311           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10312 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10313           no_cache=0
10314           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10315 if test "${enable_tipdlg+set}" = set; then
10316   enableval="$enable_tipdlg"
10317
10318                           if test "$enableval" = yes; then
10319                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10320                           else
10321                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10322                           fi
10323
10324 else
10325
10326                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10327                           if test "x$LINE" != x ; then
10328                             eval "DEFAULT_$LINE"
10329                           else
10330                             no_cache=1
10331                           fi
10332
10333                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10334
10335 fi;
10336
10337           eval "$ac_cv_use_tipdlg"
10338           if test "$no_cache" != 1; then
10339             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10340           fi
10341
10342           if test "$wxUSE_STARTUP_TIPS" = yes; then
10343             echo "$as_me:$LINENO: result: yes" >&5
10344 echo "${ECHO_T}yes" >&6
10345           else
10346             echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6
10348           fi
10349
10350
10351           enablestring=
10352           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10353 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10354           no_cache=0
10355           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10356 if test "${enable_progressdlg+set}" = set; then
10357   enableval="$enable_progressdlg"
10358
10359                           if test "$enableval" = yes; then
10360                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10361                           else
10362                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10363                           fi
10364
10365 else
10366
10367                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10368                           if test "x$LINE" != x ; then
10369                             eval "DEFAULT_$LINE"
10370                           else
10371                             no_cache=1
10372                           fi
10373
10374                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10375
10376 fi;
10377
10378           eval "$ac_cv_use_progressdlg"
10379           if test "$no_cache" != 1; then
10380             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10381           fi
10382
10383           if test "$wxUSE_PROGRESSDLG" = yes; then
10384             echo "$as_me:$LINENO: result: yes" >&5
10385 echo "${ECHO_T}yes" >&6
10386           else
10387             echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6
10389           fi
10390
10391
10392           enablestring=
10393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10394 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10395           no_cache=0
10396           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10397 if test "${enable_wizarddlg+set}" = set; then
10398   enableval="$enable_wizarddlg"
10399
10400                           if test "$enableval" = yes; then
10401                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10402                           else
10403                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10404                           fi
10405
10406 else
10407
10408                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10409                           if test "x$LINE" != x ; then
10410                             eval "DEFAULT_$LINE"
10411                           else
10412                             no_cache=1
10413                           fi
10414
10415                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10416
10417 fi;
10418
10419           eval "$ac_cv_use_wizarddlg"
10420           if test "$no_cache" != 1; then
10421             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10422           fi
10423
10424           if test "$wxUSE_WIZARDDLG" = yes; then
10425             echo "$as_me:$LINENO: result: yes" >&5
10426 echo "${ECHO_T}yes" >&6
10427           else
10428             echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10430           fi
10431
10432
10433
10434
10435           enablestring=
10436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10437 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10438           no_cache=0
10439           # Check whether --enable-menus or --disable-menus was given.
10440 if test "${enable_menus+set}" = set; then
10441   enableval="$enable_menus"
10442
10443                           if test "$enableval" = yes; then
10444                             ac_cv_use_menus='wxUSE_MENUS=yes'
10445                           else
10446                             ac_cv_use_menus='wxUSE_MENUS=no'
10447                           fi
10448
10449 else
10450
10451                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10452                           if test "x$LINE" != x ; then
10453                             eval "DEFAULT_$LINE"
10454                           else
10455                             no_cache=1
10456                           fi
10457
10458                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10459
10460 fi;
10461
10462           eval "$ac_cv_use_menus"
10463           if test "$no_cache" != 1; then
10464             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10465           fi
10466
10467           if test "$wxUSE_MENUS" = yes; then
10468             echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10470           else
10471             echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10473           fi
10474
10475
10476           enablestring=
10477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10478 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10479           no_cache=0
10480           # Check whether --enable-miniframe or --disable-miniframe was given.
10481 if test "${enable_miniframe+set}" = set; then
10482   enableval="$enable_miniframe"
10483
10484                           if test "$enableval" = yes; then
10485                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10486                           else
10487                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10488                           fi
10489
10490 else
10491
10492                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10493                           if test "x$LINE" != x ; then
10494                             eval "DEFAULT_$LINE"
10495                           else
10496                             no_cache=1
10497                           fi
10498
10499                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10500
10501 fi;
10502
10503           eval "$ac_cv_use_miniframe"
10504           if test "$no_cache" != 1; then
10505             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10506           fi
10507
10508           if test "$wxUSE_MINIFRAME" = yes; then
10509             echo "$as_me:$LINENO: result: yes" >&5
10510 echo "${ECHO_T}yes" >&6
10511           else
10512             echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6
10514           fi
10515
10516
10517           enablestring=
10518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10519 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10520           no_cache=0
10521           # Check whether --enable-tooltips or --disable-tooltips was given.
10522 if test "${enable_tooltips+set}" = set; then
10523   enableval="$enable_tooltips"
10524
10525                           if test "$enableval" = yes; then
10526                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10527                           else
10528                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10529                           fi
10530
10531 else
10532
10533                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10534                           if test "x$LINE" != x ; then
10535                             eval "DEFAULT_$LINE"
10536                           else
10537                             no_cache=1
10538                           fi
10539
10540                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10541
10542 fi;
10543
10544           eval "$ac_cv_use_tooltips"
10545           if test "$no_cache" != 1; then
10546             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10547           fi
10548
10549           if test "$wxUSE_TOOLTIPS" = yes; then
10550             echo "$as_me:$LINENO: result: yes" >&5
10551 echo "${ECHO_T}yes" >&6
10552           else
10553             echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10555           fi
10556
10557
10558           enablestring=
10559           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10560 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10561           no_cache=0
10562           # Check whether --enable-splines or --disable-splines was given.
10563 if test "${enable_splines+set}" = set; then
10564   enableval="$enable_splines"
10565
10566                           if test "$enableval" = yes; then
10567                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10568                           else
10569                             ac_cv_use_splines='wxUSE_SPLINES=no'
10570                           fi
10571
10572 else
10573
10574                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10575                           if test "x$LINE" != x ; then
10576                             eval "DEFAULT_$LINE"
10577                           else
10578                             no_cache=1
10579                           fi
10580
10581                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10582
10583 fi;
10584
10585           eval "$ac_cv_use_splines"
10586           if test "$no_cache" != 1; then
10587             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10588           fi
10589
10590           if test "$wxUSE_SPLINES" = yes; then
10591             echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10593           else
10594             echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6
10596           fi
10597
10598
10599           enablestring=
10600           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10601 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10602           no_cache=0
10603           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10604 if test "${enable_mousewheel+set}" = set; then
10605   enableval="$enable_mousewheel"
10606
10607                           if test "$enableval" = yes; then
10608                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10609                           else
10610                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10611                           fi
10612
10613 else
10614
10615                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10616                           if test "x$LINE" != x ; then
10617                             eval "DEFAULT_$LINE"
10618                           else
10619                             no_cache=1
10620                           fi
10621
10622                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10623
10624 fi;
10625
10626           eval "$ac_cv_use_mousewheel"
10627           if test "$no_cache" != 1; then
10628             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10629           fi
10630
10631           if test "$wxUSE_MOUSEWHEEL" = yes; then
10632             echo "$as_me:$LINENO: result: yes" >&5
10633 echo "${ECHO_T}yes" >&6
10634           else
10635             echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6
10637           fi
10638
10639
10640           enablestring=
10641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10642 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10643           no_cache=0
10644           # Check whether --enable-validators or --disable-validators was given.
10645 if test "${enable_validators+set}" = set; then
10646   enableval="$enable_validators"
10647
10648                           if test "$enableval" = yes; then
10649                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10650                           else
10651                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10652                           fi
10653
10654 else
10655
10656                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10657                           if test "x$LINE" != x ; then
10658                             eval "DEFAULT_$LINE"
10659                           else
10660                             no_cache=1
10661                           fi
10662
10663                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10664
10665 fi;
10666
10667           eval "$ac_cv_use_validators"
10668           if test "$no_cache" != 1; then
10669             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10670           fi
10671
10672           if test "$wxUSE_VALIDATORS" = yes; then
10673             echo "$as_me:$LINENO: result: yes" >&5
10674 echo "${ECHO_T}yes" >&6
10675           else
10676             echo "$as_me:$LINENO: result: no" >&5
10677 echo "${ECHO_T}no" >&6
10678           fi
10679
10680
10681           enablestring=
10682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10683 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10684           no_cache=0
10685           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10686 if test "${enable_busyinfo+set}" = set; then
10687   enableval="$enable_busyinfo"
10688
10689                           if test "$enableval" = yes; then
10690                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10691                           else
10692                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10693                           fi
10694
10695 else
10696
10697                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10698                           if test "x$LINE" != x ; then
10699                             eval "DEFAULT_$LINE"
10700                           else
10701                             no_cache=1
10702                           fi
10703
10704                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10705
10706 fi;
10707
10708           eval "$ac_cv_use_busyinfo"
10709           if test "$no_cache" != 1; then
10710             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10711           fi
10712
10713           if test "$wxUSE_BUSYINFO" = yes; then
10714             echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6
10716           else
10717             echo "$as_me:$LINENO: result: no" >&5
10718 echo "${ECHO_T}no" >&6
10719           fi
10720
10721
10722           enablestring=
10723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10724 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10725           no_cache=0
10726           # Check whether --enable-joystick or --disable-joystick was given.
10727 if test "${enable_joystick+set}" = set; then
10728   enableval="$enable_joystick"
10729
10730                           if test "$enableval" = yes; then
10731                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10732                           else
10733                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10734                           fi
10735
10736 else
10737
10738                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10739                           if test "x$LINE" != x ; then
10740                             eval "DEFAULT_$LINE"
10741                           else
10742                             no_cache=1
10743                           fi
10744
10745                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10746
10747 fi;
10748
10749           eval "$ac_cv_use_joystick"
10750           if test "$no_cache" != 1; then
10751             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10752           fi
10753
10754           if test "$wxUSE_JOYSTICK" = yes; then
10755             echo "$as_me:$LINENO: result: yes" >&5
10756 echo "${ECHO_T}yes" >&6
10757           else
10758             echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10760           fi
10761
10762
10763           enablestring=
10764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10765 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10766           no_cache=0
10767           # Check whether --enable-metafile or --disable-metafile was given.
10768 if test "${enable_metafile+set}" = set; then
10769   enableval="$enable_metafile"
10770
10771                           if test "$enableval" = yes; then
10772                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10773                           else
10774                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10775                           fi
10776
10777 else
10778
10779                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10780                           if test "x$LINE" != x ; then
10781                             eval "DEFAULT_$LINE"
10782                           else
10783                             no_cache=1
10784                           fi
10785
10786                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10787
10788 fi;
10789
10790           eval "$ac_cv_use_metafile"
10791           if test "$no_cache" != 1; then
10792             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10793           fi
10794
10795           if test "$wxUSE_METAFILE" = yes; then
10796             echo "$as_me:$LINENO: result: yes" >&5
10797 echo "${ECHO_T}yes" >&6
10798           else
10799             echo "$as_me:$LINENO: result: no" >&5
10800 echo "${ECHO_T}no" >&6
10801           fi
10802
10803
10804           enablestring=
10805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10806 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10807           no_cache=0
10808           # Check whether --enable-dragimage or --disable-dragimage was given.
10809 if test "${enable_dragimage+set}" = set; then
10810   enableval="$enable_dragimage"
10811
10812                           if test "$enableval" = yes; then
10813                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10814                           else
10815                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10816                           fi
10817
10818 else
10819
10820                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10821                           if test "x$LINE" != x ; then
10822                             eval "DEFAULT_$LINE"
10823                           else
10824                             no_cache=1
10825                           fi
10826
10827                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10828
10829 fi;
10830
10831           eval "$ac_cv_use_dragimage"
10832           if test "$no_cache" != 1; then
10833             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10834           fi
10835
10836           if test "$wxUSE_DRAGIMAGE" = yes; then
10837             echo "$as_me:$LINENO: result: yes" >&5
10838 echo "${ECHO_T}yes" >&6
10839           else
10840             echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6
10842           fi
10843
10844
10845           enablestring=
10846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10847 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10848           no_cache=0
10849           # Check whether --enable-accessibility or --disable-accessibility was given.
10850 if test "${enable_accessibility+set}" = set; then
10851   enableval="$enable_accessibility"
10852
10853                           if test "$enableval" = yes; then
10854                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10855                           else
10856                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10857                           fi
10858
10859 else
10860
10861                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10862                           if test "x$LINE" != x ; then
10863                             eval "DEFAULT_$LINE"
10864                           else
10865                             no_cache=1
10866                           fi
10867
10868                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10869
10870 fi;
10871
10872           eval "$ac_cv_use_accessibility"
10873           if test "$no_cache" != 1; then
10874             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10875           fi
10876
10877           if test "$wxUSE_ACCESSIBILITY" = yes; then
10878             echo "$as_me:$LINENO: result: yes" >&5
10879 echo "${ECHO_T}yes" >&6
10880           else
10881             echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10883           fi
10884
10885
10886 if test "$wxUSE_MSW" = "1"; then
10887
10888           enablestring=
10889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10890 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10891           no_cache=0
10892           # Check whether --enable-dccache or --disable-dccache was given.
10893 if test "${enable_dccache+set}" = set; then
10894   enableval="$enable_dccache"
10895
10896                           if test "$enableval" = yes; then
10897                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10898                           else
10899                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10900                           fi
10901
10902 else
10903
10904                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10905                           if test "x$LINE" != x ; then
10906                             eval "DEFAULT_$LINE"
10907                           else
10908                             no_cache=1
10909                           fi
10910
10911                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10912
10913 fi;
10914
10915           eval "$ac_cv_use_dccache"
10916           if test "$no_cache" != 1; then
10917             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10918           fi
10919
10920           if test "$wxUSE_DC_CACHEING" = yes; then
10921             echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6
10923           else
10924             echo "$as_me:$LINENO: result: no" >&5
10925 echo "${ECHO_T}no" >&6
10926           fi
10927
10928 fi
10929
10930
10931
10932           enablestring=
10933           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10934 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10935           no_cache=0
10936           # Check whether --enable-palette or --disable-palette was given.
10937 if test "${enable_palette+set}" = set; then
10938   enableval="$enable_palette"
10939
10940                           if test "$enableval" = yes; then
10941                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10942                           else
10943                             ac_cv_use_palette='wxUSE_PALETTE=no'
10944                           fi
10945
10946 else
10947
10948                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10949                           if test "x$LINE" != x ; then
10950                             eval "DEFAULT_$LINE"
10951                           else
10952                             no_cache=1
10953                           fi
10954
10955                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10956
10957 fi;
10958
10959           eval "$ac_cv_use_palette"
10960           if test "$no_cache" != 1; then
10961             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10962           fi
10963
10964           if test "$wxUSE_PALETTE" = yes; then
10965             echo "$as_me:$LINENO: result: yes" >&5
10966 echo "${ECHO_T}yes" >&6
10967           else
10968             echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10970           fi
10971
10972
10973           enablestring=
10974           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10975 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10976           no_cache=0
10977           # Check whether --enable-image or --disable-image was given.
10978 if test "${enable_image+set}" = set; then
10979   enableval="$enable_image"
10980
10981                           if test "$enableval" = yes; then
10982                             ac_cv_use_image='wxUSE_IMAGE=yes'
10983                           else
10984                             ac_cv_use_image='wxUSE_IMAGE=no'
10985                           fi
10986
10987 else
10988
10989                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10990                           if test "x$LINE" != x ; then
10991                             eval "DEFAULT_$LINE"
10992                           else
10993                             no_cache=1
10994                           fi
10995
10996                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10997
10998 fi;
10999
11000           eval "$ac_cv_use_image"
11001           if test "$no_cache" != 1; then
11002             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11003           fi
11004
11005           if test "$wxUSE_IMAGE" = yes; then
11006             echo "$as_me:$LINENO: result: yes" >&5
11007 echo "${ECHO_T}yes" >&6
11008           else
11009             echo "$as_me:$LINENO: result: no" >&5
11010 echo "${ECHO_T}no" >&6
11011           fi
11012
11013
11014           enablestring=
11015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11016 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11017           no_cache=0
11018           # Check whether --enable-gif or --disable-gif was given.
11019 if test "${enable_gif+set}" = set; then
11020   enableval="$enable_gif"
11021
11022                           if test "$enableval" = yes; then
11023                             ac_cv_use_gif='wxUSE_GIF=yes'
11024                           else
11025                             ac_cv_use_gif='wxUSE_GIF=no'
11026                           fi
11027
11028 else
11029
11030                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11031                           if test "x$LINE" != x ; then
11032                             eval "DEFAULT_$LINE"
11033                           else
11034                             no_cache=1
11035                           fi
11036
11037                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11038
11039 fi;
11040
11041           eval "$ac_cv_use_gif"
11042           if test "$no_cache" != 1; then
11043             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11044           fi
11045
11046           if test "$wxUSE_GIF" = yes; then
11047             echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6
11049           else
11050             echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6
11052           fi
11053
11054
11055           enablestring=
11056           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11057 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11058           no_cache=0
11059           # Check whether --enable-pcx or --disable-pcx was given.
11060 if test "${enable_pcx+set}" = set; then
11061   enableval="$enable_pcx"
11062
11063                           if test "$enableval" = yes; then
11064                             ac_cv_use_pcx='wxUSE_PCX=yes'
11065                           else
11066                             ac_cv_use_pcx='wxUSE_PCX=no'
11067                           fi
11068
11069 else
11070
11071                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11072                           if test "x$LINE" != x ; then
11073                             eval "DEFAULT_$LINE"
11074                           else
11075                             no_cache=1
11076                           fi
11077
11078                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11079
11080 fi;
11081
11082           eval "$ac_cv_use_pcx"
11083           if test "$no_cache" != 1; then
11084             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11085           fi
11086
11087           if test "$wxUSE_PCX" = yes; then
11088             echo "$as_me:$LINENO: result: yes" >&5
11089 echo "${ECHO_T}yes" >&6
11090           else
11091             echo "$as_me:$LINENO: result: no" >&5
11092 echo "${ECHO_T}no" >&6
11093           fi
11094
11095
11096           enablestring=
11097           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11098 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11099           no_cache=0
11100           # Check whether --enable-iff or --disable-iff was given.
11101 if test "${enable_iff+set}" = set; then
11102   enableval="$enable_iff"
11103
11104                           if test "$enableval" = yes; then
11105                             ac_cv_use_iff='wxUSE_IFF=yes'
11106                           else
11107                             ac_cv_use_iff='wxUSE_IFF=no'
11108                           fi
11109
11110 else
11111
11112                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11113                           if test "x$LINE" != x ; then
11114                             eval "DEFAULT_$LINE"
11115                           else
11116                             no_cache=1
11117                           fi
11118
11119                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11120
11121 fi;
11122
11123           eval "$ac_cv_use_iff"
11124           if test "$no_cache" != 1; then
11125             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11126           fi
11127
11128           if test "$wxUSE_IFF" = yes; then
11129             echo "$as_me:$LINENO: result: yes" >&5
11130 echo "${ECHO_T}yes" >&6
11131           else
11132             echo "$as_me:$LINENO: result: no" >&5
11133 echo "${ECHO_T}no" >&6
11134           fi
11135
11136
11137           enablestring=
11138           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11139 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11140           no_cache=0
11141           # Check whether --enable-pnm or --disable-pnm was given.
11142 if test "${enable_pnm+set}" = set; then
11143   enableval="$enable_pnm"
11144
11145                           if test "$enableval" = yes; then
11146                             ac_cv_use_pnm='wxUSE_PNM=yes'
11147                           else
11148                             ac_cv_use_pnm='wxUSE_PNM=no'
11149                           fi
11150
11151 else
11152
11153                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11154                           if test "x$LINE" != x ; then
11155                             eval "DEFAULT_$LINE"
11156                           else
11157                             no_cache=1
11158                           fi
11159
11160                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11161
11162 fi;
11163
11164           eval "$ac_cv_use_pnm"
11165           if test "$no_cache" != 1; then
11166             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11167           fi
11168
11169           if test "$wxUSE_PNM" = yes; then
11170             echo "$as_me:$LINENO: result: yes" >&5
11171 echo "${ECHO_T}yes" >&6
11172           else
11173             echo "$as_me:$LINENO: result: no" >&5
11174 echo "${ECHO_T}no" >&6
11175           fi
11176
11177
11178           enablestring=
11179           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11180 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11181           no_cache=0
11182           # Check whether --enable-xpm or --disable-xpm was given.
11183 if test "${enable_xpm+set}" = set; then
11184   enableval="$enable_xpm"
11185
11186                           if test "$enableval" = yes; then
11187                             ac_cv_use_xpm='wxUSE_XPM=yes'
11188                           else
11189                             ac_cv_use_xpm='wxUSE_XPM=no'
11190                           fi
11191
11192 else
11193
11194                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11195                           if test "x$LINE" != x ; then
11196                             eval "DEFAULT_$LINE"
11197                           else
11198                             no_cache=1
11199                           fi
11200
11201                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11202
11203 fi;
11204
11205           eval "$ac_cv_use_xpm"
11206           if test "$no_cache" != 1; then
11207             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11208           fi
11209
11210           if test "$wxUSE_XPM" = yes; then
11211             echo "$as_me:$LINENO: result: yes" >&5
11212 echo "${ECHO_T}yes" >&6
11213           else
11214             echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6
11216           fi
11217
11218
11219           enablestring=
11220           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11221 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11222           no_cache=0
11223           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11224 if test "${enable_ico_cur+set}" = set; then
11225   enableval="$enable_ico_cur"
11226
11227                           if test "$enableval" = yes; then
11228                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11229                           else
11230                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11231                           fi
11232
11233 else
11234
11235                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11236                           if test "x$LINE" != x ; then
11237                             eval "DEFAULT_$LINE"
11238                           else
11239                             no_cache=1
11240                           fi
11241
11242                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11243
11244 fi;
11245
11246           eval "$ac_cv_use_ico_cur"
11247           if test "$no_cache" != 1; then
11248             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11249           fi
11250
11251           if test "$wxUSE_ICO_CUR" = yes; then
11252             echo "$as_me:$LINENO: result: yes" >&5
11253 echo "${ECHO_T}yes" >&6
11254           else
11255             echo "$as_me:$LINENO: result: no" >&5
11256 echo "${ECHO_T}no" >&6
11257           fi
11258
11259
11260 fi
11261
11262
11263
11264 # Check whether --with-flavour or --without-flavour was given.
11265 if test "${with_flavour+set}" = set; then
11266   withval="$with_flavour"
11267   WX_FLAVOUR="$withval"
11268 fi;
11269
11270
11271
11272           enablestring=
11273           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11274 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11275           no_cache=0
11276           # Check whether --enable-official_build or --disable-official_build was given.
11277 if test "${enable_official_build+set}" = set; then
11278   enableval="$enable_official_build"
11279
11280                           if test "$enableval" = yes; then
11281                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11282                           else
11283                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11284                           fi
11285
11286 else
11287
11288                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11289                           if test "x$LINE" != x ; then
11290                             eval "DEFAULT_$LINE"
11291                           else
11292                             no_cache=1
11293                           fi
11294
11295                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11296
11297 fi;
11298
11299           eval "$ac_cv_use_official_build"
11300           if test "$no_cache" != 1; then
11301             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11302           fi
11303
11304           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11305             echo "$as_me:$LINENO: result: yes" >&5
11306 echo "${ECHO_T}yes" >&6
11307           else
11308             echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6
11310           fi
11311
11312 # Check whether --enable-vendor or --disable-vendor was given.
11313 if test "${enable_vendor+set}" = set; then
11314   enableval="$enable_vendor"
11315   VENDOR="$enableval"
11316 fi;
11317 if test "x$VENDOR" = "x"; then
11318     VENDOR="custom"
11319 fi
11320
11321
11322
11323
11324           echo "saving argument cache $wx_arg_cache_file"
11325           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11326
11327
11328
11329 echo "$as_me:$LINENO: checking for toolkit" >&5
11330 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11331
11332 # In Wine, we need to default to MSW, not GTK or MOTIF
11333 if test "$wxUSE_WINE" = "yes"; then
11334     DEFAULT_DEFAULT_wxUSE_GTK=0
11335     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11336     DEFAULT_DEFAULT_wxUSE_MSW=1
11337     wxUSE_SHARED=no
11338 fi
11339
11340
11341 if test "$wxUSE_GUI" = "yes"; then
11342
11343     if test "$USE_BEOS" = 1; then
11344         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11345 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11346    { (exit 1); exit 1; }; }
11347     fi
11348
11349     if test "$TOOLKIT_GIVEN" = 1; then
11350             for toolkit in `echo $ALL_TOOLKITS`; do
11351         var=wxUSE_$toolkit
11352         eval "value=\$${var}"
11353         if test "x$value" = "xno"; then
11354           eval "$var=0"
11355         elif test "x$value" != "x"; then
11356           eval "$var=1"
11357         fi
11358
11359         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11360           eval "wx${toolkit}_VERSION=$value"
11361         fi
11362       done
11363     else
11364             for toolkit in `echo $ALL_TOOLKITS`; do
11365         if test "$has_toolkit_in_cache" != 1; then
11366           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11367         else
11368           var=DEFAULT_wxUSE_$toolkit
11369
11370           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11371           if test "x$version" != "x"; then
11372             eval "wx${toolkit}_VERSION=$version"
11373           fi
11374         fi
11375         eval "wxUSE_$toolkit=\$${var}"
11376       done
11377     fi
11378
11379             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11380                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
11381                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11382
11383         case "${host}" in
11384       *-pc-os2_emx | *-pc-os2-emx )
11385         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11386     esac
11387
11388     case "$NUM_TOOLKITS" in
11389       1)
11390       ;;
11391       0)
11392         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11393 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11394    { (exit 1); exit 1; }; }
11395       ;;
11396       *)
11397         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11398 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11399    { (exit 1); exit 1; }; }
11400     esac
11401
11402     # to be removed when --disable-gtk2 isn't needed
11403     if test "x$wxUSE_GTK2" = "xyes"; then
11404         wxGTK_VERSION=2
11405     elif test "x$wxUSE_GTK2" = "xno"; then
11406         wxGTK_VERSION=1
11407     fi
11408
11409         for toolkit in `echo $ALL_TOOLKITS`; do
11410       var=wxUSE_$toolkit
11411       eval "value=\$${var}"
11412       if test "x$value" != x; then
11413         cache_var=CACHE_$toolkit
11414         eval "cache=\$${cache_var}"
11415         if test "$cache" = 1; then
11416           echo "$var=$value" >> ${wx_arg_cache_file}
11417           eval "version=\$wx${toolkit}_VERSION"
11418           if test "x$version" != "x"; then
11419             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11420           fi
11421         fi
11422         if test "$value" = 1; then
11423           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11424           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11425 echo "${ECHO_T}$toolkit_echo" >&6
11426         fi
11427       fi
11428     done
11429 else
11430     if test "x$host_alias" != "x"; then
11431         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11432 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11433     else
11434         echo "$as_me:$LINENO: result: base only" >&5
11435 echo "${ECHO_T}base only" >&6
11436     fi
11437 fi
11438
11439 wants_win32=0
11440 doesnt_want_win32=0
11441 case "${host}" in
11442   *-*-cygwin*)
11443       if test "$wxUSE_MSW" = 1 ; then
11444         wants_win32=1
11445         BAKEFILE_FORCE_PLATFORM=win32
11446       else
11447         doesnt_want_win32=1
11448       fi
11449   ;;
11450   *-*-mingw*)
11451       wants_win32=1
11452   ;;
11453 esac
11454
11455 if test "$wxUSE_WINE" = "yes"; then
11456     wants_win32=1
11457         CC=winegcc
11458     CXX=wineg++
11459     LDFLAGS_GUI="-mwindows"
11460 fi
11461
11462 if test "$wants_win32" = 1 ; then
11463     USE_UNIX=0
11464     USE_WIN32=1
11465     cat >>confdefs.h <<\_ACEOF
11466 #define __WIN32__ 1
11467 _ACEOF
11468
11469     cat >>confdefs.h <<\_ACEOF
11470 #define __WIN95__ 1
11471 _ACEOF
11472
11473     cat >>confdefs.h <<\_ACEOF
11474 #define __WINDOWS__ 1
11475 _ACEOF
11476
11477     cat >>confdefs.h <<\_ACEOF
11478 #define __GNUWIN32__ 1
11479 _ACEOF
11480
11481     cat >>confdefs.h <<\_ACEOF
11482 #define STRICT 1
11483 _ACEOF
11484
11485     cat >>confdefs.h <<\_ACEOF
11486 #define WINVER 0x0400
11487 _ACEOF
11488
11489 fi
11490 if test "$doesnt_want_win32" = 1 ; then
11491     USE_UNIX=1
11492     USE_WIN32=0
11493 fi
11494
11495 if test "$USE_UNIX" = 1 ; then
11496     wxUSE_UNIX=yes
11497     cat >>confdefs.h <<\_ACEOF
11498 #define __UNIX__ 1
11499 _ACEOF
11500
11501 fi
11502
11503
11504 cat >confcache <<\_ACEOF
11505 # This file is a shell script that caches the results of configure
11506 # tests run on this system so they can be shared between configure
11507 # scripts and configure runs, see configure's option --config-cache.
11508 # It is not useful on other systems.  If it contains results you don't
11509 # want to keep, you may remove or edit it.
11510 #
11511 # config.status only pays attention to the cache file if you give it
11512 # the --recheck option to rerun configure.
11513 #
11514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11516 # following values.
11517
11518 _ACEOF
11519
11520 # The following way of writing the cache mishandles newlines in values,
11521 # but we know of no workaround that is simple, portable, and efficient.
11522 # So, don't put newlines in cache variables' values.
11523 # Ultrix sh set writes to stderr and can't be redirected directly,
11524 # and sets the high bit in the cache file unless we assign to the vars.
11525 {
11526   (set) 2>&1 |
11527     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11528     *ac_space=\ *)
11529       # `set' does not quote correctly, so add quotes (double-quote
11530       # substitution turns \\\\ into \\, and sed turns \\ into \).
11531       sed -n \
11532         "s/'/'\\\\''/g;
11533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11534       ;;
11535     *)
11536       # `set' quotes correctly as required by POSIX, so do not add quotes.
11537       sed -n \
11538         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11539       ;;
11540     esac;
11541 } |
11542   sed '
11543      t clear
11544      : clear
11545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11546      t end
11547      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11548      : end' >>confcache
11549 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11550   if test -w $cache_file; then
11551     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11552     cat confcache >$cache_file
11553   else
11554     echo "not updating unwritable cache $cache_file"
11555   fi
11556 fi
11557 rm -f confcache
11558
11559 CFLAGS=${CFLAGS:=}
11560
11561
11562
11563     ac_ext=c
11564 ac_cpp='$CPP $CPPFLAGS'
11565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568 if test -n "$ac_tool_prefix"; then
11569   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11571 echo "$as_me:$LINENO: checking for $ac_word" >&5
11572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573 if test "${ac_cv_prog_CC+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   if test -n "$CC"; then
11577   ac_cv_prog_CC="$CC" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584   for ac_exec_ext in '' $ac_executable_extensions; do
11585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591 done
11592
11593 fi
11594 fi
11595 CC=$ac_cv_prog_CC
11596 if test -n "$CC"; then
11597   echo "$as_me:$LINENO: result: $CC" >&5
11598 echo "${ECHO_T}$CC" >&6
11599 else
11600   echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11602 fi
11603
11604 fi
11605 if test -z "$ac_cv_prog_CC"; then
11606   ac_ct_CC=$CC
11607   # Extract the first word of "gcc", so it can be a program name with args.
11608 set dummy gcc; ac_word=$2
11609 echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   if test -n "$ac_ct_CC"; then
11615   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622   for ac_exec_ext in '' $ac_executable_extensions; do
11623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624     ac_cv_prog_ac_ct_CC="gcc"
11625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629 done
11630
11631 fi
11632 fi
11633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11634 if test -n "$ac_ct_CC"; then
11635   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11636 echo "${ECHO_T}$ac_ct_CC" >&6
11637 else
11638   echo "$as_me:$LINENO: result: no" >&5
11639 echo "${ECHO_T}no" >&6
11640 fi
11641
11642   CC=$ac_ct_CC
11643 else
11644   CC="$ac_cv_prog_CC"
11645 fi
11646
11647 if test -z "$CC"; then
11648   if test -n "$ac_tool_prefix"; then
11649   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11650 set dummy ${ac_tool_prefix}cc; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_CC+set}" = set; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   if test -n "$CC"; then
11657   ac_cv_prog_CC="$CC" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662   IFS=$as_save_IFS
11663   test -z "$as_dir" && as_dir=.
11664   for ac_exec_ext in '' $ac_executable_extensions; do
11665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666     ac_cv_prog_CC="${ac_tool_prefix}cc"
11667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668     break 2
11669   fi
11670 done
11671 done
11672
11673 fi
11674 fi
11675 CC=$ac_cv_prog_CC
11676 if test -n "$CC"; then
11677   echo "$as_me:$LINENO: result: $CC" >&5
11678 echo "${ECHO_T}$CC" >&6
11679 else
11680   echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11682 fi
11683
11684 fi
11685 if test -z "$ac_cv_prog_CC"; then
11686   ac_ct_CC=$CC
11687   # Extract the first word of "cc", so it can be a program name with args.
11688 set dummy cc; ac_word=$2
11689 echo "$as_me:$LINENO: checking for $ac_word" >&5
11690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11691 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11692   echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694   if test -n "$ac_ct_CC"; then
11695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11696 else
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11699 do
11700   IFS=$as_save_IFS
11701   test -z "$as_dir" && as_dir=.
11702   for ac_exec_ext in '' $ac_executable_extensions; do
11703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704     ac_cv_prog_ac_ct_CC="cc"
11705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706     break 2
11707   fi
11708 done
11709 done
11710
11711 fi
11712 fi
11713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11714 if test -n "$ac_ct_CC"; then
11715   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11716 echo "${ECHO_T}$ac_ct_CC" >&6
11717 else
11718   echo "$as_me:$LINENO: result: no" >&5
11719 echo "${ECHO_T}no" >&6
11720 fi
11721
11722   CC=$ac_ct_CC
11723 else
11724   CC="$ac_cv_prog_CC"
11725 fi
11726
11727 fi
11728 if test -z "$CC"; then
11729   # Extract the first word of "cc", so it can be a program name with args.
11730 set dummy cc; ac_word=$2
11731 echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733 if test "${ac_cv_prog_CC+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   if test -n "$CC"; then
11737   ac_cv_prog_CC="$CC" # Let the user override the test.
11738 else
11739   ac_prog_rejected=no
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743   IFS=$as_save_IFS
11744   test -z "$as_dir" && as_dir=.
11745   for ac_exec_ext in '' $ac_executable_extensions; do
11746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11748        ac_prog_rejected=yes
11749        continue
11750      fi
11751     ac_cv_prog_CC="cc"
11752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753     break 2
11754   fi
11755 done
11756 done
11757
11758 if test $ac_prog_rejected = yes; then
11759   # We found a bogon in the path, so make sure we never use it.
11760   set dummy $ac_cv_prog_CC
11761   shift
11762   if test $# != 0; then
11763     # We chose a different compiler from the bogus one.
11764     # However, it has the same basename, so the bogon will be chosen
11765     # first if we set CC to just the basename; use the full file name.
11766     shift
11767     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11768   fi
11769 fi
11770 fi
11771 fi
11772 CC=$ac_cv_prog_CC
11773 if test -n "$CC"; then
11774   echo "$as_me:$LINENO: result: $CC" >&5
11775 echo "${ECHO_T}$CC" >&6
11776 else
11777   echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6
11779 fi
11780
11781 fi
11782 if test -z "$CC"; then
11783   if test -n "$ac_tool_prefix"; then
11784   for ac_prog in cl
11785   do
11786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11788 echo "$as_me:$LINENO: checking for $ac_word" >&5
11789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11790 if test "${ac_cv_prog_CC+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   if test -n "$CC"; then
11794   ac_cv_prog_CC="$CC" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799   IFS=$as_save_IFS
11800   test -z "$as_dir" && as_dir=.
11801   for ac_exec_ext in '' $ac_executable_extensions; do
11802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805     break 2
11806   fi
11807 done
11808 done
11809
11810 fi
11811 fi
11812 CC=$ac_cv_prog_CC
11813 if test -n "$CC"; then
11814   echo "$as_me:$LINENO: result: $CC" >&5
11815 echo "${ECHO_T}$CC" >&6
11816 else
11817   echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6
11819 fi
11820
11821     test -n "$CC" && break
11822   done
11823 fi
11824 if test -z "$CC"; then
11825   ac_ct_CC=$CC
11826   for ac_prog in cl
11827 do
11828   # Extract the first word of "$ac_prog", so it can be a program name with args.
11829 set dummy $ac_prog; ac_word=$2
11830 echo "$as_me:$LINENO: checking for $ac_word" >&5
11831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   if test -n "$ac_ct_CC"; then
11836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843   for ac_exec_ext in '' $ac_executable_extensions; do
11844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845     ac_cv_prog_ac_ct_CC="$ac_prog"
11846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850 done
11851
11852 fi
11853 fi
11854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11855 if test -n "$ac_ct_CC"; then
11856   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11857 echo "${ECHO_T}$ac_ct_CC" >&6
11858 else
11859   echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11861 fi
11862
11863   test -n "$ac_ct_CC" && break
11864 done
11865
11866   CC=$ac_ct_CC
11867 fi
11868
11869 fi
11870
11871
11872 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11873 See \`config.log' for more details." >&5
11874 echo "$as_me: error: no acceptable C compiler found in \$PATH
11875 See \`config.log' for more details." >&2;}
11876    { (exit 1); exit 1; }; }
11877
11878 # Provide some information about the compiler.
11879 echo "$as_me:$LINENO:" \
11880      "checking for C compiler version" >&5
11881 ac_compiler=`set X $ac_compile; echo $2`
11882 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11883   (eval $ac_compiler --version </dev/null >&5) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }
11887 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11888   (eval $ac_compiler -v </dev/null >&5) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }
11892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11893   (eval $ac_compiler -V </dev/null >&5) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }
11897
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904
11905 int
11906 main ()
11907 {
11908
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 ac_clean_files_save=$ac_clean_files
11914 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11915 # Try to create an executable without -o first, disregard a.out.
11916 # It will help us diagnose broken compilers, and finding out an intuition
11917 # of exeext.
11918 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11919 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11922   (eval $ac_link_default) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; then
11926   # Find the output, starting from the most likely.  This scheme is
11927 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11928 # resort.
11929
11930 # Be careful to initialize this variable, since it used to be cached.
11931 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11932 ac_cv_exeext=
11933 # b.out is created by i960 compilers.
11934 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11935 do
11936   test -f "$ac_file" || continue
11937   case $ac_file in
11938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11939         ;;
11940     conftest.$ac_ext )
11941         # This is the source file.
11942         ;;
11943     [ab].out )
11944         # We found the default executable, but exeext='' is most
11945         # certainly right.
11946         break;;
11947     *.* )
11948         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11949         # FIXME: I believe we export ac_cv_exeext for Libtool,
11950         # but it would be cool to find out if it's true.  Does anybody
11951         # maintain Libtool? --akim.
11952         export ac_cv_exeext
11953         break;;
11954     * )
11955         break;;
11956   esac
11957 done
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11963 See \`config.log' for more details." >&5
11964 echo "$as_me: error: C compiler cannot create executables
11965 See \`config.log' for more details." >&2;}
11966    { (exit 77); exit 77; }; }
11967 fi
11968
11969 ac_exeext=$ac_cv_exeext
11970 echo "$as_me:$LINENO: result: $ac_file" >&5
11971 echo "${ECHO_T}$ac_file" >&6
11972
11973 # Check the compiler produces executables we can run.  If not, either
11974 # the compiler is broken, or we cross compile.
11975 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11976 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11977 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11978 # If not cross compiling, check that we can run a simple program.
11979 if test "$cross_compiling" != yes; then
11980   if { ac_try='./$ac_file'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986     cross_compiling=no
11987   else
11988     if test "$cross_compiling" = maybe; then
11989         cross_compiling=yes
11990     else
11991         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11992 If you meant to cross compile, use \`--host'.
11993 See \`config.log' for more details." >&5
11994 echo "$as_me: error: cannot run C compiled programs.
11995 If you meant to cross compile, use \`--host'.
11996 See \`config.log' for more details." >&2;}
11997    { (exit 1); exit 1; }; }
11998     fi
11999   fi
12000 fi
12001 echo "$as_me:$LINENO: result: yes" >&5
12002 echo "${ECHO_T}yes" >&6
12003
12004 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12005 ac_clean_files=$ac_clean_files_save
12006 # Check the compiler produces executables we can run.  If not, either
12007 # the compiler is broken, or we cross compile.
12008 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12009 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12010 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12011 echo "${ECHO_T}$cross_compiling" >&6
12012
12013 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12014 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016   (eval $ac_link) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; then
12020   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12021 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12022 # work properly (i.e., refer to `conftest.exe'), while it won't with
12023 # `rm'.
12024 for ac_file in conftest.exe conftest conftest.*; do
12025   test -f "$ac_file" || continue
12026   case $ac_file in
12027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12028     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12029           export ac_cv_exeext
12030           break;;
12031     * ) break;;
12032   esac
12033 done
12034 else
12035   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12036 See \`config.log' for more details." >&5
12037 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12038 See \`config.log' for more details." >&2;}
12039    { (exit 1); exit 1; }; }
12040 fi
12041
12042 rm -f conftest$ac_cv_exeext
12043 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12044 echo "${ECHO_T}$ac_cv_exeext" >&6
12045
12046 rm -f conftest.$ac_ext
12047 EXEEXT=$ac_cv_exeext
12048 ac_exeext=$EXEEXT
12049 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12050 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12051 if test "${ac_cv_objext+set}" = set; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 int
12062 main ()
12063 {
12064
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.o conftest.obj
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071   (eval $ac_compile) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; then
12075   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12076   case $ac_file in
12077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12078     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12079        break;;
12080   esac
12081 done
12082 else
12083   echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12087 See \`config.log' for more details." >&5
12088 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12089 See \`config.log' for more details." >&2;}
12090    { (exit 1); exit 1; }; }
12091 fi
12092
12093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12094 fi
12095 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12096 echo "${ECHO_T}$ac_cv_objext" >&6
12097 OBJEXT=$ac_cv_objext
12098 ac_objext=$OBJEXT
12099 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12100 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12101 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110
12111 int
12112 main ()
12113 {
12114 #ifndef __GNUC__
12115        choke me
12116 #endif
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124   (eval $ac_compile) 2>conftest.er1
12125   ac_status=$?
12126   grep -v '^ *+' conftest.er1 >conftest.err
12127   rm -f conftest.er1
12128   cat conftest.err >&5
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } &&
12131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; } &&
12137          { ac_try='test -s conftest.$ac_objext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_compiler_gnu=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_compiler_gnu=no
12149 fi
12150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12152
12153 fi
12154 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12155 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12156 GCC=`test $ac_compiler_gnu = yes && echo yes`
12157 ac_test_CFLAGS=${CFLAGS+set}
12158 ac_save_CFLAGS=$CFLAGS
12159 CFLAGS="-g"
12160 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12161 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12162 if test "${ac_cv_prog_cc_g+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171
12172 int
12173 main ()
12174 {
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest.$ac_objext'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; }; then
12201   ac_cv_prog_cc_g=yes
12202 else
12203   echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_prog_cc_g=no
12207 fi
12208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12209 fi
12210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12212 if test "$ac_test_CFLAGS" = set; then
12213   CFLAGS=$ac_save_CFLAGS
12214 elif test $ac_cv_prog_cc_g = yes; then
12215   if test "$GCC" = yes; then
12216     CFLAGS="-g -O2"
12217   else
12218     CFLAGS="-g"
12219   fi
12220 else
12221   if test "$GCC" = yes; then
12222     CFLAGS="-O2"
12223   else
12224     CFLAGS=
12225   fi
12226 fi
12227 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12228 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12229 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_cv_prog_cc_stdc=no
12233 ac_save_CC=$CC
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240 #include <stdarg.h>
12241 #include <stdio.h>
12242 #include <sys/types.h>
12243 #include <sys/stat.h>
12244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12245 struct buf { int x; };
12246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12247 static char *e (p, i)
12248      char **p;
12249      int i;
12250 {
12251   return p[i];
12252 }
12253 static char *f (char * (*g) (char **, int), char **p, ...)
12254 {
12255   char *s;
12256   va_list v;
12257   va_start (v,p);
12258   s = g (p, va_arg (v,int));
12259   va_end (v);
12260   return s;
12261 }
12262
12263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12264    function prototypes and stuff, but not '\xHH' hex character constants.
12265    These don't provoke an error unfortunately, instead are silently treated
12266    as 'x'.  The following induces an error, until -std1 is added to get
12267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12268    array size at least.  It's necessary to write '\x00'==0 to get something
12269    that's true only with -std1.  */
12270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12271
12272 int test (int i, double x);
12273 struct s1 {int (*f) (int a);};
12274 struct s2 {int (*f) (double a);};
12275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12276 int argc;
12277 char **argv;
12278 int
12279 main ()
12280 {
12281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 # Don't try gcc -ansi; that turns off useful extensions and
12287 # breaks some systems' header files.
12288 # AIX                   -qlanglvl=ansi
12289 # Ultrix and OSF/1      -std1
12290 # HP-UX 10.20 and later -Ae
12291 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12292 # SVR4                  -Xc -D__EXTENSIONS__
12293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12294 do
12295   CC="$ac_save_CC $ac_arg"
12296   rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298   (eval $ac_compile) 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } &&
12305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; } &&
12311          { ac_try='test -s conftest.$ac_objext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_cv_prog_cc_stdc=$ac_arg
12318 break
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 fi
12324 rm -f conftest.err conftest.$ac_objext
12325 done
12326 rm -f conftest.$ac_ext conftest.$ac_objext
12327 CC=$ac_save_CC
12328
12329 fi
12330
12331 case "x$ac_cv_prog_cc_stdc" in
12332   x|xno)
12333     echo "$as_me:$LINENO: result: none needed" >&5
12334 echo "${ECHO_T}none needed" >&6 ;;
12335   *)
12336     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12337 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12338     CC="$CC $ac_cv_prog_cc_stdc" ;;
12339 esac
12340
12341 # Some people use a C++ compiler to compile C.  Since we use `exit',
12342 # in C++ we need to declare it.  In case someone uses the same compiler
12343 # for both compiling C and C++ we need to have the C++ compiler decide
12344 # the declaration of exit, since it's the most demanding environment.
12345 cat >conftest.$ac_ext <<_ACEOF
12346 #ifndef __cplusplus
12347   choke me
12348 #endif
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest.$ac_objext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   for ac_declaration in \
12372    '' \
12373    'extern "C" void std::exit (int) throw (); using std::exit;' \
12374    'extern "C" void std::exit (int); using std::exit;' \
12375    'extern "C" void exit (int) throw ();' \
12376    'extern "C" void exit (int);' \
12377    'void exit (int);'
12378 do
12379   cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 $ac_declaration
12386 #include <stdlib.h>
12387 int
12388 main ()
12389 {
12390 exit (42);
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397   (eval $ac_compile) 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; } &&
12410          { ac_try='test -s conftest.$ac_objext'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; }; then
12416   :
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 continue
12422 fi
12423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_declaration
12431 int
12432 main ()
12433 {
12434 exit (42);
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441   (eval $ac_compile) 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest.$ac_objext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460   break
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 fi
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467 done
12468 rm -f conftest*
12469 if test -n "$ac_declaration"; then
12470   echo '#ifdef __cplusplus' >>confdefs.h
12471   echo $ac_declaration      >>confdefs.h
12472   echo '#endif'             >>confdefs.h
12473 fi
12474
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 fi
12480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12481 ac_ext=c
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
12487
12488
12489     ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494
12495     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12496 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12497 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500   cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507 int
12508 main ()
12509 {
12510
12511              #ifndef __INTEL_COMPILER
12512                 choke me
12513              #endif
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530   (eval $ac_try) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; } &&
12534          { ac_try='test -s conftest.$ac_objext'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 bakefile_cv_c_compiler___INTEL_COMPILER=no
12546
12547 fi
12548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549
12550
12551 fi
12552 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12553 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12554     ac_ext=c
12555 ac_cpp='$CPP $CPPFLAGS'
12556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12561         :; INTELCC=yes
12562     else
12563         :;
12564     fi
12565
12566
12567         if test "x$GCC" != "xyes"; then
12568         if test "xCC" = "xC"; then
12569             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12570 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12571 if test "${bakefile_cv_c_exto+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580
12581 int
12582 main ()
12583 {
12584
12585   ;
12586   return 0;
12587 }
12588 _ACEOF
12589 rm -f conftest.$ac_objext conftest.$ac_ext.o
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591   (eval $ac_compile) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; then
12595   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12596     case $ac_file in
12597         conftest.$ac_ext.o)
12598             bakefile_cv_c_exto="-ext o"
12599             ;;
12600         *)
12601             ;;
12602     esac
12603 done
12604 else
12605   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12606 See \`config.log' for more details." >&5
12607 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12608 See \`config.log' for more details." >&2;}
12609    { (exit 1); exit 1; }; }
12610
12611 fi
12612
12613 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12614
12615 fi
12616 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12617 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12618 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12619     if test "c" = "c"; then
12620         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12621     fi
12622     if test "c" = "cxx"; then
12623         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12624     fi
12625 fi
12626
12627             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12628                 unset ac_cv_prog_cc_g
12629                 ac_test_CFLAGS=${CFLAGS+set}
12630 ac_save_CFLAGS=$CFLAGS
12631 CFLAGS="-g"
12632 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12633 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12634 if test "${ac_cv_prog_cc_g+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643
12644 int
12645 main ()
12646 {
12647
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654   (eval $ac_compile) 2>conftest.er1
12655   ac_status=$?
12656   grep -v '^ *+' conftest.er1 >conftest.err
12657   rm -f conftest.er1
12658   cat conftest.err >&5
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } &&
12661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; } &&
12667          { ac_try='test -s conftest.$ac_objext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   ac_cv_prog_cc_g=yes
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 ac_cv_prog_cc_g=no
12679 fi
12680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681 fi
12682 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12683 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12684 if test "$ac_test_CFLAGS" = set; then
12685   CFLAGS=$ac_save_CFLAGS
12686 elif test $ac_cv_prog_cc_g = yes; then
12687   if test "$GCC" = yes; then
12688     CFLAGS="-g -O2"
12689   else
12690     CFLAGS="-g"
12691   fi
12692 else
12693   if test "$GCC" = yes; then
12694     CFLAGS="-O2"
12695   else
12696     CFLAGS=
12697   fi
12698 fi
12699             fi
12700         fi
12701
12702                         case `uname -s` in
12703             AIX*)
12704                 ac_ext=c
12705 ac_cpp='$CPP $CPPFLAGS'
12706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12711 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12712 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12713   echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715   cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h.  */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h.  */
12721
12722 int
12723 main ()
12724 {
12725 #ifndef __xlC__
12726        choke me
12727 #endif
12728
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735   (eval $ac_compile) 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; } &&
12748          { ac_try='test -s conftest.$ac_objext'
12749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750   (eval $ac_try) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; }; then
12754   bakefile_compiler_xlc=yes
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 bakefile_compiler_xlc=no
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12763
12764 fi
12765 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12766 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12767
12768 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12769 ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774
12775
12776                 ;;
12777
12778             Darwin)
12779                 ac_ext=c
12780 ac_cpp='$CPP $CPPFLAGS'
12781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12784
12785 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12786 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12787 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796
12797 int
12798 main ()
12799 {
12800 #ifndef __MWERKS__
12801        choke me
12802 #endif
12803
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810   (eval $ac_compile) 2>conftest.er1
12811   ac_status=$?
12812   grep -v '^ *+' conftest.er1 >conftest.err
12813   rm -f conftest.er1
12814   cat conftest.err >&5
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; } &&
12823          { ac_try='test -s conftest.$ac_objext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   bakefile_compiler_mwerks=yes
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 bakefile_compiler_mwerks=no
12835 fi
12836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12837     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12838
12839 fi
12840 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12841 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12842
12843 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12844 ac_ext=c
12845 ac_cpp='$CPP $CPPFLAGS'
12846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
12851                 ac_ext=c
12852 ac_cpp='$CPP $CPPFLAGS'
12853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12856
12857 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12858 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12859 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h.  */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h.  */
12868
12869 int
12870 main ()
12871 {
12872 #ifndef __xlC__
12873        choke me
12874 #endif
12875
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882   (eval $ac_compile) 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; } &&
12895          { ac_try='test -s conftest.$ac_objext'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   bakefile_compiler_xlc=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 bakefile_compiler_xlc=no
12907 fi
12908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12909     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12910
12911 fi
12912 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12913 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12914
12915 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12916 ac_ext=c
12917 ac_cpp='$CPP $CPPFLAGS'
12918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12921
12922
12923                 ;;
12924
12925             IRIX*)
12926
12927
12928     ac_ext=c
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933
12934     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12935 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12936 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945
12946 int
12947 main ()
12948 {
12949
12950              #ifndef _SGI_COMPILER_VERSION
12951                 choke me
12952              #endif
12953
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960   (eval $ac_compile) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969   (eval $ac_try) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; } &&
12973          { ac_try='test -s conftest.$ac_objext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12985
12986 fi
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988
12989
12990 fi
12991 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12992 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12993     ac_ext=c
12994 ac_cpp='$CPP $CPPFLAGS'
12995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
12999     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13000         :; SGICC=yes
13001     else
13002         :;
13003     fi
13004
13005
13006                 ;;
13007
13008             HP-UX*)
13009
13010
13011     ac_ext=c
13012 ac_cpp='$CPP $CPPFLAGS'
13013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016
13017     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13018 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13019 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028
13029 int
13030 main ()
13031 {
13032
13033              #ifndef __HP_cc
13034                 choke me
13035              #endif
13036
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043   (eval $ac_compile) 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052   (eval $ac_try) 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; } &&
13056          { ac_try='test -s conftest.$ac_objext'
13057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058   (eval $ac_try) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   bakefile_cv_c_compiler___HP_cc=yes
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 bakefile_cv_c_compiler___HP_cc=no
13068
13069 fi
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071
13072
13073 fi
13074 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13075 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13076     ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13083         :; HPCC=yes
13084     else
13085         :;
13086     fi
13087
13088
13089                 ;;
13090
13091             OSF1)
13092
13093
13094     ac_ext=c
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
13100     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13101 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13102 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111
13112 int
13113 main ()
13114 {
13115
13116              #ifndef __DECC
13117                 choke me
13118              #endif
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126   (eval $ac_compile) 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } &&
13133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135   (eval $ac_try) 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; } &&
13139          { ac_try='test -s conftest.$ac_objext'
13140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; }; then
13145   bakefile_cv_c_compiler___DECC=yes
13146 else
13147   echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13149
13150 bakefile_cv_c_compiler___DECC=no
13151
13152 fi
13153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13154
13155
13156 fi
13157 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13158 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13159     ac_ext=c
13160 ac_cpp='$CPP $CPPFLAGS'
13161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164
13165     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13166         :; COMPAQCC=yes
13167     else
13168         :;
13169     fi
13170
13171
13172                 ;;
13173
13174             SunOS)
13175
13176
13177     ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13184 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13185 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 int
13196 main ()
13197 {
13198
13199              #ifndef __SUNPRO_C
13200                 choke me
13201              #endif
13202
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218   (eval $ac_try) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; } &&
13222          { ac_try='test -s conftest.$ac_objext'
13223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224   (eval $ac_try) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; }; then
13228   bakefile_cv_c_compiler___SUNPRO_C=yes
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 bakefile_cv_c_compiler___SUNPRO_C=no
13234
13235 fi
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237
13238
13239 fi
13240 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13241 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13242     ac_ext=c
13243 ac_cpp='$CPP $CPPFLAGS'
13244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247
13248     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13249         :; SUNCC=yes
13250     else
13251         :;
13252     fi
13253
13254
13255                 ;;
13256         esac
13257     fi
13258
13259
13260
13261 ac_ext=c
13262 ac_cpp='$CPP $CPPFLAGS'
13263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13266 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13267 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13268 # On Suns, sometimes $CPP names a directory.
13269 if test -n "$CPP" && test -d "$CPP"; then
13270   CPP=
13271 fi
13272 if test -z "$CPP"; then
13273   if test "${ac_cv_prog_CPP+set}" = set; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276       # Double quotes because CPP needs to be expanded
13277     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13278     do
13279       ac_preproc_ok=false
13280 for ac_c_preproc_warn_flag in '' yes
13281 do
13282   # Use a header file that comes with gcc, so configuring glibc
13283   # with a fresh cross-compiler works.
13284   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13285   # <limits.h> exists even on freestanding compilers.
13286   # On the NeXT, cc -E runs the code through the compiler's parser,
13287   # not just through cpp. "Syntax error" is here to catch this case.
13288   cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #ifdef __STDC__
13295 # include <limits.h>
13296 #else
13297 # include <assert.h>
13298 #endif
13299                      Syntax error
13300 _ACEOF
13301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303   ac_status=$?
13304   grep -v '^ *+' conftest.er1 >conftest.err
13305   rm -f conftest.er1
13306   cat conftest.err >&5
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } >/dev/null; then
13309   if test -s conftest.err; then
13310     ac_cpp_err=$ac_c_preproc_warn_flag
13311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13312   else
13313     ac_cpp_err=
13314   fi
13315 else
13316   ac_cpp_err=yes
13317 fi
13318 if test -z "$ac_cpp_err"; then
13319   :
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324   # Broken: fails on valid input.
13325 continue
13326 fi
13327 rm -f conftest.err conftest.$ac_ext
13328
13329   # OK, works on sane cases.  Now check whether non-existent headers
13330   # can be detected and how.
13331   cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <ac_nonexistent.h>
13338 _ACEOF
13339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13341   ac_status=$?
13342   grep -v '^ *+' conftest.er1 >conftest.err
13343   rm -f conftest.er1
13344   cat conftest.err >&5
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } >/dev/null; then
13347   if test -s conftest.err; then
13348     ac_cpp_err=$ac_c_preproc_warn_flag
13349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13350   else
13351     ac_cpp_err=
13352   fi
13353 else
13354   ac_cpp_err=yes
13355 fi
13356 if test -z "$ac_cpp_err"; then
13357   # Broken: success on invalid input.
13358 continue
13359 else
13360   echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13362
13363   # Passes both tests.
13364 ac_preproc_ok=:
13365 break
13366 fi
13367 rm -f conftest.err conftest.$ac_ext
13368
13369 done
13370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13371 rm -f conftest.err conftest.$ac_ext
13372 if $ac_preproc_ok; then
13373   break
13374 fi
13375
13376     done
13377     ac_cv_prog_CPP=$CPP
13378
13379 fi
13380   CPP=$ac_cv_prog_CPP
13381 else
13382   ac_cv_prog_CPP=$CPP
13383 fi
13384 echo "$as_me:$LINENO: result: $CPP" >&5
13385 echo "${ECHO_T}$CPP" >&6
13386 ac_preproc_ok=false
13387 for ac_c_preproc_warn_flag in '' yes
13388 do
13389   # Use a header file that comes with gcc, so configuring glibc
13390   # with a fresh cross-compiler works.
13391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13392   # <limits.h> exists even on freestanding compilers.
13393   # On the NeXT, cc -E runs the code through the compiler's parser,
13394   # not just through cpp. "Syntax error" is here to catch this case.
13395   cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 #ifdef __STDC__
13402 # include <limits.h>
13403 #else
13404 # include <assert.h>
13405 #endif
13406                      Syntax error
13407 _ACEOF
13408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } >/dev/null; then
13416   if test -s conftest.err; then
13417     ac_cpp_err=$ac_c_preproc_warn_flag
13418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13419   else
13420     ac_cpp_err=
13421   fi
13422 else
13423   ac_cpp_err=yes
13424 fi
13425 if test -z "$ac_cpp_err"; then
13426   :
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431   # Broken: fails on valid input.
13432 continue
13433 fi
13434 rm -f conftest.err conftest.$ac_ext
13435
13436   # OK, works on sane cases.  Now check whether non-existent headers
13437   # can be detected and how.
13438   cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 #include <ac_nonexistent.h>
13445 _ACEOF
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } >/dev/null; then
13454   if test -s conftest.err; then
13455     ac_cpp_err=$ac_c_preproc_warn_flag
13456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13457   else
13458     ac_cpp_err=
13459   fi
13460 else
13461   ac_cpp_err=yes
13462 fi
13463 if test -z "$ac_cpp_err"; then
13464   # Broken: success on invalid input.
13465 continue
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470   # Passes both tests.
13471 ac_preproc_ok=:
13472 break
13473 fi
13474 rm -f conftest.err conftest.$ac_ext
13475
13476 done
13477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13478 rm -f conftest.err conftest.$ac_ext
13479 if $ac_preproc_ok; then
13480   :
13481 else
13482   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13483 See \`config.log' for more details." >&5
13484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13485 See \`config.log' for more details." >&2;}
13486    { (exit 1); exit 1; }; }
13487 fi
13488
13489 ac_ext=c
13490 ac_cpp='$CPP $CPPFLAGS'
13491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495
13496 echo "$as_me:$LINENO: checking for egrep" >&5
13497 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13498 if test "${ac_cv_prog_egrep+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13502     then ac_cv_prog_egrep='grep -E'
13503     else ac_cv_prog_egrep='egrep'
13504     fi
13505 fi
13506 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13507 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13508  EGREP=$ac_cv_prog_egrep
13509
13510
13511 if test $ac_cv_c_compiler_gnu = yes; then
13512     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13513 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13514 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517     ac_pattern="Autoconf.*'x'"
13518   cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 #include <sgtty.h>
13525 Autoconf TIOCGETP
13526 _ACEOF
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13529   ac_cv_prog_gcc_traditional=yes
13530 else
13531   ac_cv_prog_gcc_traditional=no
13532 fi
13533 rm -f conftest*
13534
13535
13536   if test $ac_cv_prog_gcc_traditional = no; then
13537     cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543 #include <termio.h>
13544 Autoconf TCGETA
13545 _ACEOF
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13548   ac_cv_prog_gcc_traditional=yes
13549 fi
13550 rm -f conftest*
13551
13552   fi
13553 fi
13554 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13555 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13556   if test $ac_cv_prog_gcc_traditional = yes; then
13557     CC="$CC -traditional"
13558   fi
13559 fi
13560
13561
13562 ac_ext=cc
13563 ac_cpp='$CXXCPP $CPPFLAGS'
13564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13567
13568
13569 CXXFLAGS=${CXXFLAGS:=}
13570
13571
13572
13573     ac_ext=cc
13574 ac_cpp='$CXXCPP $CPPFLAGS'
13575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13578 if test -n "$ac_tool_prefix"; then
13579   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13580   do
13581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13583 echo "$as_me:$LINENO: checking for $ac_word" >&5
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13585 if test "${ac_cv_prog_CXX+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   if test -n "$CXX"; then
13589   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594   IFS=$as_save_IFS
13595   test -z "$as_dir" && as_dir=.
13596   for ac_exec_ext in '' $ac_executable_extensions; do
13597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600     break 2
13601   fi
13602 done
13603 done
13604
13605 fi
13606 fi
13607 CXX=$ac_cv_prog_CXX
13608 if test -n "$CXX"; then
13609   echo "$as_me:$LINENO: result: $CXX" >&5
13610 echo "${ECHO_T}$CXX" >&6
13611 else
13612   echo "$as_me:$LINENO: result: no" >&5
13613 echo "${ECHO_T}no" >&6
13614 fi
13615
13616     test -n "$CXX" && break
13617   done
13618 fi
13619 if test -z "$CXX"; then
13620   ac_ct_CXX=$CXX
13621   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13622 do
13623   # Extract the first word of "$ac_prog", so it can be a program name with args.
13624 set dummy $ac_prog; ac_word=$2
13625 echo "$as_me:$LINENO: checking for $ac_word" >&5
13626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13628   echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630   if test -n "$ac_ct_CXX"; then
13631   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13632 else
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13635 do
13636   IFS=$as_save_IFS
13637   test -z "$as_dir" && as_dir=.
13638   for ac_exec_ext in '' $ac_executable_extensions; do
13639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640     ac_cv_prog_ac_ct_CXX="$ac_prog"
13641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642     break 2
13643   fi
13644 done
13645 done
13646
13647 fi
13648 fi
13649 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13650 if test -n "$ac_ct_CXX"; then
13651   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13652 echo "${ECHO_T}$ac_ct_CXX" >&6
13653 else
13654   echo "$as_me:$LINENO: result: no" >&5
13655 echo "${ECHO_T}no" >&6
13656 fi
13657
13658   test -n "$ac_ct_CXX" && break
13659 done
13660 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13661
13662   CXX=$ac_ct_CXX
13663 fi
13664
13665
13666 # Provide some information about the compiler.
13667 echo "$as_me:$LINENO:" \
13668      "checking for C++ compiler version" >&5
13669 ac_compiler=`set X $ac_compile; echo $2`
13670 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13671   (eval $ac_compiler --version </dev/null >&5) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }
13675 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13676   (eval $ac_compiler -v </dev/null >&5) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }
13680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13681   (eval $ac_compiler -V </dev/null >&5) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }
13685
13686 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13687 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13688 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697
13698 int
13699 main ()
13700 {
13701 #ifndef __GNUC__
13702        choke me
13703 #endif
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711   (eval $ac_compile) 2>conftest.er1
13712   ac_status=$?
13713   grep -v '^ *+' conftest.er1 >conftest.err
13714   rm -f conftest.er1
13715   cat conftest.err >&5
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_compiler_gnu=yes
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_compiler_gnu=no
13736 fi
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13739
13740 fi
13741 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13742 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13743 GXX=`test $ac_compiler_gnu = yes && echo yes`
13744 ac_test_CXXFLAGS=${CXXFLAGS+set}
13745 ac_save_CXXFLAGS=$CXXFLAGS
13746 CXXFLAGS="-g"
13747 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13748 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13749 if test "${ac_cv_prog_cxx_g+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758
13759 int
13760 main ()
13761 {
13762
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 rm -f conftest.$ac_objext
13768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769   (eval $ac_compile) 2>conftest.er1
13770   ac_status=$?
13771   grep -v '^ *+' conftest.er1 >conftest.err
13772   rm -f conftest.er1
13773   cat conftest.err >&5
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); } &&
13776          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778   (eval $ac_try) 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }; } &&
13782          { ac_try='test -s conftest.$ac_objext'
13783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784   (eval $ac_try) 2>&5
13785   ac_status=$?
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); }; }; then
13788   ac_cv_prog_cxx_g=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 ac_cv_prog_cxx_g=no
13794 fi
13795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13796 fi
13797 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13798 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13799 if test "$ac_test_CXXFLAGS" = set; then
13800   CXXFLAGS=$ac_save_CXXFLAGS
13801 elif test $ac_cv_prog_cxx_g = yes; then
13802   if test "$GXX" = yes; then
13803     CXXFLAGS="-g -O2"
13804   else
13805     CXXFLAGS="-g"
13806   fi
13807 else
13808   if test "$GXX" = yes; then
13809     CXXFLAGS="-O2"
13810   else
13811     CXXFLAGS=
13812   fi
13813 fi
13814 for ac_declaration in \
13815    '' \
13816    'extern "C" void std::exit (int) throw (); using std::exit;' \
13817    'extern "C" void std::exit (int); using std::exit;' \
13818    'extern "C" void exit (int) throw ();' \
13819    'extern "C" void exit (int);' \
13820    'void exit (int);'
13821 do
13822   cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 $ac_declaration
13829 #include <stdlib.h>
13830 int
13831 main ()
13832 {
13833 exit (42);
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13840   (eval $ac_compile) 2>conftest.er1
13841   ac_status=$?
13842   grep -v '^ *+' conftest.er1 >conftest.err
13843   rm -f conftest.er1
13844   cat conftest.err >&5
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } &&
13847          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; } &&
13853          { ac_try='test -s conftest.$ac_objext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   :
13860 else
13861   echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 continue
13865 fi
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867   cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 $ac_declaration
13874 int
13875 main ()
13876 {
13877 exit (42);
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest.$ac_objext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   break
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 fi
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910 done
13911 rm -f conftest*
13912 if test -n "$ac_declaration"; then
13913   echo '#ifdef __cplusplus' >>confdefs.h
13914   echo $ac_declaration      >>confdefs.h
13915   echo '#endif'             >>confdefs.h
13916 fi
13917
13918 ac_ext=cc
13919 ac_cpp='$CXXCPP $CPPFLAGS'
13920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13923
13924
13925
13926     ac_ext=cc
13927 ac_cpp='$CXXCPP $CPPFLAGS'
13928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13931
13932     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13933 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13934 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943
13944 int
13945 main ()
13946 {
13947
13948              #ifndef __INTEL_COMPILER
13949                 choke me
13950              #endif
13951
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958   (eval $ac_compile) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; } &&
13971          { ac_try='test -s conftest.$ac_objext'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; }; then
13977   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13983
13984 fi
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986
13987
13988 fi
13989 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13990 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13991     ac_ext=cc
13992 ac_cpp='$CXXCPP $CPPFLAGS'
13993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13996
13997     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13998         :; INTELCXX=yes
13999     else
14000         :;
14001     fi
14002
14003
14004         if test "x$GCXX" != "xyes"; then
14005         if test "xCXX" = "xC"; then
14006             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
14007 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
14008 if test "${bakefile_cv_cxx_exto+set}" = set; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011   cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017
14018 int
14019 main ()
14020 {
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext conftest.$ac_ext.o
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; then
14032   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14033     case $ac_file in
14034         conftest.$ac_ext.o)
14035             bakefile_cv_cxx_exto="-ext o"
14036             ;;
14037         *)
14038             ;;
14039     esac
14040 done
14041 else
14042   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14043 See \`config.log' for more details." >&5
14044 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14045 See \`config.log' for more details." >&2;}
14046    { (exit 1); exit 1; }; }
14047
14048 fi
14049
14050 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14051
14052 fi
14053 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14054 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14055 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14056     if test "cxx" = "c"; then
14057         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14058     fi
14059     if test "cxx" = "cxx"; then
14060         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14061     fi
14062 fi
14063
14064             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14065                 unset ac_cv_prog_cc_g
14066                 ac_test_CFLAGS=${CFLAGS+set}
14067 ac_save_CFLAGS=$CFLAGS
14068 CFLAGS="-g"
14069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14071 if test "${ac_cv_prog_cc_g+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080
14081 int
14082 main ()
14083 {
14084
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14091   (eval $ac_compile) 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest.$ac_objext'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110   ac_cv_prog_cc_g=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_prog_cc_g=no
14116 fi
14117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14118 fi
14119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14121 if test "$ac_test_CFLAGS" = set; then
14122   CFLAGS=$ac_save_CFLAGS
14123 elif test $ac_cv_prog_cc_g = yes; then
14124   if test "$GCC" = yes; then
14125     CFLAGS="-g -O2"
14126   else
14127     CFLAGS="-g"
14128   fi
14129 else
14130   if test "$GCC" = yes; then
14131     CFLAGS="-O2"
14132   else
14133     CFLAGS=
14134   fi
14135 fi
14136             fi
14137         fi
14138
14139                         case `uname -s` in
14140             AIX*)
14141                 ac_ext=cc
14142 ac_cpp='$CXXCPP $CPPFLAGS'
14143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14146
14147 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14148 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14149 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152   cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158
14159 int
14160 main ()
14161 {
14162 #ifndef __xlC__
14163        choke me
14164 #endif
14165
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172   (eval $ac_compile) 2>conftest.er1
14173   ac_status=$?
14174   grep -v '^ *+' conftest.er1 >conftest.err
14175   rm -f conftest.er1
14176   cat conftest.err >&5
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   bakefile_compiler_xlc=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 bakefile_compiler_xlc=no
14197 fi
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14200
14201 fi
14202 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14203 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14204
14205 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14206 ac_ext=cc
14207 ac_cpp='$CXXCPP $CPPFLAGS'
14208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14211
14212
14213                 ;;
14214
14215             Darwin)
14216                 ac_ext=cc
14217 ac_cpp='$CXXCPP $CPPFLAGS'
14218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14221
14222 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14223 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14224 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233
14234 int
14235 main ()
14236 {
14237 #ifndef __MWERKS__
14238        choke me
14239 #endif
14240
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247   (eval $ac_compile) 2>conftest.er1
14248   ac_status=$?
14249   grep -v '^ *+' conftest.er1 >conftest.err
14250   rm -f conftest.er1
14251   cat conftest.err >&5
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } &&
14254          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; } &&
14260          { ac_try='test -s conftest.$ac_objext'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266   bakefile_compiler_mwerks=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 bakefile_compiler_mwerks=no
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14275
14276 fi
14277 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14278 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14279
14280 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14281 ac_ext=cc
14282 ac_cpp='$CXXCPP $CPPFLAGS'
14283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14286
14287
14288                 ac_ext=cc
14289 ac_cpp='$CXXCPP $CPPFLAGS'
14290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14293
14294 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14295 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14296 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299   cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h.  */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h.  */
14305
14306 int
14307 main ()
14308 {
14309 #ifndef __xlC__
14310        choke me
14311 #endif
14312
14313   ;
14314   return 0;
14315 }
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319   (eval $ac_compile) 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; } &&
14332          { ac_try='test -s conftest.$ac_objext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   bakefile_compiler_xlc=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 bakefile_compiler_xlc=no
14344 fi
14345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14346     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14347
14348 fi
14349 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14350 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14351
14352 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14353 ac_ext=cc
14354 ac_cpp='$CXXCPP $CPPFLAGS'
14355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14358
14359
14360                 ;;
14361
14362             IRIX*)
14363
14364
14365     ac_ext=cc
14366 ac_cpp='$CXXCPP $CPPFLAGS'
14367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14370
14371     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14372 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14373 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14374   echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376   cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h.  */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h.  */
14382
14383 int
14384 main ()
14385 {
14386
14387              #ifndef _SGI_COMPILER_VERSION
14388                 choke me
14389              #endif
14390
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397   (eval $ac_compile) 2>conftest.er1
14398   ac_status=$?
14399   grep -v '^ *+' conftest.er1 >conftest.err
14400   rm -f conftest.er1
14401   cat conftest.err >&5
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); } &&
14404          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; } &&
14410          { ac_try='test -s conftest.$ac_objext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14422
14423 fi
14424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14425
14426
14427 fi
14428 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14429 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14430     ac_ext=cc
14431 ac_cpp='$CXXCPP $CPPFLAGS'
14432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14435
14436     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14437         :; SGICXX=yes
14438     else
14439         :;
14440     fi
14441
14442
14443                 ;;
14444
14445             HP-UX*)
14446
14447
14448     ac_ext=cc
14449 ac_cpp='$CXXCPP $CPPFLAGS'
14450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14453
14454     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14455 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14456 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465
14466 int
14467 main ()
14468 {
14469
14470              #ifndef __HP_aCC
14471                 choke me
14472              #endif
14473
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480   (eval $ac_compile) 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489   (eval $ac_try) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   bakefile_cv_cxx_compiler___HP_aCC=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 bakefile_cv_cxx_compiler___HP_aCC=no
14505
14506 fi
14507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14508
14509
14510 fi
14511 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14512 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14513     ac_ext=cc
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
14519     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14520         :; HPCXX=yes
14521     else
14522         :;
14523     fi
14524
14525
14526                 ;;
14527
14528             OSF1)
14529
14530
14531     ac_ext=cc
14532 ac_cpp='$CXXCPP $CPPFLAGS'
14533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14536
14537     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14538 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14539 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548
14549 int
14550 main ()
14551 {
14552
14553              #ifndef __DECCXX
14554                 choke me
14555              #endif
14556
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563   (eval $ac_compile) 2>conftest.er1
14564   ac_status=$?
14565   grep -v '^ *+' conftest.er1 >conftest.err
14566   rm -f conftest.er1
14567   cat conftest.err >&5
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; } &&
14576          { ac_try='test -s conftest.$ac_objext'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   bakefile_cv_cxx_compiler___DECCXX=yes
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 bakefile_cv_cxx_compiler___DECCXX=no
14588
14589 fi
14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591
14592
14593 fi
14594 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14595 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14596     ac_ext=cc
14597 ac_cpp='$CXXCPP $CPPFLAGS'
14598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14601
14602     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14603         :; COMPAQCXX=yes
14604     else
14605         :;
14606     fi
14607
14608
14609                 ;;
14610
14611             SunOS)
14612
14613
14614     ac_ext=cc
14615 ac_cpp='$CXXCPP $CPPFLAGS'
14616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14619
14620     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14621 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14622 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14623   echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625   cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631
14632 int
14633 main ()
14634 {
14635
14636              #ifndef __SUNPRO_CC
14637                 choke me
14638              #endif
14639
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646   (eval $ac_compile) 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14666 else
14667   echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14671
14672 fi
14673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674
14675
14676 fi
14677 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14678 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14679     ac_ext=cc
14680 ac_cpp='$CXXCPP $CPPFLAGS'
14681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14684
14685     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14686         :; SUNCXX=yes
14687     else
14688         :;
14689     fi
14690
14691
14692                 ;;
14693         esac
14694     fi
14695
14696
14697
14698 if test -n "$ac_tool_prefix"; then
14699   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14701 echo "$as_me:$LINENO: checking for $ac_word" >&5
14702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14703 if test "${ac_cv_prog_RANLIB+set}" = set; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   if test -n "$RANLIB"; then
14707   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14708 else
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14711 do
14712   IFS=$as_save_IFS
14713   test -z "$as_dir" && as_dir=.
14714   for ac_exec_ext in '' $ac_executable_extensions; do
14715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14718     break 2
14719   fi
14720 done
14721 done
14722
14723 fi
14724 fi
14725 RANLIB=$ac_cv_prog_RANLIB
14726 if test -n "$RANLIB"; then
14727   echo "$as_me:$LINENO: result: $RANLIB" >&5
14728 echo "${ECHO_T}$RANLIB" >&6
14729 else
14730   echo "$as_me:$LINENO: result: no" >&5
14731 echo "${ECHO_T}no" >&6
14732 fi
14733
14734 fi
14735 if test -z "$ac_cv_prog_RANLIB"; then
14736   ac_ct_RANLIB=$RANLIB
14737   # Extract the first word of "ranlib", so it can be a program name with args.
14738 set dummy ranlib; ac_word=$2
14739 echo "$as_me:$LINENO: checking for $ac_word" >&5
14740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744   if test -n "$ac_ct_RANLIB"; then
14745   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14746 else
14747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14748 for as_dir in $PATH
14749 do
14750   IFS=$as_save_IFS
14751   test -z "$as_dir" && as_dir=.
14752   for ac_exec_ext in '' $ac_executable_extensions; do
14753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14754     ac_cv_prog_ac_ct_RANLIB="ranlib"
14755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14756     break 2
14757   fi
14758 done
14759 done
14760
14761   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14762 fi
14763 fi
14764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14765 if test -n "$ac_ct_RANLIB"; then
14766   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14767 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14768 else
14769   echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6
14771 fi
14772
14773   RANLIB=$ac_ct_RANLIB
14774 else
14775   RANLIB="$ac_cv_prog_RANLIB"
14776 fi
14777
14778
14779 if test -n "$ac_tool_prefix"; then
14780   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14781 set dummy ${ac_tool_prefix}ar; ac_word=$2
14782 echo "$as_me:$LINENO: checking for $ac_word" >&5
14783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14784 if test "${ac_cv_prog_AR+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   if test -n "$AR"; then
14788   ac_cv_prog_AR="$AR" # Let the user override the test.
14789 else
14790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791 for as_dir in $PATH
14792 do
14793   IFS=$as_save_IFS
14794   test -z "$as_dir" && as_dir=.
14795   for ac_exec_ext in '' $ac_executable_extensions; do
14796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14797     ac_cv_prog_AR="${ac_tool_prefix}ar"
14798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14799     break 2
14800   fi
14801 done
14802 done
14803
14804 fi
14805 fi
14806 AR=$ac_cv_prog_AR
14807 if test -n "$AR"; then
14808   echo "$as_me:$LINENO: result: $AR" >&5
14809 echo "${ECHO_T}$AR" >&6
14810 else
14811   echo "$as_me:$LINENO: result: no" >&5
14812 echo "${ECHO_T}no" >&6
14813 fi
14814
14815 fi
14816 if test -z "$ac_cv_prog_AR"; then
14817   ac_ct_AR=$AR
14818   # Extract the first word of "ar", so it can be a program name with args.
14819 set dummy ar; ac_word=$2
14820 echo "$as_me:$LINENO: checking for $ac_word" >&5
14821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14822 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   if test -n "$ac_ct_AR"; then
14826   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14827 else
14828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 for as_dir in $PATH
14830 do
14831   IFS=$as_save_IFS
14832   test -z "$as_dir" && as_dir=.
14833   for ac_exec_ext in '' $ac_executable_extensions; do
14834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835     ac_cv_prog_ac_ct_AR="ar"
14836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14837     break 2
14838   fi
14839 done
14840 done
14841
14842 fi
14843 fi
14844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14845 if test -n "$ac_ct_AR"; then
14846   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14847 echo "${ECHO_T}$ac_ct_AR" >&6
14848 else
14849   echo "$as_me:$LINENO: result: no" >&5
14850 echo "${ECHO_T}no" >&6
14851 fi
14852
14853   AR=$ac_ct_AR
14854 else
14855   AR="$ac_cv_prog_AR"
14856 fi
14857
14858 if test "x$AR" = "x" ; then
14859     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14860 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14861    { (exit 1); exit 1; }; }
14862 fi
14863
14864 # Find a good install program.  We prefer a C program (faster),
14865 # so one script is as good as another.  But avoid the broken or
14866 # incompatible versions:
14867 # SysV /etc/install, /usr/sbin/install
14868 # SunOS /usr/etc/install
14869 # IRIX /sbin/install
14870 # AIX /bin/install
14871 # AmigaOS /C/install, which installs bootblocks on floppy discs
14872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14875 # OS/2's system install, which has a completely different semantic
14876 # ./install, which can be erroneously created by make from ./install.sh.
14877 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14879 if test -z "$INSTALL"; then
14880 if test "${ac_cv_path_install+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14885 do
14886   IFS=$as_save_IFS
14887   test -z "$as_dir" && as_dir=.
14888   # Account for people who put trailing slashes in PATH elements.
14889 case $as_dir/ in
14890   ./ | .// | /cC/* | \
14891   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14892   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14893   /usr/ucb/* ) ;;
14894   *)
14895     # OSF1 and SCO ODT 3.0 have their own names for install.
14896     # Don't use installbsd from OSF since it installs stuff as root
14897     # by default.
14898     for ac_prog in ginstall scoinst install; do
14899       for ac_exec_ext in '' $ac_executable_extensions; do
14900         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14901           if test $ac_prog = install &&
14902             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14903             # AIX install.  It has an incompatible calling convention.
14904             :
14905           elif test $ac_prog = install &&
14906             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14907             # program-specific install script used by HP pwplus--don't use.
14908             :
14909           else
14910             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14911             break 3
14912           fi
14913         fi
14914       done
14915     done
14916     ;;
14917 esac
14918 done
14919
14920
14921 fi
14922   if test "${ac_cv_path_install+set}" = set; then
14923     INSTALL=$ac_cv_path_install
14924   else
14925     # As a last resort, use the slow shell script.  We don't cache a
14926     # path for INSTALL within a source directory, because that will
14927     # break other packages using the cache if that directory is
14928     # removed, or if the path is relative.
14929     INSTALL=$ac_install_sh
14930   fi
14931 fi
14932 echo "$as_me:$LINENO: result: $INSTALL" >&5
14933 echo "${ECHO_T}$INSTALL" >&6
14934
14935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14936 # It thinks the first close brace ends the variable substitution.
14937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14938
14939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14940
14941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14942
14943
14944 case ${INSTALL} in
14945   /* ) # Absolute
14946      ;;
14947   ?:* ) # Drive letter, considered as absolute.
14948      ;;
14949   *)
14950      INSTALL=`pwd`/${INSTALL} ;;
14951 esac
14952
14953
14954 case "${host}" in
14955
14956                 *-*-darwin* )
14957         INSTALL_PROGRAM="cp -fp"
14958         INSTALL_DATA="cp -fp"
14959         ;;
14960     *)
14961         ;;
14962 esac
14963
14964 if test -n "$ac_tool_prefix"; then
14965   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14966 set dummy ${ac_tool_prefix}strip; ac_word=$2
14967 echo "$as_me:$LINENO: checking for $ac_word" >&5
14968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14969 if test "${ac_cv_prog_STRIP+set}" = set; then
14970   echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972   if test -n "$STRIP"; then
14973   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978   IFS=$as_save_IFS
14979   test -z "$as_dir" && as_dir=.
14980   for ac_exec_ext in '' $ac_executable_extensions; do
14981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14984     break 2
14985   fi
14986 done
14987 done
14988
14989 fi
14990 fi
14991 STRIP=$ac_cv_prog_STRIP
14992 if test -n "$STRIP"; then
14993   echo "$as_me:$LINENO: result: $STRIP" >&5
14994 echo "${ECHO_T}$STRIP" >&6
14995 else
14996   echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6
14998 fi
14999
15000 fi
15001 if test -z "$ac_cv_prog_STRIP"; then
15002   ac_ct_STRIP=$STRIP
15003   # Extract the first word of "strip", so it can be a program name with args.
15004 set dummy strip; ac_word=$2
15005 echo "$as_me:$LINENO: checking for $ac_word" >&5
15006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15007 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010   if test -n "$ac_ct_STRIP"; then
15011   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15012 else
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $PATH
15015 do
15016   IFS=$as_save_IFS
15017   test -z "$as_dir" && as_dir=.
15018   for ac_exec_ext in '' $ac_executable_extensions; do
15019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020     ac_cv_prog_ac_ct_STRIP="strip"
15021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15022     break 2
15023   fi
15024 done
15025 done
15026
15027   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15028 fi
15029 fi
15030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15031 if test -n "$ac_ct_STRIP"; then
15032   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15033 echo "${ECHO_T}$ac_ct_STRIP" >&6
15034 else
15035   echo "$as_me:$LINENO: result: no" >&5
15036 echo "${ECHO_T}no" >&6
15037 fi
15038
15039   STRIP=$ac_ct_STRIP
15040 else
15041   STRIP="$ac_cv_prog_STRIP"
15042 fi
15043
15044
15045 if test "$wxUSE_WINE" = "yes"; then
15046     if test -n "$ac_tool_prefix"; then
15047   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15048 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15049 echo "$as_me:$LINENO: checking for $ac_word" >&5
15050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15051 if test "${ac_cv_prog_WINDRES+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   if test -n "$WINDRES"; then
15055   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15056 else
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15059 do
15060   IFS=$as_save_IFS
15061   test -z "$as_dir" && as_dir=.
15062   for ac_exec_ext in '' $ac_executable_extensions; do
15063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15066     break 2
15067   fi
15068 done
15069 done
15070
15071 fi
15072 fi
15073 WINDRES=$ac_cv_prog_WINDRES
15074 if test -n "$WINDRES"; then
15075   echo "$as_me:$LINENO: result: $WINDRES" >&5
15076 echo "${ECHO_T}$WINDRES" >&6
15077 else
15078   echo "$as_me:$LINENO: result: no" >&5
15079 echo "${ECHO_T}no" >&6
15080 fi
15081
15082 fi
15083 if test -z "$ac_cv_prog_WINDRES"; then
15084   ac_ct_WINDRES=$WINDRES
15085   # Extract the first word of "wrc", so it can be a program name with args.
15086 set dummy wrc; ac_word=$2
15087 echo "$as_me:$LINENO: checking for $ac_word" >&5
15088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15089 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   if test -n "$ac_ct_WINDRES"; then
15093   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15094 else
15095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096 for as_dir in $PATH
15097 do
15098   IFS=$as_save_IFS
15099   test -z "$as_dir" && as_dir=.
15100   for ac_exec_ext in '' $ac_executable_extensions; do
15101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15102     ac_cv_prog_ac_ct_WINDRES="wrc"
15103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15104     break 2
15105   fi
15106 done
15107 done
15108
15109 fi
15110 fi
15111 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15112 if test -n "$ac_ct_WINDRES"; then
15113   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15114 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15115 else
15116   echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15118 fi
15119
15120   WINDRES=$ac_ct_WINDRES
15121 else
15122   WINDRES="$ac_cv_prog_WINDRES"
15123 fi
15124
15125     RESCOMP="$WINDRES"
15126 else
15127     case "${host}" in
15128     *-*-cygwin* | *-*-mingw32* )
15129                                 if test -n "$ac_tool_prefix"; then
15130   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15131 set dummy ${ac_tool_prefix}windres; ac_word=$2
15132 echo "$as_me:$LINENO: checking for $ac_word" >&5
15133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15134 if test "${ac_cv_prog_WINDRES+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   if test -n "$WINDRES"; then
15138   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15139 else
15140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141 for as_dir in $PATH
15142 do
15143   IFS=$as_save_IFS
15144   test -z "$as_dir" && as_dir=.
15145   for ac_exec_ext in '' $ac_executable_extensions; do
15146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15147     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15149     break 2
15150   fi
15151 done
15152 done
15153
15154 fi
15155 fi
15156 WINDRES=$ac_cv_prog_WINDRES
15157 if test -n "$WINDRES"; then
15158   echo "$as_me:$LINENO: result: $WINDRES" >&5
15159 echo "${ECHO_T}$WINDRES" >&6
15160 else
15161   echo "$as_me:$LINENO: result: no" >&5
15162 echo "${ECHO_T}no" >&6
15163 fi
15164
15165 fi
15166 if test -z "$ac_cv_prog_WINDRES"; then
15167   ac_ct_WINDRES=$WINDRES
15168   # Extract the first word of "windres", so it can be a program name with args.
15169 set dummy windres; ac_word=$2
15170 echo "$as_me:$LINENO: checking for $ac_word" >&5
15171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15172 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   if test -n "$ac_ct_WINDRES"; then
15176   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15177 else
15178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179 for as_dir in $PATH
15180 do
15181   IFS=$as_save_IFS
15182   test -z "$as_dir" && as_dir=.
15183   for ac_exec_ext in '' $ac_executable_extensions; do
15184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15185     ac_cv_prog_ac_ct_WINDRES="windres"
15186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15187     break 2
15188   fi
15189 done
15190 done
15191
15192 fi
15193 fi
15194 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15195 if test -n "$ac_ct_WINDRES"; then
15196   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15197 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15198 else
15199   echo "$as_me:$LINENO: result: no" >&5
15200 echo "${ECHO_T}no" >&6
15201 fi
15202
15203   WINDRES=$ac_ct_WINDRES
15204 else
15205   WINDRES="$ac_cv_prog_WINDRES"
15206 fi
15207
15208         RESCOMP="$WINDRES"
15209         if test -n "$ac_tool_prefix"; then
15210   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15212 echo "$as_me:$LINENO: checking for $ac_word" >&5
15213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217   if test -n "$DLLTOOL"; then
15218   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15219 else
15220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15221 for as_dir in $PATH
15222 do
15223   IFS=$as_save_IFS
15224   test -z "$as_dir" && as_dir=.
15225   for ac_exec_ext in '' $ac_executable_extensions; do
15226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15227     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15229     break 2
15230   fi
15231 done
15232 done
15233
15234 fi
15235 fi
15236 DLLTOOL=$ac_cv_prog_DLLTOOL
15237 if test -n "$DLLTOOL"; then
15238   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15239 echo "${ECHO_T}$DLLTOOL" >&6
15240 else
15241   echo "$as_me:$LINENO: result: no" >&5
15242 echo "${ECHO_T}no" >&6
15243 fi
15244
15245 fi
15246 if test -z "$ac_cv_prog_DLLTOOL"; then
15247   ac_ct_DLLTOOL=$DLLTOOL
15248   # Extract the first word of "dlltool", so it can be a program name with args.
15249 set dummy dlltool; ac_word=$2
15250 echo "$as_me:$LINENO: checking for $ac_word" >&5
15251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15252 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   if test -n "$ac_ct_DLLTOOL"; then
15256   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15257 else
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15260 do
15261   IFS=$as_save_IFS
15262   test -z "$as_dir" && as_dir=.
15263   for ac_exec_ext in '' $ac_executable_extensions; do
15264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15267     break 2
15268   fi
15269 done
15270 done
15271
15272 fi
15273 fi
15274 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15275 if test -n "$ac_ct_DLLTOOL"; then
15276   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15277 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15278 else
15279   echo "$as_me:$LINENO: result: no" >&5
15280 echo "${ECHO_T}no" >&6
15281 fi
15282
15283   DLLTOOL=$ac_ct_DLLTOOL
15284 else
15285   DLLTOOL="$ac_cv_prog_DLLTOOL"
15286 fi
15287
15288         ;;
15289     esac
15290 fi
15291
15292 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15293 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15294 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297
15298     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15299             egrep -s GNU > /dev/null); then
15300         wx_cv_prog_makeisgnu="yes"
15301     else
15302         wx_cv_prog_makeisgnu="no"
15303     fi
15304
15305 fi
15306 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15307 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15308
15309 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15310     IF_GNU_MAKE=""
15311 else
15312     IF_GNU_MAKE="#"
15313 fi
15314
15315
15316
15317 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15318 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15319 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15320 if test "${wx_cv_prog_makevpath+set}" = set; then
15321   echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323
15324 cat - << EOF > confMake
15325 check : file
15326         cp \$? \$@
15327         cp \$? final_file
15328 EOF
15329
15330 if test ! -d sub ; then
15331   mkdir sub
15332 fi
15333 echo dummy > sub/file
15334 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15335 RESULT=$?
15336 rm -f sub/file check final_file confMake
15337 rmdir sub
15338 if test "$RESULT" = 0; then
15339   wx_cv_prog_makevpath="yes"
15340 else
15341   wx_cv_prog_makevpath="no"
15342 fi
15343
15344 fi
15345 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15346 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15347
15348 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15349 { { echo "$as_me:$LINENO: error:
15350 You need a make-utility that is able to use the variable
15351 VPATH correctly.
15352 If your version of make does not support VPATH correctly,
15353 please install GNU-make (possibly as gmake), and start
15354 configure with the following command:
15355 export MAKE=gmake; ./configure  for sh-type shells
15356 setenv MAKE gmake; ./configure  for csh-type shells
15357 Also please do remember to use gmake in this case every time
15358 you are trying to compile.
15359 " >&5
15360 echo "$as_me: error:
15361 You need a make-utility that is able to use the variable
15362 VPATH correctly.
15363 If your version of make does not support VPATH correctly,
15364 please install GNU-make (possibly as gmake), and start
15365 configure with the following command:
15366 export MAKE=gmake; ./configure  for sh-type shells
15367 setenv MAKE gmake; ./configure  for csh-type shells
15368 Also please do remember to use gmake in this case every time
15369 you are trying to compile.
15370 " >&2;}
15371    { (exit 1); exit 1; }; }
15372 fi fi
15373 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15374 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15375 LN_S=$as_ln_s
15376 if test "$LN_S" = "ln -s"; then
15377   echo "$as_me:$LINENO: result: yes" >&5
15378 echo "${ECHO_T}yes" >&6
15379 else
15380   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15381 echo "${ECHO_T}no, using $LN_S" >&6
15382 fi
15383
15384
15385
15386
15387 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15388     CXXFLAGS="-qunique $CXXFLAGS"
15389 fi
15390
15391 case "${host}" in
15392   powerpc-*-darwin* )
15393     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15394 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15395     cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401
15402 int
15403 main ()
15404 {
15405 #ifndef __POWERPC__
15406         choke me for lack of PowerPC
15407 #endif
15408
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415   (eval $ac_compile) 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424   (eval $ac_try) 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; } &&
15428          { ac_try='test -s conftest.$ac_objext'
15429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430   (eval $ac_try) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; }; then
15434   echo "$as_me:$LINENO: result: yes" >&5
15435 echo "${ECHO_T}yes" >&6
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 echo "$as_me:$LINENO: result: no" >&5
15441 echo "${ECHO_T}no" >&6
15442         cat >>confdefs.h <<\_ACEOF
15443 #define __POWERPC__ 1
15444 _ACEOF
15445
15446
15447 fi
15448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15449   ;;
15450 esac
15451
15452 case "${host}" in
15453   *-*-darwin* )
15454     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15455 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15456     cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462 #include <CoreFoundation/CFBase.h>
15463
15464 int
15465 main ()
15466 {
15467
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15474   (eval $ac_compile) 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } &&
15481          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483   (eval $ac_try) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }; } &&
15487          { ac_try='test -s conftest.$ac_objext'
15488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489   (eval $ac_try) 2>&5
15490   ac_status=$?
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); }; }; then
15493   echo "$as_me:$LINENO: result: yes" >&5
15494 echo "${ECHO_T}yes" >&6
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499 echo "$as_me:$LINENO: result: no" >&5
15500 echo "${ECHO_T}no" >&6
15501         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15502 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15503         cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 #define __CF_USE_FRAMEWORK_INCLUDES__
15510 #include <CoreFoundation/CFBase.h>
15511
15512 int
15513 main ()
15514 {
15515
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522   (eval $ac_compile) 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531   (eval $ac_try) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; } &&
15535          { ac_try='test -s conftest.$ac_objext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   echo "$as_me:$LINENO: result: yes" >&5
15542 echo "${ECHO_T}yes" >&6
15543                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15549 See \`config.log' for more details." >&5
15550 echo "$as_me: error: no.  CoreFoundation not available.
15551 See \`config.log' for more details." >&2;}
15552    { (exit 1); exit 1; }; }
15553
15554 fi
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556
15557
15558 fi
15559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560   ;;
15561 esac
15562
15563 case "${host}" in
15564   *-pc-os2_emx | *-pc-os2-emx )
15565                                                       ac_ext=c
15566 ac_cpp='$CPP $CPPFLAGS'
15567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15570
15571       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15572                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15573 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15574 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   ac_check_lib_save_LIBS=$LIBS
15578 LIBS="-lcExt  $LIBS"
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585
15586 /* Override any gcc2 internal prototype to avoid an error.  */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char drand48 ();
15593 int
15594 main ()
15595 {
15596 drand48 ();
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603   (eval $ac_link) 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } &&
15610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; } &&
15616          { ac_try='test -s conftest$ac_exeext'
15617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618   (eval $ac_try) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; }; then
15622   ac_cv_lib_cExt_drand48=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ac_cv_lib_cExt_drand48=no
15628 fi
15629 rm -f conftest.err conftest.$ac_objext \
15630       conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15632 fi
15633 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15634 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15635 if test $ac_cv_lib_cExt_drand48 = yes; then
15636   LIBS="$LIBS -lcExt"
15637 fi
15638
15639       else
15640                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15641       fi
15642                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15643 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15644 if test "${wx_cv_gccversion+set}" = set; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647
15648           if test "$cross_compiling" = yes; then
15649                 wx_cv_gccversion="EMX2"
15650
15651 else
15652   cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658
15659                   #include <stdio.h>
15660
15661                   int main()
15662                   {
15663                       FILE *f=fopen("conftestval", "w");
15664                       if (!f) exit(1);
15665                       fprintf(f,
15666                   #if (__GNUC__ < 3)
15667                               "EMX2"
15668                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15669                               "EMX3"
15670                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15671                               "Innotek5"
15672                   #else
15673                               "Innotek6"
15674                   #endif
15675                       );
15676                       exit(0);
15677                   }
15678
15679 _ACEOF
15680 rm -f conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; }; then
15691   wx_cv_gccversion=`cat conftestval`
15692 else
15693   echo "$as_me: program exited with status $ac_status" >&5
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ( exit $ac_status )
15698 wx_cv_gccversion="EMX2"
15699 fi
15700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15701 fi
15702
15703 fi
15704 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15705 echo "${ECHO_T}$wx_cv_gccversion" >&6
15706       ac_ext=cc
15707 ac_cpp='$CXXCPP $CPPFLAGS'
15708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15711
15712       if test "$wx_cv_gccversion" = "EMX2"; then
15713           LIBS="$LIBS -lstdcpp"
15714           LDFLAGS="$LDFLAGS -Zsysv-signals"
15715       else
15716           if test "$wx_cv_gccversion" = "EMX3"; then
15717               LIBS="$LIBS -lstdcxx -lgcc"
15718               LDFLAGS="$LDFLAGS -Zsysv-signals"
15719           else
15720               LIBS="$LIBS -lstdc++"
15721           fi
15722       fi
15723       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15724         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15725 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15726         wxUSE_OMF=yes
15727         enable_omf=yes
15728       fi
15729         ;;
15730   *)
15731
15732       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15733 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15734 if test "${ac_cv_string_strcasecmp+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737
15738           cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744
15745               #include <string.h>
15746
15747 int
15748 main ()
15749 {
15750
15751                   strcasecmp("foo", "bar");
15752
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext conftest$ac_exeext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15759   (eval $ac_link) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768   (eval $ac_try) 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); }; } &&
15772          { ac_try='test -s conftest$ac_exeext'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778   ac_cv_string_strcasecmp=yes
15779 else
15780   echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783 ac_cv_string_strcasecmp=no
15784
15785 fi
15786 rm -f conftest.err conftest.$ac_objext \
15787       conftest$ac_exeext conftest.$ac_ext
15788
15789 fi
15790 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15791 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15792
15793       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15794           cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_STRCASECMP_IN_STRING_H 1
15796 _ACEOF
15797
15798       else
15799           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15800 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15801 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804
15805               cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811
15812                   #include <strings.h>
15813
15814 int
15815 main ()
15816 {
15817
15818                       strcasecmp("foo", "bar");
15819
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15826   (eval $ac_link) 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } &&
15833          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835   (eval $ac_try) 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; } &&
15839          { ac_try='test -s conftest$ac_exeext'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; }; then
15845   ac_cv_strings_strcasecmp=yes
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_cv_strings_strcasecmp=no
15851
15852 fi
15853 rm -f conftest.err conftest.$ac_objext \
15854       conftest$ac_exeext conftest.$ac_ext
15855
15856 fi
15857 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15858 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15859
15860           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15861               cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15863 _ACEOF
15864
15865           else
15866               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15867 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15868    { (exit 1); exit 1; }; }
15869           fi
15870       fi
15871
15872         ;;
15873 esac
15874
15875
15876 ac_ext=cc
15877 ac_cpp='$CXXCPP $CPPFLAGS'
15878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15881 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15882 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15883 if test -z "$CXXCPP"; then
15884   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887       # Double quotes because CXXCPP needs to be expanded
15888     for CXXCPP in "$CXX -E" "/lib/cpp"
15889     do
15890       ac_preproc_ok=false
15891 for ac_cxx_preproc_warn_flag in '' yes
15892 do
15893   # Use a header file that comes with gcc, so configuring glibc
15894   # with a fresh cross-compiler works.
15895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896   # <limits.h> exists even on freestanding compilers.
15897   # On the NeXT, cc -E runs the code through the compiler's parser,
15898   # not just through cpp. "Syntax error" is here to catch this case.
15899   cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 #ifdef __STDC__
15906 # include <limits.h>
15907 #else
15908 # include <assert.h>
15909 #endif
15910                      Syntax error
15911 _ACEOF
15912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } >/dev/null; then
15920   if test -s conftest.err; then
15921     ac_cpp_err=$ac_cxx_preproc_warn_flag
15922     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15923   else
15924     ac_cpp_err=
15925   fi
15926 else
15927   ac_cpp_err=yes
15928 fi
15929 if test -z "$ac_cpp_err"; then
15930   :
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935   # Broken: fails on valid input.
15936 continue
15937 fi
15938 rm -f conftest.err conftest.$ac_ext
15939
15940   # OK, works on sane cases.  Now check whether non-existent headers
15941   # can be detected and how.
15942   cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948 #include <ac_nonexistent.h>
15949 _ACEOF
15950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } >/dev/null; then
15958   if test -s conftest.err; then
15959     ac_cpp_err=$ac_cxx_preproc_warn_flag
15960     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15961   else
15962     ac_cpp_err=
15963   fi
15964 else
15965   ac_cpp_err=yes
15966 fi
15967 if test -z "$ac_cpp_err"; then
15968   # Broken: success on invalid input.
15969 continue
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974   # Passes both tests.
15975 ac_preproc_ok=:
15976 break
15977 fi
15978 rm -f conftest.err conftest.$ac_ext
15979
15980 done
15981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15982 rm -f conftest.err conftest.$ac_ext
15983 if $ac_preproc_ok; then
15984   break
15985 fi
15986
15987     done
15988     ac_cv_prog_CXXCPP=$CXXCPP
15989
15990 fi
15991   CXXCPP=$ac_cv_prog_CXXCPP
15992 else
15993   ac_cv_prog_CXXCPP=$CXXCPP
15994 fi
15995 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15996 echo "${ECHO_T}$CXXCPP" >&6
15997 ac_preproc_ok=false
15998 for ac_cxx_preproc_warn_flag in '' yes
15999 do
16000   # Use a header file that comes with gcc, so configuring glibc
16001   # with a fresh cross-compiler works.
16002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16003   # <limits.h> exists even on freestanding compilers.
16004   # On the NeXT, cc -E runs the code through the compiler's parser,
16005   # not just through cpp. "Syntax error" is here to catch this case.
16006   cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012 #ifdef __STDC__
16013 # include <limits.h>
16014 #else
16015 # include <assert.h>
16016 #endif
16017                      Syntax error
16018 _ACEOF
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } >/dev/null; then
16027   if test -s conftest.err; then
16028     ac_cpp_err=$ac_cxx_preproc_warn_flag
16029     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16030   else
16031     ac_cpp_err=
16032   fi
16033 else
16034   ac_cpp_err=yes
16035 fi
16036 if test -z "$ac_cpp_err"; then
16037   :
16038 else
16039   echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042   # Broken: fails on valid input.
16043 continue
16044 fi
16045 rm -f conftest.err conftest.$ac_ext
16046
16047   # OK, works on sane cases.  Now check whether non-existent headers
16048   # can be detected and how.
16049   cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055 #include <ac_nonexistent.h>
16056 _ACEOF
16057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16059   ac_status=$?
16060   grep -v '^ *+' conftest.er1 >conftest.err
16061   rm -f conftest.er1
16062   cat conftest.err >&5
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } >/dev/null; then
16065   if test -s conftest.err; then
16066     ac_cpp_err=$ac_cxx_preproc_warn_flag
16067     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16068   else
16069     ac_cpp_err=
16070   fi
16071 else
16072   ac_cpp_err=yes
16073 fi
16074 if test -z "$ac_cpp_err"; then
16075   # Broken: success on invalid input.
16076 continue
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081   # Passes both tests.
16082 ac_preproc_ok=:
16083 break
16084 fi
16085 rm -f conftest.err conftest.$ac_ext
16086
16087 done
16088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16089 rm -f conftest.err conftest.$ac_ext
16090 if $ac_preproc_ok; then
16091   :
16092 else
16093   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16094 See \`config.log' for more details." >&5
16095 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16096 See \`config.log' for more details." >&2;}
16097    { (exit 1); exit 1; }; }
16098 fi
16099
16100 ac_ext=cc
16101 ac_cpp='$CXXCPP $CPPFLAGS'
16102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16105
16106
16107 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16109 if test "${ac_cv_header_stdc+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118 #include <stdlib.h>
16119 #include <stdarg.h>
16120 #include <string.h>
16121 #include <float.h>
16122
16123 int
16124 main ()
16125 {
16126
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133   (eval $ac_compile) 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } &&
16140          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142   (eval $ac_try) 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; } &&
16146          { ac_try='test -s conftest.$ac_objext'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; }; then
16152   ac_cv_header_stdc=yes
16153 else
16154   echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16156
16157 ac_cv_header_stdc=no
16158 fi
16159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160
16161 if test $ac_cv_header_stdc = yes; then
16162   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
16170
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 #include <stdlib.h>
16191
16192 _ACEOF
16193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16194   $EGREP "free" >/dev/null 2>&1; then
16195   :
16196 else
16197   ac_cv_header_stdc=no
16198 fi
16199 rm -f conftest*
16200
16201 fi
16202
16203 if test $ac_cv_header_stdc = yes; then
16204   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16205   if test "$cross_compiling" = yes; then
16206   :
16207 else
16208   cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 #include <ctype.h>
16215 #if ((' ' & 0x0FF) == 0x020)
16216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16218 #else
16219 # define ISLOWER(c) \
16220                    (('a' <= (c) && (c) <= 'i') \
16221                      || ('j' <= (c) && (c) <= 'r') \
16222                      || ('s' <= (c) && (c) <= 'z'))
16223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16224 #endif
16225
16226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16227 int
16228 main ()
16229 {
16230   int i;
16231   for (i = 0; i < 256; i++)
16232     if (XOR (islower (i), ISLOWER (i))
16233         || toupper (i) != TOUPPER (i))
16234       exit(2);
16235   exit (0);
16236 }
16237 _ACEOF
16238 rm -f conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240   (eval $ac_link) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   :
16250 else
16251   echo "$as_me: program exited with status $ac_status" >&5
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 ( exit $ac_status )
16256 ac_cv_header_stdc=no
16257 fi
16258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16259 fi
16260 fi
16261 fi
16262 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16264 if test $ac_cv_header_stdc = yes; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define STDC_HEADERS 1
16268 _ACEOF
16269
16270 fi
16271
16272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16283                   inttypes.h stdint.h unistd.h
16284 do
16285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16286 echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h.  */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h.  */
16297 $ac_includes_default
16298
16299 #include <$ac_header>
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303   (eval $ac_compile) 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; } &&
16316          { ac_try='test -s conftest.$ac_objext'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; }; then
16322   eval "$as_ac_Header=yes"
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327 eval "$as_ac_Header=no"
16328 fi
16329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16330 fi
16331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16334   cat >>confdefs.h <<_ACEOF
16335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16336 _ACEOF
16337
16338 fi
16339
16340 done
16341
16342
16343
16344 for ac_header in stdlib.h
16345 do
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16348   echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 fi
16353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16355 else
16356   # Is the header compilable?
16357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 $ac_includes_default
16366 #include <$ac_header>
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370   (eval $ac_compile) 2>conftest.er1
16371   ac_status=$?
16372   grep -v '^ *+' conftest.er1 >conftest.err
16373   rm -f conftest.er1
16374   cat conftest.err >&5
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); } &&
16377          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379   (eval $ac_try) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; } &&
16383          { ac_try='test -s conftest.$ac_objext'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; }; then
16389   ac_header_compiler=yes
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 ac_header_compiler=no
16395 fi
16396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16398 echo "${ECHO_T}$ac_header_compiler" >&6
16399
16400 # Is the header present?
16401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h.  */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h.  */
16409 #include <$ac_header>
16410 _ACEOF
16411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16413   ac_status=$?
16414   grep -v '^ *+' conftest.er1 >conftest.err
16415   rm -f conftest.er1
16416   cat conftest.err >&5
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } >/dev/null; then
16419   if test -s conftest.err; then
16420     ac_cpp_err=$ac_cxx_preproc_warn_flag
16421     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16422   else
16423     ac_cpp_err=
16424   fi
16425 else
16426   ac_cpp_err=yes
16427 fi
16428 if test -z "$ac_cpp_err"; then
16429   ac_header_preproc=yes
16430 else
16431   echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16433
16434   ac_header_preproc=no
16435 fi
16436 rm -f conftest.err conftest.$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6
16439
16440 # So?  What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16442   yes:no: )
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447     ac_header_preproc=yes
16448     ;;
16449   no:yes:* )
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462     (
16463       cat <<\_ASBOX
16464 ## ----------------------------------------- ##
16465 ## Report this to wx-dev@lists.wxwidgets.org ##
16466 ## ----------------------------------------- ##
16467 _ASBOX
16468     ) |
16469       sed "s/^/$as_me: WARNING:     /" >&2
16470     ;;
16471 esac
16472 echo "$as_me:$LINENO: checking for $ac_header" >&5
16473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   eval "$as_ac_Header=\$ac_header_preproc"
16478 fi
16479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16481
16482 fi
16483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16484   cat >>confdefs.h <<_ACEOF
16485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16486 _ACEOF
16487
16488 fi
16489
16490 done
16491
16492
16493 for ac_header in malloc.h
16494 do
16495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16497   echo "$as_me:$LINENO: checking for $ac_header" >&5
16498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16500   echo $ECHO_N "(cached) $ECHO_C" >&6
16501 fi
16502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504 else
16505   # Is the header compilable?
16506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16508 cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 $ac_includes_default
16515 #include <$ac_header>
16516 _ACEOF
16517 rm -f conftest.$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519   (eval $ac_compile) 2>conftest.er1
16520   ac_status=$?
16521   grep -v '^ *+' conftest.er1 >conftest.err
16522   rm -f conftest.er1
16523   cat conftest.err >&5
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); } &&
16526          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528   (eval $ac_try) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; } &&
16532          { ac_try='test -s conftest.$ac_objext'
16533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534   (eval $ac_try) 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; }; then
16538   ac_header_compiler=yes
16539 else
16540   echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_header_compiler=no
16544 fi
16545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547 echo "${ECHO_T}$ac_header_compiler" >&6
16548
16549 # Is the header present?
16550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 #include <$ac_header>
16559 _ACEOF
16560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } >/dev/null; then
16568   if test -s conftest.err; then
16569     ac_cpp_err=$ac_cxx_preproc_warn_flag
16570     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16571   else
16572     ac_cpp_err=
16573   fi
16574 else
16575   ac_cpp_err=yes
16576 fi
16577 if test -z "$ac_cpp_err"; then
16578   ac_header_preproc=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583   ac_header_preproc=no
16584 fi
16585 rm -f conftest.err conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587 echo "${ECHO_T}$ac_header_preproc" >&6
16588
16589 # So?  What about this header?
16590 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16591   yes:no: )
16592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16596     ac_header_preproc=yes
16597     ;;
16598   no:yes:* )
16599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16611     (
16612       cat <<\_ASBOX
16613 ## ----------------------------------------- ##
16614 ## Report this to wx-dev@lists.wxwidgets.org ##
16615 ## ----------------------------------------- ##
16616 _ASBOX
16617     ) |
16618       sed "s/^/$as_me: WARNING:     /" >&2
16619     ;;
16620 esac
16621 echo "$as_me:$LINENO: checking for $ac_header" >&5
16622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   eval "$as_ac_Header=\$ac_header_preproc"
16627 fi
16628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16630
16631 fi
16632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633   cat >>confdefs.h <<_ACEOF
16634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16635 _ACEOF
16636
16637 fi
16638
16639 done
16640
16641
16642 for ac_header in unistd.h
16643 do
16644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646   echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 fi
16651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16653 else
16654   # Is the header compilable?
16655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 $ac_includes_default
16664 #include <$ac_header>
16665 _ACEOF
16666 rm -f conftest.$ac_objext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16668   (eval $ac_compile) 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } &&
16675          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677   (eval $ac_try) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; } &&
16681          { ac_try='test -s conftest.$ac_objext'
16682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683   (eval $ac_try) 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; }; then
16687   ac_header_compiler=yes
16688 else
16689   echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16691
16692 ac_header_compiler=no
16693 fi
16694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16696 echo "${ECHO_T}$ac_header_compiler" >&6
16697
16698 # Is the header present?
16699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 #include <$ac_header>
16708 _ACEOF
16709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } >/dev/null; then
16717   if test -s conftest.err; then
16718     ac_cpp_err=$ac_cxx_preproc_warn_flag
16719     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16720   else
16721     ac_cpp_err=
16722   fi
16723 else
16724   ac_cpp_err=yes
16725 fi
16726 if test -z "$ac_cpp_err"; then
16727   ac_header_preproc=yes
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732   ac_header_preproc=no
16733 fi
16734 rm -f conftest.err conftest.$ac_ext
16735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16736 echo "${ECHO_T}$ac_header_preproc" >&6
16737
16738 # So?  What about this header?
16739 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16740   yes:no: )
16741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16745     ac_header_preproc=yes
16746     ;;
16747   no:yes:* )
16748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16750     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16751 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16752     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16754     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16755 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16758     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16760     (
16761       cat <<\_ASBOX
16762 ## ----------------------------------------- ##
16763 ## Report this to wx-dev@lists.wxwidgets.org ##
16764 ## ----------------------------------------- ##
16765 _ASBOX
16766     ) |
16767       sed "s/^/$as_me: WARNING:     /" >&2
16768     ;;
16769 esac
16770 echo "$as_me:$LINENO: checking for $ac_header" >&5
16771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773   echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775   eval "$as_ac_Header=\$ac_header_preproc"
16776 fi
16777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16779
16780 fi
16781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16782   cat >>confdefs.h <<_ACEOF
16783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16784 _ACEOF
16785
16786 fi
16787
16788 done
16789
16790
16791 for ac_header in wchar.h
16792 do
16793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795   echo "$as_me:$LINENO: checking for $ac_header" >&5
16796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 fi
16800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16802 else
16803   # Is the header compilable?
16804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812 $ac_includes_default
16813 #include <$ac_header>
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817   (eval $ac_compile) 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826   (eval $ac_try) 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; } &&
16830          { ac_try='test -s conftest.$ac_objext'
16831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832   (eval $ac_try) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; }; then
16836   ac_header_compiler=yes
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841 ac_header_compiler=no
16842 fi
16843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16845 echo "${ECHO_T}$ac_header_compiler" >&6
16846
16847 # Is the header present?
16848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 #include <$ac_header>
16857 _ACEOF
16858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } >/dev/null; then
16866   if test -s conftest.err; then
16867     ac_cpp_err=$ac_cxx_preproc_warn_flag
16868     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16869   else
16870     ac_cpp_err=
16871   fi
16872 else
16873   ac_cpp_err=yes
16874 fi
16875 if test -z "$ac_cpp_err"; then
16876   ac_header_preproc=yes
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881   ac_header_preproc=no
16882 fi
16883 rm -f conftest.err conftest.$ac_ext
16884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885 echo "${ECHO_T}$ac_header_preproc" >&6
16886
16887 # So?  What about this header?
16888 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16889   yes:no: )
16890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16894     ac_header_preproc=yes
16895     ;;
16896   no:yes:* )
16897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16909     (
16910       cat <<\_ASBOX
16911 ## ----------------------------------------- ##
16912 ## Report this to wx-dev@lists.wxwidgets.org ##
16913 ## ----------------------------------------- ##
16914 _ASBOX
16915     ) |
16916       sed "s/^/$as_me: WARNING:     /" >&2
16917     ;;
16918 esac
16919 echo "$as_me:$LINENO: checking for $ac_header" >&5
16920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924   eval "$as_ac_Header=\$ac_header_preproc"
16925 fi
16926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16928
16929 fi
16930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16931   cat >>confdefs.h <<_ACEOF
16932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16933 _ACEOF
16934
16935 fi
16936
16937 done
16938
16939
16940 if test "$ac_cv_header_wchar_h" != "yes"; then
16941
16942 for ac_header in wcstr.h
16943 do
16944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16946   echo "$as_me:$LINENO: checking for $ac_header" >&5
16947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 fi
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16953 else
16954   # Is the header compilable?
16955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 $ac_includes_default
16964 #include <$ac_header>
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968   (eval $ac_compile) 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } &&
16975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977   (eval $ac_try) 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; } &&
16981          { ac_try='test -s conftest.$ac_objext'
16982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983   (eval $ac_try) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); }; }; then
16987   ac_header_compiler=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_header_compiler=no
16993 fi
16994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16996 echo "${ECHO_T}$ac_header_compiler" >&6
16997
16998 # Is the header present?
16999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 #include <$ac_header>
17008 _ACEOF
17009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } >/dev/null; then
17017   if test -s conftest.err; then
17018     ac_cpp_err=$ac_cxx_preproc_warn_flag
17019     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17020   else
17021     ac_cpp_err=
17022   fi
17023 else
17024   ac_cpp_err=yes
17025 fi
17026 if test -z "$ac_cpp_err"; then
17027   ac_header_preproc=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032   ac_header_preproc=no
17033 fi
17034 rm -f conftest.err conftest.$ac_ext
17035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17036 echo "${ECHO_T}$ac_header_preproc" >&6
17037
17038 # So?  What about this header?
17039 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17040   yes:no: )
17041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17045     ac_header_preproc=yes
17046     ;;
17047   no:yes:* )
17048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17060     (
17061       cat <<\_ASBOX
17062 ## ----------------------------------------- ##
17063 ## Report this to wx-dev@lists.wxwidgets.org ##
17064 ## ----------------------------------------- ##
17065 _ASBOX
17066     ) |
17067       sed "s/^/$as_me: WARNING:     /" >&2
17068     ;;
17069 esac
17070 echo "$as_me:$LINENO: checking for $ac_header" >&5
17071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   eval "$as_ac_Header=\$ac_header_preproc"
17076 fi
17077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17079
17080 fi
17081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17082   cat >>confdefs.h <<_ACEOF
17083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17084 _ACEOF
17085
17086 fi
17087
17088 done
17089
17090 fi
17091
17092
17093 for ac_header in fnmatch.h
17094 do
17095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17097   echo "$as_me:$LINENO: checking for $ac_header" >&5
17098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17100   echo $ECHO_N "(cached) $ECHO_C" >&6
17101 fi
17102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17104 else
17105   # Is the header compilable?
17106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114 $ac_includes_default
17115 #include <$ac_header>
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119   (eval $ac_compile) 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; } &&
17132          { ac_try='test -s conftest.$ac_objext'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   ac_header_compiler=yes
17139 else
17140   echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 ac_header_compiler=no
17144 fi
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17147 echo "${ECHO_T}$ac_header_compiler" >&6
17148
17149 # Is the header present?
17150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h.  */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h.  */
17158 #include <$ac_header>
17159 _ACEOF
17160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17162   ac_status=$?
17163   grep -v '^ *+' conftest.er1 >conftest.err
17164   rm -f conftest.er1
17165   cat conftest.err >&5
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } >/dev/null; then
17168   if test -s conftest.err; then
17169     ac_cpp_err=$ac_cxx_preproc_warn_flag
17170     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17171   else
17172     ac_cpp_err=
17173   fi
17174 else
17175   ac_cpp_err=yes
17176 fi
17177 if test -z "$ac_cpp_err"; then
17178   ac_header_preproc=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183   ac_header_preproc=no
17184 fi
17185 rm -f conftest.err conftest.$ac_ext
17186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17187 echo "${ECHO_T}$ac_header_preproc" >&6
17188
17189 # So?  What about this header?
17190 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17191   yes:no: )
17192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17196     ac_header_preproc=yes
17197     ;;
17198   no:yes:* )
17199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17211     (
17212       cat <<\_ASBOX
17213 ## ----------------------------------------- ##
17214 ## Report this to wx-dev@lists.wxwidgets.org ##
17215 ## ----------------------------------------- ##
17216 _ASBOX
17217     ) |
17218       sed "s/^/$as_me: WARNING:     /" >&2
17219     ;;
17220 esac
17221 echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   eval "$as_ac_Header=\$ac_header_preproc"
17227 fi
17228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17230
17231 fi
17232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17233   cat >>confdefs.h <<_ACEOF
17234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17235 _ACEOF
17236
17237 fi
17238
17239 done
17240
17241
17242
17243 for ac_header in langinfo.h
17244 do
17245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17247   echo "$as_me:$LINENO: checking for $ac_header" >&5
17248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 fi
17252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17254 else
17255   # Is the header compilable?
17256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264 $ac_includes_default
17265 #include <$ac_header>
17266 _ACEOF
17267 rm -f conftest.$ac_objext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17269   (eval $ac_compile) 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } &&
17276          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest.$ac_objext'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   ac_header_compiler=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_header_compiler=no
17294 fi
17295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17297 echo "${ECHO_T}$ac_header_compiler" >&6
17298
17299 # Is the header present?
17300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308 #include <$ac_header>
17309 _ACEOF
17310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } >/dev/null; then
17318   if test -s conftest.err; then
17319     ac_cpp_err=$ac_cxx_preproc_warn_flag
17320     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17321   else
17322     ac_cpp_err=
17323   fi
17324 else
17325   ac_cpp_err=yes
17326 fi
17327 if test -z "$ac_cpp_err"; then
17328   ac_header_preproc=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333   ac_header_preproc=no
17334 fi
17335 rm -f conftest.err conftest.$ac_ext
17336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17337 echo "${ECHO_T}$ac_header_preproc" >&6
17338
17339 # So?  What about this header?
17340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17341   yes:no: )
17342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17346     ac_header_preproc=yes
17347     ;;
17348   no:yes:* )
17349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17361     (
17362       cat <<\_ASBOX
17363 ## ----------------------------------------- ##
17364 ## Report this to wx-dev@lists.wxwidgets.org ##
17365 ## ----------------------------------------- ##
17366 _ASBOX
17367     ) |
17368       sed "s/^/$as_me: WARNING:     /" >&2
17369     ;;
17370 esac
17371 echo "$as_me:$LINENO: checking for $ac_header" >&5
17372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   eval "$as_ac_Header=\$ac_header_preproc"
17377 fi
17378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17380
17381 fi
17382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17383   cat >>confdefs.h <<_ACEOF
17384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385 _ACEOF
17386
17387 fi
17388
17389 done
17390
17391
17392 case "${host}" in
17393   *-pc-os2_emx | *-pc-os2-emx )
17394                   if test $ac_cv_header_langinfo_h = "yes" \
17395                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17396                      -o "$wx_cv_gccversion" = "EMX3" \
17397                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17398           LIBS="$LIBS -lintl"
17399       fi
17400   ;;
17401 esac
17402
17403 if test "$USE_UNIX" = 1 ; then
17404
17405 for ac_header in sys/select.h
17406 do
17407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17409   echo "$as_me:$LINENO: checking for $ac_header" >&5
17410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 fi
17414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17416 else
17417   # Is the header compilable?
17418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 $ac_includes_default
17427 #include <$ac_header>
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431   (eval $ac_compile) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440   (eval $ac_try) 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest.$ac_objext'
17445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446   (eval $ac_try) 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; }; then
17450   ac_header_compiler=yes
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 ac_header_compiler=no
17456 fi
17457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17459 echo "${ECHO_T}$ac_header_compiler" >&6
17460
17461 # Is the header present?
17462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470 #include <$ac_header>
17471 _ACEOF
17472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } >/dev/null; then
17480   if test -s conftest.err; then
17481     ac_cpp_err=$ac_cxx_preproc_warn_flag
17482     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17483   else
17484     ac_cpp_err=
17485   fi
17486 else
17487   ac_cpp_err=yes
17488 fi
17489 if test -z "$ac_cpp_err"; then
17490   ac_header_preproc=yes
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495   ac_header_preproc=no
17496 fi
17497 rm -f conftest.err conftest.$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17499 echo "${ECHO_T}$ac_header_preproc" >&6
17500
17501 # So?  What about this header?
17502 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17503   yes:no: )
17504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17508     ac_header_preproc=yes
17509     ;;
17510   no:yes:* )
17511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17523     (
17524       cat <<\_ASBOX
17525 ## ----------------------------------------- ##
17526 ## Report this to wx-dev@lists.wxwidgets.org ##
17527 ## ----------------------------------------- ##
17528 _ASBOX
17529     ) |
17530       sed "s/^/$as_me: WARNING:     /" >&2
17531     ;;
17532 esac
17533 echo "$as_me:$LINENO: checking for $ac_header" >&5
17534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17536   echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538   eval "$as_ac_Header=\$ac_header_preproc"
17539 fi
17540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17542
17543 fi
17544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17545   cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17547 _ACEOF
17548
17549 fi
17550
17551 done
17552
17553 fi
17554
17555
17556 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17557 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17558 if test "${ac_cv_c_const+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 int
17569 main ()
17570 {
17571 /* FIXME: Include the comments suggested by Paul. */
17572 #ifndef __cplusplus
17573   /* Ultrix mips cc rejects this.  */
17574   typedef int charset[2];
17575   const charset x;
17576   /* SunOS 4.1.1 cc rejects this.  */
17577   char const *const *ccp;
17578   char **p;
17579   /* NEC SVR4.0.2 mips cc rejects this.  */
17580   struct point {int x, y;};
17581   static struct point const zero = {0,0};
17582   /* AIX XL C 1.02.0.0 rejects this.
17583      It does not let you subtract one const X* pointer from another in
17584      an arm of an if-expression whose if-part is not a constant
17585      expression */
17586   const char *g = "string";
17587   ccp = &g + (g ? g-g : 0);
17588   /* HPUX 7.0 cc rejects these. */
17589   ++ccp;
17590   p = (char**) ccp;
17591   ccp = (char const *const *) p;
17592   { /* SCO 3.2v4 cc rejects this.  */
17593     char *t;
17594     char const *s = 0 ? (char *) 0 : (char const *) 0;
17595
17596     *t++ = 0;
17597   }
17598   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17599     int x[] = {25, 17};
17600     const int *foo = &x[0];
17601     ++foo;
17602   }
17603   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17604     typedef const int *iptr;
17605     iptr p = 0;
17606     ++p;
17607   }
17608   { /* AIX XL C 1.02.0.0 rejects this saying
17609        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17610     struct s { int j; const int *ap[3]; };
17611     struct s *b; b->j = 5;
17612   }
17613   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17614     const int foo = 10;
17615   }
17616 #endif
17617
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624   (eval $ac_compile) 2>conftest.er1
17625   ac_status=$?
17626   grep -v '^ *+' conftest.er1 >conftest.err
17627   rm -f conftest.er1
17628   cat conftest.err >&5
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); } &&
17631          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633   (eval $ac_try) 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; } &&
17637          { ac_try='test -s conftest.$ac_objext'
17638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639   (eval $ac_try) 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; }; then
17643   ac_cv_c_const=yes
17644 else
17645   echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648 ac_cv_c_const=no
17649 fi
17650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17651 fi
17652 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17653 echo "${ECHO_T}$ac_cv_c_const" >&6
17654 if test $ac_cv_c_const = no; then
17655
17656 cat >>confdefs.h <<\_ACEOF
17657 #define const
17658 _ACEOF
17659
17660 fi
17661
17662 echo "$as_me:$LINENO: checking for inline" >&5
17663 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17664 if test "${ac_cv_c_inline+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667   ac_cv_c_inline=no
17668 for ac_kw in inline __inline__ __inline; do
17669   cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 #ifndef __cplusplus
17676 typedef int foo_t;
17677 static $ac_kw foo_t static_foo () {return 0; }
17678 $ac_kw foo_t foo () {return 0; }
17679 #endif
17680
17681 _ACEOF
17682 rm -f conftest.$ac_objext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17684   (eval $ac_compile) 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } &&
17691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; } &&
17697          { ac_try='test -s conftest.$ac_objext'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   ac_cv_c_inline=$ac_kw; break
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 fi
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 done
17711
17712 fi
17713 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17714 echo "${ECHO_T}$ac_cv_c_inline" >&6
17715
17716
17717 case $ac_cv_c_inline in
17718   inline | yes) ;;
17719   *)
17720     case $ac_cv_c_inline in
17721       no) ac_val=;;
17722       *) ac_val=$ac_cv_c_inline;;
17723     esac
17724     cat >>confdefs.h <<_ACEOF
17725 #ifndef __cplusplus
17726 #define inline $ac_val
17727 #endif
17728 _ACEOF
17729     ;;
17730 esac
17731
17732
17733 echo "$as_me:$LINENO: checking for char" >&5
17734 echo $ECHO_N "checking for char... $ECHO_C" >&6
17735 if test "${ac_cv_type_char+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744 $ac_includes_default
17745 int
17746 main ()
17747 {
17748 if ((char *) 0)
17749   return 0;
17750 if (sizeof (char))
17751   return 0;
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758   (eval $ac_compile) 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } &&
17765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; } &&
17771          { ac_try='test -s conftest.$ac_objext'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; }; then
17777   ac_cv_type_char=yes
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 ac_cv_type_char=no
17783 fi
17784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17787 echo "${ECHO_T}$ac_cv_type_char" >&6
17788
17789 echo "$as_me:$LINENO: checking size of char" >&5
17790 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17791 if test "${ac_cv_sizeof_char+set}" = set; then
17792   echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794   if test "$ac_cv_type_char" = yes; then
17795   # The cast to unsigned long works around a bug in the HP C Compiler
17796   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17797   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17798   # This bug is HP SR number 8606223364.
17799   if test "$cross_compiling" = yes; then
17800   # Depending upon the size, compute the lo and hi bounds.
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807 $ac_includes_default
17808 int
17809 main ()
17810 {
17811 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17812 test_array [0] = 0
17813
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17820   (eval $ac_compile) 2>conftest.er1
17821   ac_status=$?
17822   grep -v '^ *+' conftest.er1 >conftest.err
17823   rm -f conftest.er1
17824   cat conftest.err >&5
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); } &&
17827          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; } &&
17833          { ac_try='test -s conftest.$ac_objext'
17834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835   (eval $ac_try) 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839   ac_lo=0 ac_mid=0
17840   while :; do
17841     cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847 $ac_includes_default
17848 int
17849 main ()
17850 {
17851 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17852 test_array [0] = 0
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17860   (eval $ac_compile) 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } &&
17867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869   (eval $ac_try) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; } &&
17873          { ac_try='test -s conftest.$ac_objext'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; }; then
17879   ac_hi=$ac_mid; break
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ac_lo=`expr $ac_mid + 1`
17885                     if test $ac_lo -le $ac_mid; then
17886                       ac_lo= ac_hi=
17887                       break
17888                     fi
17889                     ac_mid=`expr 2 '*' $ac_mid + 1`
17890 fi
17891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17892   done
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903 $ac_includes_default
17904 int
17905 main ()
17906 {
17907 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17908 test_array [0] = 0
17909
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916   (eval $ac_compile) 2>conftest.er1
17917   ac_status=$?
17918   grep -v '^ *+' conftest.er1 >conftest.err
17919   rm -f conftest.er1
17920   cat conftest.err >&5
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } &&
17923          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; } &&
17929          { ac_try='test -s conftest.$ac_objext'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   ac_hi=-1 ac_mid=-1
17936   while :; do
17937     cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943 $ac_includes_default
17944 int
17945 main ()
17946 {
17947 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17948 test_array [0] = 0
17949
17950   ;
17951   return 0;
17952 }
17953 _ACEOF
17954 rm -f conftest.$ac_objext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956   (eval $ac_compile) 2>conftest.er1
17957   ac_status=$?
17958   grep -v '^ *+' conftest.er1 >conftest.err
17959   rm -f conftest.er1
17960   cat conftest.err >&5
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } &&
17963          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965   (eval $ac_try) 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; } &&
17969          { ac_try='test -s conftest.$ac_objext'
17970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971   (eval $ac_try) 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; }; then
17975   ac_lo=$ac_mid; break
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 ac_hi=`expr '(' $ac_mid ')' - 1`
17981                        if test $ac_mid -le $ac_hi; then
17982                          ac_lo= ac_hi=
17983                          break
17984                        fi
17985                        ac_mid=`expr 2 '*' $ac_mid`
17986 fi
17987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988   done
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 ac_lo= ac_hi=
17994 fi
17995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17996 fi
17997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17998 # Binary search between lo and hi bounds.
17999 while test "x$ac_lo" != "x$ac_hi"; do
18000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18001   cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 $ac_includes_default
18008 int
18009 main ()
18010 {
18011 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18012 test_array [0] = 0
18013
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020   (eval $ac_compile) 2>conftest.er1
18021   ac_status=$?
18022   grep -v '^ *+' conftest.er1 >conftest.err
18023   rm -f conftest.er1
18024   cat conftest.err >&5
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); } &&
18027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest.$ac_objext'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   ac_hi=$ac_mid
18040 else
18041   echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18043
18044 ac_lo=`expr '(' $ac_mid ')' + 1`
18045 fi
18046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18047 done
18048 case $ac_lo in
18049 ?*) ac_cv_sizeof_char=$ac_lo;;
18050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18051 See \`config.log' for more details." >&5
18052 echo "$as_me: error: cannot compute sizeof (char), 77
18053 See \`config.log' for more details." >&2;}
18054    { (exit 1); exit 1; }; } ;;
18055 esac
18056 else
18057   if test "$cross_compiling" = yes; then
18058   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18059 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18060    { (exit 1); exit 1; }; }
18061 else
18062   cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 $ac_includes_default
18069 long longval () { return (long) (sizeof (char)); }
18070 unsigned long ulongval () { return (long) (sizeof (char)); }
18071 #include <stdio.h>
18072 #include <stdlib.h>
18073 int
18074 main ()
18075 {
18076
18077   FILE *f = fopen ("conftest.val", "w");
18078   if (! f)
18079     exit (1);
18080   if (((long) (sizeof (char))) < 0)
18081     {
18082       long i = longval ();
18083       if (i != ((long) (sizeof (char))))
18084         exit (1);
18085       fprintf (f, "%ld\n", i);
18086     }
18087   else
18088     {
18089       unsigned long i = ulongval ();
18090       if (i != ((long) (sizeof (char))))
18091         exit (1);
18092       fprintf (f, "%lu\n", i);
18093     }
18094   exit (ferror (f) || fclose (f) != 0);
18095
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102   (eval $ac_link) 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   ac_cv_sizeof_char=`cat conftest.val`
18112 else
18113   echo "$as_me: program exited with status $ac_status" >&5
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117 ( exit $ac_status )
18118 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18119 See \`config.log' for more details." >&5
18120 echo "$as_me: error: cannot compute sizeof (char), 77
18121 See \`config.log' for more details." >&2;}
18122    { (exit 1); exit 1; }; }
18123 fi
18124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18125 fi
18126 fi
18127 rm -f conftest.val
18128 else
18129   ac_cv_sizeof_char=0
18130 fi
18131 fi
18132 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18133 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18134 cat >>confdefs.h <<_ACEOF
18135 #define SIZEOF_CHAR $ac_cv_sizeof_char
18136 _ACEOF
18137
18138
18139 echo "$as_me:$LINENO: checking for short" >&5
18140 echo $ECHO_N "checking for short... $ECHO_C" >&6
18141 if test "${ac_cv_type_short+set}" = set; then
18142   echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144   cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150 $ac_includes_default
18151 int
18152 main ()
18153 {
18154 if ((short *) 0)
18155   return 0;
18156 if (sizeof (short))
18157   return 0;
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164   (eval $ac_compile) 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } &&
18171          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173   (eval $ac_try) 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; } &&
18177          { ac_try='test -s conftest.$ac_objext'
18178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179   (eval $ac_try) 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; }; then
18183   ac_cv_type_short=yes
18184 else
18185   echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 ac_cv_type_short=no
18189 fi
18190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18191 fi
18192 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18193 echo "${ECHO_T}$ac_cv_type_short" >&6
18194
18195 echo "$as_me:$LINENO: checking size of short" >&5
18196 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18197 if test "${ac_cv_sizeof_short+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   if test "$ac_cv_type_short" = yes; then
18201   # The cast to unsigned long works around a bug in the HP C Compiler
18202   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18203   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18204   # This bug is HP SR number 8606223364.
18205   if test "$cross_compiling" = yes; then
18206   # Depending upon the size, compute the lo and hi bounds.
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h.  */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h.  */
18213 $ac_includes_default
18214 int
18215 main ()
18216 {
18217 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18218 test_array [0] = 0
18219
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18226   (eval $ac_compile) 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } &&
18233          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; } &&
18239          { ac_try='test -s conftest.$ac_objext'
18240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241   (eval $ac_try) 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); }; }; then
18245   ac_lo=0 ac_mid=0
18246   while :; do
18247     cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253 $ac_includes_default
18254 int
18255 main ()
18256 {
18257 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18258 test_array [0] = 0
18259
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266   (eval $ac_compile) 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275   (eval $ac_try) 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; } &&
18279          { ac_try='test -s conftest.$ac_objext'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; }; then
18285   ac_hi=$ac_mid; break
18286 else
18287   echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18289
18290 ac_lo=`expr $ac_mid + 1`
18291                     if test $ac_lo -le $ac_mid; then
18292                       ac_lo= ac_hi=
18293                       break
18294                     fi
18295                     ac_mid=`expr 2 '*' $ac_mid + 1`
18296 fi
18297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298   done
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309 $ac_includes_default
18310 int
18311 main ()
18312 {
18313 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18314 test_array [0] = 0
18315
18316   ;
18317   return 0;
18318 }
18319 _ACEOF
18320 rm -f conftest.$ac_objext
18321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18322   (eval $ac_compile) 2>conftest.er1
18323   ac_status=$?
18324   grep -v '^ *+' conftest.er1 >conftest.err
18325   rm -f conftest.er1
18326   cat conftest.err >&5
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } &&
18329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest.$ac_objext'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_hi=-1 ac_mid=-1
18342   while :; do
18343     cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349 $ac_includes_default
18350 int
18351 main ()
18352 {
18353 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18354 test_array [0] = 0
18355
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362   (eval $ac_compile) 2>conftest.er1
18363   ac_status=$?
18364   grep -v '^ *+' conftest.er1 >conftest.err
18365   rm -f conftest.er1
18366   cat conftest.err >&5
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } &&
18369          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; } &&
18375          { ac_try='test -s conftest.$ac_objext'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   ac_lo=$ac_mid; break
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_hi=`expr '(' $ac_mid ')' - 1`
18387                        if test $ac_mid -le $ac_hi; then
18388                          ac_lo= ac_hi=
18389                          break
18390                        fi
18391                        ac_mid=`expr 2 '*' $ac_mid`
18392 fi
18393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18394   done
18395 else
18396   echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ac_lo= ac_hi=
18400 fi
18401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 fi
18403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18404 # Binary search between lo and hi bounds.
18405 while test "x$ac_lo" != "x$ac_hi"; do
18406   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18407   cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413 $ac_includes_default
18414 int
18415 main ()
18416 {
18417 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18418 test_array [0] = 0
18419
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18426   (eval $ac_compile) 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } &&
18433          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; } &&
18439          { ac_try='test -s conftest.$ac_objext'
18440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441   (eval $ac_try) 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); }; }; then
18445   ac_hi=$ac_mid
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 ac_lo=`expr '(' $ac_mid ')' + 1`
18451 fi
18452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18453 done
18454 case $ac_lo in
18455 ?*) ac_cv_sizeof_short=$ac_lo;;
18456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18457 See \`config.log' for more details." >&5
18458 echo "$as_me: error: cannot compute sizeof (short), 77
18459 See \`config.log' for more details." >&2;}
18460    { (exit 1); exit 1; }; } ;;
18461 esac
18462 else
18463   if test "$cross_compiling" = yes; then
18464   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18465 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18466    { (exit 1); exit 1; }; }
18467 else
18468   cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h.  */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h.  */
18474 $ac_includes_default
18475 long longval () { return (long) (sizeof (short)); }
18476 unsigned long ulongval () { return (long) (sizeof (short)); }
18477 #include <stdio.h>
18478 #include <stdlib.h>
18479 int
18480 main ()
18481 {
18482
18483   FILE *f = fopen ("conftest.val", "w");
18484   if (! f)
18485     exit (1);
18486   if (((long) (sizeof (short))) < 0)
18487     {
18488       long i = longval ();
18489       if (i != ((long) (sizeof (short))))
18490         exit (1);
18491       fprintf (f, "%ld\n", i);
18492     }
18493   else
18494     {
18495       unsigned long i = ulongval ();
18496       if (i != ((long) (sizeof (short))))
18497         exit (1);
18498       fprintf (f, "%lu\n", i);
18499     }
18500   exit (ferror (f) || fclose (f) != 0);
18501
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508   (eval $ac_link) 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   ac_cv_sizeof_short=`cat conftest.val`
18518 else
18519   echo "$as_me: program exited with status $ac_status" >&5
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523 ( exit $ac_status )
18524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18525 See \`config.log' for more details." >&5
18526 echo "$as_me: error: cannot compute sizeof (short), 77
18527 See \`config.log' for more details." >&2;}
18528    { (exit 1); exit 1; }; }
18529 fi
18530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18531 fi
18532 fi
18533 rm -f conftest.val
18534 else
18535   ac_cv_sizeof_short=0
18536 fi
18537 fi
18538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18539 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18540 cat >>confdefs.h <<_ACEOF
18541 #define SIZEOF_SHORT $ac_cv_sizeof_short
18542 _ACEOF
18543
18544
18545 echo "$as_me:$LINENO: checking for void *" >&5
18546 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18547 if test "${ac_cv_type_void_p+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550   cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h.  */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h.  */
18556 $ac_includes_default
18557 int
18558 main ()
18559 {
18560 if ((void * *) 0)
18561   return 0;
18562 if (sizeof (void *))
18563   return 0;
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570   (eval $ac_compile) 2>conftest.er1
18571   ac_status=$?
18572   grep -v '^ *+' conftest.er1 >conftest.err
18573   rm -f conftest.er1
18574   cat conftest.err >&5
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } &&
18577          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; } &&
18583          { ac_try='test -s conftest.$ac_objext'
18584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585   (eval $ac_try) 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; }; then
18589   ac_cv_type_void_p=yes
18590 else
18591   echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 ac_cv_type_void_p=no
18595 fi
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 fi
18598 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18599 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18600
18601 echo "$as_me:$LINENO: checking size of void *" >&5
18602 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18603 if test "${ac_cv_sizeof_void_p+set}" = set; then
18604   echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18606   if test "$ac_cv_type_void_p" = yes; then
18607   # The cast to unsigned long works around a bug in the HP C Compiler
18608   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18609   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18610   # This bug is HP SR number 8606223364.
18611   if test "$cross_compiling" = yes; then
18612   # Depending upon the size, compute the lo and hi bounds.
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619 $ac_includes_default
18620 int
18621 main ()
18622 {
18623 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18624 test_array [0] = 0
18625
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632   (eval $ac_compile) 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } &&
18639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; } &&
18645          { ac_try='test -s conftest.$ac_objext'
18646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647   (eval $ac_try) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; }; then
18651   ac_lo=0 ac_mid=0
18652   while :; do
18653     cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659 $ac_includes_default
18660 int
18661 main ()
18662 {
18663 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18664 test_array [0] = 0
18665
18666   ;
18667   return 0;
18668 }
18669 _ACEOF
18670 rm -f conftest.$ac_objext
18671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18672   (eval $ac_compile) 2>conftest.er1
18673   ac_status=$?
18674   grep -v '^ *+' conftest.er1 >conftest.err
18675   rm -f conftest.er1
18676   cat conftest.err >&5
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); } &&
18679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest.$ac_objext'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; }; then
18691   ac_hi=$ac_mid; break
18692 else
18693   echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_lo=`expr $ac_mid + 1`
18697                     if test $ac_lo -le $ac_mid; then
18698                       ac_lo= ac_hi=
18699                       break
18700                     fi
18701                     ac_mid=`expr 2 '*' $ac_mid + 1`
18702 fi
18703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18704   done
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715 $ac_includes_default
18716 int
18717 main ()
18718 {
18719 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18720 test_array [0] = 0
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728   (eval $ac_compile) 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; } &&
18741          { ac_try='test -s conftest.$ac_objext'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747   ac_hi=-1 ac_mid=-1
18748   while :; do
18749     cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755 $ac_includes_default
18756 int
18757 main ()
18758 {
18759 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18760 test_array [0] = 0
18761
18762   ;
18763   return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext
18767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18768   (eval $ac_compile) 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } &&
18775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; } &&
18781          { ac_try='test -s conftest.$ac_objext'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_lo=$ac_mid; break
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 ac_hi=`expr '(' $ac_mid ')' - 1`
18793                        if test $ac_mid -le $ac_hi; then
18794                          ac_lo= ac_hi=
18795                          break
18796                        fi
18797                        ac_mid=`expr 2 '*' $ac_mid`
18798 fi
18799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18800   done
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_lo= ac_hi=
18806 fi
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18808 fi
18809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18810 # Binary search between lo and hi bounds.
18811 while test "x$ac_lo" != "x$ac_hi"; do
18812   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18813   cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h.  */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h.  */
18819 $ac_includes_default
18820 int
18821 main ()
18822 {
18823 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18824 test_array [0] = 0
18825
18826   ;
18827   return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832   (eval $ac_compile) 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } &&
18839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841   (eval $ac_try) 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; } &&
18845          { ac_try='test -s conftest.$ac_objext'
18846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847   (eval $ac_try) 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; }; then
18851   ac_hi=$ac_mid
18852 else
18853   echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_lo=`expr '(' $ac_mid ')' + 1`
18857 fi
18858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18859 done
18860 case $ac_lo in
18861 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18863 See \`config.log' for more details." >&5
18864 echo "$as_me: error: cannot compute sizeof (void *), 77
18865 See \`config.log' for more details." >&2;}
18866    { (exit 1); exit 1; }; } ;;
18867 esac
18868 else
18869   if test "$cross_compiling" = yes; then
18870   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18871 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18872    { (exit 1); exit 1; }; }
18873 else
18874   cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 $ac_includes_default
18881 long longval () { return (long) (sizeof (void *)); }
18882 unsigned long ulongval () { return (long) (sizeof (void *)); }
18883 #include <stdio.h>
18884 #include <stdlib.h>
18885 int
18886 main ()
18887 {
18888
18889   FILE *f = fopen ("conftest.val", "w");
18890   if (! f)
18891     exit (1);
18892   if (((long) (sizeof (void *))) < 0)
18893     {
18894       long i = longval ();
18895       if (i != ((long) (sizeof (void *))))
18896         exit (1);
18897       fprintf (f, "%ld\n", i);
18898     }
18899   else
18900     {
18901       unsigned long i = ulongval ();
18902       if (i != ((long) (sizeof (void *))))
18903         exit (1);
18904       fprintf (f, "%lu\n", i);
18905     }
18906   exit (ferror (f) || fclose (f) != 0);
18907
18908   ;
18909   return 0;
18910 }
18911 _ACEOF
18912 rm -f conftest$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914   (eval $ac_link) 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_cv_sizeof_void_p=`cat conftest.val`
18924 else
18925   echo "$as_me: program exited with status $ac_status" >&5
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ( exit $ac_status )
18930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18931 See \`config.log' for more details." >&5
18932 echo "$as_me: error: cannot compute sizeof (void *), 77
18933 See \`config.log' for more details." >&2;}
18934    { (exit 1); exit 1; }; }
18935 fi
18936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18937 fi
18938 fi
18939 rm -f conftest.val
18940 else
18941   ac_cv_sizeof_void_p=0
18942 fi
18943 fi
18944 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18945 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18946 cat >>confdefs.h <<_ACEOF
18947 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18948 _ACEOF
18949
18950
18951 echo "$as_me:$LINENO: checking for int" >&5
18952 echo $ECHO_N "checking for int... $ECHO_C" >&6
18953 if test "${ac_cv_type_int+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 $ac_includes_default
18963 int
18964 main ()
18965 {
18966 if ((int *) 0)
18967   return 0;
18968 if (sizeof (int))
18969   return 0;
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18976   (eval $ac_compile) 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } &&
18983          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; } &&
18989          { ac_try='test -s conftest.$ac_objext'
18990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991   (eval $ac_try) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); }; }; then
18995   ac_cv_type_int=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000 ac_cv_type_int=no
19001 fi
19002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19003 fi
19004 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19005 echo "${ECHO_T}$ac_cv_type_int" >&6
19006
19007 echo "$as_me:$LINENO: checking size of int" >&5
19008 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19009 if test "${ac_cv_sizeof_int+set}" = set; then
19010   echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012   if test "$ac_cv_type_int" = yes; then
19013   # The cast to unsigned long works around a bug in the HP C Compiler
19014   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19015   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19016   # This bug is HP SR number 8606223364.
19017   if test "$cross_compiling" = yes; then
19018   # Depending upon the size, compute the lo and hi bounds.
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 $ac_includes_default
19026 int
19027 main ()
19028 {
19029 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19030 test_array [0] = 0
19031
19032   ;
19033   return 0;
19034 }
19035 _ACEOF
19036 rm -f conftest.$ac_objext
19037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038   (eval $ac_compile) 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } &&
19045          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047   (eval $ac_try) 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; } &&
19051          { ac_try='test -s conftest.$ac_objext'
19052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053   (eval $ac_try) 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; }; then
19057   ac_lo=0 ac_mid=0
19058   while :; do
19059     cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 $ac_includes_default
19066 int
19067 main ()
19068 {
19069 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19070 test_array [0] = 0
19071
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078   (eval $ac_compile) 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_hi=$ac_mid; break
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_lo=`expr $ac_mid + 1`
19103                     if test $ac_lo -le $ac_mid; then
19104                       ac_lo= ac_hi=
19105                       break
19106                     fi
19107                     ac_mid=`expr 2 '*' $ac_mid + 1`
19108 fi
19109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19110   done
19111 else
19112   echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19114
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121 $ac_includes_default
19122 int
19123 main ()
19124 {
19125 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19126 test_array [0] = 0
19127
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19134   (eval $ac_compile) 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } &&
19141          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143   (eval $ac_try) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; } &&
19147          { ac_try='test -s conftest.$ac_objext'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; }; then
19153   ac_hi=-1 ac_mid=-1
19154   while :; do
19155     cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 $ac_includes_default
19162 int
19163 main ()
19164 {
19165 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19166 test_array [0] = 0
19167
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174   (eval $ac_compile) 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; } &&
19187          { ac_try='test -s conftest.$ac_objext'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; }; then
19193   ac_lo=$ac_mid; break
19194 else
19195   echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19197
19198 ac_hi=`expr '(' $ac_mid ')' - 1`
19199                        if test $ac_mid -le $ac_hi; then
19200                          ac_lo= ac_hi=
19201                          break
19202                        fi
19203                        ac_mid=`expr 2 '*' $ac_mid`
19204 fi
19205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19206   done
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_lo= ac_hi=
19212 fi
19213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19214 fi
19215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 # Binary search between lo and hi bounds.
19217 while test "x$ac_lo" != "x$ac_hi"; do
19218   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19219   cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 $ac_includes_default
19226 int
19227 main ()
19228 {
19229 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19230 test_array [0] = 0
19231
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19238   (eval $ac_compile) 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; } &&
19251          { ac_try='test -s conftest.$ac_objext'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   ac_hi=$ac_mid
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 ac_lo=`expr '(' $ac_mid ')' + 1`
19263 fi
19264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19265 done
19266 case $ac_lo in
19267 ?*) ac_cv_sizeof_int=$ac_lo;;
19268 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19269 See \`config.log' for more details." >&5
19270 echo "$as_me: error: cannot compute sizeof (int), 77
19271 See \`config.log' for more details." >&2;}
19272    { (exit 1); exit 1; }; } ;;
19273 esac
19274 else
19275   if test "$cross_compiling" = yes; then
19276   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19277 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19278    { (exit 1); exit 1; }; }
19279 else
19280   cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 $ac_includes_default
19287 long longval () { return (long) (sizeof (int)); }
19288 unsigned long ulongval () { return (long) (sizeof (int)); }
19289 #include <stdio.h>
19290 #include <stdlib.h>
19291 int
19292 main ()
19293 {
19294
19295   FILE *f = fopen ("conftest.val", "w");
19296   if (! f)
19297     exit (1);
19298   if (((long) (sizeof (int))) < 0)
19299     {
19300       long i = longval ();
19301       if (i != ((long) (sizeof (int))))
19302         exit (1);
19303       fprintf (f, "%ld\n", i);
19304     }
19305   else
19306     {
19307       unsigned long i = ulongval ();
19308       if (i != ((long) (sizeof (int))))
19309         exit (1);
19310       fprintf (f, "%lu\n", i);
19311     }
19312   exit (ferror (f) || fclose (f) != 0);
19313
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest$ac_exeext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320   (eval $ac_link) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_sizeof_int=`cat conftest.val`
19330 else
19331   echo "$as_me: program exited with status $ac_status" >&5
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ( exit $ac_status )
19336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19337 See \`config.log' for more details." >&5
19338 echo "$as_me: error: cannot compute sizeof (int), 77
19339 See \`config.log' for more details." >&2;}
19340    { (exit 1); exit 1; }; }
19341 fi
19342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343 fi
19344 fi
19345 rm -f conftest.val
19346 else
19347   ac_cv_sizeof_int=0
19348 fi
19349 fi
19350 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19351 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19352 cat >>confdefs.h <<_ACEOF
19353 #define SIZEOF_INT $ac_cv_sizeof_int
19354 _ACEOF
19355
19356
19357 echo "$as_me:$LINENO: checking for long" >&5
19358 echo $ECHO_N "checking for long... $ECHO_C" >&6
19359 if test "${ac_cv_type_long+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 $ac_includes_default
19369 int
19370 main ()
19371 {
19372 if ((long *) 0)
19373   return 0;
19374 if (sizeof (long))
19375   return 0;
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382   (eval $ac_compile) 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; } &&
19395          { ac_try='test -s conftest.$ac_objext'
19396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397   (eval $ac_try) 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); }; }; then
19401   ac_cv_type_long=yes
19402 else
19403   echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 ac_cv_type_long=no
19407 fi
19408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 fi
19410 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19411 echo "${ECHO_T}$ac_cv_type_long" >&6
19412
19413 echo "$as_me:$LINENO: checking size of long" >&5
19414 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19415 if test "${ac_cv_sizeof_long+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   if test "$ac_cv_type_long" = yes; then
19419   # The cast to unsigned long works around a bug in the HP C Compiler
19420   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19421   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19422   # This bug is HP SR number 8606223364.
19423   if test "$cross_compiling" = yes; then
19424   # Depending upon the size, compute the lo and hi bounds.
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 $ac_includes_default
19432 int
19433 main ()
19434 {
19435 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19436 test_array [0] = 0
19437
19438   ;
19439   return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444   (eval $ac_compile) 2>conftest.er1
19445   ac_status=$?
19446   grep -v '^ *+' conftest.er1 >conftest.err
19447   rm -f conftest.er1
19448   cat conftest.err >&5
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); } &&
19451          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453   (eval $ac_try) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; } &&
19457          { ac_try='test -s conftest.$ac_objext'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; }; then
19463   ac_lo=0 ac_mid=0
19464   while :; do
19465     cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471 $ac_includes_default
19472 int
19473 main ()
19474 {
19475 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19476 test_array [0] = 0
19477
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484   (eval $ac_compile) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; } &&
19497          { ac_try='test -s conftest.$ac_objext'
19498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499   (eval $ac_try) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   ac_hi=$ac_mid; break
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_lo=`expr $ac_mid + 1`
19509                     if test $ac_lo -le $ac_mid; then
19510                       ac_lo= ac_hi=
19511                       break
19512                     fi
19513                     ac_mid=`expr 2 '*' $ac_mid + 1`
19514 fi
19515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19516   done
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527 $ac_includes_default
19528 int
19529 main ()
19530 {
19531 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19532 test_array [0] = 0
19533
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540   (eval $ac_compile) 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest.$ac_objext'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   ac_hi=-1 ac_mid=-1
19560   while :; do
19561     cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567 $ac_includes_default
19568 int
19569 main ()
19570 {
19571 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19572 test_array [0] = 0
19573
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19580   (eval $ac_compile) 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } &&
19587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; } &&
19593          { ac_try='test -s conftest.$ac_objext'
19594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595   (eval $ac_try) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }; }; then
19599   ac_lo=$ac_mid; break
19600 else
19601   echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_hi=`expr '(' $ac_mid ')' - 1`
19605                        if test $ac_mid -le $ac_hi; then
19606                          ac_lo= ac_hi=
19607                          break
19608                        fi
19609                        ac_mid=`expr 2 '*' $ac_mid`
19610 fi
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612   done
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ac_lo= ac_hi=
19618 fi
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19620 fi
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 # Binary search between lo and hi bounds.
19623 while test "x$ac_lo" != "x$ac_hi"; do
19624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 $ac_includes_default
19632 int
19633 main ()
19634 {
19635 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19636 test_array [0] = 0
19637
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644   (eval $ac_compile) 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   ac_hi=$ac_mid
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ac_lo=`expr '(' $ac_mid ')' + 1`
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 done
19672 case $ac_lo in
19673 ?*) ac_cv_sizeof_long=$ac_lo;;
19674 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19675 See \`config.log' for more details." >&5
19676 echo "$as_me: error: cannot compute sizeof (long), 77
19677 See \`config.log' for more details." >&2;}
19678    { (exit 1); exit 1; }; } ;;
19679 esac
19680 else
19681   if test "$cross_compiling" = yes; then
19682   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19683 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19684    { (exit 1); exit 1; }; }
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 $ac_includes_default
19693 long longval () { return (long) (sizeof (long)); }
19694 unsigned long ulongval () { return (long) (sizeof (long)); }
19695 #include <stdio.h>
19696 #include <stdlib.h>
19697 int
19698 main ()
19699 {
19700
19701   FILE *f = fopen ("conftest.val", "w");
19702   if (! f)
19703     exit (1);
19704   if (((long) (sizeof (long))) < 0)
19705     {
19706       long i = longval ();
19707       if (i != ((long) (sizeof (long))))
19708         exit (1);
19709       fprintf (f, "%ld\n", i);
19710     }
19711   else
19712     {
19713       unsigned long i = ulongval ();
19714       if (i != ((long) (sizeof (long))))
19715         exit (1);
19716       fprintf (f, "%lu\n", i);
19717     }
19718   exit (ferror (f) || fclose (f) != 0);
19719
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest$ac_exeext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726   (eval $ac_link) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_cv_sizeof_long=`cat conftest.val`
19736 else
19737   echo "$as_me: program exited with status $ac_status" >&5
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ( exit $ac_status )
19742 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19743 See \`config.log' for more details." >&5
19744 echo "$as_me: error: cannot compute sizeof (long), 77
19745 See \`config.log' for more details." >&2;}
19746    { (exit 1); exit 1; }; }
19747 fi
19748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19749 fi
19750 fi
19751 rm -f conftest.val
19752 else
19753   ac_cv_sizeof_long=0
19754 fi
19755 fi
19756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19758 cat >>confdefs.h <<_ACEOF
19759 #define SIZEOF_LONG $ac_cv_sizeof_long
19760 _ACEOF
19761
19762
19763 echo "$as_me:$LINENO: checking for size_t" >&5
19764 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19765 if test "${ac_cv_type_size_t+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775 int
19776 main ()
19777 {
19778 if ((size_t *) 0)
19779   return 0;
19780 if (sizeof (size_t))
19781   return 0;
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788   (eval $ac_compile) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; }; then
19807   ac_cv_type_size_t=yes
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_cv_type_size_t=no
19813 fi
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 fi
19816 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19817 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19818
19819 echo "$as_me:$LINENO: checking size of size_t" >&5
19820 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19821 if test "${ac_cv_sizeof_size_t+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   if test "$ac_cv_type_size_t" = yes; then
19825   # The cast to unsigned long works around a bug in the HP C Compiler
19826   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19827   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19828   # This bug is HP SR number 8606223364.
19829   if test "$cross_compiling" = yes; then
19830   # Depending upon the size, compute the lo and hi bounds.
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 $ac_includes_default
19838 int
19839 main ()
19840 {
19841 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19842 test_array [0] = 0
19843
19844   ;
19845   return 0;
19846 }
19847 _ACEOF
19848 rm -f conftest.$ac_objext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850   (eval $ac_compile) 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } &&
19857          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_lo=0 ac_mid=0
19870   while :; do
19871     cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 $ac_includes_default
19878 int
19879 main ()
19880 {
19881 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19882 test_array [0] = 0
19883
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890   (eval $ac_compile) 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899   (eval $ac_try) 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; } &&
19903          { ac_try='test -s conftest.$ac_objext'
19904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905   (eval $ac_try) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; }; then
19909   ac_hi=$ac_mid; break
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_lo=`expr $ac_mid + 1`
19915                     if test $ac_lo -le $ac_mid; then
19916                       ac_lo= ac_hi=
19917                       break
19918                     fi
19919                     ac_mid=`expr 2 '*' $ac_mid + 1`
19920 fi
19921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19922   done
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 $ac_includes_default
19934 int
19935 main ()
19936 {
19937 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19938 test_array [0] = 0
19939
19940   ;
19941   return 0;
19942 }
19943 _ACEOF
19944 rm -f conftest.$ac_objext
19945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19946   (eval $ac_compile) 2>conftest.er1
19947   ac_status=$?
19948   grep -v '^ *+' conftest.er1 >conftest.err
19949   rm -f conftest.er1
19950   cat conftest.err >&5
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); } &&
19953          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955   (eval $ac_try) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; } &&
19959          { ac_try='test -s conftest.$ac_objext'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   ac_hi=-1 ac_mid=-1
19966   while :; do
19967     cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 $ac_includes_default
19974 int
19975 main ()
19976 {
19977 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19978 test_array [0] = 0
19979
19980   ;
19981   return 0;
19982 }
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19986   (eval $ac_compile) 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; } &&
19999          { ac_try='test -s conftest.$ac_objext'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ac_lo=$ac_mid; break
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_hi=`expr '(' $ac_mid ')' - 1`
20011                        if test $ac_mid -le $ac_hi; then
20012                          ac_lo= ac_hi=
20013                          break
20014                        fi
20015                        ac_mid=`expr 2 '*' $ac_mid`
20016 fi
20017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018   done
20019 else
20020   echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022
20023 ac_lo= ac_hi=
20024 fi
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20026 fi
20027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 # Binary search between lo and hi bounds.
20029 while test "x$ac_lo" != "x$ac_hi"; do
20030   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20031   cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h.  */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h.  */
20037 $ac_includes_default
20038 int
20039 main ()
20040 {
20041 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20042 test_array [0] = 0
20043
20044   ;
20045   return 0;
20046 }
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050   (eval $ac_compile) 2>conftest.er1
20051   ac_status=$?
20052   grep -v '^ *+' conftest.er1 >conftest.err
20053   rm -f conftest.er1
20054   cat conftest.err >&5
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); } &&
20057          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059   (eval $ac_try) 2>&5
20060   ac_status=$?
20061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062   (exit $ac_status); }; } &&
20063          { ac_try='test -s conftest.$ac_objext'
20064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065   (eval $ac_try) 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; }; then
20069   ac_hi=$ac_mid
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_lo=`expr '(' $ac_mid ')' + 1`
20075 fi
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077 done
20078 case $ac_lo in
20079 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20081 See \`config.log' for more details." >&5
20082 echo "$as_me: error: cannot compute sizeof (size_t), 77
20083 See \`config.log' for more details." >&2;}
20084    { (exit 1); exit 1; }; } ;;
20085 esac
20086 else
20087   if test "$cross_compiling" = yes; then
20088   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20089 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20090    { (exit 1); exit 1; }; }
20091 else
20092   cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098 $ac_includes_default
20099 long longval () { return (long) (sizeof (size_t)); }
20100 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20101 #include <stdio.h>
20102 #include <stdlib.h>
20103 int
20104 main ()
20105 {
20106
20107   FILE *f = fopen ("conftest.val", "w");
20108   if (! f)
20109     exit (1);
20110   if (((long) (sizeof (size_t))) < 0)
20111     {
20112       long i = longval ();
20113       if (i != ((long) (sizeof (size_t))))
20114         exit (1);
20115       fprintf (f, "%ld\n", i);
20116     }
20117   else
20118     {
20119       unsigned long i = ulongval ();
20120       if (i != ((long) (sizeof (size_t))))
20121         exit (1);
20122       fprintf (f, "%lu\n", i);
20123     }
20124   exit (ferror (f) || fclose (f) != 0);
20125
20126   ;
20127   return 0;
20128 }
20129 _ACEOF
20130 rm -f conftest$ac_exeext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132   (eval $ac_link) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; }; then
20141   ac_cv_sizeof_size_t=`cat conftest.val`
20142 else
20143   echo "$as_me: program exited with status $ac_status" >&5
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ( exit $ac_status )
20148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20149 See \`config.log' for more details." >&5
20150 echo "$as_me: error: cannot compute sizeof (size_t), 77
20151 See \`config.log' for more details." >&2;}
20152    { (exit 1); exit 1; }; }
20153 fi
20154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20155 fi
20156 fi
20157 rm -f conftest.val
20158 else
20159   ac_cv_sizeof_size_t=0
20160 fi
20161 fi
20162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20163 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20164 cat >>confdefs.h <<_ACEOF
20165 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20166 _ACEOF
20167
20168
20169
20170 case "${host}" in
20171     arm-*-linux* )
20172         echo "$as_me:$LINENO: checking for long long" >&5
20173 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20174 if test "${ac_cv_type_long_long+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 $ac_includes_default
20184 int
20185 main ()
20186 {
20187 if ((long long *) 0)
20188   return 0;
20189 if (sizeof (long long))
20190   return 0;
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } &&
20204          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; } &&
20210          { ac_try='test -s conftest.$ac_objext'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   ac_cv_type_long_long=yes
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_cv_type_long_long=no
20222 fi
20223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20224 fi
20225 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20226 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20227
20228 echo "$as_me:$LINENO: checking size of long long" >&5
20229 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20230 if test "${ac_cv_sizeof_long_long+set}" = set; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   if test "$ac_cv_type_long_long" = yes; then
20234   # The cast to unsigned long works around a bug in the HP C Compiler
20235   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20236   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20237   # This bug is HP SR number 8606223364.
20238   if test "$cross_compiling" = yes; then
20239   # Depending upon the size, compute the lo and hi bounds.
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246 $ac_includes_default
20247 int
20248 main ()
20249 {
20250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20251 test_array [0] = 0
20252
20253   ;
20254   return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259   (eval $ac_compile) 2>conftest.er1
20260   ac_status=$?
20261   grep -v '^ *+' conftest.er1 >conftest.err
20262   rm -f conftest.er1
20263   cat conftest.err >&5
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } &&
20266          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } &&
20272          { ac_try='test -s conftest.$ac_objext'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; }; then
20278   ac_lo=0 ac_mid=0
20279   while :; do
20280     cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 $ac_includes_default
20287 int
20288 main ()
20289 {
20290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20291 test_array [0] = 0
20292
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299   (eval $ac_compile) 2>conftest.er1
20300   ac_status=$?
20301   grep -v '^ *+' conftest.er1 >conftest.err
20302   rm -f conftest.er1
20303   cat conftest.err >&5
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); } &&
20306          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308   (eval $ac_try) 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; } &&
20312          { ac_try='test -s conftest.$ac_objext'
20313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314   (eval $ac_try) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   ac_hi=$ac_mid; break
20319 else
20320   echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 ac_lo=`expr $ac_mid + 1`
20324                     if test $ac_lo -le $ac_mid; then
20325                       ac_lo= ac_hi=
20326                       break
20327                     fi
20328                     ac_mid=`expr 2 '*' $ac_mid + 1`
20329 fi
20330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20331   done
20332 else
20333   echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h.  */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h.  */
20342 $ac_includes_default
20343 int
20344 main ()
20345 {
20346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20347 test_array [0] = 0
20348
20349   ;
20350   return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext
20354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20355   (eval $ac_compile) 2>conftest.er1
20356   ac_status=$?
20357   grep -v '^ *+' conftest.er1 >conftest.err
20358   rm -f conftest.er1
20359   cat conftest.err >&5
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } &&
20362          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364   (eval $ac_try) 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; } &&
20368          { ac_try='test -s conftest.$ac_objext'
20369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370   (eval $ac_try) 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; }; then
20374   ac_hi=-1 ac_mid=-1
20375   while :; do
20376     cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382 $ac_includes_default
20383 int
20384 main ()
20385 {
20386 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20387 test_array [0] = 0
20388
20389   ;
20390   return 0;
20391 }
20392 _ACEOF
20393 rm -f conftest.$ac_objext
20394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20395   (eval $ac_compile) 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; } &&
20408          { ac_try='test -s conftest.$ac_objext'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_lo=$ac_mid; break
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_hi=`expr '(' $ac_mid ')' - 1`
20420                        if test $ac_mid -le $ac_hi; then
20421                          ac_lo= ac_hi=
20422                          break
20423                        fi
20424                        ac_mid=`expr 2 '*' $ac_mid`
20425 fi
20426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20427   done
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_lo= ac_hi=
20433 fi
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 # Binary search between lo and hi bounds.
20438 while test "x$ac_lo" != "x$ac_hi"; do
20439   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20440   cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446 $ac_includes_default
20447 int
20448 main ()
20449 {
20450 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20451 test_array [0] = 0
20452
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest.$ac_objext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20459   (eval $ac_compile) 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } &&
20466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468   (eval $ac_try) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; } &&
20472          { ac_try='test -s conftest.$ac_objext'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   ac_hi=$ac_mid
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_lo=`expr '(' $ac_mid ')' + 1`
20484 fi
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 done
20487 case $ac_lo in
20488 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20490 See \`config.log' for more details." >&5
20491 echo "$as_me: error: cannot compute sizeof (long long), 77
20492 See \`config.log' for more details." >&2;}
20493    { (exit 1); exit 1; }; } ;;
20494 esac
20495 else
20496   if test "$cross_compiling" = yes; then
20497   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20498 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20499    { (exit 1); exit 1; }; }
20500 else
20501   cat >conftest.$ac_ext <<_ACEOF
20502 /* confdefs.h.  */
20503 _ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h.  */
20507 $ac_includes_default
20508 long longval () { return (long) (sizeof (long long)); }
20509 unsigned long ulongval () { return (long) (sizeof (long long)); }
20510 #include <stdio.h>
20511 #include <stdlib.h>
20512 int
20513 main ()
20514 {
20515
20516   FILE *f = fopen ("conftest.val", "w");
20517   if (! f)
20518     exit (1);
20519   if (((long) (sizeof (long long))) < 0)
20520     {
20521       long i = longval ();
20522       if (i != ((long) (sizeof (long long))))
20523         exit (1);
20524       fprintf (f, "%ld\n", i);
20525     }
20526   else
20527     {
20528       unsigned long i = ulongval ();
20529       if (i != ((long) (sizeof (long long))))
20530         exit (1);
20531       fprintf (f, "%lu\n", i);
20532     }
20533   exit (ferror (f) || fclose (f) != 0);
20534
20535   ;
20536   return 0;
20537 }
20538 _ACEOF
20539 rm -f conftest$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541   (eval $ac_link) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_cv_sizeof_long_long=`cat conftest.val`
20551 else
20552   echo "$as_me: program exited with status $ac_status" >&5
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ( exit $ac_status )
20557 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20558 See \`config.log' for more details." >&5
20559 echo "$as_me: error: cannot compute sizeof (long long), 77
20560 See \`config.log' for more details." >&2;}
20561    { (exit 1); exit 1; }; }
20562 fi
20563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20564 fi
20565 fi
20566 rm -f conftest.val
20567 else
20568   ac_cv_sizeof_long_long=0
20569 fi
20570 fi
20571 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20572 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20573 cat >>confdefs.h <<_ACEOF
20574 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20575 _ACEOF
20576
20577
20578     ;;
20579     *-hp-hpux* )
20580         echo "$as_me:$LINENO: checking for long long" >&5
20581 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20582 if test "${ac_cv_type_long_long+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585   cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 $ac_includes_default
20592 int
20593 main ()
20594 {
20595 if ((long long *) 0)
20596   return 0;
20597 if (sizeof (long long))
20598   return 0;
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605   (eval $ac_compile) 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } &&
20612          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest.$ac_objext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ac_cv_type_long_long=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_type_long_long=no
20630 fi
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632 fi
20633 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20634 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20635
20636 echo "$as_me:$LINENO: checking size of long long" >&5
20637 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20638 if test "${ac_cv_sizeof_long_long+set}" = set; then
20639   echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641   if test "$ac_cv_type_long_long" = yes; then
20642   # The cast to unsigned long works around a bug in the HP C Compiler
20643   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20644   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20645   # This bug is HP SR number 8606223364.
20646   if test "$cross_compiling" = yes; then
20647   # Depending upon the size, compute the lo and hi bounds.
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 $ac_includes_default
20655 int
20656 main ()
20657 {
20658 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20659 test_array [0] = 0
20660
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20667   (eval $ac_compile) 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } &&
20674          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676   (eval $ac_try) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; } &&
20680          { ac_try='test -s conftest.$ac_objext'
20681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682   (eval $ac_try) 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; }; then
20686   ac_lo=0 ac_mid=0
20687   while :; do
20688     cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 $ac_includes_default
20695 int
20696 main ()
20697 {
20698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20699 test_array [0] = 0
20700
20701   ;
20702   return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707   (eval $ac_compile) 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } &&
20714          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; } &&
20720          { ac_try='test -s conftest.$ac_objext'
20721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722   (eval $ac_try) 2>&5
20723   ac_status=$?
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); }; }; then
20726   ac_hi=$ac_mid; break
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ac_lo=`expr $ac_mid + 1`
20732                     if test $ac_lo -le $ac_mid; then
20733                       ac_lo= ac_hi=
20734                       break
20735                     fi
20736                     ac_mid=`expr 2 '*' $ac_mid + 1`
20737 fi
20738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20739   done
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750 $ac_includes_default
20751 int
20752 main ()
20753 {
20754 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20755 test_array [0] = 0
20756
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763   (eval $ac_compile) 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; } &&
20776          { ac_try='test -s conftest.$ac_objext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   ac_hi=-1 ac_mid=-1
20783   while :; do
20784     cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 $ac_includes_default
20791 int
20792 main ()
20793 {
20794 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20795 test_array [0] = 0
20796
20797   ;
20798   return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803   (eval $ac_compile) 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } &&
20810          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812   (eval $ac_try) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; } &&
20816          { ac_try='test -s conftest.$ac_objext'
20817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818   (eval $ac_try) 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   ac_lo=$ac_mid; break
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_hi=`expr '(' $ac_mid ')' - 1`
20828                        if test $ac_mid -le $ac_hi; then
20829                          ac_lo= ac_hi=
20830                          break
20831                        fi
20832                        ac_mid=`expr 2 '*' $ac_mid`
20833 fi
20834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835   done
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 ac_lo= ac_hi=
20841 fi
20842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20843 fi
20844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20845 # Binary search between lo and hi bounds.
20846 while test "x$ac_lo" != "x$ac_hi"; do
20847   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20848   cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h.  */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h.  */
20854 $ac_includes_default
20855 int
20856 main ()
20857 {
20858 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20859 test_array [0] = 0
20860
20861   ;
20862   return 0;
20863 }
20864 _ACEOF
20865 rm -f conftest.$ac_objext
20866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20867   (eval $ac_compile) 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } &&
20874          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; } &&
20880          { ac_try='test -s conftest.$ac_objext'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ac_hi=$ac_mid
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 ac_lo=`expr '(' $ac_mid ')' + 1`
20892 fi
20893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20894 done
20895 case $ac_lo in
20896 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20898 See \`config.log' for more details." >&5
20899 echo "$as_me: error: cannot compute sizeof (long long), 77
20900 See \`config.log' for more details." >&2;}
20901    { (exit 1); exit 1; }; } ;;
20902 esac
20903 else
20904   if test "$cross_compiling" = yes; then
20905   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20906 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20907    { (exit 1); exit 1; }; }
20908 else
20909   cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916 long longval () { return (long) (sizeof (long long)); }
20917 unsigned long ulongval () { return (long) (sizeof (long long)); }
20918 #include <stdio.h>
20919 #include <stdlib.h>
20920 int
20921 main ()
20922 {
20923
20924   FILE *f = fopen ("conftest.val", "w");
20925   if (! f)
20926     exit (1);
20927   if (((long) (sizeof (long long))) < 0)
20928     {
20929       long i = longval ();
20930       if (i != ((long) (sizeof (long long))))
20931         exit (1);
20932       fprintf (f, "%ld\n", i);
20933     }
20934   else
20935     {
20936       unsigned long i = ulongval ();
20937       if (i != ((long) (sizeof (long long))))
20938         exit (1);
20939       fprintf (f, "%lu\n", i);
20940     }
20941   exit (ferror (f) || fclose (f) != 0);
20942
20943   ;
20944   return 0;
20945 }
20946 _ACEOF
20947 rm -f conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949   (eval $ac_link) 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; }; then
20958   ac_cv_sizeof_long_long=`cat conftest.val`
20959 else
20960   echo "$as_me: program exited with status $ac_status" >&5
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 ( exit $ac_status )
20965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20966 See \`config.log' for more details." >&5
20967 echo "$as_me: error: cannot compute sizeof (long long), 77
20968 See \`config.log' for more details." >&2;}
20969    { (exit 1); exit 1; }; }
20970 fi
20971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20972 fi
20973 fi
20974 rm -f conftest.val
20975 else
20976   ac_cv_sizeof_long_long=0
20977 fi
20978 fi
20979 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20980 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20981 cat >>confdefs.h <<_ACEOF
20982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20983 _ACEOF
20984
20985
20986         if test "$ac_cv_sizeof_long_long" != "0"; then
20987                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20988         fi
20989     ;;
20990     * )
20991         echo "$as_me:$LINENO: checking for long long" >&5
20992 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20993 if test "${ac_cv_type_long_long+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 $ac_includes_default
21003 int
21004 main ()
21005 {
21006 if ((long long *) 0)
21007   return 0;
21008 if (sizeof (long long))
21009   return 0;
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016   (eval $ac_compile) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_type_long_long=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ac_cv_type_long_long=no
21041 fi
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043 fi
21044 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21045 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21046
21047 echo "$as_me:$LINENO: checking size of long long" >&5
21048 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21049 if test "${ac_cv_sizeof_long_long+set}" = set; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052   if test "$ac_cv_type_long_long" = yes; then
21053   # The cast to unsigned long works around a bug in the HP C Compiler
21054   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21055   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21056   # This bug is HP SR number 8606223364.
21057   if test "$cross_compiling" = yes; then
21058   # Depending upon the size, compute the lo and hi bounds.
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 $ac_includes_default
21066 int
21067 main ()
21068 {
21069 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21070 test_array [0] = 0
21071
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078   (eval $ac_compile) 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } &&
21085          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087   (eval $ac_try) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; } &&
21091          { ac_try='test -s conftest.$ac_objext'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097   ac_lo=0 ac_mid=0
21098   while :; do
21099     cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 $ac_includes_default
21106 int
21107 main ()
21108 {
21109 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21110 test_array [0] = 0
21111
21112   ;
21113   return 0;
21114 }
21115 _ACEOF
21116 rm -f conftest.$ac_objext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118   (eval $ac_compile) 2>conftest.er1
21119   ac_status=$?
21120   grep -v '^ *+' conftest.er1 >conftest.err
21121   rm -f conftest.er1
21122   cat conftest.err >&5
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } &&
21125          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127   (eval $ac_try) 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; } &&
21131          { ac_try='test -s conftest.$ac_objext'
21132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133   (eval $ac_try) 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); }; }; then
21137   ac_hi=$ac_mid; break
21138 else
21139   echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142 ac_lo=`expr $ac_mid + 1`
21143                     if test $ac_lo -le $ac_mid; then
21144                       ac_lo= ac_hi=
21145                       break
21146                     fi
21147                     ac_mid=`expr 2 '*' $ac_mid + 1`
21148 fi
21149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21150   done
21151 else
21152   echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 $ac_includes_default
21162 int
21163 main ()
21164 {
21165 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21166 test_array [0] = 0
21167
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21174   (eval $ac_compile) 2>conftest.er1
21175   ac_status=$?
21176   grep -v '^ *+' conftest.er1 >conftest.err
21177   rm -f conftest.er1
21178   cat conftest.err >&5
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); } &&
21181          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; } &&
21187          { ac_try='test -s conftest.$ac_objext'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; }; then
21193   ac_hi=-1 ac_mid=-1
21194   while :; do
21195     cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 $ac_includes_default
21202 int
21203 main ()
21204 {
21205 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21206 test_array [0] = 0
21207
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214   (eval $ac_compile) 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; } &&
21227          { ac_try='test -s conftest.$ac_objext'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_lo=$ac_mid; break
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ac_hi=`expr '(' $ac_mid ')' - 1`
21239                        if test $ac_mid -le $ac_hi; then
21240                          ac_lo= ac_hi=
21241                          break
21242                        fi
21243                        ac_mid=`expr 2 '*' $ac_mid`
21244 fi
21245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246   done
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_lo= ac_hi=
21252 fi
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254 fi
21255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256 # Binary search between lo and hi bounds.
21257 while test "x$ac_lo" != "x$ac_hi"; do
21258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21259   cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 $ac_includes_default
21266 int
21267 main ()
21268 {
21269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21270 test_array [0] = 0
21271
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278   (eval $ac_compile) 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } &&
21285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287   (eval $ac_try) 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); }; } &&
21291          { ac_try='test -s conftest.$ac_objext'
21292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293   (eval $ac_try) 2>&5
21294   ac_status=$?
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); }; }; then
21297   ac_hi=$ac_mid
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 ac_lo=`expr '(' $ac_mid ')' + 1`
21303 fi
21304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21305 done
21306 case $ac_lo in
21307 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21308 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21309 See \`config.log' for more details." >&5
21310 echo "$as_me: error: cannot compute sizeof (long long), 77
21311 See \`config.log' for more details." >&2;}
21312    { (exit 1); exit 1; }; } ;;
21313 esac
21314 else
21315   if test "$cross_compiling" = yes; then
21316   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21317 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21318    { (exit 1); exit 1; }; }
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 $ac_includes_default
21327 long longval () { return (long) (sizeof (long long)); }
21328 unsigned long ulongval () { return (long) (sizeof (long long)); }
21329 #include <stdio.h>
21330 #include <stdlib.h>
21331 int
21332 main ()
21333 {
21334
21335   FILE *f = fopen ("conftest.val", "w");
21336   if (! f)
21337     exit (1);
21338   if (((long) (sizeof (long long))) < 0)
21339     {
21340       long i = longval ();
21341       if (i != ((long) (sizeof (long long))))
21342         exit (1);
21343       fprintf (f, "%ld\n", i);
21344     }
21345   else
21346     {
21347       unsigned long i = ulongval ();
21348       if (i != ((long) (sizeof (long long))))
21349         exit (1);
21350       fprintf (f, "%lu\n", i);
21351     }
21352   exit (ferror (f) || fclose (f) != 0);
21353
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360   (eval $ac_link) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_cv_sizeof_long_long=`cat conftest.val`
21370 else
21371   echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ( exit $ac_status )
21376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21377 See \`config.log' for more details." >&5
21378 echo "$as_me: error: cannot compute sizeof (long long), 77
21379 See \`config.log' for more details." >&2;}
21380    { (exit 1); exit 1; }; }
21381 fi
21382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383 fi
21384 fi
21385 rm -f conftest.val
21386 else
21387   ac_cv_sizeof_long_long=0
21388 fi
21389 fi
21390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21391 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21392 cat >>confdefs.h <<_ACEOF
21393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21394 _ACEOF
21395
21396
21397 esac
21398
21399 echo "$as_me:$LINENO: checking for wchar_t" >&5
21400 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21401 if test "${ac_cv_type_wchar_t+set}" = set; then
21402   echo $ECHO_N "(cached) $ECHO_C" >&6
21403 else
21404   cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h.  */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h.  */
21410
21411         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21412         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21413         #  error "fake wchar_t"
21414         #endif
21415         #ifdef HAVE_WCHAR_H
21416         #  ifdef __CYGWIN__
21417         #    include <stddef.h>
21418         #  endif
21419         #  include <wchar.h>
21420         #endif
21421         #ifdef HAVE_STDLIB_H
21422         #  include <stdlib.h>
21423         #endif
21424         #include <stdio.h>
21425
21426
21427
21428 int
21429 main ()
21430 {
21431 if ((wchar_t *) 0)
21432   return 0;
21433 if (sizeof (wchar_t))
21434   return 0;
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441   (eval $ac_compile) 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; } &&
21454          { ac_try='test -s conftest.$ac_objext'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; }; then
21460   ac_cv_type_wchar_t=yes
21461 else
21462   echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 ac_cv_type_wchar_t=no
21466 fi
21467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468 fi
21469 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21470 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21471
21472 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21473 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21474 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477   if test "$ac_cv_type_wchar_t" = yes; then
21478   # The cast to unsigned long works around a bug in the HP C Compiler
21479   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21480   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21481   # This bug is HP SR number 8606223364.
21482   if test "$cross_compiling" = yes; then
21483   # Depending upon the size, compute the lo and hi bounds.
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21492         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21493         #  error "fake wchar_t"
21494         #endif
21495         #ifdef HAVE_WCHAR_H
21496         #  ifdef __CYGWIN__
21497         #    include <stddef.h>
21498         #  endif
21499         #  include <wchar.h>
21500         #endif
21501         #ifdef HAVE_STDLIB_H
21502         #  include <stdlib.h>
21503         #endif
21504         #include <stdio.h>
21505
21506
21507
21508 int
21509 main ()
21510 {
21511 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21512 test_array [0] = 0
21513
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520   (eval $ac_compile) 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } &&
21527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; } &&
21533          { ac_try='test -s conftest.$ac_objext'
21534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535   (eval $ac_try) 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   ac_lo=0 ac_mid=0
21540   while :; do
21541     cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h.  */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h.  */
21547
21548         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21549         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21550         #  error "fake wchar_t"
21551         #endif
21552         #ifdef HAVE_WCHAR_H
21553         #  ifdef __CYGWIN__
21554         #    include <stddef.h>
21555         #  endif
21556         #  include <wchar.h>
21557         #endif
21558         #ifdef HAVE_STDLIB_H
21559         #  include <stdlib.h>
21560         #endif
21561         #include <stdio.h>
21562
21563
21564
21565 int
21566 main ()
21567 {
21568 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21569 test_array [0] = 0
21570
21571   ;
21572   return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21577   (eval $ac_compile) 2>conftest.er1
21578   ac_status=$?
21579   grep -v '^ *+' conftest.er1 >conftest.err
21580   rm -f conftest.er1
21581   cat conftest.err >&5
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); } &&
21584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; } &&
21590          { ac_try='test -s conftest.$ac_objext'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_hi=$ac_mid; break
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_lo=`expr $ac_mid + 1`
21602                     if test $ac_lo -le $ac_mid; then
21603                       ac_lo= ac_hi=
21604                       break
21605                     fi
21606                     ac_mid=`expr 2 '*' $ac_mid + 1`
21607 fi
21608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609   done
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21622         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21623         #  error "fake wchar_t"
21624         #endif
21625         #ifdef HAVE_WCHAR_H
21626         #  ifdef __CYGWIN__
21627         #    include <stddef.h>
21628         #  endif
21629         #  include <wchar.h>
21630         #endif
21631         #ifdef HAVE_STDLIB_H
21632         #  include <stdlib.h>
21633         #endif
21634         #include <stdio.h>
21635
21636
21637
21638 int
21639 main ()
21640 {
21641 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21642 test_array [0] = 0
21643
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 rm -f conftest.$ac_objext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650   (eval $ac_compile) 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; } &&
21663          { ac_try='test -s conftest.$ac_objext'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   ac_hi=-1 ac_mid=-1
21670   while :; do
21671     cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677
21678         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21679         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21680         #  error "fake wchar_t"
21681         #endif
21682         #ifdef HAVE_WCHAR_H
21683         #  ifdef __CYGWIN__
21684         #    include <stddef.h>
21685         #  endif
21686         #  include <wchar.h>
21687         #endif
21688         #ifdef HAVE_STDLIB_H
21689         #  include <stdlib.h>
21690         #endif
21691         #include <stdio.h>
21692
21693
21694
21695 int
21696 main ()
21697 {
21698 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21699 test_array [0] = 0
21700
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21707   (eval $ac_compile) 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } &&
21714          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716   (eval $ac_try) 2>&5
21717   ac_status=$?
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); }; } &&
21720          { ac_try='test -s conftest.$ac_objext'
21721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722   (eval $ac_try) 2>&5
21723   ac_status=$?
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); }; }; then
21726   ac_lo=$ac_mid; break
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 ac_hi=`expr '(' $ac_mid ')' - 1`
21732                        if test $ac_mid -le $ac_hi; then
21733                          ac_lo= ac_hi=
21734                          break
21735                        fi
21736                        ac_mid=`expr 2 '*' $ac_mid`
21737 fi
21738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21739   done
21740 else
21741   echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21743
21744 ac_lo= ac_hi=
21745 fi
21746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21747 fi
21748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21749 # Binary search between lo and hi bounds.
21750 while test "x$ac_lo" != "x$ac_hi"; do
21751   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21752   cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758
21759         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21760         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21761         #  error "fake wchar_t"
21762         #endif
21763         #ifdef HAVE_WCHAR_H
21764         #  ifdef __CYGWIN__
21765         #    include <stddef.h>
21766         #  endif
21767         #  include <wchar.h>
21768         #endif
21769         #ifdef HAVE_STDLIB_H
21770         #  include <stdlib.h>
21771         #endif
21772         #include <stdio.h>
21773
21774
21775
21776 int
21777 main ()
21778 {
21779 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21780 test_array [0] = 0
21781
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788   (eval $ac_compile) 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } &&
21795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797   (eval $ac_try) 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; } &&
21801          { ac_try='test -s conftest.$ac_objext'
21802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803   (eval $ac_try) 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; }; then
21807   ac_hi=$ac_mid
21808 else
21809   echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812 ac_lo=`expr '(' $ac_mid ')' + 1`
21813 fi
21814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21815 done
21816 case $ac_lo in
21817 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21818 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21819 See \`config.log' for more details." >&5
21820 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21821 See \`config.log' for more details." >&2;}
21822    { (exit 1); exit 1; }; } ;;
21823 esac
21824 else
21825   if test "$cross_compiling" = yes; then
21826   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21827 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21828    { (exit 1); exit 1; }; }
21829 else
21830   cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836
21837         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21838         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21839         #  error "fake wchar_t"
21840         #endif
21841         #ifdef HAVE_WCHAR_H
21842         #  ifdef __CYGWIN__
21843         #    include <stddef.h>
21844         #  endif
21845         #  include <wchar.h>
21846         #endif
21847         #ifdef HAVE_STDLIB_H
21848         #  include <stdlib.h>
21849         #endif
21850         #include <stdio.h>
21851
21852
21853
21854 long longval () { return (long) (sizeof (wchar_t)); }
21855 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21856 #include <stdio.h>
21857 #include <stdlib.h>
21858 int
21859 main ()
21860 {
21861
21862   FILE *f = fopen ("conftest.val", "w");
21863   if (! f)
21864     exit (1);
21865   if (((long) (sizeof (wchar_t))) < 0)
21866     {
21867       long i = longval ();
21868       if (i != ((long) (sizeof (wchar_t))))
21869         exit (1);
21870       fprintf (f, "%ld\n", i);
21871     }
21872   else
21873     {
21874       unsigned long i = ulongval ();
21875       if (i != ((long) (sizeof (wchar_t))))
21876         exit (1);
21877       fprintf (f, "%lu\n", i);
21878     }
21879   exit (ferror (f) || fclose (f) != 0);
21880
21881   ;
21882   return 0;
21883 }
21884 _ACEOF
21885 rm -f conftest$ac_exeext
21886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21887   (eval $ac_link) 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; }; then
21896   ac_cv_sizeof_wchar_t=`cat conftest.val`
21897 else
21898   echo "$as_me: program exited with status $ac_status" >&5
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 ( exit $ac_status )
21903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21904 See \`config.log' for more details." >&5
21905 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21906 See \`config.log' for more details." >&2;}
21907    { (exit 1); exit 1; }; }
21908 fi
21909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21910 fi
21911 fi
21912 rm -f conftest.val
21913 else
21914   ac_cv_sizeof_wchar_t=0
21915 fi
21916 fi
21917 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21918 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21919 cat >>confdefs.h <<_ACEOF
21920 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21921 _ACEOF
21922
21923
21924 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21925     wxUSE_WCHAR_T=yes
21926 else
21927     wxUSE_WCHAR_T=no
21928 fi
21929
21930 echo "$as_me:$LINENO: checking for va_copy" >&5
21931 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21932 if test "${wx_cv_func_va_copy+set}" = set; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935
21936         cat >conftest.$ac_ext <<_ACEOF
21937
21938             #include <stdarg.h>
21939             void foo(char *f, ...)
21940             {
21941                 va_list ap1, ap2;
21942                 va_start(ap1, f);
21943                 va_copy(ap2, ap1);
21944                 va_end(ap2);
21945                 va_end(ap1);
21946             }
21947             int main()
21948             {
21949                 foo("hi", 17);
21950                 return 0;
21951             }
21952 _ACEOF
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955   (eval $ac_link) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } &&
21962          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964   (eval $ac_try) 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); }; } &&
21968          { ac_try='test -s conftest$ac_exeext'
21969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970   (eval $ac_try) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; }; then
21974   wx_cv_func_va_copy=yes
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 wx_cv_func_va_copy=no
21980
21981 fi
21982 rm -f conftest.err conftest.$ac_objext \
21983       conftest$ac_exeext conftest.$ac_ext
21984
21985
21986 fi
21987 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21988 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21989
21990 if test $wx_cv_func_va_copy = "yes"; then
21991     cat >>confdefs.h <<\_ACEOF
21992 #define HAVE_VA_COPY 1
21993 _ACEOF
21994
21995 else
21996         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21997 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21998 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001
22002             if test "$cross_compiling" = yes; then
22003                   wx_cv_type_va_list_lvalue=yes
22004
22005 else
22006   cat >conftest.$ac_ext <<_ACEOF
22007
22008                 #include <stdarg.h>
22009                 int foo(char *f, ...)
22010                 {
22011                     va_list ap1, ap2;
22012                     va_start(ap1, f);
22013                     ap2 = ap1;
22014                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22015                         return 1;
22016                     va_end(ap2);
22017                     va_end(ap1);
22018                     return 0;
22019                 }
22020                 int main()
22021                 {
22022                     return foo("hi", 17);
22023                 }
22024 _ACEOF
22025 rm -f conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027   (eval $ac_link) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; }; then
22036   wx_cv_type_va_list_lvalue=yes
22037 else
22038   echo "$as_me: program exited with status $ac_status" >&5
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ( exit $ac_status )
22043 wx_cv_type_va_list_lvalue=no
22044 fi
22045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22046 fi
22047
22048
22049 fi
22050 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22051 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22052
22053     if test $wx_cv_type_va_list_lvalue != "yes"; then
22054                         cat >>confdefs.h <<\_ACEOF
22055 #define VA_LIST_IS_ARRAY 1
22056 _ACEOF
22057
22058     fi
22059 fi
22060
22061 # Check whether --enable-largefile or --disable-largefile was given.
22062 if test "${enable_largefile+set}" = set; then
22063   enableval="$enable_largefile"
22064
22065 fi;
22066 if test "$enable_largefile" != no; then
22067             wx_largefile=no
22068
22069     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22070 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22071 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074
22075           cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 #define _FILE_OFFSET_BITS 64
22082                           #include <sys/types.h>
22083 int
22084 main ()
22085 {
22086 typedef struct {
22087     unsigned int field: sizeof(off_t) == 8;
22088 } wxlf;
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22096   (eval $ac_compile) 2>conftest.er1
22097   ac_status=$?
22098   grep -v '^ *+' conftest.er1 >conftest.err
22099   rm -f conftest.er1
22100   cat conftest.err >&5
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); } &&
22103          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105   (eval $ac_try) 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; } &&
22109          { ac_try='test -s conftest.$ac_objext'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; }; then
22115   ac_cv_sys_file_offset_bits=64
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120 ac_cv_sys_file_offset_bits=no
22121 fi
22122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22123
22124
22125 fi
22126 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22127 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22128
22129     if test "$ac_cv_sys_file_offset_bits" != no; then
22130         wx_largefile=yes
22131         cat >>confdefs.h <<_ACEOF
22132 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22133 _ACEOF
22134
22135     fi
22136
22137     if test "x$wx_largefile" != "xyes"; then
22138
22139     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22140 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22141 if test "${ac_cv_sys_large_files+set}" = set; then
22142   echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144
22145           cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 #define _LARGE_FILES 1
22152                           #include <sys/types.h>
22153 int
22154 main ()
22155 {
22156 typedef struct {
22157     unsigned int field: sizeof(off_t) == 8;
22158 } wxlf;
22159
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22166   (eval $ac_compile) 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } &&
22173          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175   (eval $ac_try) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); }; } &&
22179          { ac_try='test -s conftest.$ac_objext'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; }; then
22185   ac_cv_sys_large_files=1
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 ac_cv_sys_large_files=no
22191 fi
22192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22193
22194
22195 fi
22196 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22197 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22198
22199     if test "$ac_cv_sys_large_files" != no; then
22200         wx_largefile=yes
22201         cat >>confdefs.h <<_ACEOF
22202 #define _LARGE_FILES $ac_cv_sys_large_files
22203 _ACEOF
22204
22205     fi
22206
22207     fi
22208
22209     echo "$as_me:$LINENO: checking if large file support is available" >&5
22210 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22211     if test "x$wx_largefile" = "xyes"; then
22212         cat >>confdefs.h <<\_ACEOF
22213 #define HAVE_LARGEFILE_SUPPORT 1
22214 _ACEOF
22215
22216     fi
22217     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22218 echo "${ECHO_T}$wx_largefile" >&6
22219 fi
22220
22221
22222 if test "x$wx_largefile" = "xyes"; then
22223     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22224         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22225
22226                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22227             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22228 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22229 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232
22233                     cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h.  */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h.  */
22239
22240 int
22241 main ()
22242 {
22243
22244                             #ifndef __STDC_EXT__
22245                                 choke me
22246                             #endif
22247
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254   (eval $ac_compile) 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } &&
22261          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; } &&
22267          { ac_try='test -s conftest.$ac_objext'
22268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269   (eval $ac_try) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); }; }; then
22273   wx_cv_STDC_EXT_required=no
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 wx_cv_STDC_EXT_required=yes
22279
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282
22283
22284 fi
22285 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22286 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22287             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22288                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22289             fi
22290         fi
22291     else
22292         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22293     fi
22294         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22295 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22296 if test "${ac_cv_sys_largefile_source+set}" = set; then
22297   echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299   while :; do
22300   ac_cv_sys_largefile_source=no
22301   cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307 #include <stdio.h>
22308 int
22309 main ()
22310 {
22311 return !fseeko;
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest.$ac_objext
22317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22318   (eval $ac_compile) 2>conftest.er1
22319   ac_status=$?
22320   grep -v '^ *+' conftest.er1 >conftest.err
22321   rm -f conftest.er1
22322   cat conftest.err >&5
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); } &&
22325          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327   (eval $ac_try) 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; } &&
22331          { ac_try='test -s conftest.$ac_objext'
22332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333   (eval $ac_try) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); }; }; then
22337   break
22338 else
22339   echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 fi
22343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 #define _LARGEFILE_SOURCE 1
22351 #include <stdio.h>
22352 int
22353 main ()
22354 {
22355 return !fseeko;
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22362   (eval $ac_compile) 2>conftest.er1
22363   ac_status=$?
22364   grep -v '^ *+' conftest.er1 >conftest.err
22365   rm -f conftest.er1
22366   cat conftest.err >&5
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } &&
22369          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; } &&
22375          { ac_try='test -s conftest.$ac_objext'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   ac_cv_sys_largefile_source=1; break
22382 else
22383   echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22385
22386 fi
22387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22388   break
22389 done
22390 fi
22391 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22392 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22393 if test "$ac_cv_sys_largefile_source" != no; then
22394
22395 cat >>confdefs.h <<_ACEOF
22396 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22397 _ACEOF
22398
22399 fi
22400 rm -f conftest*
22401
22402 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22403 # in glibc 2.1.3, but that breaks too many other things.
22404 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22405 echo "$as_me:$LINENO: checking for fseeko" >&5
22406 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22407 if test "${ac_cv_func_fseeko+set}" = set; then
22408   echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22410   cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <stdio.h>
22417 int
22418 main ()
22419 {
22420 return fseeko && fseeko (stdin, 0, 0);
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427   (eval $ac_link) 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } &&
22434          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; } &&
22440          { ac_try='test -s conftest$ac_exeext'
22441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); }; }; then
22446   ac_cv_func_fseeko=yes
22447 else
22448   echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451 ac_cv_func_fseeko=no
22452 fi
22453 rm -f conftest.err conftest.$ac_objext \
22454       conftest$ac_exeext conftest.$ac_ext
22455 fi
22456 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22457 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22458 if test $ac_cv_func_fseeko = yes; then
22459
22460 cat >>confdefs.h <<\_ACEOF
22461 #define HAVE_FSEEKO 1
22462 _ACEOF
22463
22464 fi
22465
22466     if test "$ac_cv_sys_largefile_source" != no; then
22467         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22468     fi
22469 fi
22470
22471 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22472 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22473 if test "${ac_cv_c_bigendian+set}" = set; then
22474   echo $ECHO_N "(cached) $ECHO_C" >&6
22475 else
22476   ac_cv_c_bigendian=unknown
22477 # See if sys/param.h defines the BYTE_ORDER macro.
22478 cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 #include <sys/types.h>
22485 #include <sys/param.h>
22486 int
22487 main ()
22488 {
22489
22490 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22491  bogus endian macros
22492 #endif
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22499   (eval $ac_compile) 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } &&
22506          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest.$ac_objext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   # It does; now see whether it defined to BIG_ENDIAN or not.
22519 cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525 #include <sys/types.h>
22526 #include <sys/param.h>
22527 int
22528 main ()
22529 {
22530
22531 #if BYTE_ORDER != BIG_ENDIAN
22532  not big endian
22533 #endif
22534   ;
22535   return 0;
22536 }
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540   (eval $ac_compile) 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } &&
22547          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; } &&
22553          { ac_try='test -s conftest.$ac_objext'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; }; then
22559   ac_cv_c_bigendian=yes
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564 ac_cv_c_bigendian=no
22565 fi
22566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 fi
22572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22573 if test $ac_cv_c_bigendian = unknown; then
22574 if test "$cross_compiling" = yes; then
22575   ac_cv_c_bigendian=unknown
22576 else
22577   cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583 main () {
22584   /* Are we little or big endian?  From Harbison&Steele.  */
22585   union
22586   {
22587     long l;
22588     char c[sizeof (long)];
22589   } u;
22590   u.l = 1;
22591   exit (u.c[sizeof (long) - 1] == 1);
22592 }
22593 _ACEOF
22594 rm -f conftest$ac_exeext
22595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22596   (eval $ac_link) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; }; then
22605   ac_cv_c_bigendian=no
22606 else
22607   echo "$as_me: program exited with status $ac_status" >&5
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22610
22611 ( exit $ac_status )
22612 ac_cv_c_bigendian=yes
22613 fi
22614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22615 fi
22616 fi
22617 fi
22618 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22619 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22620 if test $ac_cv_c_bigendian = unknown; then
22621   { 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
22622 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;}
22623 fi
22624 if test $ac_cv_c_bigendian = yes; then
22625   cat >>confdefs.h <<\_ACEOF
22626 #define WORDS_BIGENDIAN 1
22627 _ACEOF
22628
22629 fi
22630
22631
22632
22633
22634
22635     ac_ext=cc
22636 ac_cpp='$CXXCPP $CPPFLAGS'
22637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22640
22641
22642
22643 for ac_header in iostream
22644 do
22645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22647   echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 fi
22652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22654 else
22655   # Is the header compilable?
22656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664 $ac_includes_default
22665 #include <$ac_header>
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22669   (eval $ac_compile) 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } &&
22676          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; } &&
22682          { ac_try='test -s conftest.$ac_objext'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; }; then
22688   ac_header_compiler=yes
22689 else
22690   echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693 ac_header_compiler=no
22694 fi
22695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22697 echo "${ECHO_T}$ac_header_compiler" >&6
22698
22699 # Is the header present?
22700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22702 cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 #include <$ac_header>
22709 _ACEOF
22710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22712   ac_status=$?
22713   grep -v '^ *+' conftest.er1 >conftest.err
22714   rm -f conftest.er1
22715   cat conftest.err >&5
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); } >/dev/null; then
22718   if test -s conftest.err; then
22719     ac_cpp_err=$ac_cxx_preproc_warn_flag
22720     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22721   else
22722     ac_cpp_err=
22723   fi
22724 else
22725   ac_cpp_err=yes
22726 fi
22727 if test -z "$ac_cpp_err"; then
22728   ac_header_preproc=yes
22729 else
22730   echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733   ac_header_preproc=no
22734 fi
22735 rm -f conftest.err conftest.$ac_ext
22736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22737 echo "${ECHO_T}$ac_header_preproc" >&6
22738
22739 # So?  What about this header?
22740 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22741   yes:no: )
22742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22746     ac_header_preproc=yes
22747     ;;
22748   no:yes:* )
22749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22761     (
22762       cat <<\_ASBOX
22763 ## ----------------------------------------- ##
22764 ## Report this to wx-dev@lists.wxwidgets.org ##
22765 ## ----------------------------------------- ##
22766 _ASBOX
22767     ) |
22768       sed "s/^/$as_me: WARNING:     /" >&2
22769     ;;
22770 esac
22771 echo "$as_me:$LINENO: checking for $ac_header" >&5
22772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22774   echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776   eval "$as_ac_Header=\$ac_header_preproc"
22777 fi
22778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22780
22781 fi
22782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22783   cat >>confdefs.h <<_ACEOF
22784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22785 _ACEOF
22786
22787 fi
22788
22789 done
22790
22791
22792     if test "$ac_cv_header_iostream" = "yes" ; then
22793       :
22794     else
22795       cat >>confdefs.h <<\_ACEOF
22796 #define wxUSE_IOSTREAMH 1
22797 _ACEOF
22798
22799     fi
22800
22801     ac_ext=cc
22802 ac_cpp='$CXXCPP $CPPFLAGS'
22803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22806
22807
22808
22809
22810   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22811 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22812 if test "${wx_cv_cpp_bool+set}" = set; then
22813   echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815
22816
22817
22818     ac_ext=cc
22819 ac_cpp='$CXXCPP $CPPFLAGS'
22820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22823
22824
22825     cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831
22832
22833 int
22834 main ()
22835 {
22836
22837         bool b = true;
22838
22839         return 0;
22840
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847   (eval $ac_compile) 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } &&
22854          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856   (eval $ac_try) 2>&5
22857   ac_status=$?
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); }; } &&
22860          { ac_try='test -s conftest.$ac_objext'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; }; then
22866
22867         wx_cv_cpp_bool=yes
22868
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873
22874         wx_cv_cpp_bool=no
22875
22876
22877 fi
22878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22879
22880     ac_ext=cc
22881 ac_cpp='$CXXCPP $CPPFLAGS'
22882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22885
22886
22887 fi
22888 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22889 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22890
22891   if test "$wx_cv_cpp_bool" = "yes"; then
22892     cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_BOOL 1
22894 _ACEOF
22895
22896   fi
22897
22898
22899
22900   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22901 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22902 if test "${wx_cv_explicit+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905
22906
22907
22908     ac_ext=cc
22909 ac_cpp='$CXXCPP $CPPFLAGS'
22910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913
22914
22915             cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h.  */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h.  */
22921
22922         class Foo { public: explicit Foo(int) {} };
22923
22924 int
22925 main ()
22926 {
22927
22928         return 0;
22929
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936   (eval $ac_compile) 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; } &&
22949          { ac_try='test -s conftest.$ac_objext'
22950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951   (eval $ac_try) 2>&5
22952   ac_status=$?
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); }; }; then
22955
22956         cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962
22963                 class Foo { public: explicit Foo(int) {} };
22964                 static void TakeFoo(const Foo& foo) { }
22965
22966 int
22967 main ()
22968 {
22969
22970                 TakeFoo(17);
22971                 return 0;
22972
22973   ;
22974   return 0;
22975 }
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22979   (eval $ac_compile) 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } &&
22986          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; } &&
22992          { ac_try='test -s conftest.$ac_objext'
22993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994   (eval $ac_try) 2>&5
22995   ac_status=$?
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); }; }; then
22998   wx_cv_explicit=no
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003 wx_cv_explicit=yes
23004
23005 fi
23006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23007
23008 else
23009   echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 wx_cv_explicit=no
23013
23014 fi
23015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23016
23017     ac_ext=cc
23018 ac_cpp='$CXXCPP $CPPFLAGS'
23019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23022
23023
23024 fi
23025 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23026 echo "${ECHO_T}$wx_cv_explicit" >&6
23027
23028   if test "$wx_cv_explicit" = "yes"; then
23029     cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_EXPLICIT 1
23031 _ACEOF
23032
23033   fi
23034
23035
23036 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23037 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23038 if test "${ac_cv_cxx_const_cast+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041
23042
23043  ac_ext=cc
23044 ac_cpp='$CXXCPP $CPPFLAGS'
23045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23048
23049  cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055
23056 int
23057 main ()
23058 {
23059 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066   (eval $ac_compile) 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } &&
23073          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075   (eval $ac_try) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; } &&
23079          { ac_try='test -s conftest.$ac_objext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   ac_cv_cxx_const_cast=yes
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 ac_cv_cxx_const_cast=no
23091 fi
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093  ac_ext=cc
23094 ac_cpp='$CXXCPP $CPPFLAGS'
23095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23098
23099
23100 fi
23101 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23102 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23103 if test "$ac_cv_cxx_const_cast" = yes; then
23104
23105 cat >>confdefs.h <<\_ACEOF
23106 #define HAVE_CONST_CAST
23107 _ACEOF
23108
23109 fi
23110
23111 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23112 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23113 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23114   echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116
23117
23118  ac_ext=cc
23119 ac_cpp='$CXXCPP $CPPFLAGS'
23120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23123
23124  cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130 #include <typeinfo>
23131 class Base { public : Base () {} virtual void f () = 0;};
23132 class Derived : public Base { public : Derived () {} virtual void f () {} };
23133 class Unrelated { public : Unrelated () {} };
23134 int g (Unrelated&) { return 0; }
23135 int
23136 main ()
23137 {
23138
23139 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146   (eval $ac_compile) 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } &&
23153          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; } &&
23159          { ac_try='test -s conftest.$ac_objext'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; }; then
23165   ac_cv_cxx_reinterpret_cast=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170 ac_cv_cxx_reinterpret_cast=no
23171 fi
23172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23173  ac_ext=cc
23174 ac_cpp='$CXXCPP $CPPFLAGS'
23175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23178
23179
23180 fi
23181 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23182 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23183 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23184
23185 cat >>confdefs.h <<\_ACEOF
23186 #define HAVE_REINTERPRET_CAST
23187 _ACEOF
23188
23189 fi
23190
23191 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23192 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23193 if test "${ac_cv_cxx_static_cast+set}" = set; then
23194   echo $ECHO_N "(cached) $ECHO_C" >&6
23195 else
23196
23197
23198  ac_ext=cc
23199 ac_cpp='$CXXCPP $CPPFLAGS'
23200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23203
23204  cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210 #include <typeinfo>
23211 class Base { public : Base () {} virtual void f () = 0; };
23212 class Derived : public Base { public : Derived () {} virtual void f () {} };
23213 int g (Derived&) { return 0; }
23214 int
23215 main ()
23216 {
23217
23218 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23225   (eval $ac_compile) 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } &&
23232          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234   (eval $ac_try) 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); }; } &&
23238          { ac_try='test -s conftest.$ac_objext'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; }; then
23244   ac_cv_cxx_static_cast=yes
23245 else
23246   echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23248
23249 ac_cv_cxx_static_cast=no
23250 fi
23251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23252  ac_ext=cc
23253 ac_cpp='$CXXCPP $CPPFLAGS'
23254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23257
23258
23259 fi
23260 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23261 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23262 if test "$ac_cv_cxx_static_cast" = yes; then
23263
23264 cat >>confdefs.h <<\_ACEOF
23265 #define HAVE_STATIC_CAST
23266 _ACEOF
23267
23268 fi
23269
23270
23271 if test "x$SUNCXX" = xyes; then
23272     CXXFLAGS="-features=tmplife $CXXFLAGS"
23273 fi
23274
23275 if test "x$SUNCC" = xyes; then
23276     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23277 fi
23278
23279 if test "x$SGICC" = "xyes"; then
23280     CFLAGS="-woff 3970 $CFLAGS"
23281 fi
23282 if test "x$SGICXX" = "xyes"; then
23283     CXXFLAGS="-woff 3970 $CXXFLAGS"
23284 fi
23285
23286 if test "x$HPCC" = "xyes"; then
23287                     CFLAGS="+W 2011,2450 $CFLAGS"
23288 fi
23289 if test "x$HPCXX" = "xyes"; then
23290             CXXFLAGS="+W 2340 $CXXFLAGS"
23291 fi
23292
23293 if test "x$COMPAQCXX" = "xyes"; then
23294                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23295 fi
23296
23297 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23298     if test "$wxUSE_UNICODE" = "yes"; then
23299         std_string="std::wstring"
23300         char_type="wchar_t"
23301     else
23302         std_string="std::string"
23303         char_type="char"
23304     fi
23305
23306         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23307 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23308     cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 #include <string>
23315 int
23316 main ()
23317 {
23318 $std_string foo;
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325   (eval $ac_compile) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; } &&
23338          { ac_try='test -s conftest.$ac_objext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   echo "$as_me:$LINENO: result: yes" >&5
23345 echo "${ECHO_T}yes" >&6
23346                     cat >>confdefs.h <<\_ACEOF
23347 #define HAVE_STD_WSTRING 1
23348 _ACEOF
23349
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354 echo "$as_me:$LINENO: result: no" >&5
23355 echo "${ECHO_T}no" >&6
23356                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23357 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23358                     cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365                         #ifdef HAVE_WCHAR_H
23366                         #  ifdef __CYGWIN__
23367                         #    include <stddef.h>
23368                         #  endif
23369                         #  include <wchar.h>
23370                         #endif
23371                         #ifdef HAVE_STDLIB_H
23372                         #  include <stdlib.h>
23373                         #endif
23374                         #include <stdio.h>
23375                         #include <string>
23376
23377 int
23378 main ()
23379 {
23380 std::basic_string<$char_type> foo;
23381                          const $char_type* dummy = foo.c_str();
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388   (eval $ac_compile) 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } &&
23395          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; } &&
23401          { ac_try='test -s conftest.$ac_objext'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; }; then
23407   echo "$as_me:$LINENO: result: yes" >&5
23408 echo "${ECHO_T}yes" >&6
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413 echo "$as_me:$LINENO: result: no" >&5
23414 echo "${ECHO_T}no" >&6
23415                          if test "$wxUSE_STL" = "yes"; then
23416                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23417 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23418    { (exit 1); exit 1; }; }
23419                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23420                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23421 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23422    { (exit 1); exit 1; }; }
23423                          else
23424                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23425 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23426                              wxUSE_STD_STRING=no
23427                          fi
23428
23429
23430 fi
23431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23432
23433 fi
23434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23435 fi
23436
23437 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23438     echo "$as_me:$LINENO: checking for std::istream" >&5
23439 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23440 if test "${ac_cv_type_std__istream+set}" = set; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443   cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 #include <iostream>
23450
23451 int
23452 main ()
23453 {
23454 if ((std::istream *) 0)
23455   return 0;
23456 if (sizeof (std::istream))
23457   return 0;
23458   ;
23459   return 0;
23460 }
23461 _ACEOF
23462 rm -f conftest.$ac_objext
23463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23464   (eval $ac_compile) 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } &&
23471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473   (eval $ac_try) 2>&5
23474   ac_status=$?
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); }; } &&
23477          { ac_try='test -s conftest.$ac_objext'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; }; then
23483   ac_cv_type_std__istream=yes
23484 else
23485   echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23487
23488 ac_cv_type_std__istream=no
23489 fi
23490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23491 fi
23492 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23493 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23494 if test $ac_cv_type_std__istream = yes; then
23495
23496 cat >>confdefs.h <<_ACEOF
23497 #define HAVE_STD__ISTREAM 1
23498 _ACEOF
23499
23500
23501 else
23502   wxUSE_STD_IOSTREAM=no
23503 fi
23504 echo "$as_me:$LINENO: checking for std::ostream" >&5
23505 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23506 if test "${ac_cv_type_std__ostream+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 #include <iostream>
23516
23517 int
23518 main ()
23519 {
23520 if ((std::ostream *) 0)
23521   return 0;
23522 if (sizeof (std::ostream))
23523   return 0;
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23530   (eval $ac_compile) 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } &&
23537          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539   (eval $ac_try) 2>&5
23540   ac_status=$?
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); }; } &&
23543          { ac_try='test -s conftest.$ac_objext'
23544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545   (eval $ac_try) 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; }; then
23549   ac_cv_type_std__ostream=yes
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ac_cv_type_std__ostream=no
23555 fi
23556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23557 fi
23558 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23559 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23560 if test $ac_cv_type_std__ostream = yes; then
23561
23562 cat >>confdefs.h <<_ACEOF
23563 #define HAVE_STD__OSTREAM 1
23564 _ACEOF
23565
23566
23567 else
23568   wxUSE_STD_IOSTREAM=no
23569 fi
23570
23571
23572     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23573         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23574             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23575 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23576    { (exit 1); exit 1; }; }
23577         else
23578             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23579 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23580         fi
23581     fi
23582 fi
23583
23584 if test "$wxUSE_STL" = "yes"; then
23585         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23586 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23587     cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 #include <string>
23594                     #include <functional>
23595                     #include <algorithm>
23596                     #include <vector>
23597                     #include <list>
23598 int
23599 main ()
23600 {
23601 std::vector<int> moo;
23602                      std::list<int> foo;
23603                      std::vector<int>::iterator it =
23604                          std::find_if(moo.begin(), moo.end(),
23605                                       std::bind2nd(std::less<int>(), 3));
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23612   (eval $ac_compile) 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } &&
23619          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621   (eval $ac_try) 2>&5
23622   ac_status=$?
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); }; } &&
23625          { ac_try='test -s conftest.$ac_objext'
23626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); }; }; then
23631   echo "$as_me:$LINENO: result: yes" >&5
23632 echo "${ECHO_T}yes" >&6
23633 else
23634   echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637 echo "$as_me:$LINENO: result: no" >&5
23638 echo "${ECHO_T}no" >&6
23639                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23640 echo "$as_me: error: Basic STL functionality missing" >&2;}
23641    { (exit 1); exit 1; }; }
23642 fi
23643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23644
23645         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23646 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23647     cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 #include <string>
23654 int
23655 main ()
23656 {
23657 std::string foo, bar;
23658                     foo.compare(bar);
23659                     foo.compare(1, 1, bar);
23660                     foo.compare(1, 1, bar, 1, 1);
23661                     foo.compare("");
23662                     foo.compare(1, 1, "");
23663                     foo.compare(1, 1, "", 2);
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23670   (eval $ac_compile) 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } &&
23677          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest.$ac_objext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   echo "$as_me:$LINENO: result: yes" >&5
23690 echo "${ECHO_T}yes" >&6
23691                     cat >>confdefs.h <<\_ACEOF
23692 #define HAVE_STD_STRING_COMPARE 1
23693 _ACEOF
23694
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699 echo "$as_me:$LINENO: result: no" >&5
23700 echo "${ECHO_T}no" >&6
23701 fi
23702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23703
23704         if test "${ac_cv_header_hash_map+set}" = set; then
23705   echo "$as_me:$LINENO: checking for hash_map" >&5
23706 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23707 if test "${ac_cv_header_hash_map+set}" = set; then
23708   echo $ECHO_N "(cached) $ECHO_C" >&6
23709 fi
23710 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23711 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23712 else
23713   # Is the header compilable?
23714 echo "$as_me:$LINENO: checking hash_map usability" >&5
23715 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23716 cat >conftest.$ac_ext <<_ACEOF
23717 /* confdefs.h.  */
23718 _ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h.  */
23722 $ac_includes_default
23723 #include <hash_map>
23724 _ACEOF
23725 rm -f conftest.$ac_objext
23726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23727   (eval $ac_compile) 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } &&
23734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; } &&
23740          { ac_try='test -s conftest.$ac_objext'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; }; then
23746   ac_header_compiler=yes
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751 ac_header_compiler=no
23752 fi
23753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23755 echo "${ECHO_T}$ac_header_compiler" >&6
23756
23757 # Is the header present?
23758 echo "$as_me:$LINENO: checking hash_map presence" >&5
23759 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 #include <hash_map>
23767 _ACEOF
23768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } >/dev/null; then
23776   if test -s conftest.err; then
23777     ac_cpp_err=$ac_cxx_preproc_warn_flag
23778     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23779   else
23780     ac_cpp_err=
23781   fi
23782 else
23783   ac_cpp_err=yes
23784 fi
23785 if test -z "$ac_cpp_err"; then
23786   ac_header_preproc=yes
23787 else
23788   echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23790
23791   ac_header_preproc=no
23792 fi
23793 rm -f conftest.err conftest.$ac_ext
23794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23795 echo "${ECHO_T}$ac_header_preproc" >&6
23796
23797 # So?  What about this header?
23798 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23799   yes:no: )
23800     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23801 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23802     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23803 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23804     ac_header_preproc=yes
23805     ;;
23806   no:yes:* )
23807     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23808 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23809     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23810 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23811     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23812 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23813     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23814 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23815     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23816 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23817     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23818 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23819     (
23820       cat <<\_ASBOX
23821 ## ----------------------------------------- ##
23822 ## Report this to wx-dev@lists.wxwidgets.org ##
23823 ## ----------------------------------------- ##
23824 _ASBOX
23825     ) |
23826       sed "s/^/$as_me: WARNING:     /" >&2
23827     ;;
23828 esac
23829 echo "$as_me:$LINENO: checking for hash_map" >&5
23830 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23831 if test "${ac_cv_header_hash_map+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834   ac_cv_header_hash_map=$ac_header_preproc
23835 fi
23836 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23837 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23838
23839 fi
23840 if test $ac_cv_header_hash_map = yes; then
23841   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23842 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23843                      cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h.  */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h.  */
23849 #include <hash_map>
23850                                      #include <hash_set>
23851 int
23852 main ()
23853 {
23854 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23855                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext
23861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23862   (eval $ac_compile) 2>conftest.er1
23863   ac_status=$?
23864   grep -v '^ *+' conftest.er1 >conftest.err
23865   rm -f conftest.er1
23866   cat conftest.err >&5
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); } &&
23869          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871   (eval $ac_try) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); }; } &&
23875          { ac_try='test -s conftest.$ac_objext'
23876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877   (eval $ac_try) 2>&5
23878   ac_status=$?
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); }; }; then
23881   echo "$as_me:$LINENO: result: yes" >&5
23882 echo "${ECHO_T}yes" >&6
23883                                      cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_HASH_MAP 1
23885 _ACEOF
23886
23887                                      cat >>confdefs.h <<\_ACEOF
23888 #define HAVE_STD_HASH_MAP 1
23889 _ACEOF
23890
23891 else
23892   echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895 echo "$as_me:$LINENO: result: no" >&5
23896 echo "${ECHO_T}no" >&6
23897 fi
23898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23899
23900 fi
23901
23902
23903
23904     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23905   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23906 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23907 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23908   echo $ECHO_N "(cached) $ECHO_C" >&6
23909 fi
23910 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23911 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23912 else
23913   # Is the header compilable?
23914 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23915 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23916 cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 $ac_includes_default
23923 #include <ext/hash_map>
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23927   (eval $ac_compile) 2>conftest.er1
23928   ac_status=$?
23929   grep -v '^ *+' conftest.er1 >conftest.err
23930   rm -f conftest.er1
23931   cat conftest.err >&5
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); } &&
23934          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936   (eval $ac_try) 2>&5
23937   ac_status=$?
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); }; } &&
23940          { ac_try='test -s conftest.$ac_objext'
23941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942   (eval $ac_try) 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); }; }; then
23946   ac_header_compiler=yes
23947 else
23948   echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 ac_header_compiler=no
23952 fi
23953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23955 echo "${ECHO_T}$ac_header_compiler" >&6
23956
23957 # Is the header present?
23958 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23959 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h.  */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h.  */
23966 #include <ext/hash_map>
23967 _ACEOF
23968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } >/dev/null; then
23976   if test -s conftest.err; then
23977     ac_cpp_err=$ac_cxx_preproc_warn_flag
23978     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23979   else
23980     ac_cpp_err=
23981   fi
23982 else
23983   ac_cpp_err=yes
23984 fi
23985 if test -z "$ac_cpp_err"; then
23986   ac_header_preproc=yes
23987 else
23988   echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991   ac_header_preproc=no
23992 fi
23993 rm -f conftest.err conftest.$ac_ext
23994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23995 echo "${ECHO_T}$ac_header_preproc" >&6
23996
23997 # So?  What about this header?
23998 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23999   yes:no: )
24000     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24001 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24002     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24003 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24004     ac_header_preproc=yes
24005     ;;
24006   no:yes:* )
24007     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24008 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
24009     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
24010 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
24011     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24012 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24013     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24014 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24015     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24016 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
24017     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24018 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
24019     (
24020       cat <<\_ASBOX
24021 ## ----------------------------------------- ##
24022 ## Report this to wx-dev@lists.wxwidgets.org ##
24023 ## ----------------------------------------- ##
24024 _ASBOX
24025     ) |
24026       sed "s/^/$as_me: WARNING:     /" >&2
24027     ;;
24028 esac
24029 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24030 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24031 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   ac_cv_header_ext_hash_map=$ac_header_preproc
24035 fi
24036 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24037 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24038
24039 fi
24040 if test $ac_cv_header_ext_hash_map = yes; then
24041   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24042 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24043                      cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h.  */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h.  */
24049 #include <ext/hash_map>
24050                                      #include <ext/hash_set>
24051 int
24052 main ()
24053 {
24054 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24055                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24056   ;
24057   return 0;
24058 }
24059 _ACEOF
24060 rm -f conftest.$ac_objext
24061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24062   (eval $ac_compile) 2>conftest.er1
24063   ac_status=$?
24064   grep -v '^ *+' conftest.er1 >conftest.err
24065   rm -f conftest.er1
24066   cat conftest.err >&5
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); } &&
24069          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071   (eval $ac_try) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); }; } &&
24075          { ac_try='test -s conftest.$ac_objext'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; }; then
24081   echo "$as_me:$LINENO: result: yes" >&5
24082 echo "${ECHO_T}yes" >&6
24083                                      cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_EXT_HASH_MAP 1
24085 _ACEOF
24086
24087                                      cat >>confdefs.h <<\_ACEOF
24088 #define HAVE_GNU_CXX_HASH_MAP 1
24089 _ACEOF
24090
24091 else
24092   echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24094
24095 echo "$as_me:$LINENO: result: no" >&5
24096 echo "${ECHO_T}no" >&6
24097 fi
24098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24099
24100 fi
24101
24102
24103 fi
24104
24105
24106 SEARCH_INCLUDE="\
24107     /usr/local/include        \
24108                               \
24109     /usr/Motif-2.1/include    \
24110     /usr/Motif-1.2/include    \
24111     /usr/include/Motif1.2     \
24112                               \
24113     /usr/dt/include           \
24114     /usr/openwin/include      \
24115                               \
24116     /usr/include/Xm           \
24117                               \
24118     /usr/X11R6/include        \
24119     /usr/X11R6.4/include      \
24120     /usr/X11R5/include        \
24121     /usr/X11R4/include        \
24122                               \
24123     /usr/include/X11R6        \
24124     /usr/include/X11R5        \
24125     /usr/include/X11R4        \
24126                               \
24127     /usr/local/X11R6/include  \
24128     /usr/local/X11R5/include  \
24129     /usr/local/X11R4/include  \
24130                               \
24131     /usr/local/include/X11R6  \
24132     /usr/local/include/X11R5  \
24133     /usr/local/include/X11R4  \
24134                               \
24135     /usr/X11/include          \
24136     /usr/include/X11          \
24137     /usr/local/X11/include    \
24138     /usr/local/include/X11    \
24139                               \
24140     /usr/XFree86/include/X11  \
24141     /usr/pkg/include          \
24142                               \
24143     /usr/openwin/share/include"
24144
24145 echo "$as_me:$LINENO: checking for libraries directory" >&5
24146 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24147
24148 case "${host}" in
24149     *-*-irix6* )
24150         if test "${wx_cv_std_libpath+set}" = set; then
24151   echo $ECHO_N "(cached) $ECHO_C" >&6
24152 else
24153
24154                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24155                     for e in a so sl dylib dll.a; do
24156                         libc="$d/libc.$e"
24157                         if test -f $libc; then
24158                             save_LIBS="$LIBS"
24159                             LIBS="$libc"
24160                             cat >conftest.$ac_ext <<_ACEOF
24161 int main() { return 0; }
24162 _ACEOF
24163 rm -f conftest.$ac_objext conftest$ac_exeext
24164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24165   (eval $ac_link) 2>conftest.er1
24166   ac_status=$?
24167   grep -v '^ *+' conftest.er1 >conftest.err
24168   rm -f conftest.er1
24169   cat conftest.err >&5
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); } &&
24172          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174   (eval $ac_try) 2>&5
24175   ac_status=$?
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); }; } &&
24178          { ac_try='test -s conftest$ac_exeext'
24179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24185 else
24186   echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24188
24189 fi
24190 rm -f conftest.err conftest.$ac_objext \
24191       conftest$ac_exeext conftest.$ac_ext
24192                             LIBS="$save_LIBS"
24193                             if test "x$wx_cv_std_libpath" != "x"; then
24194                                 break 2
24195                             fi
24196                         fi
24197                     done
24198                 done
24199                 if test "x$wx_cv_std_libpath" = "x"; then
24200                     wx_cv_std_libpath="lib"
24201                 fi
24202
24203
24204 fi
24205
24206         ;;
24207
24208     *-*-solaris2* )
24209                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24210             wx_cv_std_libpath="lib/64"
24211         else
24212             wx_cv_std_libpath="lib"
24213         fi
24214         ;;
24215
24216     *-*-linux* )
24217                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24218                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24219             wx_cv_std_libpath="lib64"
24220         else
24221             wx_cv_std_libpath="lib"
24222         fi
24223         ;;
24224
24225     *)
24226         wx_cv_std_libpath="lib";
24227         ;;
24228 esac
24229
24230 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24231 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24232
24233 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24234
24235 if test "$build" != "$host" -a "$GCC" = yes; then
24236                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24237         cross_root=`dirname $cross_root`
24238         cross_root=`dirname $cross_root`
24239
24240                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24241         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24242         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24243
24244                 if test -z "$PKG_CONFIG_PATH"; then
24245             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24246             export PKG_CONFIG_PATH
24247         fi
24248
24249                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24250
24251 ac_find_includes=
24252 for ac_dir in $SEARCH_INCLUDE /usr/include;
24253   do
24254     if test -f "$ac_dir/X11/Intrinsic.h"; then
24255       ac_find_includes=$ac_dir
24256       break
24257     fi
24258   done
24259
24260             x_includes=$ac_find_includes
24261         fi
24262         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24263
24264   ac_find_libraries=
24265   for ac_dir in $SEARCH_LIB;
24266   do
24267     for ac_extension in a so sl dylib dll.a; do
24268       if test -f "$ac_dir/libXt.$ac_extension"; then
24269         ac_find_libraries=$ac_dir
24270         break 2
24271       fi
24272     done
24273   done
24274
24275             x_libraries=$ac_find_libraries
24276         fi
24277     fi
24278 fi
24279
24280
24281 cat >confcache <<\_ACEOF
24282 # This file is a shell script that caches the results of configure
24283 # tests run on this system so they can be shared between configure
24284 # scripts and configure runs, see configure's option --config-cache.
24285 # It is not useful on other systems.  If it contains results you don't
24286 # want to keep, you may remove or edit it.
24287 #
24288 # config.status only pays attention to the cache file if you give it
24289 # the --recheck option to rerun configure.
24290 #
24291 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24292 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24293 # following values.
24294
24295 _ACEOF
24296
24297 # The following way of writing the cache mishandles newlines in values,
24298 # but we know of no workaround that is simple, portable, and efficient.
24299 # So, don't put newlines in cache variables' values.
24300 # Ultrix sh set writes to stderr and can't be redirected directly,
24301 # and sets the high bit in the cache file unless we assign to the vars.
24302 {
24303   (set) 2>&1 |
24304     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24305     *ac_space=\ *)
24306       # `set' does not quote correctly, so add quotes (double-quote
24307       # substitution turns \\\\ into \\, and sed turns \\ into \).
24308       sed -n \
24309         "s/'/'\\\\''/g;
24310           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24311       ;;
24312     *)
24313       # `set' quotes correctly as required by POSIX, so do not add quotes.
24314       sed -n \
24315         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24316       ;;
24317     esac;
24318 } |
24319   sed '
24320      t clear
24321      : clear
24322      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24323      t end
24324      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24325      : end' >>confcache
24326 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24327   if test -w $cache_file; then
24328     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24329     cat confcache >$cache_file
24330   else
24331     echo "not updating unwritable cache $cache_file"
24332   fi
24333 fi
24334 rm -f confcache
24335
24336 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24337     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24338 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24339 if test "${wx_cv_lib_glibc21+set}" = set; then
24340   echo $ECHO_N "(cached) $ECHO_C" >&6
24341 else
24342
24343         cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 #include <features.h>
24350 int
24351 main ()
24352 {
24353
24354                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24355                 not glibc 2.1
24356                 #endif
24357
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24364   (eval $ac_compile) 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } &&
24371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373   (eval $ac_try) 2>&5
24374   ac_status=$?
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); }; } &&
24377          { ac_try='test -s conftest.$ac_objext'
24378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); }; }; then
24383
24384                 wx_cv_lib_glibc21=yes
24385
24386 else
24387   echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390
24391                 wx_cv_lib_glibc21=no
24392
24393
24394 fi
24395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24396
24397 fi
24398 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24399 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24400     if test "$wx_cv_lib_glibc21" = "yes"; then
24401         cat >>confdefs.h <<\_ACEOF
24402 #define wxHAVE_GLIBC2 1
24403 _ACEOF
24404
24405     fi
24406 fi
24407
24408 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24409     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24410         cat >>confdefs.h <<\_ACEOF
24411 #define _GNU_SOURCE 1
24412 _ACEOF
24413
24414     fi
24415 fi
24416
24417 have_cos=0
24418 have_floor=0
24419
24420 for ac_func in cos
24421 do
24422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24423 echo "$as_me:$LINENO: checking for $ac_func" >&5
24424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24425 if eval "test \"\${$as_ac_var+set}\" = set"; then
24426   echo $ECHO_N "(cached) $ECHO_C" >&6
24427 else
24428   cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h.  */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h.  */
24434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24436 #define $ac_func innocuous_$ac_func
24437
24438 /* System header to define __stub macros and hopefully few prototypes,
24439     which can conflict with char $ac_func (); below.
24440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24441     <limits.h> exists even on freestanding compilers.  */
24442
24443 #ifdef __STDC__
24444 # include <limits.h>
24445 #else
24446 # include <assert.h>
24447 #endif
24448
24449 #undef $ac_func
24450
24451 /* Override any gcc2 internal prototype to avoid an error.  */
24452 #ifdef __cplusplus
24453 extern "C"
24454 {
24455 #endif
24456 /* We use char because int might match the return type of a gcc2
24457    builtin and then its argument prototype would still apply.  */
24458 char $ac_func ();
24459 /* The GNU C library defines this for functions which it implements
24460     to always fail with ENOSYS.  Some functions are actually named
24461     something starting with __ and the normal name is an alias.  */
24462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24463 choke me
24464 #else
24465 char (*f) () = $ac_func;
24466 #endif
24467 #ifdef __cplusplus
24468 }
24469 #endif
24470
24471 int
24472 main ()
24473 {
24474 return f != $ac_func;
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481   (eval $ac_link) 2>conftest.er1
24482   ac_status=$?
24483   grep -v '^ *+' conftest.er1 >conftest.err
24484   rm -f conftest.er1
24485   cat conftest.err >&5
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); } &&
24488          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490   (eval $ac_try) 2>&5
24491   ac_status=$?
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); }; } &&
24494          { ac_try='test -s conftest$ac_exeext'
24495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496   (eval $ac_try) 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; }; then
24500   eval "$as_ac_var=yes"
24501 else
24502   echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505 eval "$as_ac_var=no"
24506 fi
24507 rm -f conftest.err conftest.$ac_objext \
24508       conftest$ac_exeext conftest.$ac_ext
24509 fi
24510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24512 if test `eval echo '${'$as_ac_var'}'` = yes; then
24513   cat >>confdefs.h <<_ACEOF
24514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24515 _ACEOF
24516  have_cos=1
24517 fi
24518 done
24519
24520
24521 for ac_func in floor
24522 do
24523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24524 echo "$as_me:$LINENO: checking for $ac_func" >&5
24525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24526 if eval "test \"\${$as_ac_var+set}\" = set"; then
24527   echo $ECHO_N "(cached) $ECHO_C" >&6
24528 else
24529   cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24537 #define $ac_func innocuous_$ac_func
24538
24539 /* System header to define __stub macros and hopefully few prototypes,
24540     which can conflict with char $ac_func (); below.
24541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24542     <limits.h> exists even on freestanding compilers.  */
24543
24544 #ifdef __STDC__
24545 # include <limits.h>
24546 #else
24547 # include <assert.h>
24548 #endif
24549
24550 #undef $ac_func
24551
24552 /* Override any gcc2 internal prototype to avoid an error.  */
24553 #ifdef __cplusplus
24554 extern "C"
24555 {
24556 #endif
24557 /* We use char because int might match the return type of a gcc2
24558    builtin and then its argument prototype would still apply.  */
24559 char $ac_func ();
24560 /* The GNU C library defines this for functions which it implements
24561     to always fail with ENOSYS.  Some functions are actually named
24562     something starting with __ and the normal name is an alias.  */
24563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24564 choke me
24565 #else
24566 char (*f) () = $ac_func;
24567 #endif
24568 #ifdef __cplusplus
24569 }
24570 #endif
24571
24572 int
24573 main ()
24574 {
24575 return f != $ac_func;
24576   ;
24577   return 0;
24578 }
24579 _ACEOF
24580 rm -f conftest.$ac_objext conftest$ac_exeext
24581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24582   (eval $ac_link) 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } &&
24589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; } &&
24595          { ac_try='test -s conftest$ac_exeext'
24596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597   (eval $ac_try) 2>&5
24598   ac_status=$?
24599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600   (exit $ac_status); }; }; then
24601   eval "$as_ac_var=yes"
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 eval "$as_ac_var=no"
24607 fi
24608 rm -f conftest.err conftest.$ac_objext \
24609       conftest$ac_exeext conftest.$ac_ext
24610 fi
24611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24613 if test `eval echo '${'$as_ac_var'}'` = yes; then
24614   cat >>confdefs.h <<_ACEOF
24615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24616 _ACEOF
24617  have_floor=1
24618 fi
24619 done
24620
24621 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24622 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24623 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24624     echo "$as_me:$LINENO: result: yes" >&5
24625 echo "${ECHO_T}yes" >&6
24626 else
24627     echo "$as_me:$LINENO: result: no" >&5
24628 echo "${ECHO_T}no" >&6
24629     LIBS="$LIBS -lm"
24630     # use different functions to avoid configure caching
24631     have_sin=0
24632     have_ceil=0
24633
24634 for ac_func in sin
24635 do
24636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24637 echo "$as_me:$LINENO: checking for $ac_func" >&5
24638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24639 if eval "test \"\${$as_ac_var+set}\" = set"; then
24640   echo $ECHO_N "(cached) $ECHO_C" >&6
24641 else
24642   cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24650 #define $ac_func innocuous_$ac_func
24651
24652 /* System header to define __stub macros and hopefully few prototypes,
24653     which can conflict with char $ac_func (); below.
24654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24655     <limits.h> exists even on freestanding compilers.  */
24656
24657 #ifdef __STDC__
24658 # include <limits.h>
24659 #else
24660 # include <assert.h>
24661 #endif
24662
24663 #undef $ac_func
24664
24665 /* Override any gcc2 internal prototype to avoid an error.  */
24666 #ifdef __cplusplus
24667 extern "C"
24668 {
24669 #endif
24670 /* We use char because int might match the return type of a gcc2
24671    builtin and then its argument prototype would still apply.  */
24672 char $ac_func ();
24673 /* The GNU C library defines this for functions which it implements
24674     to always fail with ENOSYS.  Some functions are actually named
24675     something starting with __ and the normal name is an alias.  */
24676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24677 choke me
24678 #else
24679 char (*f) () = $ac_func;
24680 #endif
24681 #ifdef __cplusplus
24682 }
24683 #endif
24684
24685 int
24686 main ()
24687 {
24688 return f != $ac_func;
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 rm -f conftest.$ac_objext conftest$ac_exeext
24694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24695   (eval $ac_link) 2>conftest.er1
24696   ac_status=$?
24697   grep -v '^ *+' conftest.er1 >conftest.err
24698   rm -f conftest.er1
24699   cat conftest.err >&5
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); } &&
24702          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24704   (eval $ac_try) 2>&5
24705   ac_status=$?
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); }; } &&
24708          { ac_try='test -s conftest$ac_exeext'
24709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710   (eval $ac_try) 2>&5
24711   ac_status=$?
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); }; }; then
24714   eval "$as_ac_var=yes"
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719 eval "$as_ac_var=no"
24720 fi
24721 rm -f conftest.err conftest.$ac_objext \
24722       conftest$ac_exeext conftest.$ac_ext
24723 fi
24724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24726 if test `eval echo '${'$as_ac_var'}'` = yes; then
24727   cat >>confdefs.h <<_ACEOF
24728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24729 _ACEOF
24730  have_sin=1
24731 fi
24732 done
24733
24734
24735 for ac_func in ceil
24736 do
24737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24738 echo "$as_me:$LINENO: checking for $ac_func" >&5
24739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24740 if eval "test \"\${$as_ac_var+set}\" = set"; then
24741   echo $ECHO_N "(cached) $ECHO_C" >&6
24742 else
24743   cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24751 #define $ac_func innocuous_$ac_func
24752
24753 /* System header to define __stub macros and hopefully few prototypes,
24754     which can conflict with char $ac_func (); below.
24755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24756     <limits.h> exists even on freestanding compilers.  */
24757
24758 #ifdef __STDC__
24759 # include <limits.h>
24760 #else
24761 # include <assert.h>
24762 #endif
24763
24764 #undef $ac_func
24765
24766 /* Override any gcc2 internal prototype to avoid an error.  */
24767 #ifdef __cplusplus
24768 extern "C"
24769 {
24770 #endif
24771 /* We use char because int might match the return type of a gcc2
24772    builtin and then its argument prototype would still apply.  */
24773 char $ac_func ();
24774 /* The GNU C library defines this for functions which it implements
24775     to always fail with ENOSYS.  Some functions are actually named
24776     something starting with __ and the normal name is an alias.  */
24777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24778 choke me
24779 #else
24780 char (*f) () = $ac_func;
24781 #endif
24782 #ifdef __cplusplus
24783 }
24784 #endif
24785
24786 int
24787 main ()
24788 {
24789 return f != $ac_func;
24790   ;
24791   return 0;
24792 }
24793 _ACEOF
24794 rm -f conftest.$ac_objext conftest$ac_exeext
24795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24796   (eval $ac_link) 2>conftest.er1
24797   ac_status=$?
24798   grep -v '^ *+' conftest.er1 >conftest.err
24799   rm -f conftest.er1
24800   cat conftest.err >&5
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); } &&
24803          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805   (eval $ac_try) 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; } &&
24809          { ac_try='test -s conftest$ac_exeext'
24810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811   (eval $ac_try) 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; }; then
24815   eval "$as_ac_var=yes"
24816 else
24817   echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820 eval "$as_ac_var=no"
24821 fi
24822 rm -f conftest.err conftest.$ac_objext \
24823       conftest$ac_exeext conftest.$ac_ext
24824 fi
24825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24827 if test `eval echo '${'$as_ac_var'}'` = yes; then
24828   cat >>confdefs.h <<_ACEOF
24829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24830 _ACEOF
24831  have_ceil=1
24832 fi
24833 done
24834
24835     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24836 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24837     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24838         echo "$as_me:$LINENO: result: yes" >&5
24839 echo "${ECHO_T}yes" >&6
24840     else
24841         echo "$as_me:$LINENO: result: no" >&5
24842 echo "${ECHO_T}no" >&6
24843         # not sure we should warn the user, crash, etc.
24844     fi
24845 fi
24846
24847
24848
24849 if test "$wxUSE_REGEX" != "no"; then
24850     cat >>confdefs.h <<\_ACEOF
24851 #define wxUSE_REGEX 1
24852 _ACEOF
24853
24854
24855     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24856         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24857 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24858         wxUSE_REGEX=builtin
24859     fi
24860
24861     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24862                         if test "${ac_cv_header_regex_h+set}" = set; then
24863   echo "$as_me:$LINENO: checking for regex.h" >&5
24864 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24865 if test "${ac_cv_header_regex_h+set}" = set; then
24866   echo $ECHO_N "(cached) $ECHO_C" >&6
24867 fi
24868 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24869 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24870 else
24871   # Is the header compilable?
24872 echo "$as_me:$LINENO: checking regex.h usability" >&5
24873 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880 $ac_includes_default
24881 #include <regex.h>
24882 _ACEOF
24883 rm -f conftest.$ac_objext
24884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24885   (eval $ac_compile) 2>conftest.er1
24886   ac_status=$?
24887   grep -v '^ *+' conftest.er1 >conftest.err
24888   rm -f conftest.er1
24889   cat conftest.err >&5
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); } &&
24892          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24894   (eval $ac_try) 2>&5
24895   ac_status=$?
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); }; } &&
24898          { ac_try='test -s conftest.$ac_objext'
24899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900   (eval $ac_try) 2>&5
24901   ac_status=$?
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); }; }; then
24904   ac_header_compiler=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909 ac_header_compiler=no
24910 fi
24911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24913 echo "${ECHO_T}$ac_header_compiler" >&6
24914
24915 # Is the header present?
24916 echo "$as_me:$LINENO: checking regex.h presence" >&5
24917 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24918 cat >conftest.$ac_ext <<_ACEOF
24919 /* confdefs.h.  */
24920 _ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h.  */
24924 #include <regex.h>
24925 _ACEOF
24926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } >/dev/null; then
24934   if test -s conftest.err; then
24935     ac_cpp_err=$ac_cxx_preproc_warn_flag
24936     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24937   else
24938     ac_cpp_err=
24939   fi
24940 else
24941   ac_cpp_err=yes
24942 fi
24943 if test -z "$ac_cpp_err"; then
24944   ac_header_preproc=yes
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949   ac_header_preproc=no
24950 fi
24951 rm -f conftest.err conftest.$ac_ext
24952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24953 echo "${ECHO_T}$ac_header_preproc" >&6
24954
24955 # So?  What about this header?
24956 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24957   yes:no: )
24958     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24959 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24960     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24961 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24962     ac_header_preproc=yes
24963     ;;
24964   no:yes:* )
24965     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24966 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24967     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
24968 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
24969     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24970 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24971     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
24972 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24973     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24974 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24975     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24976 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24977     (
24978       cat <<\_ASBOX
24979 ## ----------------------------------------- ##
24980 ## Report this to wx-dev@lists.wxwidgets.org ##
24981 ## ----------------------------------------- ##
24982 _ASBOX
24983     ) |
24984       sed "s/^/$as_me: WARNING:     /" >&2
24985     ;;
24986 esac
24987 echo "$as_me:$LINENO: checking for regex.h" >&5
24988 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24989 if test "${ac_cv_header_regex_h+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992   ac_cv_header_regex_h=$ac_header_preproc
24993 fi
24994 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24995 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24996
24997 fi
24998 if test $ac_cv_header_regex_h = yes; then
24999
25000
25001 for ac_func in regcomp re_search
25002 do
25003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25004 echo "$as_me:$LINENO: checking for $ac_func" >&5
25005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25006 if eval "test \"\${$as_ac_var+set}\" = set"; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009   cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25017 #define $ac_func innocuous_$ac_func
25018
25019 /* System header to define __stub macros and hopefully few prototypes,
25020     which can conflict with char $ac_func (); below.
25021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25022     <limits.h> exists even on freestanding compilers.  */
25023
25024 #ifdef __STDC__
25025 # include <limits.h>
25026 #else
25027 # include <assert.h>
25028 #endif
25029
25030 #undef $ac_func
25031
25032 /* Override any gcc2 internal prototype to avoid an error.  */
25033 #ifdef __cplusplus
25034 extern "C"
25035 {
25036 #endif
25037 /* We use char because int might match the return type of a gcc2
25038    builtin and then its argument prototype would still apply.  */
25039 char $ac_func ();
25040 /* The GNU C library defines this for functions which it implements
25041     to always fail with ENOSYS.  Some functions are actually named
25042     something starting with __ and the normal name is an alias.  */
25043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25044 choke me
25045 #else
25046 char (*f) () = $ac_func;
25047 #endif
25048 #ifdef __cplusplus
25049 }
25050 #endif
25051
25052 int
25053 main ()
25054 {
25055 return f != $ac_func;
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062   (eval $ac_link) 2>conftest.er1
25063   ac_status=$?
25064   grep -v '^ *+' conftest.er1 >conftest.err
25065   rm -f conftest.er1
25066   cat conftest.err >&5
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); } &&
25069          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071   (eval $ac_try) 2>&5
25072   ac_status=$?
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); }; } &&
25075          { ac_try='test -s conftest$ac_exeext'
25076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077   (eval $ac_try) 2>&5
25078   ac_status=$?
25079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); }; }; then
25081   eval "$as_ac_var=yes"
25082 else
25083   echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25085
25086 eval "$as_ac_var=no"
25087 fi
25088 rm -f conftest.err conftest.$ac_objext \
25089       conftest$ac_exeext conftest.$ac_ext
25090 fi
25091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25093 if test `eval echo '${'$as_ac_var'}'` = yes; then
25094   cat >>confdefs.h <<_ACEOF
25095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25096 _ACEOF
25097
25098 fi
25099 done
25100
25101 fi
25102
25103
25104
25105         if test "x$ac_cv_func_regcomp" != "xyes"; then
25106             if test "$wxUSE_REGEX" = "sys" ; then
25107                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25108 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25109    { (exit 1); exit 1; }; }
25110             else
25111                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25112 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25113                 wxUSE_REGEX=builtin
25114             fi
25115         else
25116                         wxUSE_REGEX=sys
25117                         cat >>confdefs.h <<\_ACEOF
25118 #define WX_NO_REGEX_ADVANCED 1
25119 _ACEOF
25120
25121         fi
25122     fi
25123 fi
25124
25125
25126 ZLIB_LINK=
25127 if test "$wxUSE_ZLIB" != "no" ; then
25128     cat >>confdefs.h <<\_ACEOF
25129 #define wxUSE_ZLIB 1
25130 _ACEOF
25131
25132
25133     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25134                                                 if test "$USE_DARWIN" = 1; then
25135             system_zlib_h_ok="yes"
25136         else
25137                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25138 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25139 if test "${ac_cv_header_zlib_h+set}" = set; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 else
25142   if test "$cross_compiling" = yes; then
25143                       unset ac_cv_header_zlib_h
25144
25145 else
25146   cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152
25153                         #include <zlib.h>
25154                         #include <stdio.h>
25155
25156                         int main()
25157                         {
25158                             FILE *f=fopen("conftestval", "w");
25159                             if (!f) exit(1);
25160                             fprintf(f, "%s",
25161                                     ZLIB_VERSION[0] == '1' &&
25162                                     (ZLIB_VERSION[2] > '1' ||
25163                                     (ZLIB_VERSION[2] == '1' &&
25164                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25165                             exit(0);
25166                         }
25167
25168 _ACEOF
25169 rm -f conftest$ac_exeext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171   (eval $ac_link) 2>&5
25172   ac_status=$?
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176   (eval $ac_try) 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   ac_cv_header_zlib_h=`cat conftestval`
25181 else
25182   echo "$as_me: program exited with status $ac_status" >&5
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186 ( exit $ac_status )
25187 ac_cv_header_zlib_h=no
25188 fi
25189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25190 fi
25191
25192 fi
25193 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25194 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25195                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25196   echo "$as_me:$LINENO: checking for zlib.h" >&5
25197 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25198 if test "${ac_cv_header_zlib_h+set}" = set; then
25199   echo $ECHO_N "(cached) $ECHO_C" >&6
25200 fi
25201 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25202 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25203 else
25204   # Is the header compilable?
25205 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25206 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25207 cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 $ac_includes_default
25214 #include <zlib.h>
25215 _ACEOF
25216 rm -f conftest.$ac_objext
25217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25218   (eval $ac_compile) 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } &&
25225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227   (eval $ac_try) 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; } &&
25231          { ac_try='test -s conftest.$ac_objext'
25232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233   (eval $ac_try) 2>&5
25234   ac_status=$?
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); }; }; then
25237   ac_header_compiler=yes
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 ac_header_compiler=no
25243 fi
25244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25246 echo "${ECHO_T}$ac_header_compiler" >&6
25247
25248 # Is the header present?
25249 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25250 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25251 cat >conftest.$ac_ext <<_ACEOF
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257 #include <zlib.h>
25258 _ACEOF
25259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } >/dev/null; then
25267   if test -s conftest.err; then
25268     ac_cpp_err=$ac_cxx_preproc_warn_flag
25269     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25270   else
25271     ac_cpp_err=
25272   fi
25273 else
25274   ac_cpp_err=yes
25275 fi
25276 if test -z "$ac_cpp_err"; then
25277   ac_header_preproc=yes
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282   ac_header_preproc=no
25283 fi
25284 rm -f conftest.err conftest.$ac_ext
25285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25286 echo "${ECHO_T}$ac_header_preproc" >&6
25287
25288 # So?  What about this header?
25289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25290   yes:no: )
25291     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25292 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25293     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25294 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25295     ac_header_preproc=yes
25296     ;;
25297   no:yes:* )
25298     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25299 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25300     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25301 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25302     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25303 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25304     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25305 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25306     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25307 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25308     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25309 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25310     (
25311       cat <<\_ASBOX
25312 ## ----------------------------------------- ##
25313 ## Report this to wx-dev@lists.wxwidgets.org ##
25314 ## ----------------------------------------- ##
25315 _ASBOX
25316     ) |
25317       sed "s/^/$as_me: WARNING:     /" >&2
25318     ;;
25319 esac
25320 echo "$as_me:$LINENO: checking for zlib.h" >&5
25321 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25322 if test "${ac_cv_header_zlib_h+set}" = set; then
25323   echo $ECHO_N "(cached) $ECHO_C" >&6
25324 else
25325   ac_cv_header_zlib_h=$ac_header_preproc
25326 fi
25327 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25328 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25329
25330 fi
25331
25332
25333
25334             system_zlib_h_ok=$ac_cv_header_zlib_h
25335         fi
25336
25337         if test "$system_zlib_h_ok" = "yes"; then
25338             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25339 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25340 if test "${ac_cv_lib_z_deflate+set}" = set; then
25341   echo $ECHO_N "(cached) $ECHO_C" >&6
25342 else
25343   ac_check_lib_save_LIBS=$LIBS
25344 LIBS="-lz  $LIBS"
25345 cat >conftest.$ac_ext <<_ACEOF
25346 /* confdefs.h.  */
25347 _ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h.  */
25351
25352 /* Override any gcc2 internal prototype to avoid an error.  */
25353 #ifdef __cplusplus
25354 extern "C"
25355 #endif
25356 /* We use char because int might match the return type of a gcc2
25357    builtin and then its argument prototype would still apply.  */
25358 char deflate ();
25359 int
25360 main ()
25361 {
25362 deflate ();
25363   ;
25364   return 0;
25365 }
25366 _ACEOF
25367 rm -f conftest.$ac_objext conftest$ac_exeext
25368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25369   (eval $ac_link) 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } &&
25376          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest$ac_exeext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   ac_cv_lib_z_deflate=yes
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393 ac_cv_lib_z_deflate=no
25394 fi
25395 rm -f conftest.err conftest.$ac_objext \
25396       conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25398 fi
25399 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25400 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25401 if test $ac_cv_lib_z_deflate = yes; then
25402   ZLIB_LINK=" -lz"
25403 fi
25404
25405         fi
25406
25407         if test "x$ZLIB_LINK" = "x" ; then
25408             if test "$wxUSE_ZLIB" = "sys" ; then
25409                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25410 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25411    { (exit 1); exit 1; }; }
25412             else
25413                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25414 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25415                 wxUSE_ZLIB=builtin
25416             fi
25417         else
25418                         wxUSE_ZLIB=sys
25419         fi
25420     fi
25421 fi
25422
25423
25424 PNG_LINK=
25425 if test "$wxUSE_LIBPNG" != "no" ; then
25426     cat >>confdefs.h <<\_ACEOF
25427 #define wxUSE_LIBPNG 1
25428 _ACEOF
25429
25430
25431     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25432         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25433 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25434         wxUSE_LIBPNG=sys
25435     fi
25436
25437                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25438         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25439 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25440         wxUSE_LIBPNG=builtin
25441     fi
25442
25443     if test "$wxUSE_MGL" != 1 ; then
25444                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25445                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25446 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25447 if test "${ac_cv_header_png_h+set}" = set; then
25448   echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450   if test "$cross_compiling" = yes; then
25451                       unset ac_cv_header_png_h
25452
25453 else
25454   cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460
25461                         #include <png.h>
25462                         #include <stdio.h>
25463
25464                         int main()
25465                         {
25466                             FILE *f=fopen("conftestval", "w");
25467                             if (!f) exit(1);
25468                             fprintf(f, "%s",
25469                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25470                             exit(0);
25471                         }
25472
25473 _ACEOF
25474 rm -f conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476   (eval $ac_link) 2>&5
25477   ac_status=$?
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; }; then
25485   ac_cv_header_png_h=`cat conftestval`
25486 else
25487   echo "$as_me: program exited with status $ac_status" >&5
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 ( exit $ac_status )
25492 ac_cv_header_png_h=no
25493 fi
25494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25495 fi
25496
25497 fi
25498 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25499 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25500             if test "${ac_cv_header_png_h+set}" = set; then
25501   echo "$as_me:$LINENO: checking for png.h" >&5
25502 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25503 if test "${ac_cv_header_png_h+set}" = set; then
25504   echo $ECHO_N "(cached) $ECHO_C" >&6
25505 fi
25506 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25507 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25508 else
25509   # Is the header compilable?
25510 echo "$as_me:$LINENO: checking png.h usability" >&5
25511 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25512 cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h.  */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h.  */
25518 $ac_includes_default
25519 #include <png.h>
25520 _ACEOF
25521 rm -f conftest.$ac_objext
25522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25523   (eval $ac_compile) 2>conftest.er1
25524   ac_status=$?
25525   grep -v '^ *+' conftest.er1 >conftest.err
25526   rm -f conftest.er1
25527   cat conftest.err >&5
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); } &&
25530          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; } &&
25536          { ac_try='test -s conftest.$ac_objext'
25537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538   (eval $ac_try) 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; }; then
25542   ac_header_compiler=yes
25543 else
25544   echo "$as_me: failed program was:" >&5
25545 sed 's/^/| /' conftest.$ac_ext >&5
25546
25547 ac_header_compiler=no
25548 fi
25549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25551 echo "${ECHO_T}$ac_header_compiler" >&6
25552
25553 # Is the header present?
25554 echo "$as_me:$LINENO: checking png.h presence" >&5
25555 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562 #include <png.h>
25563 _ACEOF
25564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } >/dev/null; then
25572   if test -s conftest.err; then
25573     ac_cpp_err=$ac_cxx_preproc_warn_flag
25574     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25575   else
25576     ac_cpp_err=
25577   fi
25578 else
25579   ac_cpp_err=yes
25580 fi
25581 if test -z "$ac_cpp_err"; then
25582   ac_header_preproc=yes
25583 else
25584   echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25586
25587   ac_header_preproc=no
25588 fi
25589 rm -f conftest.err conftest.$ac_ext
25590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25591 echo "${ECHO_T}$ac_header_preproc" >&6
25592
25593 # So?  What about this header?
25594 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25595   yes:no: )
25596     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25597 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25598     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25599 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25600     ac_header_preproc=yes
25601     ;;
25602   no:yes:* )
25603     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25604 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25606 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25608 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25609     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25610 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25611     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25612 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25613     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25614 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25615     (
25616       cat <<\_ASBOX
25617 ## ----------------------------------------- ##
25618 ## Report this to wx-dev@lists.wxwidgets.org ##
25619 ## ----------------------------------------- ##
25620 _ASBOX
25621     ) |
25622       sed "s/^/$as_me: WARNING:     /" >&2
25623     ;;
25624 esac
25625 echo "$as_me:$LINENO: checking for png.h" >&5
25626 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25627 if test "${ac_cv_header_png_h+set}" = set; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   ac_cv_header_png_h=$ac_header_preproc
25631 fi
25632 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25633 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25634
25635 fi
25636
25637
25638
25639             if test "$ac_cv_header_png_h" = "yes"; then
25640                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25641 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25642 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25643   echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645   ac_check_lib_save_LIBS=$LIBS
25646 LIBS="-lpng -lz -lm $LIBS"
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653
25654 /* Override any gcc2 internal prototype to avoid an error.  */
25655 #ifdef __cplusplus
25656 extern "C"
25657 #endif
25658 /* We use char because int might match the return type of a gcc2
25659    builtin and then its argument prototype would still apply.  */
25660 char png_check_sig ();
25661 int
25662 main ()
25663 {
25664 png_check_sig ();
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671   (eval $ac_link) 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } &&
25678          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; } &&
25684          { ac_try='test -s conftest$ac_exeext'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690   ac_cv_lib_png_png_check_sig=yes
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695 ac_cv_lib_png_png_check_sig=no
25696 fi
25697 rm -f conftest.err conftest.$ac_objext \
25698       conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25700 fi
25701 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25702 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25703 if test $ac_cv_lib_png_png_check_sig = yes; then
25704   PNG_LINK=" -lpng -lz"
25705 fi
25706
25707             fi
25708
25709             if test "x$PNG_LINK" = "x" ; then
25710                 if test "$wxUSE_LIBPNG" = "sys" ; then
25711                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25712 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25713    { (exit 1); exit 1; }; }
25714                 else
25715                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25716 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25717                     wxUSE_LIBPNG=builtin
25718                 fi
25719             else
25720                                 wxUSE_LIBPNG=sys
25721             fi
25722         fi
25723     fi
25724
25725     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25726 fi
25727
25728
25729 JPEG_LINK=
25730 if test "$wxUSE_LIBJPEG" != "no" ; then
25731     cat >>confdefs.h <<\_ACEOF
25732 #define wxUSE_LIBJPEG 1
25733 _ACEOF
25734
25735
25736     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25737         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25738 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25739         wxUSE_LIBJPEG=sys
25740     fi
25741
25742     if test "$wxUSE_MGL" != 1 ; then
25743                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25744                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25745 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25746             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25747   echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749   cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755
25756                         #undef HAVE_STDLIB_H
25757                         #include <stdio.h>
25758                         #include <jpeglib.h>
25759
25760 int
25761 main ()
25762 {
25763
25764
25765   ;
25766   return 0;
25767 }
25768 _ACEOF
25769 rm -f conftest.$ac_objext
25770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25771   (eval $ac_compile) 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } &&
25778          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; } &&
25784          { ac_try='test -s conftest.$ac_objext'
25785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786   (eval $ac_try) 2>&5
25787   ac_status=$?
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); }; }; then
25790   ac_cv_header_jpeglib_h=yes
25791 else
25792   echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25794
25795 ac_cv_header_jpeglib_h=no
25796
25797 fi
25798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25799
25800 fi
25801
25802             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25803 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25804
25805             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25806                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25807 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25808 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25809   echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811   ac_check_lib_save_LIBS=$LIBS
25812 LIBS="-ljpeg  $LIBS"
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819
25820 /* Override any gcc2 internal prototype to avoid an error.  */
25821 #ifdef __cplusplus
25822 extern "C"
25823 #endif
25824 /* We use char because int might match the return type of a gcc2
25825    builtin and then its argument prototype would still apply.  */
25826 char jpeg_read_header ();
25827 int
25828 main ()
25829 {
25830 jpeg_read_header ();
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25837   (eval $ac_link) 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } &&
25844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; } &&
25850          { ac_try='test -s conftest$ac_exeext'
25851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852   (eval $ac_try) 2>&5
25853   ac_status=$?
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); }; }; then
25856   ac_cv_lib_jpeg_jpeg_read_header=yes
25857 else
25858   echo "$as_me: failed program was:" >&5
25859 sed 's/^/| /' conftest.$ac_ext >&5
25860
25861 ac_cv_lib_jpeg_jpeg_read_header=no
25862 fi
25863 rm -f conftest.err conftest.$ac_objext \
25864       conftest$ac_exeext conftest.$ac_ext
25865 LIBS=$ac_check_lib_save_LIBS
25866 fi
25867 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25868 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25869 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25870   JPEG_LINK=" -ljpeg"
25871 fi
25872
25873             fi
25874
25875             if test "x$JPEG_LINK" = "x" ; then
25876                 if test "$wxUSE_LIBJPEG" = "sys" ; then
25877                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25878 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25879    { (exit 1); exit 1; }; }
25880                 else
25881                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25882 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25883                     wxUSE_LIBJPEG=builtin
25884                 fi
25885             else
25886                                 wxUSE_LIBJPEG=sys
25887             fi
25888         fi
25889     fi
25890 fi
25891
25892
25893 TIFF_LINK=
25894 TIFF_PREREQ_LINKS=-lm
25895 if test "$wxUSE_LIBTIFF" != "no" ; then
25896     cat >>confdefs.h <<\_ACEOF
25897 #define wxUSE_LIBTIFF 1
25898 _ACEOF
25899
25900
25901     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25902                         if test "$wxUSE_LIBJPEG" = "sys"; then
25903             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25904         fi
25905         if test "$wxUSE_ZLIB" = "sys"; then
25906             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25907         fi
25908         if test "${ac_cv_header_tiffio_h+set}" = set; then
25909   echo "$as_me:$LINENO: checking for tiffio.h" >&5
25910 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25911 if test "${ac_cv_header_tiffio_h+set}" = set; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 fi
25914 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25915 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25916 else
25917   # Is the header compilable?
25918 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25919 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25920 cat >conftest.$ac_ext <<_ACEOF
25921 /* confdefs.h.  */
25922 _ACEOF
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h.  */
25926 $ac_includes_default
25927 #include <tiffio.h>
25928 _ACEOF
25929 rm -f conftest.$ac_objext
25930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25931   (eval $ac_compile) 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } &&
25938          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940   (eval $ac_try) 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); }; } &&
25944          { ac_try='test -s conftest.$ac_objext'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; }; then
25950   ac_header_compiler=yes
25951 else
25952   echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 ac_header_compiler=no
25956 fi
25957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25959 echo "${ECHO_T}$ac_header_compiler" >&6
25960
25961 # Is the header present?
25962 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25963 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25964 cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h.  */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h.  */
25970 #include <tiffio.h>
25971 _ACEOF
25972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } >/dev/null; then
25980   if test -s conftest.err; then
25981     ac_cpp_err=$ac_cxx_preproc_warn_flag
25982     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25983   else
25984     ac_cpp_err=
25985   fi
25986 else
25987   ac_cpp_err=yes
25988 fi
25989 if test -z "$ac_cpp_err"; then
25990   ac_header_preproc=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995   ac_header_preproc=no
25996 fi
25997 rm -f conftest.err conftest.$ac_ext
25998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25999 echo "${ECHO_T}$ac_header_preproc" >&6
26000
26001 # So?  What about this header?
26002 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26003   yes:no: )
26004     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26005 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26006     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26007 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26008     ac_header_preproc=yes
26009     ;;
26010   no:yes:* )
26011     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26012 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26013     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26014 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26015     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26016 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26017     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26018 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26019     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26020 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26021     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26022 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26023     (
26024       cat <<\_ASBOX
26025 ## ----------------------------------------- ##
26026 ## Report this to wx-dev@lists.wxwidgets.org ##
26027 ## ----------------------------------------- ##
26028 _ASBOX
26029     ) |
26030       sed "s/^/$as_me: WARNING:     /" >&2
26031     ;;
26032 esac
26033 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26034 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26035 if test "${ac_cv_header_tiffio_h+set}" = set; then
26036   echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038   ac_cv_header_tiffio_h=$ac_header_preproc
26039 fi
26040 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26041 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26042
26043 fi
26044 if test $ac_cv_header_tiffio_h = yes; then
26045
26046                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26047 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26048 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26049   echo $ECHO_N "(cached) $ECHO_C" >&6
26050 else
26051   ac_check_lib_save_LIBS=$LIBS
26052 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059
26060 /* Override any gcc2 internal prototype to avoid an error.  */
26061 #ifdef __cplusplus
26062 extern "C"
26063 #endif
26064 /* We use char because int might match the return type of a gcc2
26065    builtin and then its argument prototype would still apply.  */
26066 char TIFFError ();
26067 int
26068 main ()
26069 {
26070 TIFFError ();
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26077   (eval $ac_link) 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } &&
26084          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086   (eval $ac_try) 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; } &&
26090          { ac_try='test -s conftest$ac_exeext'
26091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092   (eval $ac_try) 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; }; then
26096   ac_cv_lib_tiff_TIFFError=yes
26097 else
26098   echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101 ac_cv_lib_tiff_TIFFError=no
26102 fi
26103 rm -f conftest.err conftest.$ac_objext \
26104       conftest$ac_exeext conftest.$ac_ext
26105 LIBS=$ac_check_lib_save_LIBS
26106 fi
26107 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26108 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26109 if test $ac_cv_lib_tiff_TIFFError = yes; then
26110   TIFF_LINK=" -ltiff"
26111 fi
26112
26113
26114
26115 fi
26116
26117
26118
26119         if test "x$TIFF_LINK" = "x" ; then
26120             if test "$wxUSE_LIBTIFF" = "sys" ; then
26121                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26122 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26123    { (exit 1); exit 1; }; }
26124             else
26125                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26126 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26127                 wxUSE_LIBTIFF=builtin
26128             fi
26129         else
26130                         wxUSE_LIBTIFF=sys
26131         fi
26132     fi
26133 fi
26134
26135
26136 if test "$wxUSE_WCHAR_T" != "yes"; then
26137     if test "$wxUSE_EXPAT" != "no"; then
26138         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26139 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26140         wxUSE_EXPAT=no
26141     fi
26142     if test "$wxUSE_XML" != "no"; then
26143         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26144 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26145         wxUSE_XML=no
26146     fi
26147 fi
26148
26149 if test "$wxUSE_EXPAT" != "no"; then
26150     wxUSE_XML=yes
26151     cat >>confdefs.h <<\_ACEOF
26152 #define wxUSE_EXPAT 1
26153 _ACEOF
26154
26155     cat >>confdefs.h <<\_ACEOF
26156 #define wxUSE_XML 1
26157 _ACEOF
26158
26159
26160     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26161         if test "${ac_cv_header_expat_h+set}" = set; then
26162   echo "$as_me:$LINENO: checking for expat.h" >&5
26163 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26164 if test "${ac_cv_header_expat_h+set}" = set; then
26165   echo $ECHO_N "(cached) $ECHO_C" >&6
26166 fi
26167 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26168 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26169 else
26170   # Is the header compilable?
26171 echo "$as_me:$LINENO: checking expat.h usability" >&5
26172 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26173 cat >conftest.$ac_ext <<_ACEOF
26174 /* confdefs.h.  */
26175 _ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h.  */
26179 $ac_includes_default
26180 #include <expat.h>
26181 _ACEOF
26182 rm -f conftest.$ac_objext
26183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26184   (eval $ac_compile) 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } &&
26191          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; } &&
26197          { ac_try='test -s conftest.$ac_objext'
26198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199   (eval $ac_try) 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; }; then
26203   ac_header_compiler=yes
26204 else
26205   echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 ac_header_compiler=no
26209 fi
26210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26212 echo "${ECHO_T}$ac_header_compiler" >&6
26213
26214 # Is the header present?
26215 echo "$as_me:$LINENO: checking expat.h presence" >&5
26216 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26217 cat >conftest.$ac_ext <<_ACEOF
26218 /* confdefs.h.  */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h.  */
26223 #include <expat.h>
26224 _ACEOF
26225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26227   ac_status=$?
26228   grep -v '^ *+' conftest.er1 >conftest.err
26229   rm -f conftest.er1
26230   cat conftest.err >&5
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); } >/dev/null; then
26233   if test -s conftest.err; then
26234     ac_cpp_err=$ac_cxx_preproc_warn_flag
26235     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26236   else
26237     ac_cpp_err=
26238   fi
26239 else
26240   ac_cpp_err=yes
26241 fi
26242 if test -z "$ac_cpp_err"; then
26243   ac_header_preproc=yes
26244 else
26245   echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248   ac_header_preproc=no
26249 fi
26250 rm -f conftest.err conftest.$ac_ext
26251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26252 echo "${ECHO_T}$ac_header_preproc" >&6
26253
26254 # So?  What about this header?
26255 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26256   yes:no: )
26257     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26258 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26259     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26260 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26261     ac_header_preproc=yes
26262     ;;
26263   no:yes:* )
26264     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26265 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26266     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26267 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26268     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26269 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26270     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26271 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26272     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26273 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26274     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26275 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26276     (
26277       cat <<\_ASBOX
26278 ## ----------------------------------------- ##
26279 ## Report this to wx-dev@lists.wxwidgets.org ##
26280 ## ----------------------------------------- ##
26281 _ASBOX
26282     ) |
26283       sed "s/^/$as_me: WARNING:     /" >&2
26284     ;;
26285 esac
26286 echo "$as_me:$LINENO: checking for expat.h" >&5
26287 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26288 if test "${ac_cv_header_expat_h+set}" = set; then
26289   echo $ECHO_N "(cached) $ECHO_C" >&6
26290 else
26291   ac_cv_header_expat_h=$ac_header_preproc
26292 fi
26293 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26294 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26295
26296 fi
26297 if test $ac_cv_header_expat_h = yes; then
26298   found_expat_h=1
26299 fi
26300
26301
26302         if test "x$found_expat_h" = "x1"; then
26303                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26304 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26305 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26306   echo $ECHO_N "(cached) $ECHO_C" >&6
26307 else
26308
26309                 cat >conftest.$ac_ext <<_ACEOF
26310 /* confdefs.h.  */
26311 _ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h.  */
26315 #include <expat.h>
26316 int
26317 main ()
26318 {
26319
26320   ;
26321   return 0;
26322 }
26323 _ACEOF
26324 rm -f conftest.$ac_objext
26325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26326   (eval $ac_compile) 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } &&
26333          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335   (eval $ac_try) 2>&5
26336   ac_status=$?
26337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338   (exit $ac_status); }; } &&
26339          { ac_try='test -s conftest.$ac_objext'
26340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341   (eval $ac_try) 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); }; }; then
26345   wx_cv_expat_is_not_broken=yes
26346 else
26347   echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26349
26350 wx_cv_expat_is_not_broken=no
26351
26352 fi
26353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26354
26355
26356 fi
26357 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26358 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26359             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26360                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26361 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26362 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365   ac_check_lib_save_LIBS=$LIBS
26366 LIBS="-lexpat  $LIBS"
26367 cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h.  */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h.  */
26373
26374 /* Override any gcc2 internal prototype to avoid an error.  */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 /* We use char because int might match the return type of a gcc2
26379    builtin and then its argument prototype would still apply.  */
26380 char XML_ParserCreate ();
26381 int
26382 main ()
26383 {
26384 XML_ParserCreate ();
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext conftest$ac_exeext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26391   (eval $ac_link) 2>conftest.er1
26392   ac_status=$?
26393   grep -v '^ *+' conftest.er1 >conftest.err
26394   rm -f conftest.er1
26395   cat conftest.err >&5
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); } &&
26398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400   (eval $ac_try) 2>&5
26401   ac_status=$?
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); }; } &&
26404          { ac_try='test -s conftest$ac_exeext'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; }; then
26410   ac_cv_lib_expat_XML_ParserCreate=yes
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415 ac_cv_lib_expat_XML_ParserCreate=no
26416 fi
26417 rm -f conftest.err conftest.$ac_objext \
26418       conftest$ac_exeext conftest.$ac_ext
26419 LIBS=$ac_check_lib_save_LIBS
26420 fi
26421 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26422 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26423 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26424   EXPAT_LINK=" -lexpat"
26425 fi
26426
26427             fi
26428         fi
26429         if test "x$EXPAT_LINK" = "x" ; then
26430             if test "$wxUSE_EXPAT" = "sys" ; then
26431                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26432 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26433    { (exit 1); exit 1; }; }
26434             else
26435                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26436 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26437                 wxUSE_EXPAT=builtin
26438             fi
26439         else
26440                         wxUSE_EXPAT=sys
26441         fi
26442     fi
26443     if test "$wxUSE_EXPAT" = "builtin" ; then
26444
26445
26446 subdirs="$subdirs src/expat"
26447
26448     fi
26449 fi
26450
26451
26452
26453 if test "$wxUSE_LIBMSPACK" != "no"; then
26454     if test "${ac_cv_header_mspack_h+set}" = set; then
26455   echo "$as_me:$LINENO: checking for mspack.h" >&5
26456 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26457 if test "${ac_cv_header_mspack_h+set}" = set; then
26458   echo $ECHO_N "(cached) $ECHO_C" >&6
26459 fi
26460 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26461 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26462 else
26463   # Is the header compilable?
26464 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26465 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26466 cat >conftest.$ac_ext <<_ACEOF
26467 /* confdefs.h.  */
26468 _ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h.  */
26472 $ac_includes_default
26473 #include <mspack.h>
26474 _ACEOF
26475 rm -f conftest.$ac_objext
26476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26477   (eval $ac_compile) 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } &&
26484          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486   (eval $ac_try) 2>&5
26487   ac_status=$?
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); }; } &&
26490          { ac_try='test -s conftest.$ac_objext'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; }; then
26496   ac_header_compiler=yes
26497 else
26498   echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26500
26501 ac_header_compiler=no
26502 fi
26503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26505 echo "${ECHO_T}$ac_header_compiler" >&6
26506
26507 # Is the header present?
26508 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26509 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26510 cat >conftest.$ac_ext <<_ACEOF
26511 /* confdefs.h.  */
26512 _ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h.  */
26516 #include <mspack.h>
26517 _ACEOF
26518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26520   ac_status=$?
26521   grep -v '^ *+' conftest.er1 >conftest.err
26522   rm -f conftest.er1
26523   cat conftest.err >&5
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); } >/dev/null; then
26526   if test -s conftest.err; then
26527     ac_cpp_err=$ac_cxx_preproc_warn_flag
26528     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26529   else
26530     ac_cpp_err=
26531   fi
26532 else
26533   ac_cpp_err=yes
26534 fi
26535 if test -z "$ac_cpp_err"; then
26536   ac_header_preproc=yes
26537 else
26538   echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26540
26541   ac_header_preproc=no
26542 fi
26543 rm -f conftest.err conftest.$ac_ext
26544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26545 echo "${ECHO_T}$ac_header_preproc" >&6
26546
26547 # So?  What about this header?
26548 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26549   yes:no: )
26550     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26551 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26552     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26553 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26554     ac_header_preproc=yes
26555     ;;
26556   no:yes:* )
26557     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26558 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26559     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26560 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26561     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26562 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26563     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26564 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26565     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26566 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26567     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26568 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26569     (
26570       cat <<\_ASBOX
26571 ## ----------------------------------------- ##
26572 ## Report this to wx-dev@lists.wxwidgets.org ##
26573 ## ----------------------------------------- ##
26574 _ASBOX
26575     ) |
26576       sed "s/^/$as_me: WARNING:     /" >&2
26577     ;;
26578 esac
26579 echo "$as_me:$LINENO: checking for mspack.h" >&5
26580 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26581 if test "${ac_cv_header_mspack_h+set}" = set; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 else
26584   ac_cv_header_mspack_h=$ac_header_preproc
26585 fi
26586 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26587 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26588
26589 fi
26590 if test $ac_cv_header_mspack_h = yes; then
26591   found_mspack_h=1
26592 fi
26593
26594
26595     if test "x$found_mspack_h" = "x1"; then
26596         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26597 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26598 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601   ac_check_lib_save_LIBS=$LIBS
26602 LIBS="-lmspack  $LIBS"
26603 cat >conftest.$ac_ext <<_ACEOF
26604 /* confdefs.h.  */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h.  */
26609
26610 /* Override any gcc2 internal prototype to avoid an error.  */
26611 #ifdef __cplusplus
26612 extern "C"
26613 #endif
26614 /* We use char because int might match the return type of a gcc2
26615    builtin and then its argument prototype would still apply.  */
26616 char mspack_create_chm_decompressor ();
26617 int
26618 main ()
26619 {
26620 mspack_create_chm_decompressor ();
26621   ;
26622   return 0;
26623 }
26624 _ACEOF
26625 rm -f conftest.$ac_objext conftest$ac_exeext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26627   (eval $ac_link) 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } &&
26634          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636   (eval $ac_try) 2>&5
26637   ac_status=$?
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); }; } &&
26640          { ac_try='test -s conftest$ac_exeext'
26641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642   (eval $ac_try) 2>&5
26643   ac_status=$?
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); }; }; then
26646   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26652 fi
26653 rm -f conftest.err conftest.$ac_objext \
26654       conftest$ac_exeext conftest.$ac_ext
26655 LIBS=$ac_check_lib_save_LIBS
26656 fi
26657 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26658 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26659 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26660   MSPACK_LINK=" -lmspack"
26661 fi
26662
26663     fi
26664     if test "x$MSPACK_LINK" = "x" ; then
26665         wxUSE_LIBMSPACK=no
26666     fi
26667 fi
26668
26669 if test "$wxUSE_LIBMSPACK" != "no"; then
26670     cat >>confdefs.h <<\_ACEOF
26671 #define wxUSE_LIBMSPACK 1
26672 _ACEOF
26673
26674 fi
26675
26676
26677
26678 AFMINSTALL=
26679 WIN32INSTALL=
26680
26681 TOOLKIT=
26682 TOOLKIT_INCLUDE=
26683 WIDGET_SET=
26684
26685 if test "$USE_WIN32" = 1 ; then
26686
26687 for ac_header in w32api.h
26688 do
26689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26691   echo "$as_me:$LINENO: checking for $ac_header" >&5
26692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26694   echo $ECHO_N "(cached) $ECHO_C" >&6
26695 fi
26696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26698 else
26699   # Is the header compilable?
26700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26702 cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h.  */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h.  */
26708 $ac_includes_default
26709 #include <$ac_header>
26710 _ACEOF
26711 rm -f conftest.$ac_objext
26712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26713   (eval $ac_compile) 2>conftest.er1
26714   ac_status=$?
26715   grep -v '^ *+' conftest.er1 >conftest.err
26716   rm -f conftest.er1
26717   cat conftest.err >&5
26718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719   (exit $ac_status); } &&
26720          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722   (eval $ac_try) 2>&5
26723   ac_status=$?
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); }; } &&
26726          { ac_try='test -s conftest.$ac_objext'
26727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728   (eval $ac_try) 2>&5
26729   ac_status=$?
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); }; }; then
26732   ac_header_compiler=yes
26733 else
26734   echo "$as_me: failed program was:" >&5
26735 sed 's/^/| /' conftest.$ac_ext >&5
26736
26737 ac_header_compiler=no
26738 fi
26739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741 echo "${ECHO_T}$ac_header_compiler" >&6
26742
26743 # Is the header present?
26744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26746 cat >conftest.$ac_ext <<_ACEOF
26747 /* confdefs.h.  */
26748 _ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h.  */
26752 #include <$ac_header>
26753 _ACEOF
26754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } >/dev/null; then
26762   if test -s conftest.err; then
26763     ac_cpp_err=$ac_cxx_preproc_warn_flag
26764     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26765   else
26766     ac_cpp_err=
26767   fi
26768 else
26769   ac_cpp_err=yes
26770 fi
26771 if test -z "$ac_cpp_err"; then
26772   ac_header_preproc=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777   ac_header_preproc=no
26778 fi
26779 rm -f conftest.err conftest.$ac_ext
26780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781 echo "${ECHO_T}$ac_header_preproc" >&6
26782
26783 # So?  What about this header?
26784 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26785   yes:no: )
26786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26790     ac_header_preproc=yes
26791     ;;
26792   no:yes:* )
26793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26805     (
26806       cat <<\_ASBOX
26807 ## ----------------------------------------- ##
26808 ## Report this to wx-dev@lists.wxwidgets.org ##
26809 ## ----------------------------------------- ##
26810 _ASBOX
26811     ) |
26812       sed "s/^/$as_me: WARNING:     /" >&2
26813     ;;
26814 esac
26815 echo "$as_me:$LINENO: checking for $ac_header" >&5
26816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   eval "$as_ac_Header=\$ac_header_preproc"
26821 fi
26822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26824
26825 fi
26826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26827   cat >>confdefs.h <<_ACEOF
26828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26829 _ACEOF
26830
26831 fi
26832
26833 done
26834
26835     if test "${ac_cv_header_windows_h+set}" = set; then
26836   echo "$as_me:$LINENO: checking for windows.h" >&5
26837 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26838 if test "${ac_cv_header_windows_h+set}" = set; then
26839   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 fi
26841 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26842 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26843 else
26844   # Is the header compilable?
26845 echo "$as_me:$LINENO: checking windows.h usability" >&5
26846 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26847 cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 $ac_includes_default
26854 #include <windows.h>
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26858   (eval $ac_compile) 2>conftest.er1
26859   ac_status=$?
26860   grep -v '^ *+' conftest.er1 >conftest.err
26861   rm -f conftest.er1
26862   cat conftest.err >&5
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); } &&
26865          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26867   (eval $ac_try) 2>&5
26868   ac_status=$?
26869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870   (exit $ac_status); }; } &&
26871          { ac_try='test -s conftest.$ac_objext'
26872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873   (eval $ac_try) 2>&5
26874   ac_status=$?
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); }; }; then
26877   ac_header_compiler=yes
26878 else
26879   echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.$ac_ext >&5
26881
26882 ac_header_compiler=no
26883 fi
26884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26886 echo "${ECHO_T}$ac_header_compiler" >&6
26887
26888 # Is the header present?
26889 echo "$as_me:$LINENO: checking windows.h presence" >&5
26890 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 #include <windows.h>
26898 _ACEOF
26899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26901   ac_status=$?
26902   grep -v '^ *+' conftest.er1 >conftest.err
26903   rm -f conftest.er1
26904   cat conftest.err >&5
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); } >/dev/null; then
26907   if test -s conftest.err; then
26908     ac_cpp_err=$ac_cxx_preproc_warn_flag
26909     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26910   else
26911     ac_cpp_err=
26912   fi
26913 else
26914   ac_cpp_err=yes
26915 fi
26916 if test -z "$ac_cpp_err"; then
26917   ac_header_preproc=yes
26918 else
26919   echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26921
26922   ac_header_preproc=no
26923 fi
26924 rm -f conftest.err conftest.$ac_ext
26925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26926 echo "${ECHO_T}$ac_header_preproc" >&6
26927
26928 # So?  What about this header?
26929 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26930   yes:no: )
26931     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26932 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26933     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26934 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26935     ac_header_preproc=yes
26936     ;;
26937   no:yes:* )
26938     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26939 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26940     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
26941 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
26942     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26943 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26944     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
26945 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26946     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26947 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26948     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26949 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26950     (
26951       cat <<\_ASBOX
26952 ## ----------------------------------------- ##
26953 ## Report this to wx-dev@lists.wxwidgets.org ##
26954 ## ----------------------------------------- ##
26955 _ASBOX
26956     ) |
26957       sed "s/^/$as_me: WARNING:     /" >&2
26958     ;;
26959 esac
26960 echo "$as_me:$LINENO: checking for windows.h" >&5
26961 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26962 if test "${ac_cv_header_windows_h+set}" = set; then
26963   echo $ECHO_N "(cached) $ECHO_C" >&6
26964 else
26965   ac_cv_header_windows_h=$ac_header_preproc
26966 fi
26967 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26968 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26969
26970 fi
26971 if test $ac_cv_header_windows_h = yes; then
26972   :
26973 else
26974
26975         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26976 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26977    { (exit 1); exit 1; }; }
26978
26979 fi
26980
26981
26982
26983             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26984
26985     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26986         LIBS="$LIBS -loleacc"
26987     fi
26988
26989     case "${host}" in
26990         *-*-cygwin* )
26991                         LIBS="$LIBS -lkernel32 -luser32"
26992     esac
26993
26994         if test "$wxUSE_ODBC" = "sys" ; then
26995         wxUSE_ODBC = "yes"
26996     fi
26997     if test "$wxUSE_ODBC" = "yes" ; then
26998         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26999         cat >>confdefs.h <<\_ACEOF
27000 #define wxUSE_ODBC 1
27001 _ACEOF
27002
27003     fi
27004
27005         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27006     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27007
27008                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27009
27010         WIN32INSTALL=win32install
27011
27012                     echo "$as_me:$LINENO: checking for boolean" >&5
27013 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27014 if test "${ac_cv_type_boolean+set}" = set; then
27015   echo $ECHO_N "(cached) $ECHO_C" >&6
27016 else
27017   cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 #include <windows.h>
27024
27025 int
27026 main ()
27027 {
27028 if ((boolean *) 0)
27029   return 0;
27030 if (sizeof (boolean))
27031   return 0;
27032   ;
27033   return 0;
27034 }
27035 _ACEOF
27036 rm -f conftest.$ac_objext
27037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27038   (eval $ac_compile) 2>conftest.er1
27039   ac_status=$?
27040   grep -v '^ *+' conftest.er1 >conftest.err
27041   rm -f conftest.er1
27042   cat conftest.err >&5
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); } &&
27045          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27047   (eval $ac_try) 2>&5
27048   ac_status=$?
27049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050   (exit $ac_status); }; } &&
27051          { ac_try='test -s conftest.$ac_objext'
27052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053   (eval $ac_try) 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; }; then
27057   ac_cv_type_boolean=yes
27058 else
27059   echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062 ac_cv_type_boolean=no
27063 fi
27064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27065 fi
27066 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27067 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27068 if test $ac_cv_type_boolean = yes; then
27069
27070 cat >>confdefs.h <<_ACEOF
27071 #define HAVE_BOOLEAN 1
27072 _ACEOF
27073
27074
27075 fi
27076
27077
27078
27079 for ac_header in pbt.h
27080 do
27081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27083   echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 fi
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27090 else
27091   # Is the header compilable?
27092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100 $ac_includes_default
27101 #include <$ac_header>
27102 _ACEOF
27103 rm -f conftest.$ac_objext
27104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27105   (eval $ac_compile) 2>conftest.er1
27106   ac_status=$?
27107   grep -v '^ *+' conftest.er1 >conftest.err
27108   rm -f conftest.er1
27109   cat conftest.err >&5
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } &&
27112          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114   (eval $ac_try) 2>&5
27115   ac_status=$?
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; } &&
27118          { ac_try='test -s conftest.$ac_objext'
27119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120   (eval $ac_try) 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_header_compiler=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129 ac_header_compiler=no
27130 fi
27131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27133 echo "${ECHO_T}$ac_header_compiler" >&6
27134
27135 # Is the header present?
27136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144 #include <$ac_header>
27145 _ACEOF
27146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27148   ac_status=$?
27149   grep -v '^ *+' conftest.er1 >conftest.err
27150   rm -f conftest.er1
27151   cat conftest.err >&5
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); } >/dev/null; then
27154   if test -s conftest.err; then
27155     ac_cpp_err=$ac_cxx_preproc_warn_flag
27156     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27157   else
27158     ac_cpp_err=
27159   fi
27160 else
27161   ac_cpp_err=yes
27162 fi
27163 if test -z "$ac_cpp_err"; then
27164   ac_header_preproc=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169   ac_header_preproc=no
27170 fi
27171 rm -f conftest.err conftest.$ac_ext
27172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27173 echo "${ECHO_T}$ac_header_preproc" >&6
27174
27175 # So?  What about this header?
27176 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27177   yes:no: )
27178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27182     ac_header_preproc=yes
27183     ;;
27184   no:yes:* )
27185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27197     (
27198       cat <<\_ASBOX
27199 ## ----------------------------------------- ##
27200 ## Report this to wx-dev@lists.wxwidgets.org ##
27201 ## ----------------------------------------- ##
27202 _ASBOX
27203     ) |
27204       sed "s/^/$as_me: WARNING:     /" >&2
27205     ;;
27206 esac
27207 echo "$as_me:$LINENO: checking for $ac_header" >&5
27208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27210   echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212   eval "$as_ac_Header=\$ac_header_preproc"
27213 fi
27214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27216
27217 fi
27218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27219   cat >>confdefs.h <<_ACEOF
27220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27221 _ACEOF
27222
27223 else
27224   cat >>confdefs.h <<\_ACEOF
27225 #define NEED_PBT_H 1
27226 _ACEOF
27227
27228 fi
27229
27230 done
27231
27232 fi
27233
27234 if test "$wxUSE_GUI" = "yes"; then
27235     USE_GUI=1
27236
27237     GUI_TK_LIBRARY=
27238
27239     WXGTK12=
27240     WXGTK127=
27241     WXGTK20=
27242     WXGPE=
27243
27244     if test "$wxUSE_COCOA" = 1 ; then
27245         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27246             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27247 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27248             wxUSE_PRINTING_ARCHITECTURE=no
27249         fi
27250         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27251             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27252 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27253             wxUSE_DRAG_AND_DROP=no
27254         fi
27255         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27256             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27257 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27258             wxUSE_DRAGIMAGE=no
27259         fi
27260     fi
27261
27262     if test "$wxUSE_MSW" = 1 ; then
27263         TOOLKIT=MSW
27264         GUIDIST=MSW_DIST
27265
27266                 case "${host}" in
27267             *-*-mingw32* )
27268                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27269         esac
27270     fi
27271
27272     if test "$wxUSE_GTK" = 1; then
27273                 ac_ext=c
27274 ac_cpp='$CPP $CPPFLAGS'
27275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27278
27279
27280         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27281 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27282
27283         gtk_version_cached=1
27284         if test "${wx_cv_lib_gtk+set}" = set; then
27285   echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287
27288                                                 gtk_version_cached=0
27289                 echo "$as_me:$LINENO: result: " >&5
27290 echo "${ECHO_T}" >&6
27291
27292                                                 GTK_MODULES=
27293                 if test "$wxUSE_THREADS" = "yes"; then
27294                     GTK_MODULES=gthread
27295                 fi
27296
27297                                 wx_cv_lib_gtk=
27298                 if test "x$wxGTK_VERSION" != "x1"
27299                 then
27300                                                                                 case "${host}" in
27301                         *-*-solaris2* )
27302                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27303                             enable_gtktest=no
27304                             fi
27305                     esac
27306
27307                     # Check whether --enable-gtktest or --disable-gtktest was given.
27308 if test "${enable_gtktest+set}" = set; then
27309   enableval="$enable_gtktest"
27310
27311 else
27312   enable_gtktest=yes
27313 fi;
27314
27315   pkg_config_args=gtk+-2.0
27316   for module in . $GTK_MODULES
27317   do
27318       case "$module" in
27319          gthread)
27320              pkg_config_args="$pkg_config_args gthread-2.0"
27321          ;;
27322       esac
27323   done
27324
27325   no_gtk=""
27326
27327   # Extract the first word of "pkg-config", so it can be a program name with args.
27328 set dummy pkg-config; ac_word=$2
27329 echo "$as_me:$LINENO: checking for $ac_word" >&5
27330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27331 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27332   echo $ECHO_N "(cached) $ECHO_C" >&6
27333 else
27334   case $PKG_CONFIG in
27335   [\\/]* | ?:[\\/]*)
27336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27337   ;;
27338   *)
27339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27340 for as_dir in $PATH
27341 do
27342   IFS=$as_save_IFS
27343   test -z "$as_dir" && as_dir=.
27344   for ac_exec_ext in '' $ac_executable_extensions; do
27345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27346     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27348     break 2
27349   fi
27350 done
27351 done
27352
27353   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27354   ;;
27355 esac
27356 fi
27357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27358
27359 if test -n "$PKG_CONFIG"; then
27360   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27361 echo "${ECHO_T}$PKG_CONFIG" >&6
27362 else
27363   echo "$as_me:$LINENO: result: no" >&5
27364 echo "${ECHO_T}no" >&6
27365 fi
27366
27367
27368   if test x$PKG_CONFIG != xno ; then
27369     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27370       :
27371     else
27372       echo "*** pkg-config too old; version 0.7 or better required."
27373       no_gtk=yes
27374       PKG_CONFIG=no
27375     fi
27376   else
27377     no_gtk=yes
27378   fi
27379
27380   min_gtk_version=2.0.0
27381   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27382 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27383
27384   if test x$PKG_CONFIG != xno ; then
27385     ## don't try to run the test against uninstalled libtool libs
27386     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27387           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27388           enable_gtktest=no
27389     fi
27390
27391     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27392           :
27393     else
27394           no_gtk=yes
27395     fi
27396   fi
27397
27398   if test x"$no_gtk" = x ; then
27399     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27400     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27401     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27402            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27403     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27404            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27405     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27406            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27407     if test "x$enable_gtktest" = "xyes" ; then
27408       ac_save_CFLAGS="$CFLAGS"
27409       ac_save_LIBS="$LIBS"
27410       CFLAGS="$CFLAGS $GTK_CFLAGS"
27411       LIBS="$GTK_LIBS $LIBS"
27412       rm -f conf.gtktest
27413       if test "$cross_compiling" = yes; then
27414   echo $ac_n "cross compiling; assumed OK... $ac_c"
27415 else
27416   cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h.  */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h.  */
27422
27423 #include <gtk/gtk.h>
27424 #include <stdio.h>
27425 #include <stdlib.h>
27426
27427 int
27428 main ()
27429 {
27430   int major, minor, micro;
27431   char *tmp_version;
27432
27433   system ("touch conf.gtktest");
27434
27435   /* HP/UX 9 (%@#!) writes to sscanf strings */
27436   tmp_version = g_strdup("$min_gtk_version");
27437   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27438      printf("%s, bad version string\n", "$min_gtk_version");
27439      exit(1);
27440    }
27441
27442   if ((gtk_major_version != $gtk_config_major_version) ||
27443       (gtk_minor_version != $gtk_config_minor_version) ||
27444       (gtk_micro_version != $gtk_config_micro_version))
27445     {
27446       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27447              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27448              gtk_major_version, gtk_minor_version, gtk_micro_version);
27449       printf ("*** was found! If pkg-config was correct, then it is best\n");
27450       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27451       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27452       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27453       printf("*** required on your system.\n");
27454       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27455       printf("*** to point to the correct configuration files\n");
27456     }
27457   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27458            (gtk_minor_version != GTK_MINOR_VERSION) ||
27459            (gtk_micro_version != GTK_MICRO_VERSION))
27460     {
27461       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27462              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27463       printf("*** library (version %d.%d.%d)\n",
27464              gtk_major_version, gtk_minor_version, gtk_micro_version);
27465     }
27466   else
27467     {
27468       if ((gtk_major_version > major) ||
27469         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27470         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27471       {
27472         return 0;
27473        }
27474      else
27475       {
27476         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27477                gtk_major_version, gtk_minor_version, gtk_micro_version);
27478         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27479                major, minor, micro);
27480         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27481         printf("***\n");
27482         printf("*** If you have already installed a sufficiently new version, this error\n");
27483         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27484         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27485         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27486         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27487         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27488         printf("*** so that the correct libraries are found at run-time))\n");
27489       }
27490     }
27491   return 1;
27492 }
27493
27494 _ACEOF
27495 rm -f conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497   (eval $ac_link) 2>&5
27498   ac_status=$?
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502   (eval $ac_try) 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; }; then
27506   :
27507 else
27508   echo "$as_me: program exited with status $ac_status" >&5
27509 echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27511
27512 ( exit $ac_status )
27513 no_gtk=yes
27514 fi
27515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27516 fi
27517        CFLAGS="$ac_save_CFLAGS"
27518        LIBS="$ac_save_LIBS"
27519      fi
27520   fi
27521   if test "x$no_gtk" = x ; then
27522      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27523 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27524      wx_cv_lib_gtk=2.0
27525   else
27526      echo "$as_me:$LINENO: result: no" >&5
27527 echo "${ECHO_T}no" >&6
27528      if test "$PKG_CONFIG" = "no" ; then
27529        echo "*** A new enough version of pkg-config was not found."
27530        echo "*** See http://pkgconfig.sourceforge.net"
27531      else
27532        if test -f conf.gtktest ; then
27533         :
27534        else
27535           echo "*** Could not run GTK+ test program, checking why..."
27536           ac_save_CFLAGS="$CFLAGS"
27537           ac_save_LIBS="$LIBS"
27538           CFLAGS="$CFLAGS $GTK_CFLAGS"
27539           LIBS="$LIBS $GTK_LIBS"
27540           cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546
27547 #include <gtk/gtk.h>
27548 #include <stdio.h>
27549
27550 int
27551 main ()
27552 {
27553  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 rm -f conftest.$ac_objext conftest$ac_exeext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27560   (eval $ac_link) 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569   (eval $ac_try) 2>&5
27570   ac_status=$?
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); }; } &&
27573          { ac_try='test -s conftest$ac_exeext'
27574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575   (eval $ac_try) 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); }; }; then
27579    echo "*** The test program compiled, but did not run. This usually means"
27580           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27581           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27582           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27583           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27584           echo "*** is required on your system"
27585           echo "***"
27586           echo "*** If you have an old version installed, it is best to remove it, although"
27587           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592  echo "*** The test program failed to compile or link. See the file config.log for the"
27593           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27594 fi
27595 rm -f conftest.err conftest.$ac_objext \
27596       conftest$ac_exeext conftest.$ac_ext
27597           CFLAGS="$ac_save_CFLAGS"
27598           LIBS="$ac_save_LIBS"
27599        fi
27600      fi
27601      GTK_CFLAGS=""
27602      GTK_LIBS=""
27603      :
27604   fi
27605
27606
27607   rm -f conf.gtktest
27608
27609
27610                                         case "${host}" in
27611                         *-*-solaris2* )
27612                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27613                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27614                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27615                             fi
27616                                                         if test "$wxUSE_SHARED" != "yes"; then
27617                                 GTK_LIBS="$GTK_LIBS -lX11"
27618                             fi
27619                     esac
27620                 fi
27621
27622                                 if test -z "$wx_cv_lib_gtk"; then
27623                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27624
27625 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27626 if test "${with_gtk_prefix+set}" = set; then
27627   withval="$with_gtk_prefix"
27628   gtk_config_prefix="$withval"
27629 else
27630   gtk_config_prefix=""
27631 fi;
27632
27633 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27634 if test "${with_gtk_exec_prefix+set}" = set; then
27635   withval="$with_gtk_exec_prefix"
27636   gtk_config_exec_prefix="$withval"
27637 else
27638   gtk_config_exec_prefix=""
27639 fi;
27640 # Check whether --enable-gtktest or --disable-gtktest was given.
27641 if test "${enable_gtktest+set}" = set; then
27642   enableval="$enable_gtktest"
27643
27644 else
27645   enable_gtktest=yes
27646 fi;
27647
27648   for module in . $GTK_MODULES
27649   do
27650       case "$module" in
27651          gthread)
27652              gtk_config_args="$gtk_config_args gthread"
27653          ;;
27654       esac
27655   done
27656
27657   if test x$gtk_config_exec_prefix != x ; then
27658      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27659      if test x${GTK_CONFIG+set} != xset ; then
27660         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27661      fi
27662   fi
27663   if test x$gtk_config_prefix != x ; then
27664      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27665      if test x${GTK_CONFIG+set} != xset ; then
27666         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27667      fi
27668   fi
27669
27670   # Extract the first word of "gtk-config", so it can be a program name with args.
27671 set dummy gtk-config; ac_word=$2
27672 echo "$as_me:$LINENO: checking for $ac_word" >&5
27673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27674 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27675   echo $ECHO_N "(cached) $ECHO_C" >&6
27676 else
27677   case $GTK_CONFIG in
27678   [\\/]* | ?:[\\/]*)
27679   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27680   ;;
27681   *)
27682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27683 for as_dir in $PATH
27684 do
27685   IFS=$as_save_IFS
27686   test -z "$as_dir" && as_dir=.
27687   for ac_exec_ext in '' $ac_executable_extensions; do
27688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27689     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27691     break 2
27692   fi
27693 done
27694 done
27695
27696   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27697   ;;
27698 esac
27699 fi
27700 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27701
27702 if test -n "$GTK_CONFIG"; then
27703   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27704 echo "${ECHO_T}$GTK_CONFIG" >&6
27705 else
27706   echo "$as_me:$LINENO: result: no" >&5
27707 echo "${ECHO_T}no" >&6
27708 fi
27709
27710   min_gtk_version=1.2.7
27711   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27712 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27713   no_gtk=""
27714   if test "$GTK_CONFIG" = "no" ; then
27715     no_gtk=yes
27716   else
27717     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27718     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27719     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27721     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27723     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27724            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27725     if test "x$enable_gtktest" = "xyes" ; then
27726       ac_save_CFLAGS="$CFLAGS"
27727       ac_save_LIBS="$LIBS"
27728       CFLAGS="$CFLAGS $GTK_CFLAGS"
27729       LIBS="$GTK_LIBS $LIBS"
27730       rm -f conf.gtktest
27731       if test "$cross_compiling" = yes; then
27732   echo $ac_n "cross compiling; assumed OK... $ac_c"
27733 else
27734   cat >conftest.$ac_ext <<_ACEOF
27735 /* confdefs.h.  */
27736 _ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h.  */
27740
27741 #include <gtk/gtk.h>
27742 #include <stdio.h>
27743 #include <stdlib.h>
27744
27745 int
27746 main ()
27747 {
27748   int major, minor, micro;
27749   char *tmp_version;
27750
27751   system ("touch conf.gtktest");
27752
27753   /* HP/UX 9 (%@#!) writes to sscanf strings */
27754   tmp_version = g_strdup("$min_gtk_version");
27755   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27756      printf("%s, bad version string\n", "$min_gtk_version");
27757      exit(1);
27758    }
27759
27760   if ((gtk_major_version != $gtk_config_major_version) ||
27761       (gtk_minor_version != $gtk_config_minor_version) ||
27762       (gtk_micro_version != $gtk_config_micro_version))
27763     {
27764       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27765              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27766              gtk_major_version, gtk_minor_version, gtk_micro_version);
27767       printf ("*** was found! If gtk-config was correct, then it is best\n");
27768       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27769       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27770       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27771       printf("*** required on your system.\n");
27772       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27773       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27774       printf("*** before re-running configure\n");
27775     }
27776 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27777   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27778            (gtk_minor_version != GTK_MINOR_VERSION) ||
27779            (gtk_micro_version != GTK_MICRO_VERSION))
27780     {
27781       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27782              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27783       printf("*** library (version %d.%d.%d)\n",
27784              gtk_major_version, gtk_minor_version, gtk_micro_version);
27785     }
27786 #endif /* defined (GTK_MAJOR_VERSION) ... */
27787   else
27788     {
27789       if ((gtk_major_version > major) ||
27790         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27791         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27792       {
27793         return 0;
27794        }
27795      else
27796       {
27797         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27798                gtk_major_version, gtk_minor_version, gtk_micro_version);
27799         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27800                major, minor, micro);
27801         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27802         printf("***\n");
27803         printf("*** If you have already installed a sufficiently new version, this error\n");
27804         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27805         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27806         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27807         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27808         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27809         printf("*** so that the correct libraries are found at run-time))\n");
27810       }
27811     }
27812   return 1;
27813 }
27814
27815 _ACEOF
27816 rm -f conftest$ac_exeext
27817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27818   (eval $ac_link) 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823   (eval $ac_try) 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; }; then
27827   :
27828 else
27829   echo "$as_me: program exited with status $ac_status" >&5
27830 echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27832
27833 ( exit $ac_status )
27834 no_gtk=yes
27835 fi
27836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27837 fi
27838        CFLAGS="$ac_save_CFLAGS"
27839        LIBS="$ac_save_LIBS"
27840      fi
27841   fi
27842   if test "x$no_gtk" = x ; then
27843      echo "$as_me:$LINENO: result: yes" >&5
27844 echo "${ECHO_T}yes" >&6
27845      wx_cv_lib_gtk=1.2.7
27846   else
27847      echo "$as_me:$LINENO: result: no" >&5
27848 echo "${ECHO_T}no" >&6
27849      if test "$GTK_CONFIG" = "no" ; then
27850        echo "*** The gtk-config script installed by GTK could not be found"
27851        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27852        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27853        echo "*** full path to gtk-config."
27854      else
27855        if test -f conf.gtktest ; then
27856         :
27857        else
27858           echo "*** Could not run GTK test program, checking why..."
27859           CFLAGS="$CFLAGS $GTK_CFLAGS"
27860           LIBS="$LIBS $GTK_LIBS"
27861           cat >conftest.$ac_ext <<_ACEOF
27862 /* confdefs.h.  */
27863 _ACEOF
27864 cat confdefs.h >>conftest.$ac_ext
27865 cat >>conftest.$ac_ext <<_ACEOF
27866 /* end confdefs.h.  */
27867
27868 #include <gtk/gtk.h>
27869 #include <stdio.h>
27870
27871 int
27872 main ()
27873 {
27874  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27881   (eval $ac_link) 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } &&
27888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890   (eval $ac_try) 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); }; } &&
27894          { ac_try='test -s 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    echo "*** The test program compiled, but did not run. This usually means"
27901           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27902           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27903           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27904           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27905           echo "*** is required on your system"
27906           echo "***"
27907           echo "*** If you have an old version installed, it is best to remove it, although"
27908           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27909           echo "***"
27910           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27911           echo "*** came with the system with the command"
27912           echo "***"
27913           echo "***    rpm --erase --nodeps gtk gtk-devel"
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918  echo "*** The test program failed to compile or link. See the file config.log for the"
27919           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27920           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27921           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27922 fi
27923 rm -f conftest.err conftest.$ac_objext \
27924       conftest$ac_exeext conftest.$ac_ext
27925           CFLAGS="$ac_save_CFLAGS"
27926           LIBS="$ac_save_LIBS"
27927        fi
27928      fi
27929      GTK_CFLAGS=""
27930      GTK_LIBS=""
27931      :
27932   fi
27933
27934
27935   rm -f conf.gtktest
27936
27937
27938                         if test -z "$wx_cv_lib_gtk"; then
27939
27940 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27941 if test "${with_gtk_prefix+set}" = set; then
27942   withval="$with_gtk_prefix"
27943   gtk_config_prefix="$withval"
27944 else
27945   gtk_config_prefix=""
27946 fi;
27947
27948 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27949 if test "${with_gtk_exec_prefix+set}" = set; then
27950   withval="$with_gtk_exec_prefix"
27951   gtk_config_exec_prefix="$withval"
27952 else
27953   gtk_config_exec_prefix=""
27954 fi;
27955 # Check whether --enable-gtktest or --disable-gtktest was given.
27956 if test "${enable_gtktest+set}" = set; then
27957   enableval="$enable_gtktest"
27958
27959 else
27960   enable_gtktest=yes
27961 fi;
27962
27963   for module in . $GTK_MODULES
27964   do
27965       case "$module" in
27966          gthread)
27967              gtk_config_args="$gtk_config_args gthread"
27968          ;;
27969       esac
27970   done
27971
27972   if test x$gtk_config_exec_prefix != x ; then
27973      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27974      if test x${GTK_CONFIG+set} != xset ; then
27975         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27976      fi
27977   fi
27978   if test x$gtk_config_prefix != x ; then
27979      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27980      if test x${GTK_CONFIG+set} != xset ; then
27981         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27982      fi
27983   fi
27984
27985   # Extract the first word of "gtk-config", so it can be a program name with args.
27986 set dummy gtk-config; ac_word=$2
27987 echo "$as_me:$LINENO: checking for $ac_word" >&5
27988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27989 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992   case $GTK_CONFIG in
27993   [\\/]* | ?:[\\/]*)
27994   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27995   ;;
27996   *)
27997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27998 for as_dir in $PATH
27999 do
28000   IFS=$as_save_IFS
28001   test -z "$as_dir" && as_dir=.
28002   for ac_exec_ext in '' $ac_executable_extensions; do
28003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28004     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28006     break 2
28007   fi
28008 done
28009 done
28010
28011   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28012   ;;
28013 esac
28014 fi
28015 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28016
28017 if test -n "$GTK_CONFIG"; then
28018   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28019 echo "${ECHO_T}$GTK_CONFIG" >&6
28020 else
28021   echo "$as_me:$LINENO: result: no" >&5
28022 echo "${ECHO_T}no" >&6
28023 fi
28024
28025   min_gtk_version=1.2.3
28026   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28027 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28028   no_gtk=""
28029   if test "$GTK_CONFIG" = "no" ; then
28030     no_gtk=yes
28031   else
28032     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28033     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28034     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28035            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28036     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28037            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28038     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28039            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28040     if test "x$enable_gtktest" = "xyes" ; then
28041       ac_save_CFLAGS="$CFLAGS"
28042       ac_save_LIBS="$LIBS"
28043       CFLAGS="$CFLAGS $GTK_CFLAGS"
28044       LIBS="$GTK_LIBS $LIBS"
28045       rm -f conf.gtktest
28046       if test "$cross_compiling" = yes; then
28047   echo $ac_n "cross compiling; assumed OK... $ac_c"
28048 else
28049   cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055
28056 #include <gtk/gtk.h>
28057 #include <stdio.h>
28058 #include <stdlib.h>
28059
28060 int
28061 main ()
28062 {
28063   int major, minor, micro;
28064   char *tmp_version;
28065
28066   system ("touch conf.gtktest");
28067
28068   /* HP/UX 9 (%@#!) writes to sscanf strings */
28069   tmp_version = g_strdup("$min_gtk_version");
28070   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28071      printf("%s, bad version string\n", "$min_gtk_version");
28072      exit(1);
28073    }
28074
28075   if ((gtk_major_version != $gtk_config_major_version) ||
28076       (gtk_minor_version != $gtk_config_minor_version) ||
28077       (gtk_micro_version != $gtk_config_micro_version))
28078     {
28079       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28080              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28081              gtk_major_version, gtk_minor_version, gtk_micro_version);
28082       printf ("*** was found! If gtk-config was correct, then it is best\n");
28083       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28084       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28085       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28086       printf("*** required on your system.\n");
28087       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28088       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28089       printf("*** before re-running configure\n");
28090     }
28091 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28092   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28093            (gtk_minor_version != GTK_MINOR_VERSION) ||
28094            (gtk_micro_version != GTK_MICRO_VERSION))
28095     {
28096       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28097              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28098       printf("*** library (version %d.%d.%d)\n",
28099              gtk_major_version, gtk_minor_version, gtk_micro_version);
28100     }
28101 #endif /* defined (GTK_MAJOR_VERSION) ... */
28102   else
28103     {
28104       if ((gtk_major_version > major) ||
28105         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28106         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28107       {
28108         return 0;
28109        }
28110      else
28111       {
28112         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28113                gtk_major_version, gtk_minor_version, gtk_micro_version);
28114         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28115                major, minor, micro);
28116         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28117         printf("***\n");
28118         printf("*** If you have already installed a sufficiently new version, this error\n");
28119         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28120         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28121         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28122         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28123         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28124         printf("*** so that the correct libraries are found at run-time))\n");
28125       }
28126     }
28127   return 1;
28128 }
28129
28130 _ACEOF
28131 rm -f conftest$ac_exeext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28133   (eval $ac_link) 2>&5
28134   ac_status=$?
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138   (eval $ac_try) 2>&5
28139   ac_status=$?
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); }; }; then
28142   :
28143 else
28144   echo "$as_me: program exited with status $ac_status" >&5
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148 ( exit $ac_status )
28149 no_gtk=yes
28150 fi
28151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28152 fi
28153        CFLAGS="$ac_save_CFLAGS"
28154        LIBS="$ac_save_LIBS"
28155      fi
28156   fi
28157   if test "x$no_gtk" = x ; then
28158      echo "$as_me:$LINENO: result: yes" >&5
28159 echo "${ECHO_T}yes" >&6
28160      wx_cv_lib_gtk=1.2.3
28161   else
28162      echo "$as_me:$LINENO: result: no" >&5
28163 echo "${ECHO_T}no" >&6
28164      if test "$GTK_CONFIG" = "no" ; then
28165        echo "*** The gtk-config script installed by GTK could not be found"
28166        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28167        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28168        echo "*** full path to gtk-config."
28169      else
28170        if test -f conf.gtktest ; then
28171         :
28172        else
28173           echo "*** Could not run GTK test program, checking why..."
28174           CFLAGS="$CFLAGS $GTK_CFLAGS"
28175           LIBS="$LIBS $GTK_LIBS"
28176           cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h.  */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h.  */
28182
28183 #include <gtk/gtk.h>
28184 #include <stdio.h>
28185
28186 int
28187 main ()
28188 {
28189  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28190   ;
28191   return 0;
28192 }
28193 _ACEOF
28194 rm -f conftest.$ac_objext conftest$ac_exeext
28195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28196   (eval $ac_link) 2>conftest.er1
28197   ac_status=$?
28198   grep -v '^ *+' conftest.er1 >conftest.err
28199   rm -f conftest.er1
28200   cat conftest.err >&5
28201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202   (exit $ac_status); } &&
28203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205   (eval $ac_try) 2>&5
28206   ac_status=$?
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); }; } &&
28209          { ac_try='test -s conftest$ac_exeext'
28210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211   (eval $ac_try) 2>&5
28212   ac_status=$?
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); }; }; then
28215    echo "*** The test program compiled, but did not run. This usually means"
28216           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28217           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28218           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28219           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28220           echo "*** is required on your system"
28221           echo "***"
28222           echo "*** If you have an old version installed, it is best to remove it, although"
28223           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28224           echo "***"
28225           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28226           echo "*** came with the system with the command"
28227           echo "***"
28228           echo "***    rpm --erase --nodeps gtk gtk-devel"
28229 else
28230   echo "$as_me: failed program was:" >&5
28231 sed 's/^/| /' conftest.$ac_ext >&5
28232
28233  echo "*** The test program failed to compile or link. See the file config.log for the"
28234           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28235           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28236           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28237 fi
28238 rm -f conftest.err conftest.$ac_objext \
28239       conftest$ac_exeext conftest.$ac_ext
28240           CFLAGS="$ac_save_CFLAGS"
28241           LIBS="$ac_save_LIBS"
28242        fi
28243      fi
28244      GTK_CFLAGS=""
28245      GTK_LIBS=""
28246      :
28247   fi
28248
28249
28250   rm -f conf.gtktest
28251
28252                         fi
28253                     fi
28254                 fi
28255
28256                 if test -z "$wx_cv_lib_gtk"; then
28257                                         wx_cv_lib_gtk=none
28258                 else
28259                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28260                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28261                 fi
28262
28263
28264 fi
28265
28266
28267                         if test "$gtk_version_cached" = 1; then
28268             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28269 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28270         fi
28271
28272         case "$wx_cv_lib_gtk" in
28273             2.0)    WXGTK20=1
28274                     TOOLKIT_VERSION=2
28275                     ;;
28276             1.2.7)  WXGTK127=1
28277                     WXGTK12=1
28278                     ;;
28279             1.2.3)  WXGTK12=1
28280                     ;;
28281             *)      { { echo "$as_me:$LINENO: error:
28282 The development files for GTK+ were not found. For GTK+ 2, please
28283 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28284 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28285 and that the version is 1.2.3 or above. Also check that the
28286 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28287 --libs' are in the LD_LIBRARY_PATH or equivalent.
28288                             " >&5
28289 echo "$as_me: error:
28290 The development files for GTK+ were not found. For GTK+ 2, please
28291 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28292 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28293 and that the version is 1.2.3 or above. Also check that the
28294 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28295 --libs' are in the LD_LIBRARY_PATH or equivalent.
28296                             " >&2;}
28297    { (exit 1); exit 1; }; }
28298                     ;;
28299         esac
28300
28301         if test "$WXGTK20" = 1; then
28302             save_CFLAGS="$CFLAGS"
28303             save_LIBS="$LIBS"
28304             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28305             LIBS="$LIBS $wx_cv_libs_gtk"
28306
28307                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28308 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28309             cat >conftest.$ac_ext <<_ACEOF
28310 /* confdefs.h.  */
28311 _ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h.  */
28315
28316                             #include <gtk/gtk.h>
28317
28318 int
28319 main ()
28320 {
28321
28322                             void *f = gtk_icon_size_lookup;
28323
28324   ;
28325   return 0;
28326 }
28327 _ACEOF
28328 rm -f conftest.$ac_objext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28330   (eval $ac_compile) 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } &&
28337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339   (eval $ac_try) 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); }; } &&
28343          { ac_try='test -s conftest.$ac_objext'
28344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345   (eval $ac_try) 2>&5
28346   ac_status=$?
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); }; }; then
28349
28350                             echo "$as_me:$LINENO: result: no" >&5
28351 echo "${ECHO_T}no" >&6
28352
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357
28358                             cat >>confdefs.h <<\_ACEOF
28359 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28360 _ACEOF
28361
28362                             echo "$as_me:$LINENO: result: yes" >&5
28363 echo "${ECHO_T}yes" >&6
28364
28365 fi
28366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28367
28368                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28369 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28370             cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376
28377                             #include <gtk/gtk.h>
28378
28379 int
28380 main ()
28381 {
28382
28383                             #if !GTK_CHECK_VERSION(2,6,0)
28384                             Not GTK+ 2.6
28385                             #endif
28386
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 rm -f conftest.$ac_objext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393   (eval $ac_compile) 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } &&
28400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; } &&
28406          { ac_try='test -s conftest.$ac_objext'
28407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408   (eval $ac_try) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; }; then
28412
28413                             cat >>confdefs.h <<\_ACEOF
28414 #define __WXGTK26__ 1
28415 _ACEOF
28416
28417                             cat >>confdefs.h <<\_ACEOF
28418 #define __WXGTK24__ 1
28419 _ACEOF
28420
28421                             echo "$as_me:$LINENO: result: yes" >&5
28422 echo "${ECHO_T}yes" >&6
28423                             ac_wxgtk26=1
28424
28425 else
28426   echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429
28430                             echo "$as_me:$LINENO: result: no" >&5
28431 echo "${ECHO_T}no" >&6
28432                             ac_wxgtk26=0
28433
28434 fi
28435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28436
28437             if test "$ac_wxgtk26" = 0; then
28438                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28439 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28440             cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446
28447                             #include <gtk/gtk.h>
28448
28449 int
28450 main ()
28451 {
28452
28453                             #if !GTK_CHECK_VERSION(2,4,0)
28454                             Not GTK+ 2.4
28455                             #endif
28456
28457   ;
28458   return 0;
28459 }
28460 _ACEOF
28461 rm -f conftest.$ac_objext
28462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28463   (eval $ac_compile) 2>conftest.er1
28464   ac_status=$?
28465   grep -v '^ *+' conftest.er1 >conftest.err
28466   rm -f conftest.er1
28467   cat conftest.err >&5
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); } &&
28470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28472   (eval $ac_try) 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); }; } &&
28476          { ac_try='test -s conftest.$ac_objext'
28477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478   (eval $ac_try) 2>&5
28479   ac_status=$?
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); }; }; then
28482
28483                             cat >>confdefs.h <<\_ACEOF
28484 #define __WXGTK24__ 1
28485 _ACEOF
28486
28487                             echo "$as_me:$LINENO: result: yes" >&5
28488 echo "${ECHO_T}yes" >&6
28489
28490 else
28491   echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28493
28494
28495                             echo "$as_me:$LINENO: result: no" >&5
28496 echo "${ECHO_T}no" >&6
28497
28498 fi
28499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28500             fi
28501
28502             CFLAGS="$save_CFLAGS"
28503             LIBS="$save_LIBS"
28504         else
28505             if test "$wxUSE_UNICODE" = "yes"; then
28506                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28507 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28508                 wxUSE_UNICODE=no
28509             fi
28510         fi
28511
28512         ac_ext=cc
28513 ac_cpp='$CXXCPP $CPPFLAGS'
28514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28517
28518
28519                         if test "$USE_DARWIN" != 1; then
28520
28521 for ac_func in poll
28522 do
28523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28524 echo "$as_me:$LINENO: checking for $ac_func" >&5
28525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28526 if eval "test \"\${$as_ac_var+set}\" = set"; then
28527   echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529   cat >conftest.$ac_ext <<_ACEOF
28530 /* confdefs.h.  */
28531 _ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h.  */
28535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28537 #define $ac_func innocuous_$ac_func
28538
28539 /* System header to define __stub macros and hopefully few prototypes,
28540     which can conflict with char $ac_func (); below.
28541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28542     <limits.h> exists even on freestanding compilers.  */
28543
28544 #ifdef __STDC__
28545 # include <limits.h>
28546 #else
28547 # include <assert.h>
28548 #endif
28549
28550 #undef $ac_func
28551
28552 /* Override any gcc2 internal prototype to avoid an error.  */
28553 #ifdef __cplusplus
28554 extern "C"
28555 {
28556 #endif
28557 /* We use char because int might match the return type of a gcc2
28558    builtin and then its argument prototype would still apply.  */
28559 char $ac_func ();
28560 /* The GNU C library defines this for functions which it implements
28561     to always fail with ENOSYS.  Some functions are actually named
28562     something starting with __ and the normal name is an alias.  */
28563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28564 choke me
28565 #else
28566 char (*f) () = $ac_func;
28567 #endif
28568 #ifdef __cplusplus
28569 }
28570 #endif
28571
28572 int
28573 main ()
28574 {
28575 return f != $ac_func;
28576   ;
28577   return 0;
28578 }
28579 _ACEOF
28580 rm -f conftest.$ac_objext conftest$ac_exeext
28581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28582   (eval $ac_link) 2>conftest.er1
28583   ac_status=$?
28584   grep -v '^ *+' conftest.er1 >conftest.err
28585   rm -f conftest.er1
28586   cat conftest.err >&5
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); } &&
28589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591   (eval $ac_try) 2>&5
28592   ac_status=$?
28593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594   (exit $ac_status); }; } &&
28595          { ac_try='test -s conftest$ac_exeext'
28596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597   (eval $ac_try) 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); }; }; then
28601   eval "$as_ac_var=yes"
28602 else
28603   echo "$as_me: failed program was:" >&5
28604 sed 's/^/| /' conftest.$ac_ext >&5
28605
28606 eval "$as_ac_var=no"
28607 fi
28608 rm -f conftest.err conftest.$ac_objext \
28609       conftest$ac_exeext conftest.$ac_ext
28610 fi
28611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28613 if test `eval echo '${'$as_ac_var'}'` = yes; then
28614   cat >>confdefs.h <<_ACEOF
28615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28616 _ACEOF
28617
28618 fi
28619 done
28620
28621         fi
28622
28623         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28624         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28625
28626         AFMINSTALL=afminstall
28627         TOOLKIT=GTK
28628         GUIDIST=GTK_DIST
28629
28630                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28631 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28632 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28633   echo $ECHO_N "(cached) $ECHO_C" >&6
28634 else
28635   ac_check_lib_save_LIBS=$LIBS
28636 LIBS="-lgdk  $LIBS"
28637 cat >conftest.$ac_ext <<_ACEOF
28638 /* confdefs.h.  */
28639 _ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h.  */
28643
28644 /* Override any gcc2 internal prototype to avoid an error.  */
28645 #ifdef __cplusplus
28646 extern "C"
28647 #endif
28648 /* We use char because int might match the return type of a gcc2
28649    builtin and then its argument prototype would still apply.  */
28650 char gdk_im_open ();
28651 int
28652 main ()
28653 {
28654 gdk_im_open ();
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661   (eval $ac_link) 2>conftest.er1
28662   ac_status=$?
28663   grep -v '^ *+' conftest.er1 >conftest.err
28664   rm -f conftest.er1
28665   cat conftest.err >&5
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); } &&
28668          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670   (eval $ac_try) 2>&5
28671   ac_status=$?
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); }; } &&
28674          { ac_try='test -s conftest$ac_exeext'
28675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676   (eval $ac_try) 2>&5
28677   ac_status=$?
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); }; }; then
28680   ac_cv_lib_gdk_gdk_im_open=yes
28681 else
28682   echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28684
28685 ac_cv_lib_gdk_gdk_im_open=no
28686 fi
28687 rm -f conftest.err conftest.$ac_objext \
28688       conftest$ac_exeext conftest.$ac_ext
28689 LIBS=$ac_check_lib_save_LIBS
28690 fi
28691 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28692 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28693 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28694   cat >>confdefs.h <<\_ACEOF
28695 #define HAVE_XIM 1
28696 _ACEOF
28697
28698 fi
28699
28700
28701
28702                 if test "$wxUSE_GPE" = "yes"; then
28703             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28704 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28705
28706   ac_find_libraries=
28707   for ac_dir in $SEARCH_LIB;
28708   do
28709     for ac_extension in a so sl dylib dll.a; do
28710       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28711         ac_find_libraries=$ac_dir
28712         break 2
28713       fi
28714     done
28715   done
28716
28717             if test "$ac_find_libraries" != "" ; then
28718
28719     if test "$ac_find_libraries" = "default location"; then
28720     ac_path_to_link=""
28721   else
28722     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28723     result=$?
28724     if test $result = 0; then
28725       ac_path_to_link=""
28726     else
28727       ac_path_to_link=" -L$ac_find_libraries"
28728     fi
28729   fi
28730
28731                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28732                 WXGPE=1
28733                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28734 echo "${ECHO_T}found in $ac_find_libraries" >&6
28735             else
28736                 echo "$as_me:$LINENO: result: not found" >&5
28737 echo "${ECHO_T}not found" >&6
28738             fi
28739
28740                                                                                                                     fi
28741     fi
28742
28743     if test "$wxUSE_MGL" = 1; then
28744        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28745 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28746         if test "x$MGL_ROOT" = x ; then
28747             echo "$as_me:$LINENO: result: not found" >&5
28748 echo "${ECHO_T}not found" >&6
28749             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28750 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28751    { (exit 1); exit 1; }; }
28752         else
28753             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28754 echo "${ECHO_T}$MGL_ROOT" >&6
28755         fi
28756
28757         echo "$as_me:$LINENO: checking for libmgl location" >&5
28758 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28759                                 case "${host}" in
28760             *-*-linux* )
28761                                           if test "x$wxUSE_SHARED" = xyes ; then
28762                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28763               else
28764                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28765               fi
28766               ;;
28767             *-pc-msdosdjgpp )
28768               mgl_os_candidates="dos32/dj2"
28769               ;;
28770             *)
28771               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28772 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28773    { (exit 1); exit 1; }; }
28774         esac
28775
28776         mgl_lib_type=""
28777         mgl_os=""
28778
28779         for mgl_os_i in $mgl_os_candidates ; do
28780             if test "x$mgl_os" = x ; then
28781                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28782                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28783                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28784                         mgl_lib_type=debug
28785                         mgl_os=$mgl_os_i
28786                     fi
28787                 fi
28788                 if test "x$mgl_lib_type" = x ; then
28789                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28790                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28791                         mgl_lib_type=release
28792                         mgl_os=$mgl_os_i
28793                     fi
28794                 fi
28795             fi
28796         done
28797
28798         if test "x$mgl_os" = x ; then
28799             echo "$as_me:$LINENO: result: not found" >&5
28800 echo "${ECHO_T}not found" >&6
28801             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28802 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28803    { (exit 1); exit 1; }; }
28804         fi
28805         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28806 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28807
28808         wxUSE_UNIVERSAL="yes"
28809
28810         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28811         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28812
28813         AFMINSTALL=afminstall
28814         TOOLKIT=MGL
28815         GUIDIST=MGL_DIST
28816     fi
28817
28818     if test "$wxUSE_DFB" = 1; then
28819
28820
28821 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28822         if test -n "$ac_tool_prefix"; then
28823   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28824 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28825 echo "$as_me:$LINENO: checking for $ac_word" >&5
28826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28827 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28828   echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830   case $PKG_CONFIG in
28831   [\\/]* | ?:[\\/]*)
28832   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28833   ;;
28834   *)
28835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28837 do
28838   IFS=$as_save_IFS
28839   test -z "$as_dir" && as_dir=.
28840   for ac_exec_ext in '' $ac_executable_extensions; do
28841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28842     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844     break 2
28845   fi
28846 done
28847 done
28848
28849   ;;
28850 esac
28851 fi
28852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28853
28854 if test -n "$PKG_CONFIG"; then
28855   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28856 echo "${ECHO_T}$PKG_CONFIG" >&6
28857 else
28858   echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6
28860 fi
28861
28862 fi
28863 if test -z "$ac_cv_path_PKG_CONFIG"; then
28864   ac_pt_PKG_CONFIG=$PKG_CONFIG
28865   # Extract the first word of "pkg-config", so it can be a program name with args.
28866 set dummy pkg-config; ac_word=$2
28867 echo "$as_me:$LINENO: checking for $ac_word" >&5
28868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28869 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   case $ac_pt_PKG_CONFIG in
28873   [\\/]* | ?:[\\/]*)
28874   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28875   ;;
28876   *)
28877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28878 for as_dir in $PATH
28879 do
28880   IFS=$as_save_IFS
28881   test -z "$as_dir" && as_dir=.
28882   for ac_exec_ext in '' $ac_executable_extensions; do
28883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28884     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28886     break 2
28887   fi
28888 done
28889 done
28890
28891   ;;
28892 esac
28893 fi
28894 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28895
28896 if test -n "$ac_pt_PKG_CONFIG"; then
28897   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28898 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
28899 else
28900   echo "$as_me:$LINENO: result: no" >&5
28901 echo "${ECHO_T}no" >&6
28902 fi
28903
28904   PKG_CONFIG=$ac_pt_PKG_CONFIG
28905 else
28906   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28907 fi
28908
28909 fi
28910 if test -n "$PKG_CONFIG"; then
28911         _pkg_min_version=0.9.0
28912         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
28913 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
28914         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28915                 echo "$as_me:$LINENO: result: yes" >&5
28916 echo "${ECHO_T}yes" >&6
28917         else
28918                 echo "$as_me:$LINENO: result: no" >&5
28919 echo "${ECHO_T}no" >&6
28920                 PKG_CONFIG=""
28921         fi
28922
28923 fi
28924
28925 pkg_failed=no
28926 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
28927 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
28928
28929 if test -n "$PKG_CONFIG"; then
28930     if test -n "$DIRECTFB_CFLAGS"; then
28931         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
28932     else
28933         if test -n "$PKG_CONFIG" && \
28934     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
28935   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; then
28939   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
28940 else
28941   pkg_failed=yes
28942 fi
28943     fi
28944 else
28945         pkg_failed=untried
28946 fi
28947 if test -n "$PKG_CONFIG"; then
28948     if test -n "$DIRECTFB_LIBS"; then
28949         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
28950     else
28951         if test -n "$PKG_CONFIG" && \
28952     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
28953   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); }; then
28957   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
28958 else
28959   pkg_failed=yes
28960 fi
28961     fi
28962 else
28963         pkg_failed=untried
28964 fi
28965
28966
28967
28968 if test $pkg_failed = yes; then
28969
28970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28971         _pkg_short_errors_supported=yes
28972 else
28973         _pkg_short_errors_supported=no
28974 fi
28975         if test $_pkg_short_errors_supported = yes; then
28976                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
28977         else
28978                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
28979         fi
28980         # Put the nasty error message in config.log where it belongs
28981         echo "$DIRECTFB_PKG_ERRORS" >&5
28982
28983
28984                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
28985 echo "$as_me: error: DirectFB not found." >&2;}
28986    { (exit 1); exit 1; }; }
28987
28988
28989 elif test $pkg_failed = untried; then
28990
28991                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
28992 echo "$as_me: error: DirectFB not found." >&2;}
28993    { (exit 1); exit 1; }; }
28994
28995
28996 else
28997         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
28998         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
28999         echo "$as_me:$LINENO: result: yes" >&5
29000 echo "${ECHO_T}yes" >&6
29001
29002                            wxUSE_UNIVERSAL="yes"
29003                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29004                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29005                            TOOLKIT=DFB
29006                            GUIDIST=DFB_DIST
29007
29008 fi
29009     fi
29010
29011     if test "$wxUSE_MICROWIN" = 1; then
29012         echo "$as_me:$LINENO: checking for MicroWindows" >&5
29013 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29014         if test "x$MICROWINDOWS" = x ; then
29015             echo "$as_me:$LINENO: result: not found" >&5
29016 echo "${ECHO_T}not found" >&6
29017             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29018 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29019    { (exit 1); exit 1; }; }
29020         else
29021             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29022 echo "${ECHO_T}$MICROWINDOWS" >&6
29023         fi
29024
29025         if test -f $MICROWINDOWS/lib/libmwin.a; then
29026             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29027 echo "${ECHO_T}MicroWindows' libraries found." >&6
29028         else
29029             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29030 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29031    { (exit 1); exit 1; }; }
29032         fi
29033
29034         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29035         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29036
29037         wxUSE_UNIVERSAL="yes"
29038
29039         AFMINSTALL=afminstall
29040         TOOLKIT=MICROWIN
29041         GUIDIST=MICROWIN_DIST
29042
29043         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29044     fi
29045
29046         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29047
29048 if test "x$ac_path_x_has_been_run" != xyes; then
29049   echo "$as_me:$LINENO: checking for X" >&5
29050 echo $ECHO_N "checking for X... $ECHO_C" >&6
29051
29052 ac_path_x_has_been_run=yes
29053
29054 # Check whether --with-x or --without-x was given.
29055 if test "${with_x+set}" = set; then
29056   withval="$with_x"
29057
29058 fi;
29059 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29060 if test "x$with_x" = xno; then
29061   # The user explicitly disabled X.
29062   have_x=disabled
29063 else
29064   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29065     # Both variables are already set.
29066     have_x=yes
29067   else
29068     if test "${ac_cv_have_x+set}" = set; then
29069   echo $ECHO_N "(cached) $ECHO_C" >&6
29070 else
29071   # One or both of the vars are not set, and there is no cached value.
29072 ac_x_includes=no ac_x_libraries=no
29073 rm -fr conftest.dir
29074 if mkdir conftest.dir; then
29075   cd conftest.dir
29076   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29077   cat >Imakefile <<'_ACEOF'
29078 acfindx:
29079         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29080 _ACEOF
29081   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29082     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29083     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29084     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29085     for ac_extension in a so sl; do
29086       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29087          test -f $ac_im_libdir/libX11.$ac_extension; then
29088         ac_im_usrlibdir=$ac_im_libdir; break
29089       fi
29090     done
29091     # Screen out bogus values from the imake configuration.  They are
29092     # bogus both because they are the default anyway, and because
29093     # using them would break gcc on systems where it needs fixed includes.
29094     case $ac_im_incroot in
29095         /usr/include) ;;
29096         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29097     esac
29098     case $ac_im_usrlibdir in
29099         /usr/lib | /lib) ;;
29100         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29101     esac
29102   fi
29103   cd ..
29104   rm -fr conftest.dir
29105 fi
29106
29107 # Standard set of common directories for X headers.
29108 # Check X11 before X11Rn because it is often a symlink to the current release.
29109 ac_x_header_dirs='
29110 /usr/X11/include
29111 /usr/X11R6/include
29112 /usr/X11R5/include
29113 /usr/X11R4/include
29114
29115 /usr/include/X11
29116 /usr/include/X11R6
29117 /usr/include/X11R5
29118 /usr/include/X11R4
29119
29120 /usr/local/X11/include
29121 /usr/local/X11R6/include
29122 /usr/local/X11R5/include
29123 /usr/local/X11R4/include
29124
29125 /usr/local/include/X11
29126 /usr/local/include/X11R6
29127 /usr/local/include/X11R5
29128 /usr/local/include/X11R4
29129
29130 /usr/X386/include
29131 /usr/x386/include
29132 /usr/XFree86/include/X11
29133
29134 /usr/include
29135 /usr/local/include
29136 /usr/unsupported/include
29137 /usr/athena/include
29138 /usr/local/x11r5/include
29139 /usr/lpp/Xamples/include
29140
29141 /usr/openwin/include
29142 /usr/openwin/share/include'
29143
29144 if test "$ac_x_includes" = no; then
29145   # Guess where to find include files, by looking for a specified header file.
29146   # First, try using that file with no special directory specified.
29147   cat >conftest.$ac_ext <<_ACEOF
29148 /* confdefs.h.  */
29149 _ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h.  */
29153 #include <X11/Intrinsic.h>
29154 _ACEOF
29155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } >/dev/null; then
29163   if test -s conftest.err; then
29164     ac_cpp_err=$ac_cxx_preproc_warn_flag
29165     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29166   else
29167     ac_cpp_err=
29168   fi
29169 else
29170   ac_cpp_err=yes
29171 fi
29172 if test -z "$ac_cpp_err"; then
29173   # We can compile using X headers with no special include directory.
29174 ac_x_includes=
29175 else
29176   echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29178
29179   for ac_dir in $ac_x_header_dirs; do
29180   if test -r "$ac_dir/X11/Intrinsic.h"; then
29181     ac_x_includes=$ac_dir
29182     break
29183   fi
29184 done
29185 fi
29186 rm -f conftest.err conftest.$ac_ext
29187 fi # $ac_x_includes = no
29188
29189 if test "$ac_x_libraries" = no; then
29190   # Check for the libraries.
29191   # See if we find them without any special options.
29192   # Don't add to $LIBS permanently.
29193   ac_save_LIBS=$LIBS
29194   LIBS="-lXt $LIBS"
29195   cat >conftest.$ac_ext <<_ACEOF
29196 /* confdefs.h.  */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h.  */
29201 #include <X11/Intrinsic.h>
29202 int
29203 main ()
29204 {
29205 XtMalloc (0)
29206   ;
29207   return 0;
29208 }
29209 _ACEOF
29210 rm -f conftest.$ac_objext conftest$ac_exeext
29211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29212   (eval $ac_link) 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } &&
29219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221   (eval $ac_try) 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; } &&
29225          { ac_try='test -s conftest$ac_exeext'
29226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227   (eval $ac_try) 2>&5
29228   ac_status=$?
29229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230   (exit $ac_status); }; }; then
29231   LIBS=$ac_save_LIBS
29232 # We can link X programs with no special library path.
29233 ac_x_libraries=
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238 LIBS=$ac_save_LIBS
29239 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29240 do
29241   # Don't even attempt the hair of trying to link an X program!
29242   for ac_extension in a so sl; do
29243     if test -r $ac_dir/libXt.$ac_extension; then
29244       ac_x_libraries=$ac_dir
29245       break 2
29246     fi
29247   done
29248 done
29249 fi
29250 rm -f conftest.err conftest.$ac_objext \
29251       conftest$ac_exeext conftest.$ac_ext
29252 fi # $ac_x_libraries = no
29253
29254 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29255   # Didn't find X anywhere.  Cache the known absence of X.
29256   ac_cv_have_x="have_x=no"
29257 else
29258   # Record where we found X for the cache.
29259   ac_cv_have_x="have_x=yes \
29260                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29261 fi
29262 fi
29263
29264   fi
29265   eval "$ac_cv_have_x"
29266 fi # $with_x != no
29267
29268 if test "$have_x" != yes; then
29269   echo "$as_me:$LINENO: result: $have_x" >&5
29270 echo "${ECHO_T}$have_x" >&6
29271   no_x=yes
29272 else
29273   # If each of the values was on the command line, it overrides each guess.
29274   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29275   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29276   # Update the cache value to reflect the command line values.
29277   ac_cv_have_x="have_x=yes \
29278                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29279   # It might be that x_includes is empty (headers are found in the
29280   # standard search path. Then output the corresponding message
29281   ac_out_x_includes=$x_includes
29282   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29283   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29284 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
29285 fi
29286
29287 fi
29288 if test "$no_x" = yes; then
29289   # Not all programs may use this symbol, but it does not hurt to define it.
29290
29291 cat >>confdefs.h <<\_ACEOF
29292 #define X_DISPLAY_MISSING 1
29293 _ACEOF
29294
29295   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29296 else
29297   if test -n "$x_includes"; then
29298     X_CFLAGS="$X_CFLAGS -I$x_includes"
29299   fi
29300
29301   # It would also be nice to do this for all -L options, not just this one.
29302   if test -n "$x_libraries"; then
29303     X_LIBS="$X_LIBS -L$x_libraries"
29304     # For Solaris; some versions of Sun CC require a space after -R and
29305     # others require no space.  Words are not sufficient . . . .
29306     case `(uname -sr) 2>/dev/null` in
29307     "SunOS 5"*)
29308       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29309 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29310       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29311       cat >conftest.$ac_ext <<_ACEOF
29312 /* confdefs.h.  */
29313 _ACEOF
29314 cat confdefs.h >>conftest.$ac_ext
29315 cat >>conftest.$ac_ext <<_ACEOF
29316 /* end confdefs.h.  */
29317
29318 int
29319 main ()
29320 {
29321
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328   (eval $ac_link) 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } &&
29335          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337   (eval $ac_try) 2>&5
29338   ac_status=$?
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); }; } &&
29341          { ac_try='test -s conftest$ac_exeext'
29342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343   (eval $ac_try) 2>&5
29344   ac_status=$?
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); }; }; then
29347   ac_R_nospace=yes
29348 else
29349   echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29351
29352 ac_R_nospace=no
29353 fi
29354 rm -f conftest.err conftest.$ac_objext \
29355       conftest$ac_exeext conftest.$ac_ext
29356       if test $ac_R_nospace = yes; then
29357         echo "$as_me:$LINENO: result: no" >&5
29358 echo "${ECHO_T}no" >&6
29359         X_LIBS="$X_LIBS -R$x_libraries"
29360       else
29361         LIBS="$ac_xsave_LIBS -R $x_libraries"
29362         cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368
29369 int
29370 main ()
29371 {
29372
29373   ;
29374   return 0;
29375 }
29376 _ACEOF
29377 rm -f conftest.$ac_objext conftest$ac_exeext
29378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29379   (eval $ac_link) 2>conftest.er1
29380   ac_status=$?
29381   grep -v '^ *+' conftest.er1 >conftest.err
29382   rm -f conftest.er1
29383   cat conftest.err >&5
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); } &&
29386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; } &&
29392          { ac_try='test -s conftest$ac_exeext'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; }; then
29398   ac_R_space=yes
29399 else
29400   echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403 ac_R_space=no
29404 fi
29405 rm -f conftest.err conftest.$ac_objext \
29406       conftest$ac_exeext conftest.$ac_ext
29407         if test $ac_R_space = yes; then
29408           echo "$as_me:$LINENO: result: yes" >&5
29409 echo "${ECHO_T}yes" >&6
29410           X_LIBS="$X_LIBS -R $x_libraries"
29411         else
29412           echo "$as_me:$LINENO: result: neither works" >&5
29413 echo "${ECHO_T}neither works" >&6
29414         fi
29415       fi
29416       LIBS=$ac_xsave_LIBS
29417     esac
29418   fi
29419
29420   # Check for system-dependent libraries X programs must link with.
29421   # Do this before checking for the system-independent R6 libraries
29422   # (-lICE), since we may need -lsocket or whatever for X linking.
29423
29424   if test "$ISC" = yes; then
29425     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29426   else
29427     # Martyn Johnson says this is needed for Ultrix, if the X
29428     # libraries were built with DECnet support.  And Karl Berry says
29429     # the Alpha needs dnet_stub (dnet does not exist).
29430     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29431     cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437
29438 /* Override any gcc2 internal prototype to avoid an error.  */
29439 #ifdef __cplusplus
29440 extern "C"
29441 #endif
29442 /* We use char because int might match the return type of a gcc2
29443    builtin and then its argument prototype would still apply.  */
29444 char XOpenDisplay ();
29445 int
29446 main ()
29447 {
29448 XOpenDisplay ();
29449   ;
29450   return 0;
29451 }
29452 _ACEOF
29453 rm -f conftest.$ac_objext conftest$ac_exeext
29454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29455   (eval $ac_link) 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } &&
29462          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; } &&
29468          { ac_try='test -s conftest$ac_exeext'
29469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470   (eval $ac_try) 2>&5
29471   ac_status=$?
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); }; }; then
29474   :
29475 else
29476   echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29478
29479 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29480 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29481 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29482   echo $ECHO_N "(cached) $ECHO_C" >&6
29483 else
29484   ac_check_lib_save_LIBS=$LIBS
29485 LIBS="-ldnet  $LIBS"
29486 cat >conftest.$ac_ext <<_ACEOF
29487 /* confdefs.h.  */
29488 _ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h.  */
29492
29493 /* Override any gcc2 internal prototype to avoid an error.  */
29494 #ifdef __cplusplus
29495 extern "C"
29496 #endif
29497 /* We use char because int might match the return type of a gcc2
29498    builtin and then its argument prototype would still apply.  */
29499 char dnet_ntoa ();
29500 int
29501 main ()
29502 {
29503 dnet_ntoa ();
29504   ;
29505   return 0;
29506 }
29507 _ACEOF
29508 rm -f conftest.$ac_objext conftest$ac_exeext
29509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29510   (eval $ac_link) 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } &&
29517          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; } &&
29523          { ac_try='test -s conftest$ac_exeext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   ac_cv_lib_dnet_dnet_ntoa=yes
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 ac_cv_lib_dnet_dnet_ntoa=no
29535 fi
29536 rm -f conftest.err conftest.$ac_objext \
29537       conftest$ac_exeext conftest.$ac_ext
29538 LIBS=$ac_check_lib_save_LIBS
29539 fi
29540 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29541 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29542 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29543   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29544 fi
29545
29546     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29547       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29548 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29549 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29550   echo $ECHO_N "(cached) $ECHO_C" >&6
29551 else
29552   ac_check_lib_save_LIBS=$LIBS
29553 LIBS="-ldnet_stub  $LIBS"
29554 cat >conftest.$ac_ext <<_ACEOF
29555 /* confdefs.h.  */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h.  */
29560
29561 /* Override any gcc2 internal prototype to avoid an error.  */
29562 #ifdef __cplusplus
29563 extern "C"
29564 #endif
29565 /* We use char because int might match the return type of a gcc2
29566    builtin and then its argument prototype would still apply.  */
29567 char dnet_ntoa ();
29568 int
29569 main ()
29570 {
29571 dnet_ntoa ();
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 rm -f conftest.$ac_objext conftest$ac_exeext
29577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29578   (eval $ac_link) 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } &&
29585          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587   (eval $ac_try) 2>&5
29588   ac_status=$?
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); }; } &&
29591          { ac_try='test -s conftest$ac_exeext'
29592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593   (eval $ac_try) 2>&5
29594   ac_status=$?
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); }; }; then
29597   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29598 else
29599   echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29601
29602 ac_cv_lib_dnet_stub_dnet_ntoa=no
29603 fi
29604 rm -f conftest.err conftest.$ac_objext \
29605       conftest$ac_exeext conftest.$ac_ext
29606 LIBS=$ac_check_lib_save_LIBS
29607 fi
29608 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29609 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29610 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29611   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29612 fi
29613
29614     fi
29615 fi
29616 rm -f conftest.err conftest.$ac_objext \
29617       conftest$ac_exeext conftest.$ac_ext
29618     LIBS="$ac_xsave_LIBS"
29619
29620     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29621     # to get the SysV transport functions.
29622     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29623     # needs -lnsl.
29624     # The nsl library prevents programs from opening the X display
29625     # on Irix 5.2, according to T.E. Dickey.
29626     # The functions gethostbyname, getservbyname, and inet_addr are
29627     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29628     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29629 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29630 if test "${ac_cv_func_gethostbyname+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29641 #define gethostbyname innocuous_gethostbyname
29642
29643 /* System header to define __stub macros and hopefully few prototypes,
29644     which can conflict with char gethostbyname (); below.
29645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29646     <limits.h> exists even on freestanding compilers.  */
29647
29648 #ifdef __STDC__
29649 # include <limits.h>
29650 #else
29651 # include <assert.h>
29652 #endif
29653
29654 #undef gethostbyname
29655
29656 /* Override any gcc2 internal prototype to avoid an error.  */
29657 #ifdef __cplusplus
29658 extern "C"
29659 {
29660 #endif
29661 /* We use char because int might match the return type of a gcc2
29662    builtin and then its argument prototype would still apply.  */
29663 char gethostbyname ();
29664 /* The GNU C library defines this for functions which it implements
29665     to always fail with ENOSYS.  Some functions are actually named
29666     something starting with __ and the normal name is an alias.  */
29667 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29668 choke me
29669 #else
29670 char (*f) () = gethostbyname;
29671 #endif
29672 #ifdef __cplusplus
29673 }
29674 #endif
29675
29676 int
29677 main ()
29678 {
29679 return f != gethostbyname;
29680   ;
29681   return 0;
29682 }
29683 _ACEOF
29684 rm -f conftest.$ac_objext conftest$ac_exeext
29685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29686   (eval $ac_link) 2>conftest.er1
29687   ac_status=$?
29688   grep -v '^ *+' conftest.er1 >conftest.err
29689   rm -f conftest.er1
29690   cat conftest.err >&5
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); } &&
29693          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695   (eval $ac_try) 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; } &&
29699          { ac_try='test -s conftest$ac_exeext'
29700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29701   (eval $ac_try) 2>&5
29702   ac_status=$?
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); }; }; then
29705   ac_cv_func_gethostbyname=yes
29706 else
29707   echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29709
29710 ac_cv_func_gethostbyname=no
29711 fi
29712 rm -f conftest.err conftest.$ac_objext \
29713       conftest$ac_exeext conftest.$ac_ext
29714 fi
29715 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29716 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29717
29718     if test $ac_cv_func_gethostbyname = no; then
29719       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29720 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29721 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29722   echo $ECHO_N "(cached) $ECHO_C" >&6
29723 else
29724   ac_check_lib_save_LIBS=$LIBS
29725 LIBS="-lnsl  $LIBS"
29726 cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732
29733 /* Override any gcc2 internal prototype to avoid an error.  */
29734 #ifdef __cplusplus
29735 extern "C"
29736 #endif
29737 /* We use char because int might match the return type of a gcc2
29738    builtin and then its argument prototype would still apply.  */
29739 char gethostbyname ();
29740 int
29741 main ()
29742 {
29743 gethostbyname ();
29744   ;
29745   return 0;
29746 }
29747 _ACEOF
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29750   (eval $ac_link) 2>conftest.er1
29751   ac_status=$?
29752   grep -v '^ *+' conftest.er1 >conftest.err
29753   rm -f conftest.er1
29754   cat conftest.err >&5
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); } &&
29757          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29759   (eval $ac_try) 2>&5
29760   ac_status=$?
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); }; } &&
29763          { ac_try='test -s conftest$ac_exeext'
29764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765   (eval $ac_try) 2>&5
29766   ac_status=$?
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); }; }; then
29769   ac_cv_lib_nsl_gethostbyname=yes
29770 else
29771   echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29773
29774 ac_cv_lib_nsl_gethostbyname=no
29775 fi
29776 rm -f conftest.err conftest.$ac_objext \
29777       conftest$ac_exeext conftest.$ac_ext
29778 LIBS=$ac_check_lib_save_LIBS
29779 fi
29780 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29781 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29782 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29784 fi
29785
29786       if test $ac_cv_lib_nsl_gethostbyname = no; then
29787         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29788 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29789 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29790   echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29792   ac_check_lib_save_LIBS=$LIBS
29793 LIBS="-lbsd  $LIBS"
29794 cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800
29801 /* Override any gcc2 internal prototype to avoid an error.  */
29802 #ifdef __cplusplus
29803 extern "C"
29804 #endif
29805 /* We use char because int might match the return type of a gcc2
29806    builtin and then its argument prototype would still apply.  */
29807 char gethostbyname ();
29808 int
29809 main ()
29810 {
29811 gethostbyname ();
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext conftest$ac_exeext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29818   (eval $ac_link) 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } &&
29825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827   (eval $ac_try) 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; } &&
29831          { ac_try='test -s conftest$ac_exeext'
29832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833   (eval $ac_try) 2>&5
29834   ac_status=$?
29835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836   (exit $ac_status); }; }; then
29837   ac_cv_lib_bsd_gethostbyname=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842 ac_cv_lib_bsd_gethostbyname=no
29843 fi
29844 rm -f conftest.err conftest.$ac_objext \
29845       conftest$ac_exeext conftest.$ac_ext
29846 LIBS=$ac_check_lib_save_LIBS
29847 fi
29848 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29849 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29850 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29851   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29852 fi
29853
29854       fi
29855     fi
29856
29857     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29858     # socket/setsockopt and other routines are undefined under SCO ODT
29859     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29860     # on later versions), says Simon Leinen: it contains gethostby*
29861     # variants that don't use the name server (or something).  -lsocket
29862     # must be given before -lnsl if both are needed.  We assume that
29863     # if connect needs -lnsl, so does gethostbyname.
29864     echo "$as_me:$LINENO: checking for connect" >&5
29865 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29866 if test "${ac_cv_func_connect+set}" = set; then
29867   echo $ECHO_N "(cached) $ECHO_C" >&6
29868 else
29869   cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h.  */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h.  */
29875 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29877 #define connect innocuous_connect
29878
29879 /* System header to define __stub macros and hopefully few prototypes,
29880     which can conflict with char connect (); below.
29881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29882     <limits.h> exists even on freestanding compilers.  */
29883
29884 #ifdef __STDC__
29885 # include <limits.h>
29886 #else
29887 # include <assert.h>
29888 #endif
29889
29890 #undef connect
29891
29892 /* Override any gcc2 internal prototype to avoid an error.  */
29893 #ifdef __cplusplus
29894 extern "C"
29895 {
29896 #endif
29897 /* We use char because int might match the return type of a gcc2
29898    builtin and then its argument prototype would still apply.  */
29899 char connect ();
29900 /* The GNU C library defines this for functions which it implements
29901     to always fail with ENOSYS.  Some functions are actually named
29902     something starting with __ and the normal name is an alias.  */
29903 #if defined (__stub_connect) || defined (__stub___connect)
29904 choke me
29905 #else
29906 char (*f) () = connect;
29907 #endif
29908 #ifdef __cplusplus
29909 }
29910 #endif
29911
29912 int
29913 main ()
29914 {
29915 return f != connect;
29916   ;
29917   return 0;
29918 }
29919 _ACEOF
29920 rm -f conftest.$ac_objext conftest$ac_exeext
29921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29922   (eval $ac_link) 2>conftest.er1
29923   ac_status=$?
29924   grep -v '^ *+' conftest.er1 >conftest.err
29925   rm -f conftest.er1
29926   cat conftest.err >&5
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); } &&
29929          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931   (eval $ac_try) 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; } &&
29935          { ac_try='test -s conftest$ac_exeext'
29936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29937   (eval $ac_try) 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); }; }; then
29941   ac_cv_func_connect=yes
29942 else
29943   echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29945
29946 ac_cv_func_connect=no
29947 fi
29948 rm -f conftest.err conftest.$ac_objext \
29949       conftest$ac_exeext conftest.$ac_ext
29950 fi
29951 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29952 echo "${ECHO_T}$ac_cv_func_connect" >&6
29953
29954     if test $ac_cv_func_connect = no; then
29955       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29956 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29957 if test "${ac_cv_lib_socket_connect+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968
29969 /* Override any gcc2 internal prototype to avoid an error.  */
29970 #ifdef __cplusplus
29971 extern "C"
29972 #endif
29973 /* We use char because int might match the return type of a gcc2
29974    builtin and then its argument prototype would still apply.  */
29975 char connect ();
29976 int
29977 main ()
29978 {
29979 connect ();
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986   (eval $ac_link) 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995   (eval $ac_try) 2>&5
29996   ac_status=$?
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); }; } &&
29999          { ac_try='test -s conftest$ac_exeext'
30000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001   (eval $ac_try) 2>&5
30002   ac_status=$?
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); }; }; then
30005   ac_cv_lib_socket_connect=yes
30006 else
30007   echo "$as_me: failed program was:" >&5
30008 sed 's/^/| /' conftest.$ac_ext >&5
30009
30010 ac_cv_lib_socket_connect=no
30011 fi
30012 rm -f conftest.err conftest.$ac_objext \
30013       conftest$ac_exeext conftest.$ac_ext
30014 LIBS=$ac_check_lib_save_LIBS
30015 fi
30016 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30017 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30018 if test $ac_cv_lib_socket_connect = yes; then
30019   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30020 fi
30021
30022     fi
30023
30024     # Guillermo Gomez says -lposix is necessary on A/UX.
30025     echo "$as_me:$LINENO: checking for remove" >&5
30026 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30027 if test "${ac_cv_func_remove+set}" = set; then
30028   echo $ECHO_N "(cached) $ECHO_C" >&6
30029 else
30030   cat >conftest.$ac_ext <<_ACEOF
30031 /* confdefs.h.  */
30032 _ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h.  */
30036 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30038 #define remove innocuous_remove
30039
30040 /* System header to define __stub macros and hopefully few prototypes,
30041     which can conflict with char remove (); below.
30042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30043     <limits.h> exists even on freestanding compilers.  */
30044
30045 #ifdef __STDC__
30046 # include <limits.h>
30047 #else
30048 # include <assert.h>
30049 #endif
30050
30051 #undef remove
30052
30053 /* Override any gcc2 internal prototype to avoid an error.  */
30054 #ifdef __cplusplus
30055 extern "C"
30056 {
30057 #endif
30058 /* We use char because int might match the return type of a gcc2
30059    builtin and then its argument prototype would still apply.  */
30060 char remove ();
30061 /* The GNU C library defines this for functions which it implements
30062     to always fail with ENOSYS.  Some functions are actually named
30063     something starting with __ and the normal name is an alias.  */
30064 #if defined (__stub_remove) || defined (__stub___remove)
30065 choke me
30066 #else
30067 char (*f) () = remove;
30068 #endif
30069 #ifdef __cplusplus
30070 }
30071 #endif
30072
30073 int
30074 main ()
30075 {
30076 return f != remove;
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083   (eval $ac_link) 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } &&
30090          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092   (eval $ac_try) 2>&5
30093   ac_status=$?
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); }; } &&
30096          { ac_try='test -s conftest$ac_exeext'
30097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098   (eval $ac_try) 2>&5
30099   ac_status=$?
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); }; }; then
30102   ac_cv_func_remove=yes
30103 else
30104   echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107 ac_cv_func_remove=no
30108 fi
30109 rm -f conftest.err conftest.$ac_objext \
30110       conftest$ac_exeext conftest.$ac_ext
30111 fi
30112 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30113 echo "${ECHO_T}$ac_cv_func_remove" >&6
30114
30115     if test $ac_cv_func_remove = no; then
30116       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30117 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30118 if test "${ac_cv_lib_posix_remove+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121   ac_check_lib_save_LIBS=$LIBS
30122 LIBS="-lposix  $LIBS"
30123 cat >conftest.$ac_ext <<_ACEOF
30124 /* confdefs.h.  */
30125 _ACEOF
30126 cat confdefs.h >>conftest.$ac_ext
30127 cat >>conftest.$ac_ext <<_ACEOF
30128 /* end confdefs.h.  */
30129
30130 /* Override any gcc2 internal prototype to avoid an error.  */
30131 #ifdef __cplusplus
30132 extern "C"
30133 #endif
30134 /* We use char because int might match the return type of a gcc2
30135    builtin and then its argument prototype would still apply.  */
30136 char remove ();
30137 int
30138 main ()
30139 {
30140 remove ();
30141   ;
30142   return 0;
30143 }
30144 _ACEOF
30145 rm -f conftest.$ac_objext conftest$ac_exeext
30146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30147   (eval $ac_link) 2>conftest.er1
30148   ac_status=$?
30149   grep -v '^ *+' conftest.er1 >conftest.err
30150   rm -f conftest.er1
30151   cat conftest.err >&5
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); } &&
30154          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156   (eval $ac_try) 2>&5
30157   ac_status=$?
30158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159   (exit $ac_status); }; } &&
30160          { ac_try='test -s conftest$ac_exeext'
30161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30162   (eval $ac_try) 2>&5
30163   ac_status=$?
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); }; }; then
30166   ac_cv_lib_posix_remove=yes
30167 else
30168   echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30170
30171 ac_cv_lib_posix_remove=no
30172 fi
30173 rm -f conftest.err conftest.$ac_objext \
30174       conftest$ac_exeext conftest.$ac_ext
30175 LIBS=$ac_check_lib_save_LIBS
30176 fi
30177 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30178 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30179 if test $ac_cv_lib_posix_remove = yes; then
30180   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30181 fi
30182
30183     fi
30184
30185     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30186     echo "$as_me:$LINENO: checking for shmat" >&5
30187 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30188 if test "${ac_cv_func_shmat+set}" = set; then
30189   echo $ECHO_N "(cached) $ECHO_C" >&6
30190 else
30191   cat >conftest.$ac_ext <<_ACEOF
30192 /* confdefs.h.  */
30193 _ACEOF
30194 cat confdefs.h >>conftest.$ac_ext
30195 cat >>conftest.$ac_ext <<_ACEOF
30196 /* end confdefs.h.  */
30197 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30199 #define shmat innocuous_shmat
30200
30201 /* System header to define __stub macros and hopefully few prototypes,
30202     which can conflict with char shmat (); below.
30203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30204     <limits.h> exists even on freestanding compilers.  */
30205
30206 #ifdef __STDC__
30207 # include <limits.h>
30208 #else
30209 # include <assert.h>
30210 #endif
30211
30212 #undef shmat
30213
30214 /* Override any gcc2 internal prototype to avoid an error.  */
30215 #ifdef __cplusplus
30216 extern "C"
30217 {
30218 #endif
30219 /* We use char because int might match the return type of a gcc2
30220    builtin and then its argument prototype would still apply.  */
30221 char shmat ();
30222 /* The GNU C library defines this for functions which it implements
30223     to always fail with ENOSYS.  Some functions are actually named
30224     something starting with __ and the normal name is an alias.  */
30225 #if defined (__stub_shmat) || defined (__stub___shmat)
30226 choke me
30227 #else
30228 char (*f) () = shmat;
30229 #endif
30230 #ifdef __cplusplus
30231 }
30232 #endif
30233
30234 int
30235 main ()
30236 {
30237 return f != shmat;
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244   (eval $ac_link) 2>conftest.er1
30245   ac_status=$?
30246   grep -v '^ *+' conftest.er1 >conftest.err
30247   rm -f conftest.er1
30248   cat conftest.err >&5
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); } &&
30251          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; } &&
30257          { ac_try='test -s conftest$ac_exeext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   ac_cv_func_shmat=yes
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ac_cv_func_shmat=no
30269 fi
30270 rm -f conftest.err conftest.$ac_objext \
30271       conftest$ac_exeext conftest.$ac_ext
30272 fi
30273 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30274 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30275
30276     if test $ac_cv_func_shmat = no; then
30277       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30278 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30279 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30280   echo $ECHO_N "(cached) $ECHO_C" >&6
30281 else
30282   ac_check_lib_save_LIBS=$LIBS
30283 LIBS="-lipc  $LIBS"
30284 cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h.  */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h.  */
30290
30291 /* Override any gcc2 internal prototype to avoid an error.  */
30292 #ifdef __cplusplus
30293 extern "C"
30294 #endif
30295 /* We use char because int might match the return type of a gcc2
30296    builtin and then its argument prototype would still apply.  */
30297 char shmat ();
30298 int
30299 main ()
30300 {
30301 shmat ();
30302   ;
30303   return 0;
30304 }
30305 _ACEOF
30306 rm -f conftest.$ac_objext conftest$ac_exeext
30307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30308   (eval $ac_link) 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } &&
30315          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317   (eval $ac_try) 2>&5
30318   ac_status=$?
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); }; } &&
30321          { ac_try='test -s conftest$ac_exeext'
30322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323   (eval $ac_try) 2>&5
30324   ac_status=$?
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); }; }; then
30327   ac_cv_lib_ipc_shmat=yes
30328 else
30329   echo "$as_me: failed program was:" >&5
30330 sed 's/^/| /' conftest.$ac_ext >&5
30331
30332 ac_cv_lib_ipc_shmat=no
30333 fi
30334 rm -f conftest.err conftest.$ac_objext \
30335       conftest$ac_exeext conftest.$ac_ext
30336 LIBS=$ac_check_lib_save_LIBS
30337 fi
30338 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30339 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30340 if test $ac_cv_lib_ipc_shmat = yes; then
30341   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30342 fi
30343
30344     fi
30345   fi
30346
30347   # Check for libraries that X11R6 Xt/Xaw programs need.
30348   ac_save_LDFLAGS=$LDFLAGS
30349   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30350   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30351   # check for ICE first), but we must link in the order -lSM -lICE or
30352   # we get undefined symbols.  So assume we have SM if we have ICE.
30353   # These have to be linked with before -lX11, unlike the other
30354   # libraries we check for below, so use a different variable.
30355   # John Interrante, Karl Berry
30356   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30357 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30358 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30359   echo $ECHO_N "(cached) $ECHO_C" >&6
30360 else
30361   ac_check_lib_save_LIBS=$LIBS
30362 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30363 cat >conftest.$ac_ext <<_ACEOF
30364 /* confdefs.h.  */
30365 _ACEOF
30366 cat confdefs.h >>conftest.$ac_ext
30367 cat >>conftest.$ac_ext <<_ACEOF
30368 /* end confdefs.h.  */
30369
30370 /* Override any gcc2 internal prototype to avoid an error.  */
30371 #ifdef __cplusplus
30372 extern "C"
30373 #endif
30374 /* We use char because int might match the return type of a gcc2
30375    builtin and then its argument prototype would still apply.  */
30376 char IceConnectionNumber ();
30377 int
30378 main ()
30379 {
30380 IceConnectionNumber ();
30381   ;
30382   return 0;
30383 }
30384 _ACEOF
30385 rm -f conftest.$ac_objext conftest$ac_exeext
30386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30387   (eval $ac_link) 2>conftest.er1
30388   ac_status=$?
30389   grep -v '^ *+' conftest.er1 >conftest.err
30390   rm -f conftest.er1
30391   cat conftest.err >&5
30392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); } &&
30394          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30396   (eval $ac_try) 2>&5
30397   ac_status=$?
30398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399   (exit $ac_status); }; } &&
30400          { ac_try='test -s conftest$ac_exeext'
30401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402   (eval $ac_try) 2>&5
30403   ac_status=$?
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); }; }; then
30406   ac_cv_lib_ICE_IceConnectionNumber=yes
30407 else
30408   echo "$as_me: failed program was:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30410
30411 ac_cv_lib_ICE_IceConnectionNumber=no
30412 fi
30413 rm -f conftest.err conftest.$ac_objext \
30414       conftest$ac_exeext conftest.$ac_ext
30415 LIBS=$ac_check_lib_save_LIBS
30416 fi
30417 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30418 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30419 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30420   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30421 fi
30422
30423   LDFLAGS=$ac_save_LDFLAGS
30424
30425 fi
30426
30427
30428         if test "$no_x" = "yes"; then
30429           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30430 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30431    { (exit 1); exit 1; }; }
30432         fi
30433
30434                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30435         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30436         AFMINSTALL=afminstall
30437         COMPILED_X_PROGRAM=0
30438
30439     fi
30440
30441     if test "$wxUSE_X11" = 1; then
30442         if test "$wxUSE_NANOX" = "yes"; then
30443             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30444 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30445             if test "x$MICROWIN" = x ; then
30446                 echo "$as_me:$LINENO: result: not found" >&5
30447 echo "${ECHO_T}not found" >&6
30448                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30449 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30450    { (exit 1); exit 1; }; }
30451             else
30452                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30453 echo "${ECHO_T}$MICROWIN" >&6
30454                 cat >>confdefs.h <<\_ACEOF
30455 #define wxUSE_NANOX 1
30456 _ACEOF
30457
30458             fi
30459         fi
30460
30461         if test "$wxUSE_UNICODE" = "yes"; then
30462
30463 pkg_failed=no
30464 echo "$as_me:$LINENO: checking for PANGOX" >&5
30465 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30466
30467 if test -n "$PKG_CONFIG"; then
30468     if test -n "$PANGOX_CFLAGS"; then
30469         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30470     else
30471         if test -n "$PKG_CONFIG" && \
30472     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30473   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; then
30477   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30478 else
30479   pkg_failed=yes
30480 fi
30481     fi
30482 else
30483         pkg_failed=untried
30484 fi
30485 if test -n "$PKG_CONFIG"; then
30486     if test -n "$PANGOX_LIBS"; then
30487         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30488     else
30489         if test -n "$PKG_CONFIG" && \
30490     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30491   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30492   ac_status=$?
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); }; then
30495   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30496 else
30497   pkg_failed=yes
30498 fi
30499     fi
30500 else
30501         pkg_failed=untried
30502 fi
30503
30504
30505
30506 if test $pkg_failed = yes; then
30507
30508 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30509         _pkg_short_errors_supported=yes
30510 else
30511         _pkg_short_errors_supported=no
30512 fi
30513         if test $_pkg_short_errors_supported = yes; then
30514                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30515         else
30516                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30517         fi
30518         # Put the nasty error message in config.log where it belongs
30519         echo "$PANGOX_PKG_ERRORS" >&5
30520
30521
30522                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30523 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30524    { (exit 1); exit 1; }; }
30525
30526
30527 elif test $pkg_failed = untried; then
30528
30529                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30530 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30531    { (exit 1); exit 1; }; }
30532
30533
30534 else
30535         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30536         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30537         echo "$as_me:$LINENO: result: yes" >&5
30538 echo "${ECHO_T}yes" >&6
30539
30540                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30541                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30542
30543 fi
30544
30545 pkg_failed=no
30546 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30547 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30548
30549 if test -n "$PKG_CONFIG"; then
30550     if test -n "$PANGOFT2_CFLAGS"; then
30551         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30552     else
30553         if test -n "$PKG_CONFIG" && \
30554     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30555   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; then
30559   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30560 else
30561   pkg_failed=yes
30562 fi
30563     fi
30564 else
30565         pkg_failed=untried
30566 fi
30567 if test -n "$PKG_CONFIG"; then
30568     if test -n "$PANGOFT2_LIBS"; then
30569         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30570     else
30571         if test -n "$PKG_CONFIG" && \
30572     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30573   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30574   ac_status=$?
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); }; then
30577   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30578 else
30579   pkg_failed=yes
30580 fi
30581     fi
30582 else
30583         pkg_failed=untried
30584 fi
30585
30586
30587
30588 if test $pkg_failed = yes; then
30589
30590 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30591         _pkg_short_errors_supported=yes
30592 else
30593         _pkg_short_errors_supported=no
30594 fi
30595         if test $_pkg_short_errors_supported = yes; then
30596                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30597         else
30598                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30599         fi
30600         # Put the nasty error message in config.log where it belongs
30601         echo "$PANGOFT2_PKG_ERRORS" >&5
30602
30603
30604                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30605 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30606                         wxUSE_PRINTING_ARCHITECTURE="no"
30607
30608
30609 elif test $pkg_failed = untried; then
30610
30611                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30612 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30613                         wxUSE_PRINTING_ARCHITECTURE="no"
30614
30615
30616 else
30617         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30618         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30619         echo "$as_me:$LINENO: result: yes" >&5
30620 echo "${ECHO_T}yes" >&6
30621
30622                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30623                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30624
30625 fi
30626
30627 pkg_failed=no
30628 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30629 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
30630
30631 if test -n "$PKG_CONFIG"; then
30632     if test -n "$PANGOXFT_CFLAGS"; then
30633         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30634     else
30635         if test -n "$PKG_CONFIG" && \
30636     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30637   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30638   ac_status=$?
30639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30640   (exit $ac_status); }; then
30641   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30642 else
30643   pkg_failed=yes
30644 fi
30645     fi
30646 else
30647         pkg_failed=untried
30648 fi
30649 if test -n "$PKG_CONFIG"; then
30650     if test -n "$PANGOXFT_LIBS"; then
30651         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30652     else
30653         if test -n "$PKG_CONFIG" && \
30654     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30655   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; then
30659   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30660 else
30661   pkg_failed=yes
30662 fi
30663     fi
30664 else
30665         pkg_failed=untried
30666 fi
30667
30668
30669
30670 if test $pkg_failed = yes; then
30671
30672 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30673         _pkg_short_errors_supported=yes
30674 else
30675         _pkg_short_errors_supported=no
30676 fi
30677         if test $_pkg_short_errors_supported = yes; then
30678                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30679         else
30680                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30681         fi
30682         # Put the nasty error message in config.log where it belongs
30683         echo "$PANGOXFT_PKG_ERRORS" >&5
30684
30685
30686                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30687 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30688
30689
30690 elif test $pkg_failed = untried; then
30691
30692                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30693 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30694
30695
30696 else
30697         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30698         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30699         echo "$as_me:$LINENO: result: yes" >&5
30700 echo "${ECHO_T}yes" >&6
30701
30702                         cat >>confdefs.h <<\_ACEOF
30703 #define HAVE_PANGO_XFT 1
30704 _ACEOF
30705
30706                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30707                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30708
30709 fi
30710                 save_CXXFLAGS="$CXXFLAGS"
30711                 save_LIBS="$LIBS"
30712                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30713                 LIBS="$LIBS $PANGOX_LIBS"
30714
30715 for ac_func in pango_font_family_is_monospace
30716 do
30717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30718 echo "$as_me:$LINENO: checking for $ac_func" >&5
30719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30720 if eval "test \"\${$as_ac_var+set}\" = set"; then
30721   echo $ECHO_N "(cached) $ECHO_C" >&6
30722 else
30723   cat >conftest.$ac_ext <<_ACEOF
30724 /* confdefs.h.  */
30725 _ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h.  */
30729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30731 #define $ac_func innocuous_$ac_func
30732
30733 /* System header to define __stub macros and hopefully few prototypes,
30734     which can conflict with char $ac_func (); below.
30735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30736     <limits.h> exists even on freestanding compilers.  */
30737
30738 #ifdef __STDC__
30739 # include <limits.h>
30740 #else
30741 # include <assert.h>
30742 #endif
30743
30744 #undef $ac_func
30745
30746 /* Override any gcc2 internal prototype to avoid an error.  */
30747 #ifdef __cplusplus
30748 extern "C"
30749 {
30750 #endif
30751 /* We use char because int might match the return type of a gcc2
30752    builtin and then its argument prototype would still apply.  */
30753 char $ac_func ();
30754 /* The GNU C library defines this for functions which it implements
30755     to always fail with ENOSYS.  Some functions are actually named
30756     something starting with __ and the normal name is an alias.  */
30757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30758 choke me
30759 #else
30760 char (*f) () = $ac_func;
30761 #endif
30762 #ifdef __cplusplus
30763 }
30764 #endif
30765
30766 int
30767 main ()
30768 {
30769 return f != $ac_func;
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30776   (eval $ac_link) 2>conftest.er1
30777   ac_status=$?
30778   grep -v '^ *+' conftest.er1 >conftest.err
30779   rm -f conftest.er1
30780   cat conftest.err >&5
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } &&
30783          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30785   (eval $ac_try) 2>&5
30786   ac_status=$?
30787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788   (exit $ac_status); }; } &&
30789          { ac_try='test -s conftest$ac_exeext'
30790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791   (eval $ac_try) 2>&5
30792   ac_status=$?
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); }; }; then
30795   eval "$as_ac_var=yes"
30796 else
30797   echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30799
30800 eval "$as_ac_var=no"
30801 fi
30802 rm -f conftest.err conftest.$ac_objext \
30803       conftest$ac_exeext conftest.$ac_ext
30804 fi
30805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30807 if test `eval echo '${'$as_ac_var'}'` = yes; then
30808   cat >>confdefs.h <<_ACEOF
30809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30810 _ACEOF
30811
30812 fi
30813 done
30814
30815                 CXXFLAGS="$save_CXXFLAGS"
30816                 LIBS="$save_LIBS"
30817         fi
30818
30819         wxUSE_UNIVERSAL="yes"
30820
30821         if test "$wxUSE_NANOX" = "yes"; then
30822             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30823             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"
30824             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30825         else
30826             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30827         fi
30828
30829         TOOLKIT=X11
30830         GUIDIST=X11_DIST
30831     fi
30832
30833     if test "$wxUSE_MOTIF" = 1; then
30834         if test "$wxUSE_UNICODE" = "yes"; then
30835             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30836 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30837    { (exit 1); exit 1; }; }
30838         fi
30839
30840         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30841 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
30842
30843 ac_find_includes=
30844 for ac_dir in $SEARCH_INCLUDE /usr/include;
30845   do
30846     if test -f "$ac_dir/Xm/Xm.h"; then
30847       ac_find_includes=$ac_dir
30848       break
30849     fi
30850   done
30851
30852         if test "$ac_find_includes" != "" ; then
30853             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30854 echo "${ECHO_T}found in $ac_find_includes" >&6
30855
30856     if test "x$ac_find_includes" = "x/usr/include"; then
30857     ac_path_to_include=""
30858   else
30859     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30860     result=$?
30861     if test $result = 0; then
30862       ac_path_to_include=""
30863     else
30864       ac_path_to_include=" -I$ac_find_includes"
30865     fi
30866   fi
30867
30868             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30869         else
30870             save_CXXFLAGS=$CXXFLAGS
30871             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30872
30873             cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h.  */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h.  */
30879
30880                     #include <Xm/Xm.h>
30881
30882 int
30883 main ()
30884 {
30885
30886                     int version;
30887                     version = xmUseVersion;
30888
30889   ;
30890   return 0;
30891 }
30892 _ACEOF
30893 rm -f conftest.$ac_objext
30894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30895   (eval $ac_compile) 2>conftest.er1
30896   ac_status=$?
30897   grep -v '^ *+' conftest.er1 >conftest.err
30898   rm -f conftest.er1
30899   cat conftest.err >&5
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } &&
30902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30904   (eval $ac_try) 2>&5
30905   ac_status=$?
30906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907   (exit $ac_status); }; } &&
30908          { ac_try='test -s conftest.$ac_objext'
30909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910   (eval $ac_try) 2>&5
30911   ac_status=$?
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); }; }; then
30914
30915                     echo "$as_me:$LINENO: result: found in default search path" >&5
30916 echo "${ECHO_T}found in default search path" >&6
30917                     COMPILED_X_PROGRAM=1
30918
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923
30924                     echo "$as_me:$LINENO: result: no" >&5
30925 echo "${ECHO_T}no" >&6
30926                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30927 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30928    { (exit 1); exit 1; }; }
30929
30930
30931 fi
30932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30933
30934             CXXFLAGS=$save_CXXFLAGS
30935         fi
30936
30937
30938         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30939 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30940
30941   ac_find_libraries=
30942   for ac_dir in $SEARCH_LIB;
30943   do
30944     for ac_extension in a so sl dylib dll.a; do
30945       if test -f "$ac_dir/libXm.$ac_extension"; then
30946         ac_find_libraries=$ac_dir
30947         break 2
30948       fi
30949     done
30950   done
30951
30952
30953         if test "x$ac_find_libraries" != "x" ; then
30954             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30955 echo "${ECHO_T}found in $ac_find_libraries" >&6
30956
30957
30958     if test "$ac_find_libraries" = "default location"; then
30959     ac_path_to_link=""
30960   else
30961     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30962     result=$?
30963     if test $result = 0; then
30964       ac_path_to_link=""
30965     else
30966       ac_path_to_link=" -L$ac_find_libraries"
30967     fi
30968   fi
30969
30970             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30971         else
30972                                                 save_CXXFLAGS=$CXXFLAGS
30973             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30974             save_LIBS="$LIBS"
30975             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30976
30977             cat >conftest.$ac_ext <<_ACEOF
30978 /* confdefs.h.  */
30979 _ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h.  */
30983
30984                     #include <Xm/Xm.h>
30985
30986 int
30987 main ()
30988 {
30989
30990                     int version;
30991                     version = xmUseVersion;
30992
30993   ;
30994   return 0;
30995 }
30996 _ACEOF
30997 rm -f conftest.$ac_objext conftest$ac_exeext
30998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30999   (eval $ac_link) 2>conftest.er1
31000   ac_status=$?
31001   grep -v '^ *+' conftest.er1 >conftest.err
31002   rm -f conftest.er1
31003   cat conftest.err >&5
31004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005   (exit $ac_status); } &&
31006          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008   (eval $ac_try) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; } &&
31012          { ac_try='test -s conftest$ac_exeext'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; }; then
31018
31019                     echo "$as_me:$LINENO: result: found in default search path" >&5
31020 echo "${ECHO_T}found in default search path" >&6
31021                     COMPILED_X_PROGRAM=1
31022
31023 else
31024   echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027
31028                     echo "$as_me:$LINENO: result: no" >&5
31029 echo "${ECHO_T}no" >&6
31030                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31031 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31032    { (exit 1); exit 1; }; }
31033
31034
31035 fi
31036 rm -f conftest.err conftest.$ac_objext \
31037       conftest$ac_exeext conftest.$ac_ext
31038
31039             CXXFLAGS=$save_CXXFLAGS
31040             LIBS="$save_LIBS"
31041         fi
31042
31043         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31044 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31045         libp_link=""
31046         libsm_ice_link=""
31047         libs_found=0
31048         for libp in "" " -lXp"; do
31049             if test "$libs_found" = "0"; then
31050                 for libsm_ice in "" " -lSM -lICE"; do
31051                     if test "$libs_found" = "0"; then
31052                         save_LIBS="$LIBS"
31053                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31054                         save_CXXFLAGS=$CXXFLAGS
31055                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31056
31057                         cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h.  */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h.  */
31063
31064                                 #include <Xm/Xm.h>
31065                                 #include <Xm/List.h>
31066
31067 int
31068 main ()
31069 {
31070
31071                                 XmString string = NULL;
31072                                 Widget w = NULL;
31073                                 int position = 0;
31074                                 XmListAddItem(w, string, position);
31075
31076   ;
31077   return 0;
31078 }
31079 _ACEOF
31080 rm -f conftest.$ac_objext conftest$ac_exeext
31081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31082   (eval $ac_link) 2>conftest.er1
31083   ac_status=$?
31084   grep -v '^ *+' conftest.er1 >conftest.err
31085   rm -f conftest.er1
31086   cat conftest.err >&5
31087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088   (exit $ac_status); } &&
31089          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31091   (eval $ac_try) 2>&5
31092   ac_status=$?
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); }; } &&
31095          { ac_try='test -s conftest$ac_exeext'
31096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097   (eval $ac_try) 2>&5
31098   ac_status=$?
31099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100   (exit $ac_status); }; }; then
31101
31102                                 libp_link="$libp"
31103                                 libsm_ice_link="$libsm_ice"
31104                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31105 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31106                                 libs_found=1
31107
31108 else
31109   echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112
31113
31114 fi
31115 rm -f conftest.err conftest.$ac_objext \
31116       conftest$ac_exeext conftest.$ac_ext
31117
31118                         LIBS="$save_LIBS"
31119                         CXXFLAGS=$save_CXXFLAGS
31120                     fi
31121                 done
31122             fi
31123         done
31124
31125         if test "$libs_found" = "0"; then
31126             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31127 echo "${ECHO_T}can't find the right libraries" >&6
31128             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31129 echo "$as_me: error: can't link a simple motif program" >&2;}
31130    { (exit 1); exit 1; }; }
31131         fi
31132
31133                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31134 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31135 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31136   echo $ECHO_N "(cached) $ECHO_C" >&6
31137 else
31138   ac_check_lib_save_LIBS=$LIBS
31139 LIBS="-lSgm  $LIBS"
31140 cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146
31147 /* Override any gcc2 internal prototype to avoid an error.  */
31148 #ifdef __cplusplus
31149 extern "C"
31150 #endif
31151 /* We use char because int might match the return type of a gcc2
31152    builtin and then its argument prototype would still apply.  */
31153 char SgCreateList ();
31154 int
31155 main ()
31156 {
31157 SgCreateList ();
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164   (eval $ac_link) 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } &&
31171          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173   (eval $ac_try) 2>&5
31174   ac_status=$?
31175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176   (exit $ac_status); }; } &&
31177          { ac_try='test -s conftest$ac_exeext'
31178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31179   (eval $ac_try) 2>&5
31180   ac_status=$?
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); }; }; then
31183   ac_cv_lib_Sgm_SgCreateList=yes
31184 else
31185   echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31187
31188 ac_cv_lib_Sgm_SgCreateList=no
31189 fi
31190 rm -f conftest.err conftest.$ac_objext \
31191       conftest$ac_exeext conftest.$ac_ext
31192 LIBS=$ac_check_lib_save_LIBS
31193 fi
31194 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31195 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31196 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31197   libsgm_link=" -lSgm"
31198 fi
31199
31200
31201         save_CXXFLAGS=$CXXFLAGS
31202         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31203
31204         echo "$as_me:$LINENO: checking for Motif 2" >&5
31205 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31206 if test "${wx_cv_lib_motif2+set}" = set; then
31207   echo $ECHO_N "(cached) $ECHO_C" >&6
31208 else
31209   cat >conftest.$ac_ext <<_ACEOF
31210 /* confdefs.h.  */
31211 _ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h.  */
31215
31216                             #include <Xm/Xm.h>
31217
31218 int
31219 main ()
31220 {
31221
31222                             #if XmVersion < 2000
31223                             Not Motif 2
31224                             #endif
31225
31226   ;
31227   return 0;
31228 }
31229 _ACEOF
31230 rm -f conftest.$ac_objext
31231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31232   (eval $ac_compile) 2>conftest.er1
31233   ac_status=$?
31234   grep -v '^ *+' conftest.er1 >conftest.err
31235   rm -f conftest.er1
31236   cat conftest.err >&5
31237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238   (exit $ac_status); } &&
31239          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241   (eval $ac_try) 2>&5
31242   ac_status=$?
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); }; } &&
31245          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31251   wx_cv_lib_motif2="yes"
31252 else
31253   echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31255
31256 wx_cv_lib_motif2="no"
31257 fi
31258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31259 fi
31260 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31261 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31262         if test "$wx_cv_lib_motif2" = "yes"; then
31263             cat >>confdefs.h <<\_ACEOF
31264 #define __WXMOTIF20__ 1
31265 _ACEOF
31266
31267         else
31268             cat >>confdefs.h <<\_ACEOF
31269 #define __WXMOTIF20__ 0
31270 _ACEOF
31271
31272         fi
31273
31274         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31275 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
31276 if test "${wx_cv_lib_lesstif+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285
31286                             #include <Xm/Xm.h>
31287
31288 int
31289 main ()
31290 {
31291
31292                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31293                             Not Lesstif
31294                             #endif
31295
31296   ;
31297   return 0;
31298 }
31299 _ACEOF
31300 rm -f conftest.$ac_objext
31301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31302   (eval $ac_compile) 2>conftest.er1
31303   ac_status=$?
31304   grep -v '^ *+' conftest.er1 >conftest.err
31305   rm -f conftest.er1
31306   cat conftest.err >&5
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); } &&
31309          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311   (eval $ac_try) 2>&5
31312   ac_status=$?
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); }; } &&
31315          { ac_try='test -s conftest.$ac_objext'
31316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317   (eval $ac_try) 2>&5
31318   ac_status=$?
31319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320   (exit $ac_status); }; }; then
31321   wx_cv_lib_lesstif="yes"
31322 else
31323   echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326 wx_cv_lib_lesstif="no"
31327 fi
31328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31329
31330 fi
31331 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31332 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31333         if test "$wx_cv_lib_lesstif" = "yes"; then
31334             cat >>confdefs.h <<\_ACEOF
31335 #define __WXLESSTIF__ 1
31336 _ACEOF
31337
31338         else
31339             cat >>confdefs.h <<\_ACEOF
31340 #define __WXLESSTIF__ 0
31341 _ACEOF
31342
31343         fi
31344
31345         CXXFLAGS=$save_CXXFLAGS
31346
31347         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31348         TOOLKIT=MOTIF
31349         GUIDIST=MOTIF_DIST
31350     fi
31351
31352         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31353                 if test "$wxUSE_LIBXPM" = "sys"; then
31354             echo "$as_me:$LINENO: checking for Xpm library" >&5
31355 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31356
31357   ac_find_libraries=
31358   for ac_dir in $SEARCH_LIB;
31359   do
31360     for ac_extension in a so sl dylib dll.a; do
31361       if test -f "$ac_dir/libXpm.$ac_extension"; then
31362         ac_find_libraries=$ac_dir
31363         break 2
31364       fi
31365     done
31366   done
31367
31368             if test "$ac_find_libraries" != "" ; then
31369
31370     if test "$ac_find_libraries" = "default location"; then
31371     ac_path_to_link=""
31372   else
31373     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31374     result=$?
31375     if test $result = 0; then
31376       ac_path_to_link=""
31377     else
31378       ac_path_to_link=" -L$ac_find_libraries"
31379     fi
31380   fi
31381
31382                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31383                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31384 echo "${ECHO_T}found in $ac_find_libraries" >&6
31385
31386                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31387 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31388 if test "${wx_cv_x11_xpm_h+set}" = set; then
31389   echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391
31392                         save_CXXFLAGS=$CXXFLAGS
31393                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31394
31395                         cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401
31402                                 #include <X11/xpm.h>
31403
31404 int
31405 main ()
31406 {
31407
31408                                 int version;
31409                                 version = XpmLibraryVersion();
31410
31411   ;
31412   return 0;
31413 }
31414 _ACEOF
31415 rm -f conftest.$ac_objext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31417   (eval $ac_compile) 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } &&
31424          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426   (eval $ac_try) 2>&5
31427   ac_status=$?
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); }; } &&
31430          { ac_try='test -s conftest.$ac_objext'
31431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432   (eval $ac_try) 2>&5
31433   ac_status=$?
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); }; }; then
31436   wx_cv_x11_xpm_h=yes
31437 else
31438   echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441 wx_cv_x11_xpm_h=no
31442
31443 fi
31444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31445
31446                         CXXFLAGS=$save_CXXFLAGS
31447
31448
31449 fi
31450 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31451 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31452
31453                 if test $wx_cv_x11_xpm_h = "yes"; then
31454                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31455                     cat >>confdefs.h <<\_ACEOF
31456 #define wxHAVE_LIB_XPM 1
31457 _ACEOF
31458
31459                 else
31460                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31461 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31462                 fi
31463             fi
31464
31465         fi
31466
31467                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31468 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31469 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31470   echo $ECHO_N "(cached) $ECHO_C" >&6
31471 else
31472   ac_check_lib_save_LIBS=$LIBS
31473 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
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
31481 /* Override any gcc2 internal prototype to avoid an error.  */
31482 #ifdef __cplusplus
31483 extern "C"
31484 #endif
31485 /* We use char because int might match the return type of a gcc2
31486    builtin and then its argument prototype would still apply.  */
31487 char XShapeQueryExtension ();
31488 int
31489 main ()
31490 {
31491 XShapeQueryExtension ();
31492   ;
31493   return 0;
31494 }
31495 _ACEOF
31496 rm -f conftest.$ac_objext conftest$ac_exeext
31497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31498   (eval $ac_link) 2>conftest.er1
31499   ac_status=$?
31500   grep -v '^ *+' conftest.er1 >conftest.err
31501   rm -f conftest.er1
31502   cat conftest.err >&5
31503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504   (exit $ac_status); } &&
31505          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31507   (eval $ac_try) 2>&5
31508   ac_status=$?
31509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510   (exit $ac_status); }; } &&
31511          { ac_try='test -s conftest$ac_exeext'
31512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513   (eval $ac_try) 2>&5
31514   ac_status=$?
31515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516   (exit $ac_status); }; }; then
31517   ac_cv_lib_Xext_XShapeQueryExtension=yes
31518 else
31519   echo "$as_me: failed program was:" >&5
31520 sed 's/^/| /' conftest.$ac_ext >&5
31521
31522 ac_cv_lib_Xext_XShapeQueryExtension=no
31523 fi
31524 rm -f conftest.err conftest.$ac_objext \
31525       conftest$ac_exeext conftest.$ac_ext
31526 LIBS=$ac_check_lib_save_LIBS
31527 fi
31528 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31529 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31530 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31531
31532                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31533                       wxHAVE_XEXT_LIB=1
31534
31535 fi
31536
31537
31538         if test "$wxHAVE_XEXT_LIB" = 1; then
31539             save_CXXFLAGS="$CXXFLAGS"
31540             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31541
31542             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31543 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31544             cat >conftest.$ac_ext <<_ACEOF
31545 /* confdefs.h.  */
31546 _ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h.  */
31550
31551                             #include <X11/Xlib.h>
31552                             #include <X11/extensions/shape.h>
31553
31554 int
31555 main ()
31556 {
31557
31558                             int dummy1, dummy2;
31559                             XShapeQueryExtension((Display*)NULL,
31560                                                  (int*)NULL, (int*)NULL);
31561
31562   ;
31563   return 0;
31564 }
31565 _ACEOF
31566 rm -f conftest.$ac_objext
31567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31568   (eval $ac_compile) 2>conftest.er1
31569   ac_status=$?
31570   grep -v '^ *+' conftest.er1 >conftest.err
31571   rm -f conftest.er1
31572   cat conftest.err >&5
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); } &&
31575          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577   (eval $ac_try) 2>&5
31578   ac_status=$?
31579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580   (exit $ac_status); }; } &&
31581          { ac_try='test -s conftest.$ac_objext'
31582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583   (eval $ac_try) 2>&5
31584   ac_status=$?
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); }; }; then
31587
31588                             cat >>confdefs.h <<\_ACEOF
31589 #define HAVE_XSHAPE 1
31590 _ACEOF
31591
31592                             echo "$as_me:$LINENO: result: found" >&5
31593 echo "${ECHO_T}found" >&6
31594
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599
31600                             echo "$as_me:$LINENO: result: not found" >&5
31601 echo "${ECHO_T}not found" >&6
31602
31603 fi
31604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31605             CXXFLAGS="$save_CXXFLAGS"
31606
31607         fi
31608     fi
31609
31610     if test "$wxUSE_MAC" = 1; then
31611         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31612 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31613         if test "$GCC" = yes; then
31614             echo "$as_me:$LINENO: result: gcc" >&5
31615 echo "${ECHO_T}gcc" >&6
31616             CPPFLAGS_PASCAL="-fpascal-strings"
31617         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31618             echo "$as_me:$LINENO: result: xlc" >&5
31619 echo "${ECHO_T}xlc" >&6
31620             CPPFLAGS_PASCAL="-qmacpstr"
31621         else
31622             echo "$as_me:$LINENO: result: none" >&5
31623 echo "${ECHO_T}none" >&6
31624         fi
31625
31626         if test "x$wxUSE_UNIX" = "xyes"; then
31627             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31628         else
31629                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31630         fi
31631
31632         TOOLKIT=MAC
31633                 GUIDIST=MACX_DIST
31634                         WXBASEPORT="_carbon"
31635     fi
31636
31637     if test "$wxUSE_COCOA" = 1; then
31638         TOOLKIT=COCOA
31639         GUIDIST=COCOA_DIST
31640     fi
31641
31642     if test "$wxUSE_PM" = 1; then
31643         TOOLKIT=PM
31644         GUIDIST=PM_DIST
31645         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31646 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31647 if test "${wx_cv_spbcdata+set}" = set; then
31648   echo $ECHO_N "(cached) $ECHO_C" >&6
31649 else
31650
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
31658                         #define INCL_PM
31659                         #include <os2.h>
31660
31661 int
31662 main ()
31663 {
31664
31665                         SPBCDATA test;
31666
31667   ;
31668   return 0;
31669 }
31670 _ACEOF
31671 rm -f conftest.$ac_objext
31672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31673   (eval $ac_compile) 2>conftest.er1
31674   ac_status=$?
31675   grep -v '^ *+' conftest.er1 >conftest.err
31676   rm -f conftest.er1
31677   cat conftest.err >&5
31678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679   (exit $ac_status); } &&
31680          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31682   (eval $ac_try) 2>&5
31683   ac_status=$?
31684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); }; } &&
31686          { ac_try='test -s conftest.$ac_objext'
31687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31688   (eval $ac_try) 2>&5
31689   ac_status=$?
31690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691   (exit $ac_status); }; }; then
31692   wx_cv_spbcdata=yes
31693 else
31694   echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.$ac_ext >&5
31696
31697 wx_cv_spbcdata=no
31698
31699 fi
31700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31701
31702
31703 fi
31704 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31705 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31706
31707         if test $wx_cv_spbcdata = "yes"; then
31708             cat >>confdefs.h <<\_ACEOF
31709 #define HAVE_SPBCDATA 1
31710 _ACEOF
31711
31712         fi
31713     fi
31714
31715         if test "$TOOLKIT" = "PM" ; then
31716         TOOLKIT_DIR="os2"
31717     else
31718         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31719     fi
31720
31721     if test "$wxUSE_UNIVERSAL" = "yes"; then
31722         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31723         WIDGET_SET=univ
31724     fi
31725
31726         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31727     DISTDIR="wx\$(TOOLKIT)"
31728 else
31729     USE_GUI=0
31730
31731             TOOLKIT_DIR="base"
31732
31733         if test "$USE_WIN32" = 1 ; then
31734                         TOOLKIT="MSW"
31735     fi
31736
31737         GUIDIST="BASE_DIST"
31738     DISTDIR="wxBase"
31739 fi
31740
31741
31742 if test "$wxUSE_GUI" = "yes"; then
31743     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31744
31745 for ac_header in X11/Xlib.h
31746 do
31747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31749   echo "$as_me:$LINENO: checking for $ac_header" >&5
31750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31752   echo $ECHO_N "(cached) $ECHO_C" >&6
31753 fi
31754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31756 else
31757   # Is the header compilable?
31758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31760 cat >conftest.$ac_ext <<_ACEOF
31761 /* confdefs.h.  */
31762 _ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h.  */
31766 $ac_includes_default
31767 #include <$ac_header>
31768 _ACEOF
31769 rm -f conftest.$ac_objext
31770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31771   (eval $ac_compile) 2>conftest.er1
31772   ac_status=$?
31773   grep -v '^ *+' conftest.er1 >conftest.err
31774   rm -f conftest.er1
31775   cat conftest.err >&5
31776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777   (exit $ac_status); } &&
31778          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780   (eval $ac_try) 2>&5
31781   ac_status=$?
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); }; } &&
31784          { ac_try='test -s conftest.$ac_objext'
31785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786   (eval $ac_try) 2>&5
31787   ac_status=$?
31788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789   (exit $ac_status); }; }; then
31790   ac_header_compiler=yes
31791 else
31792   echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31794
31795 ac_header_compiler=no
31796 fi
31797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31799 echo "${ECHO_T}$ac_header_compiler" >&6
31800
31801 # Is the header present?
31802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31804 cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810 #include <$ac_header>
31811 _ACEOF
31812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31814   ac_status=$?
31815   grep -v '^ *+' conftest.er1 >conftest.err
31816   rm -f conftest.er1
31817   cat conftest.err >&5
31818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819   (exit $ac_status); } >/dev/null; then
31820   if test -s conftest.err; then
31821     ac_cpp_err=$ac_cxx_preproc_warn_flag
31822     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31823   else
31824     ac_cpp_err=
31825   fi
31826 else
31827   ac_cpp_err=yes
31828 fi
31829 if test -z "$ac_cpp_err"; then
31830   ac_header_preproc=yes
31831 else
31832   echo "$as_me: failed program was:" >&5
31833 sed 's/^/| /' conftest.$ac_ext >&5
31834
31835   ac_header_preproc=no
31836 fi
31837 rm -f conftest.err conftest.$ac_ext
31838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31839 echo "${ECHO_T}$ac_header_preproc" >&6
31840
31841 # So?  What about this header?
31842 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31843   yes:no: )
31844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31848     ac_header_preproc=yes
31849     ;;
31850   no:yes:* )
31851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31863     (
31864       cat <<\_ASBOX
31865 ## ----------------------------------------- ##
31866 ## Report this to wx-dev@lists.wxwidgets.org ##
31867 ## ----------------------------------------- ##
31868 _ASBOX
31869     ) |
31870       sed "s/^/$as_me: WARNING:     /" >&2
31871     ;;
31872 esac
31873 echo "$as_me:$LINENO: checking for $ac_header" >&5
31874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31876   echo $ECHO_N "(cached) $ECHO_C" >&6
31877 else
31878   eval "$as_ac_Header=\$ac_header_preproc"
31879 fi
31880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31882
31883 fi
31884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31885   cat >>confdefs.h <<_ACEOF
31886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31887 _ACEOF
31888
31889 fi
31890
31891 done
31892
31893
31894 for ac_header in X11/XKBlib.h
31895 do
31896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31897 echo "$as_me:$LINENO: checking for $ac_header" >&5
31898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31900   echo $ECHO_N "(cached) $ECHO_C" >&6
31901 else
31902   cat >conftest.$ac_ext <<_ACEOF
31903 /* confdefs.h.  */
31904 _ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h.  */
31908
31909                           #if HAVE_X11_XLIB_H
31910                             #include <X11/Xlib.h>
31911                           #endif
31912
31913
31914 #include <$ac_header>
31915 _ACEOF
31916 rm -f conftest.$ac_objext
31917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31918   (eval $ac_compile) 2>conftest.er1
31919   ac_status=$?
31920   grep -v '^ *+' conftest.er1 >conftest.err
31921   rm -f conftest.er1
31922   cat conftest.err >&5
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); } &&
31925          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927   (eval $ac_try) 2>&5
31928   ac_status=$?
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); }; } &&
31931          { ac_try='test -s conftest.$ac_objext'
31932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933   (eval $ac_try) 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; }; then
31937   eval "$as_ac_Header=yes"
31938 else
31939   echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31941
31942 eval "$as_ac_Header=no"
31943 fi
31944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31945 fi
31946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31949   cat >>confdefs.h <<_ACEOF
31950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31951 _ACEOF
31952
31953 fi
31954
31955 done
31956
31957     fi
31958 fi
31959
31960
31961
31962 IODBC_C_SRC=""
31963
31964
31965 if test "$TOOLKIT" != "MSW" ; then
31966
31967     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31968
31969         if test "${ac_cv_header_sql_h+set}" = set; then
31970   echo "$as_me:$LINENO: checking for sql.h" >&5
31971 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31972 if test "${ac_cv_header_sql_h+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 fi
31975 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31976 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31977 else
31978   # Is the header compilable?
31979 echo "$as_me:$LINENO: checking sql.h usability" >&5
31980 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31981 cat >conftest.$ac_ext <<_ACEOF
31982 /* confdefs.h.  */
31983 _ACEOF
31984 cat confdefs.h >>conftest.$ac_ext
31985 cat >>conftest.$ac_ext <<_ACEOF
31986 /* end confdefs.h.  */
31987 $ac_includes_default
31988 #include <sql.h>
31989 _ACEOF
31990 rm -f conftest.$ac_objext
31991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31992   (eval $ac_compile) 2>conftest.er1
31993   ac_status=$?
31994   grep -v '^ *+' conftest.er1 >conftest.err
31995   rm -f conftest.er1
31996   cat conftest.err >&5
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); } &&
31999          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001   (eval $ac_try) 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; } &&
32005          { ac_try='test -s conftest.$ac_objext'
32006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007   (eval $ac_try) 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); }; }; then
32011   ac_header_compiler=yes
32012 else
32013   echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016 ac_header_compiler=no
32017 fi
32018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32020 echo "${ECHO_T}$ac_header_compiler" >&6
32021
32022 # Is the header present?
32023 echo "$as_me:$LINENO: checking sql.h presence" >&5
32024 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32025 cat >conftest.$ac_ext <<_ACEOF
32026 /* confdefs.h.  */
32027 _ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h.  */
32031 #include <sql.h>
32032 _ACEOF
32033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32035   ac_status=$?
32036   grep -v '^ *+' conftest.er1 >conftest.err
32037   rm -f conftest.er1
32038   cat conftest.err >&5
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); } >/dev/null; then
32041   if test -s conftest.err; then
32042     ac_cpp_err=$ac_cxx_preproc_warn_flag
32043     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32044   else
32045     ac_cpp_err=
32046   fi
32047 else
32048   ac_cpp_err=yes
32049 fi
32050 if test -z "$ac_cpp_err"; then
32051   ac_header_preproc=yes
32052 else
32053   echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32055
32056   ac_header_preproc=no
32057 fi
32058 rm -f conftest.err conftest.$ac_ext
32059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32060 echo "${ECHO_T}$ac_header_preproc" >&6
32061
32062 # So?  What about this header?
32063 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32064   yes:no: )
32065     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32066 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32067     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32068 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32069     ac_header_preproc=yes
32070     ;;
32071   no:yes:* )
32072     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32073 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32074     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
32075 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
32076     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32077 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32078     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
32079 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32080     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32081 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32082     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32083 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
32084     (
32085       cat <<\_ASBOX
32086 ## ----------------------------------------- ##
32087 ## Report this to wx-dev@lists.wxwidgets.org ##
32088 ## ----------------------------------------- ##
32089 _ASBOX
32090     ) |
32091       sed "s/^/$as_me: WARNING:     /" >&2
32092     ;;
32093 esac
32094 echo "$as_me:$LINENO: checking for sql.h" >&5
32095 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32096 if test "${ac_cv_header_sql_h+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   ac_cv_header_sql_h=$ac_header_preproc
32100 fi
32101 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32102 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32103
32104 fi
32105 if test $ac_cv_header_sql_h = yes; then
32106   found_sql_h=1
32107 fi
32108
32109
32110         if test "x$found_sql_h" = "x1" ; then
32111             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32112 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32113 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32114   echo $ECHO_N "(cached) $ECHO_C" >&6
32115 else
32116   ac_check_lib_save_LIBS=$LIBS
32117 LIBS="-liodbc  $LIBS"
32118 cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124
32125 /* Override any gcc2 internal prototype to avoid an error.  */
32126 #ifdef __cplusplus
32127 extern "C"
32128 #endif
32129 /* We use char because int might match the return type of a gcc2
32130    builtin and then its argument prototype would still apply.  */
32131 char SQLAllocEnv ();
32132 int
32133 main ()
32134 {
32135 SQLAllocEnv ();
32136   ;
32137   return 0;
32138 }
32139 _ACEOF
32140 rm -f conftest.$ac_objext conftest$ac_exeext
32141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32142   (eval $ac_link) 2>conftest.er1
32143   ac_status=$?
32144   grep -v '^ *+' conftest.er1 >conftest.err
32145   rm -f conftest.er1
32146   cat conftest.err >&5
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); } &&
32149          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151   (eval $ac_try) 2>&5
32152   ac_status=$?
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); }; } &&
32155          { ac_try='test -s conftest$ac_exeext'
32156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32157   (eval $ac_try) 2>&5
32158   ac_status=$?
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); }; }; then
32161   ac_cv_lib_iodbc_SQLAllocEnv=yes
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166 ac_cv_lib_iodbc_SQLAllocEnv=no
32167 fi
32168 rm -f conftest.err conftest.$ac_objext \
32169       conftest$ac_exeext conftest.$ac_ext
32170 LIBS=$ac_check_lib_save_LIBS
32171 fi
32172 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32173 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32174 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32175   ODBC_LINK=" -liodbc"
32176 else
32177
32178                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32179 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32180 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32181   echo $ECHO_N "(cached) $ECHO_C" >&6
32182 else
32183   ac_check_lib_save_LIBS=$LIBS
32184 LIBS="-lunixodbc  $LIBS"
32185 cat >conftest.$ac_ext <<_ACEOF
32186 /* confdefs.h.  */
32187 _ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h.  */
32191
32192 /* Override any gcc2 internal prototype to avoid an error.  */
32193 #ifdef __cplusplus
32194 extern "C"
32195 #endif
32196 /* We use char because int might match the return type of a gcc2
32197    builtin and then its argument prototype would still apply.  */
32198 char SQLAllocEnv ();
32199 int
32200 main ()
32201 {
32202 SQLAllocEnv ();
32203   ;
32204   return 0;
32205 }
32206 _ACEOF
32207 rm -f conftest.$ac_objext conftest$ac_exeext
32208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32209   (eval $ac_link) 2>conftest.er1
32210   ac_status=$?
32211   grep -v '^ *+' conftest.er1 >conftest.err
32212   rm -f conftest.er1
32213   cat conftest.err >&5
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); } &&
32216          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32218   (eval $ac_try) 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; } &&
32222          { ac_try='test -s conftest$ac_exeext'
32223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32224   (eval $ac_try) 2>&5
32225   ac_status=$?
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); }; }; then
32228   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32229 else
32230   echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32232
32233 ac_cv_lib_unixodbc_SQLAllocEnv=no
32234 fi
32235 rm -f conftest.err conftest.$ac_objext \
32236       conftest$ac_exeext conftest.$ac_ext
32237 LIBS=$ac_check_lib_save_LIBS
32238 fi
32239 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32240 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32241 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32242   ODBC_LINK=" -lunixodbc"
32243 else
32244
32245                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32246 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32247 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32248   echo $ECHO_N "(cached) $ECHO_C" >&6
32249 else
32250   ac_check_lib_save_LIBS=$LIBS
32251 LIBS="-lodbc  $LIBS"
32252 cat >conftest.$ac_ext <<_ACEOF
32253 /* confdefs.h.  */
32254 _ACEOF
32255 cat confdefs.h >>conftest.$ac_ext
32256 cat >>conftest.$ac_ext <<_ACEOF
32257 /* end confdefs.h.  */
32258
32259 /* Override any gcc2 internal prototype to avoid an error.  */
32260 #ifdef __cplusplus
32261 extern "C"
32262 #endif
32263 /* We use char because int might match the return type of a gcc2
32264    builtin and then its argument prototype would still apply.  */
32265 char SQLAllocEnv ();
32266 int
32267 main ()
32268 {
32269 SQLAllocEnv ();
32270   ;
32271   return 0;
32272 }
32273 _ACEOF
32274 rm -f conftest.$ac_objext conftest$ac_exeext
32275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32276   (eval $ac_link) 2>conftest.er1
32277   ac_status=$?
32278   grep -v '^ *+' conftest.er1 >conftest.err
32279   rm -f conftest.er1
32280   cat conftest.err >&5
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); } &&
32283          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285   (eval $ac_try) 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; } &&
32289          { ac_try='test -s conftest$ac_exeext'
32290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291   (eval $ac_try) 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; }; then
32295   ac_cv_lib_odbc_SQLAllocEnv=yes
32296 else
32297   echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32299
32300 ac_cv_lib_odbc_SQLAllocEnv=no
32301 fi
32302 rm -f conftest.err conftest.$ac_objext \
32303       conftest$ac_exeext conftest.$ac_ext
32304 LIBS=$ac_check_lib_save_LIBS
32305 fi
32306 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32307 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32308 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32309   ODBC_LINK=" -lodbc"
32310 fi
32311
32312
32313 fi
32314
32315
32316 fi
32317
32318         fi
32319         if test "x$ODBC_LINK" = "x" ; then
32320             if test "$wxUSE_ODBC" = "sys" ; then
32321                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32322 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32323    { (exit 1); exit 1; }; }
32324             else
32325                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32326 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32327                 wxUSE_ODBC=builtin
32328             fi
32329         else
32330                         wxUSE_ODBC=sys
32331         fi
32332     fi
32333
32334     if test "$wxUSE_ODBC" = "builtin" ; then
32335         cat >>confdefs.h <<\_ACEOF
32336 #define wxUSE_BUILTIN_IODBC 1
32337 _ACEOF
32338
32339     fi
32340 fi
32341
32342 if test "$wxUSE_ODBC" != "no" ; then
32343     cat >>confdefs.h <<\_ACEOF
32344 #define wxUSE_ODBC 1
32345 _ACEOF
32346
32347     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32348
32349         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32350 fi
32351
32352
32353 if test "$wxUSE_DISPLAY" = "yes"; then
32354     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32355         echo "$as_me:$LINENO: checking for Xinerama" >&5
32356 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32357
32358   ac_find_libraries=
32359   for ac_dir in $SEARCH_LIB;
32360   do
32361     for ac_extension in a so sl dylib dll.a; do
32362       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32363         ac_find_libraries=$ac_dir
32364         break 2
32365       fi
32366     done
32367   done
32368
32369         if test "$ac_find_libraries" != "" ; then
32370
32371     if test "$ac_find_libraries" = "default location"; then
32372     ac_path_to_link=""
32373   else
32374     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32375     result=$?
32376     if test $result = 0; then
32377       ac_path_to_link=""
32378     else
32379       ac_path_to_link=" -L$ac_find_libraries"
32380     fi
32381   fi
32382
32383             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32384                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32385             fi
32386             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32387             echo "$as_me:$LINENO: result: yes" >&5
32388 echo "${ECHO_T}yes" >&6
32389
32390             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32391 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32392
32393   ac_find_libraries=
32394   for ac_dir in $SEARCH_LIB;
32395   do
32396     for ac_extension in a so sl dylib dll.a; do
32397       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32398         ac_find_libraries=$ac_dir
32399         break 2
32400       fi
32401     done
32402   done
32403
32404             if test "$ac_find_libraries" != "" ; then
32405                 echo "$as_me:$LINENO: result: yes" >&5
32406 echo "${ECHO_T}yes" >&6
32407
32408 for ac_header in X11/extensions/xf86vmode.h
32409 do
32410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32411 echo "$as_me:$LINENO: checking for $ac_header" >&5
32412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   cat >conftest.$ac_ext <<_ACEOF
32417 /* confdefs.h.  */
32418 _ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h.  */
32422
32423                                       #if HAVE_X11_XLIB_H
32424                                         #include <X11/Xlib.h>
32425                                       #endif
32426
32427
32428 #include <$ac_header>
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32432   (eval $ac_compile) 2>conftest.er1
32433   ac_status=$?
32434   grep -v '^ *+' conftest.er1 >conftest.err
32435   rm -f conftest.er1
32436   cat conftest.err >&5
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); } &&
32439          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441   (eval $ac_try) 2>&5
32442   ac_status=$?
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); }; } &&
32445          { ac_try='test -s conftest.$ac_objext'
32446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447   (eval $ac_try) 2>&5
32448   ac_status=$?
32449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450   (exit $ac_status); }; }; then
32451   eval "$as_ac_Header=yes"
32452 else
32453   echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32455
32456 eval "$as_ac_Header=no"
32457 fi
32458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32459 fi
32460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32463   cat >>confdefs.h <<_ACEOF
32464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32465 _ACEOF
32466
32467                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32468
32469 fi
32470
32471 done
32472
32473             else
32474                 echo "$as_me:$LINENO: result: no" >&5
32475 echo "${ECHO_T}no" >&6
32476             fi
32477
32478         else
32479             echo "$as_me:$LINENO: result: no" >&5
32480 echo "${ECHO_T}no" >&6
32481             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32482 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32483             wxUSE_DISPLAY="no"
32484         fi
32485     elif test "$wxUSE_MSW" = 1; then
32486
32487 for ac_header in ddraw.h
32488 do
32489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32490 echo "$as_me:$LINENO: checking for $ac_header" >&5
32491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32493   echo $ECHO_N "(cached) $ECHO_C" >&6
32494 else
32495   cat >conftest.$ac_ext <<_ACEOF
32496 /* confdefs.h.  */
32497 _ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h.  */
32501 #include <windows.h>
32502
32503 #include <$ac_header>
32504 _ACEOF
32505 rm -f conftest.$ac_objext
32506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32507   (eval $ac_compile) 2>conftest.er1
32508   ac_status=$?
32509   grep -v '^ *+' conftest.er1 >conftest.err
32510   rm -f conftest.er1
32511   cat conftest.err >&5
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); } &&
32514          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516   (eval $ac_try) 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); }; } &&
32520          { ac_try='test -s conftest.$ac_objext'
32521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522   (eval $ac_try) 2>&5
32523   ac_status=$?
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); }; }; then
32526   eval "$as_ac_Header=yes"
32527 else
32528   echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531 eval "$as_ac_Header=no"
32532 fi
32533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32534 fi
32535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32538   cat >>confdefs.h <<_ACEOF
32539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32540 _ACEOF
32541
32542 fi
32543
32544 done
32545
32546     fi
32547 fi
32548
32549
32550 USE_OPENGL=0
32551 if test "$wxUSE_OPENGL" = "yes"; then
32552     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32553         OPENGL_LIBS="-framework OpenGL -framework AGL"
32554     elif test "$wxUSE_MSW" = 1; then
32555         OPENGL_LIBS="-lopengl32 -lglu32"
32556     else
32557
32558
32559 ac_find_includes=
32560 for ac_dir in $SEARCH_INCLUDE /usr/include;
32561   do
32562     if test -f "$ac_dir/GL/gl.h"; then
32563       ac_find_includes=$ac_dir
32564       break
32565     fi
32566   done
32567
32568         if test "$ac_find_includes" != "" ; then
32569             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32570 echo "${ECHO_T}found in $ac_find_includes" >&6
32571
32572     if test "x$ac_find_includes" = "x/usr/include"; then
32573     ac_path_to_include=""
32574   else
32575     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32576     result=$?
32577     if test $result = 0; then
32578       ac_path_to_include=""
32579     else
32580       ac_path_to_include=" -I$ac_find_includes"
32581     fi
32582   fi
32583
32584             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32585         fi
32586
32587         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32588   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32589 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32590 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32591   echo $ECHO_N "(cached) $ECHO_C" >&6
32592 fi
32593 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32594 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32595 else
32596   # Is the header compilable?
32597 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32598 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32599 cat >conftest.$ac_ext <<_ACEOF
32600 /* confdefs.h.  */
32601 _ACEOF
32602 cat confdefs.h >>conftest.$ac_ext
32603 cat >>conftest.$ac_ext <<_ACEOF
32604 /* end confdefs.h.  */
32605 $ac_includes_default
32606 #include <GL/gl.h>
32607 _ACEOF
32608 rm -f conftest.$ac_objext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32610   (eval $ac_compile) 2>conftest.er1
32611   ac_status=$?
32612   grep -v '^ *+' conftest.er1 >conftest.err
32613   rm -f conftest.er1
32614   cat conftest.err >&5
32615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616   (exit $ac_status); } &&
32617          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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          { ac_try='test -s conftest.$ac_objext'
32624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32625   (eval $ac_try) 2>&5
32626   ac_status=$?
32627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628   (exit $ac_status); }; }; then
32629   ac_header_compiler=yes
32630 else
32631   echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634 ac_header_compiler=no
32635 fi
32636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32638 echo "${ECHO_T}$ac_header_compiler" >&6
32639
32640 # Is the header present?
32641 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32642 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32643 cat >conftest.$ac_ext <<_ACEOF
32644 /* confdefs.h.  */
32645 _ACEOF
32646 cat confdefs.h >>conftest.$ac_ext
32647 cat >>conftest.$ac_ext <<_ACEOF
32648 /* end confdefs.h.  */
32649 #include <GL/gl.h>
32650 _ACEOF
32651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } >/dev/null; then
32659   if test -s conftest.err; then
32660     ac_cpp_err=$ac_cxx_preproc_warn_flag
32661     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32662   else
32663     ac_cpp_err=
32664   fi
32665 else
32666   ac_cpp_err=yes
32667 fi
32668 if test -z "$ac_cpp_err"; then
32669   ac_header_preproc=yes
32670 else
32671   echo "$as_me: failed program was:" >&5
32672 sed 's/^/| /' conftest.$ac_ext >&5
32673
32674   ac_header_preproc=no
32675 fi
32676 rm -f conftest.err conftest.$ac_ext
32677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32678 echo "${ECHO_T}$ac_header_preproc" >&6
32679
32680 # So?  What about this header?
32681 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32682   yes:no: )
32683     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32684 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32685     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32686 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32687     ac_header_preproc=yes
32688     ;;
32689   no:yes:* )
32690     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32691 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32692     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32693 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32694     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32695 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32696     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32697 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32698     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32699 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32700     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32701 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32702     (
32703       cat <<\_ASBOX
32704 ## ----------------------------------------- ##
32705 ## Report this to wx-dev@lists.wxwidgets.org ##
32706 ## ----------------------------------------- ##
32707 _ASBOX
32708     ) |
32709       sed "s/^/$as_me: WARNING:     /" >&2
32710     ;;
32711 esac
32712 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32713 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32714 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32715   echo $ECHO_N "(cached) $ECHO_C" >&6
32716 else
32717   ac_cv_header_GL_gl_h=$ac_header_preproc
32718 fi
32719 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32720 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32721
32722 fi
32723 if test $ac_cv_header_GL_gl_h = yes; then
32724
32725                 found_gl=0
32726
32727                 echo "$as_me:$LINENO: checking for -lGL" >&5
32728 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32729
32730   ac_find_libraries=
32731   for ac_dir in $SEARCH_LIB;
32732   do
32733     for ac_extension in a so sl dylib dll.a; do
32734       if test -f "$ac_dir/libGL.$ac_extension"; then
32735         ac_find_libraries=$ac_dir
32736         break 2
32737       fi
32738     done
32739   done
32740
32741                 if test "$ac_find_libraries" != "" ; then
32742                     echo "$as_me:$LINENO: result: yes" >&5
32743 echo "${ECHO_T}yes" >&6
32744
32745
32746     if test "$ac_find_libraries" = "default location"; then
32747     ac_path_to_link=""
32748   else
32749     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32750     result=$?
32751     if test $result = 0; then
32752       ac_path_to_link=""
32753     else
32754       ac_path_to_link=" -L$ac_find_libraries"
32755     fi
32756   fi
32757
32758                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32759                         LDFLAGS_GL="$ac_path_to_link"
32760                     fi
32761
32762                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
32763 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
32764
32765   ac_find_libraries=
32766   for ac_dir in $SEARCH_LIB;
32767   do
32768     for ac_extension in a so sl dylib dll.a; do
32769       if test -f "$ac_dir/libGLU.$ac_extension"; then
32770         ac_find_libraries=$ac_dir
32771         break 2
32772       fi
32773     done
32774   done
32775
32776                     if test "$ac_find_libraries" != "" ; then
32777
32778     if test "$ac_find_libraries" = "default location"; then
32779     ac_path_to_link=""
32780   else
32781     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32782     result=$?
32783     if test $result = 0; then
32784       ac_path_to_link=""
32785     else
32786       ac_path_to_link=" -L$ac_find_libraries"
32787     fi
32788   fi
32789
32790                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32791                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32792                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32793                         fi
32794
32795                         found_gl=1
32796                         OPENGL_LIBS="-lGL -lGLU"
32797                         echo "$as_me:$LINENO: result: yes" >&5
32798 echo "${ECHO_T}yes" >&6
32799                     else
32800                         echo "$as_me:$LINENO: result: no" >&5
32801 echo "${ECHO_T}no" >&6
32802                     fi
32803                 else
32804                     echo "$as_me:$LINENO: result: no" >&5
32805 echo "${ECHO_T}no" >&6
32806                 fi
32807
32808                 if test "$found_gl" != 1; then
32809                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32810 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32811
32812   ac_find_libraries=
32813   for ac_dir in $SEARCH_LIB;
32814   do
32815     for ac_extension in a so sl dylib dll.a; do
32816       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32817         ac_find_libraries=$ac_dir
32818         break 2
32819       fi
32820     done
32821   done
32822
32823                     if test "$ac_find_libraries" != "" ; then
32824
32825     if test "$ac_find_libraries" = "default location"; then
32826     ac_path_to_link=""
32827   else
32828     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32829     result=$?
32830     if test $result = 0; then
32831       ac_path_to_link=""
32832     else
32833       ac_path_to_link=" -L$ac_find_libraries"
32834     fi
32835   fi
32836
32837                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32838                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32839                         echo "$as_me:$LINENO: result: yes" >&5
32840 echo "${ECHO_T}yes" >&6
32841                     else
32842                         echo "$as_me:$LINENO: result: no" >&5
32843 echo "${ECHO_T}no" >&6
32844                     fi
32845                 fi
32846
32847 fi
32848
32849
32850
32851         if test "x$OPENGL_LIBS" = "x"; then
32852                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32853 echo "$as_me: error: OpenGL libraries not available" >&2;}
32854    { (exit 1); exit 1; }; }
32855         fi
32856     fi
32857
32858     if test "$wxUSE_OPENGL" = "yes"; then
32859         USE_OPENGL=1
32860         cat >>confdefs.h <<\_ACEOF
32861 #define wxUSE_OPENGL 1
32862 _ACEOF
32863
32864         cat >>confdefs.h <<\_ACEOF
32865 #define wxUSE_GLCANVAS 1
32866 _ACEOF
32867
32868         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32869     fi
32870 fi
32871
32872
32873 if test -n "$TOOLKIT" ; then
32874     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32875 fi
32876
32877
32878
32879 if test "$wxUSE_SHARED" = "yes"; then
32880     case "${host}" in
32881       *-pc-msdosdjgpp )
32882                 wxUSE_SHARED=no
32883         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32884 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32885       ;;
32886     esac
32887 fi
32888
32889 if test "$wxUSE_SHARED" = "yes"; then
32890
32891
32892   found_versioning=no
32893
32894
32895     if test $found_versioning = no ; then
32896       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32897 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32898 if test "${wx_cv_version_script+set}" = set; then
32899   echo $ECHO_N "(cached) $ECHO_C" >&6
32900 else
32901
32902         echo "VER_1 { *; };" >conftest.sym
32903         echo "int main() { return 0; }" >conftest.cpp
32904
32905         if { ac_try='
32906                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32907                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909   (eval $ac_try) 2>&5
32910   ac_status=$?
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); }; } ; then
32913           if test -s conftest.stderr ; then
32914               wx_cv_version_script=no
32915           else
32916               wx_cv_version_script=yes
32917           fi
32918         else
32919           wx_cv_version_script=no
32920         fi
32921
32922                                                                                                 if test $wx_cv_version_script = yes
32923         then
32924           echo "struct B { virtual ~B() { } }; \
32925                 struct D : public B { }; \
32926                 void F() { D d; }" > conftest.cpp
32927
32928           if { ac_try='
32929                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32930                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932   (eval $ac_try) 2>&5
32933   ac_status=$?
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); }; } &&
32936              { ac_try='
32937                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32938                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940   (eval $ac_try) 2>&5
32941   ac_status=$?
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); }; }
32944           then
32945             if { ac_try='
32946                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32947                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949   (eval $ac_try) 2>&5
32950   ac_status=$?
32951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952   (exit $ac_status); }; }
32953             then
32954               wx_cv_version_script=yes
32955             else
32956               wx_cv_version_script=no
32957             fi
32958           fi
32959         fi
32960
32961         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32962         rm -f conftest1.output conftest2.output conftest3.output
32963
32964 fi
32965 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32966 echo "${ECHO_T}$wx_cv_version_script" >&6
32967       if test $wx_cv_version_script = yes ; then
32968         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32969       fi
32970   fi
32971
32972
32973     case "${host}" in
32974       *-*-linux* | *-*-gnu* )
32975         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32976         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32977         ;;
32978
32979       *-*-solaris2* )
32980         if test "$GCC" = yes ; then
32981                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32982
32983                                     saveLdflags="$LDFLAGS"
32984             LDFLAGS="$saveLdflags -Wl,-rpath,/"
32985             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32986 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32987             cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993
32994 int
32995 main ()
32996 {
32997
32998   ;
32999   return 0;
33000 }
33001 _ACEOF
33002 rm -f conftest.$ac_objext conftest$ac_exeext
33003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33004   (eval $ac_link) 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } &&
33011          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017          { ac_try='test -s conftest$ac_exeext'
33018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019   (eval $ac_try) 2>&5
33020   ac_status=$?
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); }; }; then
33023
33024                     echo "$as_me:$LINENO: result: yes" >&5
33025 echo "${ECHO_T}yes" >&6
33026                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33027                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33028
33029 else
33030   echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33032
33033
33034                     echo "$as_me:$LINENO: result: no" >&5
33035 echo "${ECHO_T}no" >&6
33036                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33037 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33038                     LDFLAGS="$saveLdflags -Wl,-R,/"
33039                     cat >conftest.$ac_ext <<_ACEOF
33040 /* confdefs.h.  */
33041 _ACEOF
33042 cat confdefs.h >>conftest.$ac_ext
33043 cat >>conftest.$ac_ext <<_ACEOF
33044 /* end confdefs.h.  */
33045
33046 int
33047 main ()
33048 {
33049
33050   ;
33051   return 0;
33052 }
33053 _ACEOF
33054 rm -f conftest.$ac_objext conftest$ac_exeext
33055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33056   (eval $ac_link) 2>conftest.er1
33057   ac_status=$?
33058   grep -v '^ *+' conftest.er1 >conftest.err
33059   rm -f conftest.er1
33060   cat conftest.err >&5
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); } &&
33063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065   (eval $ac_try) 2>&5
33066   ac_status=$?
33067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068   (exit $ac_status); }; } &&
33069          { ac_try='test -s conftest$ac_exeext'
33070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071   (eval $ac_try) 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; }; then
33075
33076                             echo "$as_me:$LINENO: result: yes" >&5
33077 echo "${ECHO_T}yes" >&6
33078                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33079                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
33080
33081 else
33082   echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33084
33085
33086                             echo "$as_me:$LINENO: result: no" >&5
33087 echo "${ECHO_T}no" >&6
33088
33089 fi
33090 rm -f conftest.err conftest.$ac_objext \
33091       conftest$ac_exeext conftest.$ac_ext
33092
33093 fi
33094 rm -f conftest.err conftest.$ac_objext \
33095       conftest$ac_exeext conftest.$ac_ext
33096             LDFLAGS="$saveLdflags"
33097         else
33098             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
33099             WXCONFIG_RPATH="-R\$libdir"
33100         fi
33101       ;;
33102
33103       *-*-darwin* )
33104         install_name_tool=`which install_name_tool`
33105         if test "$install_name_tool" -a -x "$install_name_tool"; then
33106             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33107             cat <<EOF >change-install-names
33108 #!/bin/sh
33109 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33110 inst_cmd="install_name_tool "
33111 for i in \${libnames} ; do
33112     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33113 done
33114 \${inst_cmd} \${3}
33115 EOF
33116             chmod +x change-install-names
33117         fi
33118       ;;
33119
33120       *-*-cygwin* | *-*-mingw32* )
33121                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33122         ;;
33123
33124       *-*-hpux* )
33125         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33126         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33127         ;;
33128
33129     esac
33130
33131     if test $wxUSE_RPATH = "no"; then
33132         SAMPLES_RPATH_FLAG=''
33133         SAMPLES_RPATH_POSTLINK=''
33134         WXCONFIG_RPATH=''
33135     fi
33136
33137     SHARED=1
33138
33139 else
33140
33141     config_linkage_component="-static"
33142     SHARED=0
33143
33144 fi
33145
33146
33147 UNICODE=0
33148 lib_unicode_suffix=
33149 WX_CHARTYPE="ansi"
33150 if test "$wxUSE_UNICODE" = "yes"; then
33151     lib_unicode_suffix=u
33152     WX_CHARTYPE="unicode"
33153     UNICODE=1
33154 fi
33155
33156 lib_debug_suffix=
33157 WX_DEBUGTYPE="release"
33158 DEBUG_FLAG=0
33159 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33160     lib_debug_suffix=d
33161     WX_DEBUGTYPE="debug"
33162     DEBUG_FLAG=1
33163 fi
33164
33165 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33166 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33167
33168 DEBUG_INFO=0
33169 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33170     DEBUG_INFO=1
33171 fi
33172
33173 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33174
33175 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33176
33177 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33178
33179 if test "$cross_compiling" = "yes"; then
33180     HOST_SUFFIX="-$host_alias"
33181     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33182     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33183 fi
33184
33185 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33186 if test "${TOOLKIT_DIR}" = "os2"; then
33187     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33188 else
33189     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33190 fi
33191
33192
33193
33194 if test "$wxUSE_COCOA" = 1; then
33195
33196
33197     ac_ext=c
33198 ac_cpp='$CPP $CPPFLAGS'
33199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33202
33203 ac_ext=m
33204
33205     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33206 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
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 #include <AppKit/NSEvent.h>
33214 #include <CoreFoundation/CoreFoundation.h>
33215
33216 int
33217 main ()
33218 {
33219
33220   ;
33221   return 0;
33222 }
33223 _ACEOF
33224 rm -f conftest.$ac_objext
33225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33226   (eval $ac_compile) 2>conftest.er1
33227   ac_status=$?
33228   grep -v '^ *+' conftest.er1 >conftest.err
33229   rm -f conftest.er1
33230   cat conftest.err >&5
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); } &&
33233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33235   (eval $ac_try) 2>&5
33236   ac_status=$?
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); }; } &&
33239          { ac_try='test -s conftest.$ac_objext'
33240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241   (eval $ac_try) 2>&5
33242   ac_status=$?
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); }; }; then
33245   echo "$as_me:$LINENO: result: no" >&5
33246 echo "${ECHO_T}no" >&6
33247 else
33248   echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33250
33251 echo "$as_me:$LINENO: result: yes" >&5
33252 echo "${ECHO_T}yes" >&6
33253         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33254 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33255         cat >conftest.$ac_ext <<_ACEOF
33256 /* confdefs.h.  */
33257 _ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h.  */
33261 #define __Point__ 1
33262 #include <AppKit/NSEvent.h>
33263 #include <CoreFoundation/CoreFoundation.h>
33264
33265 int
33266 main ()
33267 {
33268
33269   ;
33270   return 0;
33271 }
33272 _ACEOF
33273 rm -f conftest.$ac_objext
33274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33275   (eval $ac_compile) 2>conftest.er1
33276   ac_status=$?
33277   grep -v '^ *+' conftest.er1 >conftest.err
33278   rm -f conftest.er1
33279   cat conftest.err >&5
33280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281   (exit $ac_status); } &&
33282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33284   (eval $ac_try) 2>&5
33285   ac_status=$?
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); }; } &&
33288          { ac_try='test -s conftest.$ac_objext'
33289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290   (eval $ac_try) 2>&5
33291   ac_status=$?
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); }; }; then
33294   echo "$as_me:$LINENO: result: yes" >&5
33295 echo "${ECHO_T}yes" >&6
33296             cat >>confdefs.h <<\_ACEOF
33297 #define __Point__ 1
33298 _ACEOF
33299
33300
33301 else
33302   echo "$as_me: failed program was:" >&5
33303 sed 's/^/| /' conftest.$ac_ext >&5
33304
33305 { { echo "$as_me:$LINENO: error: no
33306 See \`config.log' for more details." >&5
33307 echo "$as_me: error: no
33308 See \`config.log' for more details." >&2;}
33309    { (exit 1); exit 1; }; }
33310
33311 fi
33312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33313
33314 fi
33315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33316     ac_ext=cc
33317 ac_cpp='$CXXCPP $CPPFLAGS'
33318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33321
33322 fi
33323
33324 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33325             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33326     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33327
33328         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
33329
33330     # Extract the first word of "Rez", so it can be a program name with args.
33331 set dummy Rez; ac_word=$2
33332 echo "$as_me:$LINENO: checking for $ac_word" >&5
33333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33334 if test "${ac_cv_prog_REZ+set}" = set; then
33335   echo $ECHO_N "(cached) $ECHO_C" >&6
33336 else
33337   if test -n "$REZ"; then
33338   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33339 else
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341 for as_dir in $PATH
33342 do
33343   IFS=$as_save_IFS
33344   test -z "$as_dir" && as_dir=.
33345   for ac_exec_ext in '' $ac_executable_extensions; do
33346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33347     ac_cv_prog_REZ="Rez"
33348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33349     break 2
33350   fi
33351 done
33352 done
33353
33354   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33355 fi
33356 fi
33357 REZ=$ac_cv_prog_REZ
33358 if test -n "$REZ"; then
33359   echo "$as_me:$LINENO: result: $REZ" >&5
33360 echo "${ECHO_T}$REZ" >&6
33361 else
33362   echo "$as_me:$LINENO: result: no" >&5
33363 echo "${ECHO_T}no" >&6
33364 fi
33365
33366     # Extract the first word of "DeRez", so it can be a program name with args.
33367 set dummy DeRez; ac_word=$2
33368 echo "$as_me:$LINENO: checking for $ac_word" >&5
33369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33370 if test "${ac_cv_prog_DEREZ+set}" = set; then
33371   echo $ECHO_N "(cached) $ECHO_C" >&6
33372 else
33373   if test -n "$DEREZ"; then
33374   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33375 else
33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377 for as_dir in $PATH
33378 do
33379   IFS=$as_save_IFS
33380   test -z "$as_dir" && as_dir=.
33381   for ac_exec_ext in '' $ac_executable_extensions; do
33382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33383     ac_cv_prog_DEREZ="DeRez"
33384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33385     break 2
33386   fi
33387 done
33388 done
33389
33390   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33391 fi
33392 fi
33393 DEREZ=$ac_cv_prog_DEREZ
33394 if test -n "$DEREZ"; then
33395   echo "$as_me:$LINENO: result: $DEREZ" >&5
33396 echo "${ECHO_T}$DEREZ" >&6
33397 else
33398   echo "$as_me:$LINENO: result: no" >&5
33399 echo "${ECHO_T}no" >&6
33400 fi
33401
33402     # Extract the first word of "SetFile", so it can be a program name with args.
33403 set dummy SetFile; ac_word=$2
33404 echo "$as_me:$LINENO: checking for $ac_word" >&5
33405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33406 if test "${ac_cv_prog_SETFILE+set}" = set; then
33407   echo $ECHO_N "(cached) $ECHO_C" >&6
33408 else
33409   if test -n "$SETFILE"; then
33410   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33411 else
33412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33413 for as_dir in $PATH
33414 do
33415   IFS=$as_save_IFS
33416   test -z "$as_dir" && as_dir=.
33417   for ac_exec_ext in '' $ac_executable_extensions; do
33418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33419     ac_cv_prog_SETFILE="SetFile"
33420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33421     break 2
33422   fi
33423 done
33424 done
33425
33426   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33427 fi
33428 fi
33429 SETFILE=$ac_cv_prog_SETFILE
33430 if test -n "$SETFILE"; then
33431   echo "$as_me:$LINENO: result: $SETFILE" >&5
33432 echo "${ECHO_T}$SETFILE" >&6
33433 else
33434   echo "$as_me:$LINENO: result: no" >&5
33435 echo "${ECHO_T}no" >&6
33436 fi
33437
33438
33439     MACSETFILE="\$(SETFILE)"
33440
33441             if test "$wxUSE_MAC" = 1; then
33442         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33443         RESCOMP="$REZ"
33444         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33445     else
33446         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33447         RESCOMP="echo -n \| $REZ"
33448         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33449     fi
33450
33451 else
33452         MACSETFILE="@true"
33453
33454     if test "$wxUSE_PM" = 1; then
33455         RESCOMP="emxbind"
33456         WXCONFIG_RESFLAGS="-ep"
33457
33458                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33459     else
33460         POSTLINK_COMMAND="@true"
33461     fi
33462
33463 fi
33464
33465
33466
33467 echo "$as_me:$LINENO: checking for mode_t" >&5
33468 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33469 if test "${ac_cv_type_mode_t+set}" = set; then
33470   echo $ECHO_N "(cached) $ECHO_C" >&6
33471 else
33472   cat >conftest.$ac_ext <<_ACEOF
33473 /* confdefs.h.  */
33474 _ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h.  */
33478 $ac_includes_default
33479 int
33480 main ()
33481 {
33482 if ((mode_t *) 0)
33483   return 0;
33484 if (sizeof (mode_t))
33485   return 0;
33486   ;
33487   return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest.$ac_objext
33491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33492   (eval $ac_compile) 2>conftest.er1
33493   ac_status=$?
33494   grep -v '^ *+' conftest.er1 >conftest.err
33495   rm -f conftest.er1
33496   cat conftest.err >&5
33497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498   (exit $ac_status); } &&
33499          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501   (eval $ac_try) 2>&5
33502   ac_status=$?
33503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504   (exit $ac_status); }; } &&
33505          { ac_try='test -s conftest.$ac_objext'
33506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33507   (eval $ac_try) 2>&5
33508   ac_status=$?
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); }; }; then
33511   ac_cv_type_mode_t=yes
33512 else
33513   echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33515
33516 ac_cv_type_mode_t=no
33517 fi
33518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33519 fi
33520 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33521 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33522 if test $ac_cv_type_mode_t = yes; then
33523   :
33524 else
33525
33526 cat >>confdefs.h <<_ACEOF
33527 #define mode_t int
33528 _ACEOF
33529
33530 fi
33531
33532 echo "$as_me:$LINENO: checking for off_t" >&5
33533 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33534 if test "${ac_cv_type_off_t+set}" = set; then
33535   echo $ECHO_N "(cached) $ECHO_C" >&6
33536 else
33537   cat >conftest.$ac_ext <<_ACEOF
33538 /* confdefs.h.  */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h.  */
33543 $ac_includes_default
33544 int
33545 main ()
33546 {
33547 if ((off_t *) 0)
33548   return 0;
33549 if (sizeof (off_t))
33550   return 0;
33551   ;
33552   return 0;
33553 }
33554 _ACEOF
33555 rm -f conftest.$ac_objext
33556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33557   (eval $ac_compile) 2>conftest.er1
33558   ac_status=$?
33559   grep -v '^ *+' conftest.er1 >conftest.err
33560   rm -f conftest.er1
33561   cat conftest.err >&5
33562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); } &&
33564          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566   (eval $ac_try) 2>&5
33567   ac_status=$?
33568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569   (exit $ac_status); }; } &&
33570          { ac_try='test -s conftest.$ac_objext'
33571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33572   (eval $ac_try) 2>&5
33573   ac_status=$?
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); }; }; then
33576   ac_cv_type_off_t=yes
33577 else
33578   echo "$as_me: failed program was:" >&5
33579 sed 's/^/| /' conftest.$ac_ext >&5
33580
33581 ac_cv_type_off_t=no
33582 fi
33583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33584 fi
33585 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33586 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33587 if test $ac_cv_type_off_t = yes; then
33588   :
33589 else
33590
33591 cat >>confdefs.h <<_ACEOF
33592 #define off_t long
33593 _ACEOF
33594
33595 fi
33596
33597 echo "$as_me:$LINENO: checking for pid_t" >&5
33598 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33599 if test "${ac_cv_type_pid_t+set}" = set; then
33600   echo $ECHO_N "(cached) $ECHO_C" >&6
33601 else
33602   cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 $ac_includes_default
33609 int
33610 main ()
33611 {
33612 if ((pid_t *) 0)
33613   return 0;
33614 if (sizeof (pid_t))
33615   return 0;
33616   ;
33617   return 0;
33618 }
33619 _ACEOF
33620 rm -f conftest.$ac_objext
33621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33622   (eval $ac_compile) 2>conftest.er1
33623   ac_status=$?
33624   grep -v '^ *+' conftest.er1 >conftest.err
33625   rm -f conftest.er1
33626   cat conftest.err >&5
33627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628   (exit $ac_status); } &&
33629          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631   (eval $ac_try) 2>&5
33632   ac_status=$?
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); }; } &&
33635          { ac_try='test -s conftest.$ac_objext'
33636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637   (eval $ac_try) 2>&5
33638   ac_status=$?
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); }; }; then
33641   ac_cv_type_pid_t=yes
33642 else
33643   echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33645
33646 ac_cv_type_pid_t=no
33647 fi
33648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33649 fi
33650 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33651 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33652 if test $ac_cv_type_pid_t = yes; then
33653   :
33654 else
33655
33656 cat >>confdefs.h <<_ACEOF
33657 #define pid_t int
33658 _ACEOF
33659
33660 fi
33661
33662 echo "$as_me:$LINENO: checking for size_t" >&5
33663 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33664 if test "${ac_cv_type_size_t+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667   cat >conftest.$ac_ext <<_ACEOF
33668 /* confdefs.h.  */
33669 _ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h.  */
33673 $ac_includes_default
33674 int
33675 main ()
33676 {
33677 if ((size_t *) 0)
33678   return 0;
33679 if (sizeof (size_t))
33680   return 0;
33681   ;
33682   return 0;
33683 }
33684 _ACEOF
33685 rm -f conftest.$ac_objext
33686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33687   (eval $ac_compile) 2>conftest.er1
33688   ac_status=$?
33689   grep -v '^ *+' conftest.er1 >conftest.err
33690   rm -f conftest.er1
33691   cat conftest.err >&5
33692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693   (exit $ac_status); } &&
33694          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33696   (eval $ac_try) 2>&5
33697   ac_status=$?
33698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699   (exit $ac_status); }; } &&
33700          { ac_try='test -s conftest.$ac_objext'
33701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702   (eval $ac_try) 2>&5
33703   ac_status=$?
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); }; }; then
33706   ac_cv_type_size_t=yes
33707 else
33708   echo "$as_me: failed program was:" >&5
33709 sed 's/^/| /' conftest.$ac_ext >&5
33710
33711 ac_cv_type_size_t=no
33712 fi
33713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33714 fi
33715 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33716 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33717 if test $ac_cv_type_size_t = yes; then
33718   :
33719 else
33720
33721 cat >>confdefs.h <<_ACEOF
33722 #define size_t unsigned
33723 _ACEOF
33724
33725 fi
33726
33727 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33728 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33729 if test "${ac_cv_type_uid_t+set}" = set; then
33730   echo $ECHO_N "(cached) $ECHO_C" >&6
33731 else
33732   cat >conftest.$ac_ext <<_ACEOF
33733 /* confdefs.h.  */
33734 _ACEOF
33735 cat confdefs.h >>conftest.$ac_ext
33736 cat >>conftest.$ac_ext <<_ACEOF
33737 /* end confdefs.h.  */
33738 #include <sys/types.h>
33739
33740 _ACEOF
33741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33742   $EGREP "uid_t" >/dev/null 2>&1; then
33743   ac_cv_type_uid_t=yes
33744 else
33745   ac_cv_type_uid_t=no
33746 fi
33747 rm -f conftest*
33748
33749 fi
33750 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33751 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33752 if test $ac_cv_type_uid_t = no; then
33753
33754 cat >>confdefs.h <<\_ACEOF
33755 #define uid_t int
33756 _ACEOF
33757
33758
33759 cat >>confdefs.h <<\_ACEOF
33760 #define gid_t int
33761 _ACEOF
33762
33763 fi
33764
33765
33766 echo "$as_me:$LINENO: checking for ssize_t" >&5
33767 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33768 if test "${ac_cv_type_ssize_t+set}" = set; then
33769   echo $ECHO_N "(cached) $ECHO_C" >&6
33770 else
33771   cat >conftest.$ac_ext <<_ACEOF
33772 /* confdefs.h.  */
33773 _ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h.  */
33777 $ac_includes_default
33778 int
33779 main ()
33780 {
33781 if ((ssize_t *) 0)
33782   return 0;
33783 if (sizeof (ssize_t))
33784   return 0;
33785   ;
33786   return 0;
33787 }
33788 _ACEOF
33789 rm -f conftest.$ac_objext
33790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33791   (eval $ac_compile) 2>conftest.er1
33792   ac_status=$?
33793   grep -v '^ *+' conftest.er1 >conftest.err
33794   rm -f conftest.er1
33795   cat conftest.err >&5
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); } &&
33798          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800   (eval $ac_try) 2>&5
33801   ac_status=$?
33802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); }; } &&
33804          { ac_try='test -s conftest.$ac_objext'
33805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806   (eval $ac_try) 2>&5
33807   ac_status=$?
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); }; }; then
33810   ac_cv_type_ssize_t=yes
33811 else
33812   echo "$as_me: failed program was:" >&5
33813 sed 's/^/| /' conftest.$ac_ext >&5
33814
33815 ac_cv_type_ssize_t=no
33816 fi
33817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33818 fi
33819 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33820 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33821 if test $ac_cv_type_ssize_t = yes; then
33822
33823 cat >>confdefs.h <<_ACEOF
33824 #define HAVE_SSIZE_T 1
33825 _ACEOF
33826
33827
33828 fi
33829
33830
33831 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33832 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33833 if test "${wx_cv_size_t_is_uint+set}" = set; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836
33837                             cat >conftest.$ac_ext <<_ACEOF
33838 /* confdefs.h.  */
33839 _ACEOF
33840 cat confdefs.h >>conftest.$ac_ext
33841 cat >>conftest.$ac_ext <<_ACEOF
33842 /* end confdefs.h.  */
33843 #include <stddef.h>
33844 int
33845 main ()
33846 {
33847
33848             return 0; }
33849
33850             struct Foo { void foo(size_t); void foo(unsigned int); };
33851
33852             int bar() {
33853
33854   ;
33855   return 0;
33856 }
33857 _ACEOF
33858 rm -f conftest.$ac_objext
33859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33860   (eval $ac_compile) 2>conftest.er1
33861   ac_status=$?
33862   grep -v '^ *+' conftest.er1 >conftest.err
33863   rm -f conftest.er1
33864   cat conftest.err >&5
33865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866   (exit $ac_status); } &&
33867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869   (eval $ac_try) 2>&5
33870   ac_status=$?
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); }; } &&
33873          { ac_try='test -s conftest.$ac_objext'
33874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875   (eval $ac_try) 2>&5
33876   ac_status=$?
33877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878   (exit $ac_status); }; }; then
33879   wx_cv_size_t_is_uint=no
33880 else
33881   echo "$as_me: failed program was:" >&5
33882 sed 's/^/| /' conftest.$ac_ext >&5
33883
33884 wx_cv_size_t_is_uint=yes
33885
33886 fi
33887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33888
33889
33890 fi
33891 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33892 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33893
33894 if test "$wx_cv_size_t_is_uint" = "yes"; then
33895     cat >>confdefs.h <<\_ACEOF
33896 #define wxSIZE_T_IS_UINT 1
33897 _ACEOF
33898
33899 else
33900     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33901 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33902 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905   cat >conftest.$ac_ext <<_ACEOF
33906 /* confdefs.h.  */
33907 _ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h.  */
33911 #include <stddef.h>
33912 int
33913 main ()
33914 {
33915
33916                 return 0; }
33917
33918                 struct Foo { void foo(size_t); void foo(unsigned long); };
33919
33920                 int bar() {
33921
33922   ;
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest.$ac_objext
33927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33928   (eval $ac_compile) 2>conftest.er1
33929   ac_status=$?
33930   grep -v '^ *+' conftest.er1 >conftest.err
33931   rm -f conftest.er1
33932   cat conftest.err >&5
33933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); } &&
33935          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33937   (eval $ac_try) 2>&5
33938   ac_status=$?
33939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940   (exit $ac_status); }; } &&
33941          { ac_try='test -s conftest.$ac_objext'
33942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943   (eval $ac_try) 2>&5
33944   ac_status=$?
33945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946   (exit $ac_status); }; }; then
33947   wx_cv_size_t_is_ulong=no
33948 else
33949   echo "$as_me: failed program was:" >&5
33950 sed 's/^/| /' conftest.$ac_ext >&5
33951
33952 wx_cv_size_t_is_ulong=yes
33953
33954 fi
33955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33956
33957 fi
33958 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33959 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33960
33961     if test "$wx_cv_size_t_is_ulong" = "yes"; then
33962         cat >>confdefs.h <<\_ACEOF
33963 #define wxSIZE_T_IS_ULONG 1
33964 _ACEOF
33965
33966     fi
33967 fi
33968
33969
33970 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33971 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33972 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33973   echo $ECHO_N "(cached) $ECHO_C" >&6
33974 else
33975
33976         cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h.  */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h.  */
33982 #include <pwd.h>
33983 int
33984 main ()
33985 {
33986
33987                 char *p;
33988                 struct passwd *pw;
33989                 p = pw->pw_gecos;
33990
33991   ;
33992   return 0;
33993 }
33994 _ACEOF
33995 rm -f conftest.$ac_objext
33996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33997   (eval $ac_compile) 2>conftest.er1
33998   ac_status=$?
33999   grep -v '^ *+' conftest.er1 >conftest.err
34000   rm -f conftest.er1
34001   cat conftest.err >&5
34002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003   (exit $ac_status); } &&
34004          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006   (eval $ac_try) 2>&5
34007   ac_status=$?
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); }; } &&
34010          { ac_try='test -s conftest.$ac_objext'
34011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012   (eval $ac_try) 2>&5
34013   ac_status=$?
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); }; }; then
34016
34017                 wx_cv_struct_pw_gecos=yes
34018
34019 else
34020   echo "$as_me: failed program was:" >&5
34021 sed 's/^/| /' conftest.$ac_ext >&5
34022
34023
34024                 wx_cv_struct_pw_gecos=no
34025
34026
34027 fi
34028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34029
34030
34031 fi
34032 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34033 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34034
34035 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34036     cat >>confdefs.h <<\_ACEOF
34037 #define HAVE_PW_GECOS 1
34038 _ACEOF
34039
34040 fi
34041
34042
34043 if test "$wxUSE_WCHAR_T" = "yes"; then
34044     cat >>confdefs.h <<\_ACEOF
34045 #define wxUSE_WCHAR_T 1
34046 _ACEOF
34047
34048
34049         WCSLEN_FOUND=0
34050     WCHAR_LINK=
34051
34052 for ac_func in wcslen
34053 do
34054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34055 echo "$as_me:$LINENO: checking for $ac_func" >&5
34056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34057 if eval "test \"\${$as_ac_var+set}\" = set"; then
34058   echo $ECHO_N "(cached) $ECHO_C" >&6
34059 else
34060   cat >conftest.$ac_ext <<_ACEOF
34061 /* confdefs.h.  */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h.  */
34066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34068 #define $ac_func innocuous_$ac_func
34069
34070 /* System header to define __stub macros and hopefully few prototypes,
34071     which can conflict with char $ac_func (); below.
34072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34073     <limits.h> exists even on freestanding compilers.  */
34074
34075 #ifdef __STDC__
34076 # include <limits.h>
34077 #else
34078 # include <assert.h>
34079 #endif
34080
34081 #undef $ac_func
34082
34083 /* Override any gcc2 internal prototype to avoid an error.  */
34084 #ifdef __cplusplus
34085 extern "C"
34086 {
34087 #endif
34088 /* We use char because int might match the return type of a gcc2
34089    builtin and then its argument prototype would still apply.  */
34090 char $ac_func ();
34091 /* The GNU C library defines this for functions which it implements
34092     to always fail with ENOSYS.  Some functions are actually named
34093     something starting with __ and the normal name is an alias.  */
34094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34095 choke me
34096 #else
34097 char (*f) () = $ac_func;
34098 #endif
34099 #ifdef __cplusplus
34100 }
34101 #endif
34102
34103 int
34104 main ()
34105 {
34106 return f != $ac_func;
34107   ;
34108   return 0;
34109 }
34110 _ACEOF
34111 rm -f conftest.$ac_objext conftest$ac_exeext
34112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34113   (eval $ac_link) 2>conftest.er1
34114   ac_status=$?
34115   grep -v '^ *+' conftest.er1 >conftest.err
34116   rm -f conftest.er1
34117   cat conftest.err >&5
34118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119   (exit $ac_status); } &&
34120          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122   (eval $ac_try) 2>&5
34123   ac_status=$?
34124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125   (exit $ac_status); }; } &&
34126          { ac_try='test -s conftest$ac_exeext'
34127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128   (eval $ac_try) 2>&5
34129   ac_status=$?
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); }; }; then
34132   eval "$as_ac_var=yes"
34133 else
34134   echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34136
34137 eval "$as_ac_var=no"
34138 fi
34139 rm -f conftest.err conftest.$ac_objext \
34140       conftest$ac_exeext conftest.$ac_ext
34141 fi
34142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34144 if test `eval echo '${'$as_ac_var'}'` = yes; then
34145   cat >>confdefs.h <<_ACEOF
34146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34147 _ACEOF
34148  WCSLEN_FOUND=1
34149 fi
34150 done
34151
34152
34153     if test "$WCSLEN_FOUND" = 0; then
34154         if test "$TOOLKIT" = "MSW"; then
34155             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34156 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34157 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34158   echo $ECHO_N "(cached) $ECHO_C" >&6
34159 else
34160   ac_check_lib_save_LIBS=$LIBS
34161 LIBS="-lmsvcrt  $LIBS"
34162 cat >conftest.$ac_ext <<_ACEOF
34163 /* confdefs.h.  */
34164 _ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h.  */
34168
34169 /* Override any gcc2 internal prototype to avoid an error.  */
34170 #ifdef __cplusplus
34171 extern "C"
34172 #endif
34173 /* We use char because int might match the return type of a gcc2
34174    builtin and then its argument prototype would still apply.  */
34175 char wcslen ();
34176 int
34177 main ()
34178 {
34179 wcslen ();
34180   ;
34181   return 0;
34182 }
34183 _ACEOF
34184 rm -f conftest.$ac_objext conftest$ac_exeext
34185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34186   (eval $ac_link) 2>conftest.er1
34187   ac_status=$?
34188   grep -v '^ *+' conftest.er1 >conftest.err
34189   rm -f conftest.er1
34190   cat conftest.err >&5
34191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192   (exit $ac_status); } &&
34193          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195   (eval $ac_try) 2>&5
34196   ac_status=$?
34197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198   (exit $ac_status); }; } &&
34199          { ac_try='test -s conftest$ac_exeext'
34200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201   (eval $ac_try) 2>&5
34202   ac_status=$?
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); }; }; then
34205   ac_cv_lib_msvcrt_wcslen=yes
34206 else
34207   echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.$ac_ext >&5
34209
34210 ac_cv_lib_msvcrt_wcslen=no
34211 fi
34212 rm -f conftest.err conftest.$ac_objext \
34213       conftest$ac_exeext conftest.$ac_ext
34214 LIBS=$ac_check_lib_save_LIBS
34215 fi
34216 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34217 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34218 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34219   WCHAR_OK=1
34220 fi
34221
34222         else
34223             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34224 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34225 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34226   echo $ECHO_N "(cached) $ECHO_C" >&6
34227 else
34228   ac_check_lib_save_LIBS=$LIBS
34229 LIBS="-lw  $LIBS"
34230 cat >conftest.$ac_ext <<_ACEOF
34231 /* confdefs.h.  */
34232 _ACEOF
34233 cat confdefs.h >>conftest.$ac_ext
34234 cat >>conftest.$ac_ext <<_ACEOF
34235 /* end confdefs.h.  */
34236
34237 /* Override any gcc2 internal prototype to avoid an error.  */
34238 #ifdef __cplusplus
34239 extern "C"
34240 #endif
34241 /* We use char because int might match the return type of a gcc2
34242    builtin and then its argument prototype would still apply.  */
34243 char wcslen ();
34244 int
34245 main ()
34246 {
34247 wcslen ();
34248   ;
34249   return 0;
34250 }
34251 _ACEOF
34252 rm -f conftest.$ac_objext conftest$ac_exeext
34253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34254   (eval $ac_link) 2>conftest.er1
34255   ac_status=$?
34256   grep -v '^ *+' conftest.er1 >conftest.err
34257   rm -f conftest.er1
34258   cat conftest.err >&5
34259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); } &&
34261          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263   (eval $ac_try) 2>&5
34264   ac_status=$?
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); }; } &&
34267          { ac_try='test -s conftest$ac_exeext'
34268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269   (eval $ac_try) 2>&5
34270   ac_status=$?
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); }; }; then
34273   ac_cv_lib_w_wcslen=yes
34274 else
34275   echo "$as_me: failed program was:" >&5
34276 sed 's/^/| /' conftest.$ac_ext >&5
34277
34278 ac_cv_lib_w_wcslen=no
34279 fi
34280 rm -f conftest.err conftest.$ac_objext \
34281       conftest$ac_exeext conftest.$ac_ext
34282 LIBS=$ac_check_lib_save_LIBS
34283 fi
34284 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34285 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34286 if test $ac_cv_lib_w_wcslen = yes; then
34287
34288                             WCHAR_LINK=" -lw"
34289                             WCSLEN_FOUND=1
34290
34291 fi
34292
34293         fi
34294     fi
34295
34296     if test "$WCSLEN_FOUND" = 1; then
34297         cat >>confdefs.h <<\_ACEOF
34298 #define HAVE_WCSLEN 1
34299 _ACEOF
34300
34301     fi
34302
34303                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34304         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34305     fi
34306
34307                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34308 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34309 if test "${ac_cv_type_mbstate_t+set}" = set; then
34310   echo $ECHO_N "(cached) $ECHO_C" >&6
34311 else
34312   cat >conftest.$ac_ext <<_ACEOF
34313 /* confdefs.h.  */
34314 _ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h.  */
34318 #include <wchar.h>
34319
34320 int
34321 main ()
34322 {
34323 if ((mbstate_t *) 0)
34324   return 0;
34325 if (sizeof (mbstate_t))
34326   return 0;
34327   ;
34328   return 0;
34329 }
34330 _ACEOF
34331 rm -f conftest.$ac_objext
34332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34333   (eval $ac_compile) 2>conftest.er1
34334   ac_status=$?
34335   grep -v '^ *+' conftest.er1 >conftest.err
34336   rm -f conftest.er1
34337   cat conftest.err >&5
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); } &&
34340          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342   (eval $ac_try) 2>&5
34343   ac_status=$?
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); }; } &&
34346          { ac_try='test -s conftest.$ac_objext'
34347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348   (eval $ac_try) 2>&5
34349   ac_status=$?
34350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351   (exit $ac_status); }; }; then
34352   ac_cv_type_mbstate_t=yes
34353 else
34354   echo "$as_me: failed program was:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34356
34357 ac_cv_type_mbstate_t=no
34358 fi
34359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34360 fi
34361 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34362 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34363 if test $ac_cv_type_mbstate_t = yes; then
34364
34365 cat >>confdefs.h <<_ACEOF
34366 #define HAVE_MBSTATE_T 1
34367 _ACEOF
34368
34369
34370 for ac_func in wcsrtombs
34371 do
34372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34373 echo "$as_me:$LINENO: checking for $ac_func" >&5
34374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34375 if eval "test \"\${$as_ac_var+set}\" = set"; then
34376   echo $ECHO_N "(cached) $ECHO_C" >&6
34377 else
34378   cat >conftest.$ac_ext <<_ACEOF
34379 /* confdefs.h.  */
34380 _ACEOF
34381 cat confdefs.h >>conftest.$ac_ext
34382 cat >>conftest.$ac_ext <<_ACEOF
34383 /* end confdefs.h.  */
34384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34386 #define $ac_func innocuous_$ac_func
34387
34388 /* System header to define __stub macros and hopefully few prototypes,
34389     which can conflict with char $ac_func (); below.
34390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34391     <limits.h> exists even on freestanding compilers.  */
34392
34393 #ifdef __STDC__
34394 # include <limits.h>
34395 #else
34396 # include <assert.h>
34397 #endif
34398
34399 #undef $ac_func
34400
34401 /* Override any gcc2 internal prototype to avoid an error.  */
34402 #ifdef __cplusplus
34403 extern "C"
34404 {
34405 #endif
34406 /* We use char because int might match the return type of a gcc2
34407    builtin and then its argument prototype would still apply.  */
34408 char $ac_func ();
34409 /* The GNU C library defines this for functions which it implements
34410     to always fail with ENOSYS.  Some functions are actually named
34411     something starting with __ and the normal name is an alias.  */
34412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34413 choke me
34414 #else
34415 char (*f) () = $ac_func;
34416 #endif
34417 #ifdef __cplusplus
34418 }
34419 #endif
34420
34421 int
34422 main ()
34423 {
34424 return f != $ac_func;
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext conftest$ac_exeext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34431   (eval $ac_link) 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } &&
34438          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34440   (eval $ac_try) 2>&5
34441   ac_status=$?
34442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443   (exit $ac_status); }; } &&
34444          { ac_try='test -s conftest$ac_exeext'
34445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446   (eval $ac_try) 2>&5
34447   ac_status=$?
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); }; }; then
34450   eval "$as_ac_var=yes"
34451 else
34452   echo "$as_me: failed program was:" >&5
34453 sed 's/^/| /' conftest.$ac_ext >&5
34454
34455 eval "$as_ac_var=no"
34456 fi
34457 rm -f conftest.err conftest.$ac_objext \
34458       conftest$ac_exeext conftest.$ac_ext
34459 fi
34460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34462 if test `eval echo '${'$as_ac_var'}'` = yes; then
34463   cat >>confdefs.h <<_ACEOF
34464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34465 _ACEOF
34466
34467 fi
34468 done
34469
34470 fi
34471
34472 else
34473     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34474 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34475 fi
34476
34477
34478
34479 for ac_func in snprintf vsnprintf
34480 do
34481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34482 echo "$as_me:$LINENO: checking for $ac_func" >&5
34483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34484 if eval "test \"\${$as_ac_var+set}\" = set"; then
34485   echo $ECHO_N "(cached) $ECHO_C" >&6
34486 else
34487   cat >conftest.$ac_ext <<_ACEOF
34488 /* confdefs.h.  */
34489 _ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h.  */
34493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34495 #define $ac_func innocuous_$ac_func
34496
34497 /* System header to define __stub macros and hopefully few prototypes,
34498     which can conflict with char $ac_func (); below.
34499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34500     <limits.h> exists even on freestanding compilers.  */
34501
34502 #ifdef __STDC__
34503 # include <limits.h>
34504 #else
34505 # include <assert.h>
34506 #endif
34507
34508 #undef $ac_func
34509
34510 /* Override any gcc2 internal prototype to avoid an error.  */
34511 #ifdef __cplusplus
34512 extern "C"
34513 {
34514 #endif
34515 /* We use char because int might match the return type of a gcc2
34516    builtin and then its argument prototype would still apply.  */
34517 char $ac_func ();
34518 /* The GNU C library defines this for functions which it implements
34519     to always fail with ENOSYS.  Some functions are actually named
34520     something starting with __ and the normal name is an alias.  */
34521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34522 choke me
34523 #else
34524 char (*f) () = $ac_func;
34525 #endif
34526 #ifdef __cplusplus
34527 }
34528 #endif
34529
34530 int
34531 main ()
34532 {
34533 return f != $ac_func;
34534   ;
34535   return 0;
34536 }
34537 _ACEOF
34538 rm -f conftest.$ac_objext conftest$ac_exeext
34539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34540   (eval $ac_link) 2>conftest.er1
34541   ac_status=$?
34542   grep -v '^ *+' conftest.er1 >conftest.err
34543   rm -f conftest.er1
34544   cat conftest.err >&5
34545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546   (exit $ac_status); } &&
34547          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549   (eval $ac_try) 2>&5
34550   ac_status=$?
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); }; } &&
34553          { ac_try='test -s conftest$ac_exeext'
34554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555   (eval $ac_try) 2>&5
34556   ac_status=$?
34557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558   (exit $ac_status); }; }; then
34559   eval "$as_ac_var=yes"
34560 else
34561   echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34563
34564 eval "$as_ac_var=no"
34565 fi
34566 rm -f conftest.err conftest.$ac_objext \
34567       conftest$ac_exeext conftest.$ac_ext
34568 fi
34569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34571 if test `eval echo '${'$as_ac_var'}'` = yes; then
34572   cat >>confdefs.h <<_ACEOF
34573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34574 _ACEOF
34575
34576 fi
34577 done
34578
34579
34580 if test "$ac_cv_func_vsnprintf" = "yes"; then
34581         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34582 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34583 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34584   echo $ECHO_N "(cached) $ECHO_C" >&6
34585 else
34586
34587                                                             cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h.  */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h.  */
34593
34594                     #include <stdio.h>
34595                     #include <stdarg.h>
34596                     #ifdef __MSL__
34597                     #if __MSL__ >= 0x6000
34598                     namespace std {}
34599                     using namespace std;
34600                     #endif
34601                     #endif
34602
34603 int
34604 main ()
34605 {
34606
34607                     char *buf;
34608                     va_list ap;
34609                     vsnprintf(buf, 10u, "%s", ap);
34610
34611   ;
34612   return 0;
34613 }
34614 _ACEOF
34615 rm -f conftest.$ac_objext
34616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34617   (eval $ac_compile) 2>conftest.er1
34618   ac_status=$?
34619   grep -v '^ *+' conftest.er1 >conftest.err
34620   rm -f conftest.er1
34621   cat conftest.err >&5
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } &&
34624          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626   (eval $ac_try) 2>&5
34627   ac_status=$?
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); }; } &&
34630          { ac_try='test -s conftest.$ac_objext'
34631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632   (eval $ac_try) 2>&5
34633   ac_status=$?
34634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635   (exit $ac_status); }; }; then
34636   wx_cv_func_vsnprintf_decl=yes
34637 else
34638   echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34640
34641 wx_cv_func_vsnprintf_decl=no
34642
34643 fi
34644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34645
34646
34647 fi
34648 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34649 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34650
34651     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34652         cat >>confdefs.h <<\_ACEOF
34653 #define HAVE_VSNPRINTF_DECL 1
34654 _ACEOF
34655
34656
34657                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34658 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34659 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662
34663                 cat >conftest.$ac_ext <<_ACEOF
34664 /* confdefs.h.  */
34665 _ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h.  */
34669
34670                         #include <stdio.h>
34671                         #include <stdarg.h>
34672                         #ifdef __MSL__
34673                         #if __MSL__ >= 0x6000
34674                         namespace std {}
34675                         using namespace std;
34676                         #endif
34677                         #endif
34678
34679 int
34680 main ()
34681 {
34682
34683                         char *buf;
34684                         va_list ap;
34685                         const char *fmt = "%s";
34686                         vsnprintf(buf, 10u, fmt, ap);
34687
34688   ;
34689   return 0;
34690 }
34691 _ACEOF
34692 rm -f conftest.$ac_objext
34693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34694   (eval $ac_compile) 2>conftest.er1
34695   ac_status=$?
34696   grep -v '^ *+' conftest.er1 >conftest.err
34697   rm -f conftest.er1
34698   cat conftest.err >&5
34699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700   (exit $ac_status); } &&
34701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703   (eval $ac_try) 2>&5
34704   ac_status=$?
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); }; } &&
34707          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34713   wx_cv_func_broken_vsnprintf_decl=no
34714 else
34715   echo "$as_me: failed program was:" >&5
34716 sed 's/^/| /' conftest.$ac_ext >&5
34717
34718 wx_cv_func_broken_vsnprintf_decl=yes
34719
34720 fi
34721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34722
34723
34724 fi
34725 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34726 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34727
34728         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34729             cat >>confdefs.h <<\_ACEOF
34730 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34731 _ACEOF
34732
34733         fi
34734     fi
34735 fi
34736
34737 if test "$ac_cv_func_snprintf" = "yes"; then
34738     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34739 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34740 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34741   echo $ECHO_N "(cached) $ECHO_C" >&6
34742 else
34743
34744             cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h.  */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h.  */
34750
34751                     #include <stdio.h>
34752                     #include <stdarg.h>
34753                     #ifdef __MSL__
34754                     #if __MSL__ >= 0x6000
34755                     namespace std {}
34756                     using namespace std;
34757                     #endif
34758                     #endif
34759
34760 int
34761 main ()
34762 {
34763
34764                     char *buf;
34765                     snprintf(buf, 10u, "%s", "wx");
34766
34767   ;
34768   return 0;
34769 }
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34773   (eval $ac_compile) 2>conftest.er1
34774   ac_status=$?
34775   grep -v '^ *+' conftest.er1 >conftest.err
34776   rm -f conftest.er1
34777   cat conftest.err >&5
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); } &&
34780          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782   (eval $ac_try) 2>&5
34783   ac_status=$?
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); }; } &&
34786          { ac_try='test -s conftest.$ac_objext'
34787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788   (eval $ac_try) 2>&5
34789   ac_status=$?
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); }; }; then
34792   wx_cv_func_snprintf_decl=yes
34793 else
34794   echo "$as_me: failed program was:" >&5
34795 sed 's/^/| /' conftest.$ac_ext >&5
34796
34797 wx_cv_func_snprintf_decl=no
34798
34799 fi
34800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34801
34802
34803 fi
34804 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34805 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34806
34807     if test "$wx_cv_func_snprintf_decl" = "yes"; then
34808         cat >>confdefs.h <<\_ACEOF
34809 #define HAVE_SNPRINTF_DECL 1
34810 _ACEOF
34811
34812
34813                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34814 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34815 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34816   echo $ECHO_N "(cached) $ECHO_C" >&6
34817 else
34818
34819                 cat >conftest.$ac_ext <<_ACEOF
34820 /* confdefs.h.  */
34821 _ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h.  */
34825
34826                         #include <stdio.h>
34827                         #include <stdarg.h>
34828                         #ifdef __MSL__
34829                         #if __MSL__ >= 0x6000
34830                         namespace std {}
34831                         using namespace std;
34832                         #endif
34833                         #endif
34834
34835 int
34836 main ()
34837 {
34838
34839                         char *buf;
34840                         const char *fmt = "%s";
34841                         snprintf(buf, 10u, fmt, "wx");
34842
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext
34848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34849   (eval $ac_compile) 2>conftest.er1
34850   ac_status=$?
34851   grep -v '^ *+' conftest.er1 >conftest.err
34852   rm -f conftest.er1
34853   cat conftest.err >&5
34854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855   (exit $ac_status); } &&
34856          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34858   (eval $ac_try) 2>&5
34859   ac_status=$?
34860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); }; } &&
34862          { ac_try='test -s conftest.$ac_objext'
34863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34864   (eval $ac_try) 2>&5
34865   ac_status=$?
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); }; }; then
34868   wx_cv_func_broken_snprintf_decl=no
34869 else
34870   echo "$as_me: failed program was:" >&5
34871 sed 's/^/| /' conftest.$ac_ext >&5
34872
34873 wx_cv_func_broken_snprintf_decl=yes
34874
34875 fi
34876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34877
34878
34879 fi
34880 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34881 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34882
34883         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34884             cat >>confdefs.h <<\_ACEOF
34885 #define HAVE_BROKEN_SNPRINTF_DECL 1
34886 _ACEOF
34887
34888         fi
34889     fi
34890
34891     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34892
34893                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34894 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34895 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34896   echo $ECHO_N "(cached) $ECHO_C" >&6
34897 else
34898
34899                 if test "$cross_compiling" = yes; then
34900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34901 See \`config.log' for more details." >&5
34902 echo "$as_me: error: cannot run test program while cross compiling
34903 See \`config.log' for more details." >&2;}
34904    { (exit 1); exit 1; }; }
34905 else
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912
34913                         #include <stdio.h>
34914
34915                         int main (void)
34916                         {
34917                             char buffer[128];
34918                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34919                             if (strcmp ("2 3 1", buffer) == 0)
34920                                 exit (0);
34921                             exit (1);
34922                         }
34923
34924 _ACEOF
34925 rm -f conftest$ac_exeext
34926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34927   (eval $ac_link) 2>&5
34928   ac_status=$?
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932   (eval $ac_try) 2>&5
34933   ac_status=$?
34934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935   (exit $ac_status); }; }; then
34936   wx_cv_func_snprintf_pos_params=no
34937 else
34938   echo "$as_me: program exited with status $ac_status" >&5
34939 echo "$as_me: failed program was:" >&5
34940 sed 's/^/| /' conftest.$ac_ext >&5
34941
34942 ( exit $ac_status )
34943 wx_cv_func_snprintf_pos_params=yes
34944
34945 fi
34946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34947 fi
34948
34949
34950 fi
34951 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34952 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34953
34954         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34955             cat >>confdefs.h <<\_ACEOF
34956 #define HAVE_UNIX98_PRINTF 1
34957 _ACEOF
34958
34959         fi
34960     fi
34961 fi
34962
34963
34964 if test "$wxUSE_UNICODE" = yes; then
34965
34966
34967
34968
34969
34970
34971 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34972 do
34973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34974 echo "$as_me:$LINENO: checking for $ac_func" >&5
34975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34976 if eval "test \"\${$as_ac_var+set}\" = set"; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979   cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34987 #define $ac_func innocuous_$ac_func
34988
34989 /* System header to define __stub macros and hopefully few prototypes,
34990     which can conflict with char $ac_func (); below.
34991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34992     <limits.h> exists even on freestanding compilers.  */
34993
34994 #ifdef __STDC__
34995 # include <limits.h>
34996 #else
34997 # include <assert.h>
34998 #endif
34999
35000 #undef $ac_func
35001
35002 /* Override any gcc2 internal prototype to avoid an error.  */
35003 #ifdef __cplusplus
35004 extern "C"
35005 {
35006 #endif
35007 /* We use char because int might match the return type of a gcc2
35008    builtin and then its argument prototype would still apply.  */
35009 char $ac_func ();
35010 /* The GNU C library defines this for functions which it implements
35011     to always fail with ENOSYS.  Some functions are actually named
35012     something starting with __ and the normal name is an alias.  */
35013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35014 choke me
35015 #else
35016 char (*f) () = $ac_func;
35017 #endif
35018 #ifdef __cplusplus
35019 }
35020 #endif
35021
35022 int
35023 main ()
35024 {
35025 return f != $ac_func;
35026   ;
35027   return 0;
35028 }
35029 _ACEOF
35030 rm -f conftest.$ac_objext conftest$ac_exeext
35031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35032   (eval $ac_link) 2>conftest.er1
35033   ac_status=$?
35034   grep -v '^ *+' conftest.er1 >conftest.err
35035   rm -f conftest.er1
35036   cat conftest.err >&5
35037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038   (exit $ac_status); } &&
35039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041   (eval $ac_try) 2>&5
35042   ac_status=$?
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); }; } &&
35045          { ac_try='test -s conftest$ac_exeext'
35046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047   (eval $ac_try) 2>&5
35048   ac_status=$?
35049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050   (exit $ac_status); }; }; then
35051   eval "$as_ac_var=yes"
35052 else
35053   echo "$as_me: failed program was:" >&5
35054 sed 's/^/| /' conftest.$ac_ext >&5
35055
35056 eval "$as_ac_var=no"
35057 fi
35058 rm -f conftest.err conftest.$ac_objext \
35059       conftest$ac_exeext conftest.$ac_ext
35060 fi
35061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35063 if test `eval echo '${'$as_ac_var'}'` = yes; then
35064   cat >>confdefs.h <<_ACEOF
35065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35066 _ACEOF
35067
35068 fi
35069 done
35070
35071
35072                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35073 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35074     cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080 #include <wchar.h>
35081 int
35082 main ()
35083 {
35084 &_vsnwprintf;
35085   ;
35086   return 0;
35087 }
35088 _ACEOF
35089 rm -f conftest.$ac_objext
35090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35091   (eval $ac_compile) 2>conftest.er1
35092   ac_status=$?
35093   grep -v '^ *+' conftest.er1 >conftest.err
35094   rm -f conftest.er1
35095   cat conftest.err >&5
35096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35097   (exit $ac_status); } &&
35098          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35100   (eval $ac_try) 2>&5
35101   ac_status=$?
35102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103   (exit $ac_status); }; } &&
35104          { ac_try='test -s conftest.$ac_objext'
35105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106   (eval $ac_try) 2>&5
35107   ac_status=$?
35108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109   (exit $ac_status); }; }; then
35110   echo "$as_me:$LINENO: result: yes" >&5
35111 echo "${ECHO_T}yes" >&6
35112                     cat >>confdefs.h <<\_ACEOF
35113 #define HAVE__VSNWPRINTF 1
35114 _ACEOF
35115
35116 else
35117   echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35119
35120 echo "$as_me:$LINENO: result: no" >&5
35121 echo "${ECHO_T}no" >&6
35122 fi
35123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
35124 fi
35125
35126 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35127
35128 for ac_func in fnmatch
35129 do
35130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35131 echo "$as_me:$LINENO: checking for $ac_func" >&5
35132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35133 if eval "test \"\${$as_ac_var+set}\" = set"; then
35134   echo $ECHO_N "(cached) $ECHO_C" >&6
35135 else
35136   cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35144 #define $ac_func innocuous_$ac_func
35145
35146 /* System header to define __stub macros and hopefully few prototypes,
35147     which can conflict with char $ac_func (); below.
35148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35149     <limits.h> exists even on freestanding compilers.  */
35150
35151 #ifdef __STDC__
35152 # include <limits.h>
35153 #else
35154 # include <assert.h>
35155 #endif
35156
35157 #undef $ac_func
35158
35159 /* Override any gcc2 internal prototype to avoid an error.  */
35160 #ifdef __cplusplus
35161 extern "C"
35162 {
35163 #endif
35164 /* We use char because int might match the return type of a gcc2
35165    builtin and then its argument prototype would still apply.  */
35166 char $ac_func ();
35167 /* The GNU C library defines this for functions which it implements
35168     to always fail with ENOSYS.  Some functions are actually named
35169     something starting with __ and the normal name is an alias.  */
35170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35171 choke me
35172 #else
35173 char (*f) () = $ac_func;
35174 #endif
35175 #ifdef __cplusplus
35176 }
35177 #endif
35178
35179 int
35180 main ()
35181 {
35182 return f != $ac_func;
35183   ;
35184   return 0;
35185 }
35186 _ACEOF
35187 rm -f conftest.$ac_objext conftest$ac_exeext
35188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35189   (eval $ac_link) 2>conftest.er1
35190   ac_status=$?
35191   grep -v '^ *+' conftest.er1 >conftest.err
35192   rm -f conftest.er1
35193   cat conftest.err >&5
35194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195   (exit $ac_status); } &&
35196          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198   (eval $ac_try) 2>&5
35199   ac_status=$?
35200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); }; } &&
35202          { ac_try='test -s conftest$ac_exeext'
35203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204   (eval $ac_try) 2>&5
35205   ac_status=$?
35206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207   (exit $ac_status); }; }; then
35208   eval "$as_ac_var=yes"
35209 else
35210   echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213 eval "$as_ac_var=no"
35214 fi
35215 rm -f conftest.err conftest.$ac_objext \
35216       conftest$ac_exeext conftest.$ac_ext
35217 fi
35218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35220 if test `eval echo '${'$as_ac_var'}'` = yes; then
35221   cat >>confdefs.h <<_ACEOF
35222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35223 _ACEOF
35224
35225 fi
35226 done
35227
35228 fi
35229
35230 if test "$wxUSE_FILE" = "yes"; then
35231
35232 for ac_func in fsync
35233 do
35234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35235 echo "$as_me:$LINENO: checking for $ac_func" >&5
35236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35237 if eval "test \"\${$as_ac_var+set}\" = set"; then
35238   echo $ECHO_N "(cached) $ECHO_C" >&6
35239 else
35240   cat >conftest.$ac_ext <<_ACEOF
35241 /* confdefs.h.  */
35242 _ACEOF
35243 cat confdefs.h >>conftest.$ac_ext
35244 cat >>conftest.$ac_ext <<_ACEOF
35245 /* end confdefs.h.  */
35246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35248 #define $ac_func innocuous_$ac_func
35249
35250 /* System header to define __stub macros and hopefully few prototypes,
35251     which can conflict with char $ac_func (); below.
35252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35253     <limits.h> exists even on freestanding compilers.  */
35254
35255 #ifdef __STDC__
35256 # include <limits.h>
35257 #else
35258 # include <assert.h>
35259 #endif
35260
35261 #undef $ac_func
35262
35263 /* Override any gcc2 internal prototype to avoid an error.  */
35264 #ifdef __cplusplus
35265 extern "C"
35266 {
35267 #endif
35268 /* We use char because int might match the return type of a gcc2
35269    builtin and then its argument prototype would still apply.  */
35270 char $ac_func ();
35271 /* The GNU C library defines this for functions which it implements
35272     to always fail with ENOSYS.  Some functions are actually named
35273     something starting with __ and the normal name is an alias.  */
35274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35275 choke me
35276 #else
35277 char (*f) () = $ac_func;
35278 #endif
35279 #ifdef __cplusplus
35280 }
35281 #endif
35282
35283 int
35284 main ()
35285 {
35286 return f != $ac_func;
35287   ;
35288   return 0;
35289 }
35290 _ACEOF
35291 rm -f conftest.$ac_objext conftest$ac_exeext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35293   (eval $ac_link) 2>conftest.er1
35294   ac_status=$?
35295   grep -v '^ *+' conftest.er1 >conftest.err
35296   rm -f conftest.er1
35297   cat conftest.err >&5
35298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299   (exit $ac_status); } &&
35300          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35302   (eval $ac_try) 2>&5
35303   ac_status=$?
35304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305   (exit $ac_status); }; } &&
35306          { ac_try='test -s conftest$ac_exeext'
35307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308   (eval $ac_try) 2>&5
35309   ac_status=$?
35310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311   (exit $ac_status); }; }; then
35312   eval "$as_ac_var=yes"
35313 else
35314   echo "$as_me: failed program was:" >&5
35315 sed 's/^/| /' conftest.$ac_ext >&5
35316
35317 eval "$as_ac_var=no"
35318 fi
35319 rm -f conftest.err conftest.$ac_objext \
35320       conftest$ac_exeext conftest.$ac_ext
35321 fi
35322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35324 if test `eval echo '${'$as_ac_var'}'` = yes; then
35325   cat >>confdefs.h <<_ACEOF
35326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35327 _ACEOF
35328
35329 fi
35330 done
35331
35332 fi
35333
35334
35335 for ac_func in round
35336 do
35337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35338 echo "$as_me:$LINENO: checking for $ac_func" >&5
35339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35340 if eval "test \"\${$as_ac_var+set}\" = set"; then
35341   echo $ECHO_N "(cached) $ECHO_C" >&6
35342 else
35343   cat >conftest.$ac_ext <<_ACEOF
35344 /* confdefs.h.  */
35345 _ACEOF
35346 cat confdefs.h >>conftest.$ac_ext
35347 cat >>conftest.$ac_ext <<_ACEOF
35348 /* end confdefs.h.  */
35349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35351 #define $ac_func innocuous_$ac_func
35352
35353 /* System header to define __stub macros and hopefully few prototypes,
35354     which can conflict with char $ac_func (); below.
35355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35356     <limits.h> exists even on freestanding compilers.  */
35357
35358 #ifdef __STDC__
35359 # include <limits.h>
35360 #else
35361 # include <assert.h>
35362 #endif
35363
35364 #undef $ac_func
35365
35366 /* Override any gcc2 internal prototype to avoid an error.  */
35367 #ifdef __cplusplus
35368 extern "C"
35369 {
35370 #endif
35371 /* We use char because int might match the return type of a gcc2
35372    builtin and then its argument prototype would still apply.  */
35373 char $ac_func ();
35374 /* The GNU C library defines this for functions which it implements
35375     to always fail with ENOSYS.  Some functions are actually named
35376     something starting with __ and the normal name is an alias.  */
35377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35378 choke me
35379 #else
35380 char (*f) () = $ac_func;
35381 #endif
35382 #ifdef __cplusplus
35383 }
35384 #endif
35385
35386 int
35387 main ()
35388 {
35389 return f != $ac_func;
35390   ;
35391   return 0;
35392 }
35393 _ACEOF
35394 rm -f conftest.$ac_objext conftest$ac_exeext
35395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35396   (eval $ac_link) 2>conftest.er1
35397   ac_status=$?
35398   grep -v '^ *+' conftest.er1 >conftest.err
35399   rm -f conftest.er1
35400   cat conftest.err >&5
35401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402   (exit $ac_status); } &&
35403          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405   (eval $ac_try) 2>&5
35406   ac_status=$?
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); }; } &&
35409          { ac_try='test -s conftest$ac_exeext'
35410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411   (eval $ac_try) 2>&5
35412   ac_status=$?
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); }; }; then
35415   eval "$as_ac_var=yes"
35416 else
35417   echo "$as_me: failed program was:" >&5
35418 sed 's/^/| /' conftest.$ac_ext >&5
35419
35420 eval "$as_ac_var=no"
35421 fi
35422 rm -f conftest.err conftest.$ac_objext \
35423       conftest$ac_exeext conftest.$ac_ext
35424 fi
35425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35427 if test `eval echo '${'$as_ac_var'}'` = yes; then
35428   cat >>confdefs.h <<_ACEOF
35429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35430 _ACEOF
35431
35432 fi
35433 done
35434
35435 if test "$ac_cv_func_round" = yes; then
35436     echo "$as_me:$LINENO: checking whether round is declared" >&5
35437 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35438 if test "${ac_cv_have_decl_round+set}" = set; then
35439   echo $ECHO_N "(cached) $ECHO_C" >&6
35440 else
35441   cat >conftest.$ac_ext <<_ACEOF
35442 /* confdefs.h.  */
35443 _ACEOF
35444 cat confdefs.h >>conftest.$ac_ext
35445 cat >>conftest.$ac_ext <<_ACEOF
35446 /* end confdefs.h.  */
35447 #include <math.h>
35448
35449 int
35450 main ()
35451 {
35452 #ifndef round
35453   char *p = (char *) round;
35454 #endif
35455
35456   ;
35457   return 0;
35458 }
35459 _ACEOF
35460 rm -f conftest.$ac_objext
35461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35462   (eval $ac_compile) 2>conftest.er1
35463   ac_status=$?
35464   grep -v '^ *+' conftest.er1 >conftest.err
35465   rm -f conftest.er1
35466   cat conftest.err >&5
35467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468   (exit $ac_status); } &&
35469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471   (eval $ac_try) 2>&5
35472   ac_status=$?
35473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474   (exit $ac_status); }; } &&
35475          { ac_try='test -s conftest.$ac_objext'
35476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477   (eval $ac_try) 2>&5
35478   ac_status=$?
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); }; }; then
35481   ac_cv_have_decl_round=yes
35482 else
35483   echo "$as_me: failed program was:" >&5
35484 sed 's/^/| /' conftest.$ac_ext >&5
35485
35486 ac_cv_have_decl_round=no
35487 fi
35488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35489 fi
35490 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35491 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35492 if test $ac_cv_have_decl_round = yes; then
35493
35494 cat >>confdefs.h <<_ACEOF
35495 #define HAVE_DECL_ROUND 1
35496 _ACEOF
35497
35498
35499 else
35500   cat >>confdefs.h <<_ACEOF
35501 #define HAVE_DECL_ROUND 0
35502 _ACEOF
35503
35504
35505 fi
35506
35507
35508 fi
35509
35510
35511 if test "$TOOLKIT" != "MSW"; then
35512
35513
35514
35515
35516
35517 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35518 if test "${with_libiconv_prefix+set}" = set; then
35519   withval="$with_libiconv_prefix"
35520
35521     for dir in `echo "$withval" | tr : ' '`; do
35522       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35523       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35524     done
35525
35526 fi;
35527
35528   echo "$as_me:$LINENO: checking for iconv" >&5
35529 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35530 if test "${am_cv_func_iconv+set}" = set; then
35531   echo $ECHO_N "(cached) $ECHO_C" >&6
35532 else
35533
35534     am_cv_func_iconv="no, consider installing GNU libiconv"
35535     am_cv_lib_iconv=no
35536     cat >conftest.$ac_ext <<_ACEOF
35537 /* confdefs.h.  */
35538 _ACEOF
35539 cat confdefs.h >>conftest.$ac_ext
35540 cat >>conftest.$ac_ext <<_ACEOF
35541 /* end confdefs.h.  */
35542 #include <stdlib.h>
35543 #include <iconv.h>
35544 int
35545 main ()
35546 {
35547 iconv_t cd = iconv_open("","");
35548        iconv(cd,NULL,NULL,NULL,NULL);
35549        iconv_close(cd);
35550   ;
35551   return 0;
35552 }
35553 _ACEOF
35554 rm -f conftest.$ac_objext conftest$ac_exeext
35555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35556   (eval $ac_link) 2>conftest.er1
35557   ac_status=$?
35558   grep -v '^ *+' conftest.er1 >conftest.err
35559   rm -f conftest.er1
35560   cat conftest.err >&5
35561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562   (exit $ac_status); } &&
35563          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565   (eval $ac_try) 2>&5
35566   ac_status=$?
35567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568   (exit $ac_status); }; } &&
35569          { ac_try='test -s conftest$ac_exeext'
35570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571   (eval $ac_try) 2>&5
35572   ac_status=$?
35573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574   (exit $ac_status); }; }; then
35575   am_cv_func_iconv=yes
35576 else
35577   echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580 fi
35581 rm -f conftest.err conftest.$ac_objext \
35582       conftest$ac_exeext conftest.$ac_ext
35583     if test "$am_cv_func_iconv" != yes; then
35584       am_save_LIBS="$LIBS"
35585       LIBS="$LIBS -liconv"
35586       cat >conftest.$ac_ext <<_ACEOF
35587 /* confdefs.h.  */
35588 _ACEOF
35589 cat confdefs.h >>conftest.$ac_ext
35590 cat >>conftest.$ac_ext <<_ACEOF
35591 /* end confdefs.h.  */
35592 #include <stdlib.h>
35593 #include <iconv.h>
35594 int
35595 main ()
35596 {
35597 iconv_t cd = iconv_open("","");
35598          iconv(cd,NULL,NULL,NULL,NULL);
35599          iconv_close(cd);
35600   ;
35601   return 0;
35602 }
35603 _ACEOF
35604 rm -f conftest.$ac_objext conftest$ac_exeext
35605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35606   (eval $ac_link) 2>conftest.er1
35607   ac_status=$?
35608   grep -v '^ *+' conftest.er1 >conftest.err
35609   rm -f conftest.er1
35610   cat conftest.err >&5
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); } &&
35613          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615   (eval $ac_try) 2>&5
35616   ac_status=$?
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); }; } &&
35619          { ac_try='test -s conftest$ac_exeext'
35620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621   (eval $ac_try) 2>&5
35622   ac_status=$?
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); }; }; then
35625   am_cv_lib_iconv=yes
35626         am_cv_func_iconv=yes
35627 else
35628   echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35630
35631 fi
35632 rm -f conftest.err conftest.$ac_objext \
35633       conftest$ac_exeext conftest.$ac_ext
35634       LIBS="$am_save_LIBS"
35635     fi
35636
35637 fi
35638 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35639 echo "${ECHO_T}$am_cv_func_iconv" >&6
35640   if test "$am_cv_func_iconv" = yes; then
35641
35642 cat >>confdefs.h <<\_ACEOF
35643 #define HAVE_ICONV 1
35644 _ACEOF
35645
35646     echo "$as_me:$LINENO: checking if iconv needs const" >&5
35647 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35648 if test "${wx_cv_func_iconv_const+set}" = set; then
35649   echo $ECHO_N "(cached) $ECHO_C" >&6
35650 else
35651   cat >conftest.$ac_ext <<_ACEOF
35652 /* confdefs.h.  */
35653 _ACEOF
35654 cat confdefs.h >>conftest.$ac_ext
35655 cat >>conftest.$ac_ext <<_ACEOF
35656 /* end confdefs.h.  */
35657
35658 #include <stdlib.h>
35659 #include <iconv.h>
35660 extern
35661 #ifdef __cplusplus
35662 "C"
35663 #endif
35664 #if defined(__STDC__) || defined(__cplusplus)
35665 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35666 #else
35667 size_t iconv();
35668 #endif
35669
35670 int
35671 main ()
35672 {
35673
35674   ;
35675   return 0;
35676 }
35677 _ACEOF
35678 rm -f conftest.$ac_objext
35679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35680   (eval $ac_compile) 2>conftest.er1
35681   ac_status=$?
35682   grep -v '^ *+' conftest.er1 >conftest.err
35683   rm -f conftest.er1
35684   cat conftest.err >&5
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } &&
35687          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689   (eval $ac_try) 2>&5
35690   ac_status=$?
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); }; } &&
35693          { ac_try='test -s conftest.$ac_objext'
35694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695   (eval $ac_try) 2>&5
35696   ac_status=$?
35697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698   (exit $ac_status); }; }; then
35699   wx_cv_func_iconv_const="no"
35700 else
35701   echo "$as_me: failed program was:" >&5
35702 sed 's/^/| /' conftest.$ac_ext >&5
35703
35704 wx_cv_func_iconv_const="yes"
35705
35706 fi
35707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35708
35709 fi
35710 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35711 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35712
35713     iconv_const=
35714     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35715         iconv_const="const"
35716     fi
35717
35718
35719 cat >>confdefs.h <<_ACEOF
35720 #define ICONV_CONST $iconv_const
35721 _ACEOF
35722
35723   fi
35724   LIBICONV=
35725   if test "$am_cv_lib_iconv" = yes; then
35726     LIBICONV="-liconv"
35727   fi
35728
35729
35730 LIBS="$LIBICONV $LIBS"
35731
35732 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35733
35734 for ac_func in sigaction
35735 do
35736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35737 echo "$as_me:$LINENO: checking for $ac_func" >&5
35738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35739 if eval "test \"\${$as_ac_var+set}\" = set"; then
35740   echo $ECHO_N "(cached) $ECHO_C" >&6
35741 else
35742   cat >conftest.$ac_ext <<_ACEOF
35743 /* confdefs.h.  */
35744 _ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h.  */
35748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35750 #define $ac_func innocuous_$ac_func
35751
35752 /* System header to define __stub macros and hopefully few prototypes,
35753     which can conflict with char $ac_func (); below.
35754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35755     <limits.h> exists even on freestanding compilers.  */
35756
35757 #ifdef __STDC__
35758 # include <limits.h>
35759 #else
35760 # include <assert.h>
35761 #endif
35762
35763 #undef $ac_func
35764
35765 /* Override any gcc2 internal prototype to avoid an error.  */
35766 #ifdef __cplusplus
35767 extern "C"
35768 {
35769 #endif
35770 /* We use char because int might match the return type of a gcc2
35771    builtin and then its argument prototype would still apply.  */
35772 char $ac_func ();
35773 /* The GNU C library defines this for functions which it implements
35774     to always fail with ENOSYS.  Some functions are actually named
35775     something starting with __ and the normal name is an alias.  */
35776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35777 choke me
35778 #else
35779 char (*f) () = $ac_func;
35780 #endif
35781 #ifdef __cplusplus
35782 }
35783 #endif
35784
35785 int
35786 main ()
35787 {
35788 return f != $ac_func;
35789   ;
35790   return 0;
35791 }
35792 _ACEOF
35793 rm -f conftest.$ac_objext conftest$ac_exeext
35794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35795   (eval $ac_link) 2>conftest.er1
35796   ac_status=$?
35797   grep -v '^ *+' conftest.er1 >conftest.err
35798   rm -f conftest.er1
35799   cat conftest.err >&5
35800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801   (exit $ac_status); } &&
35802          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35804   (eval $ac_try) 2>&5
35805   ac_status=$?
35806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807   (exit $ac_status); }; } &&
35808          { ac_try='test -s conftest$ac_exeext'
35809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35810   (eval $ac_try) 2>&5
35811   ac_status=$?
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); }; }; then
35814   eval "$as_ac_var=yes"
35815 else
35816   echo "$as_me: failed program was:" >&5
35817 sed 's/^/| /' conftest.$ac_ext >&5
35818
35819 eval "$as_ac_var=no"
35820 fi
35821 rm -f conftest.err conftest.$ac_objext \
35822       conftest$ac_exeext conftest.$ac_ext
35823 fi
35824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35826 if test `eval echo '${'$as_ac_var'}'` = yes; then
35827   cat >>confdefs.h <<_ACEOF
35828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35829 _ACEOF
35830
35831 fi
35832 done
35833
35834
35835     if test "$ac_cv_func_sigaction" = "no"; then
35836         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35837 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35838         wxUSE_ON_FATAL_EXCEPTION=no
35839     fi
35840
35841     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35842       echo "$as_me:$LINENO: checking for sa_handler type" >&5
35843 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35844 if test "${wx_cv_type_sa_handler+set}" = set; then
35845   echo $ECHO_N "(cached) $ECHO_C" >&6
35846 else
35847
35848         cat >conftest.$ac_ext <<_ACEOF
35849 /* confdefs.h.  */
35850 _ACEOF
35851 cat confdefs.h >>conftest.$ac_ext
35852 cat >>conftest.$ac_ext <<_ACEOF
35853 /* end confdefs.h.  */
35854 #include <signal.h>
35855 int
35856 main ()
35857 {
35858
35859                         extern void testSigHandler(int);
35860
35861                         struct sigaction sa;
35862                         sa.sa_handler = testSigHandler;
35863
35864   ;
35865   return 0;
35866 }
35867 _ACEOF
35868 rm -f conftest.$ac_objext
35869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35870   (eval $ac_compile) 2>conftest.er1
35871   ac_status=$?
35872   grep -v '^ *+' conftest.er1 >conftest.err
35873   rm -f conftest.er1
35874   cat conftest.err >&5
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); } &&
35877          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879   (eval $ac_try) 2>&5
35880   ac_status=$?
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); }; } &&
35883          { ac_try='test -s conftest.$ac_objext'
35884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35885   (eval $ac_try) 2>&5
35886   ac_status=$?
35887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888   (exit $ac_status); }; }; then
35889
35890                         wx_cv_type_sa_handler=int
35891
35892 else
35893   echo "$as_me: failed program was:" >&5
35894 sed 's/^/| /' conftest.$ac_ext >&5
35895
35896
35897                         wx_cv_type_sa_handler=void
35898
35899 fi
35900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35901
35902 fi
35903 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35904 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35905
35906       cat >>confdefs.h <<_ACEOF
35907 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35908 _ACEOF
35909
35910     fi
35911 fi
35912
35913 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35914     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35915 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35916 if test "${wx_cv_func_backtrace+set}" = set; then
35917   echo $ECHO_N "(cached) $ECHO_C" >&6
35918 else
35919
35920             cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h.  */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h.  */
35926 #include <execinfo.h>
35927 int
35928 main ()
35929 {
35930
35931                     void *trace[1];
35932                     char **messages;
35933
35934                     backtrace(trace, 1);
35935                     messages = backtrace_symbols(trace, 1);
35936
35937   ;
35938   return 0;
35939 }
35940 _ACEOF
35941 rm -f conftest.$ac_objext
35942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35943   (eval $ac_compile) 2>conftest.er1
35944   ac_status=$?
35945   grep -v '^ *+' conftest.er1 >conftest.err
35946   rm -f conftest.er1
35947   cat conftest.err >&5
35948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949   (exit $ac_status); } &&
35950          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35952   (eval $ac_try) 2>&5
35953   ac_status=$?
35954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955   (exit $ac_status); }; } &&
35956          { ac_try='test -s conftest.$ac_objext'
35957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35958   (eval $ac_try) 2>&5
35959   ac_status=$?
35960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961   (exit $ac_status); }; }; then
35962   wx_cv_func_backtrace=yes
35963 else
35964   echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35966
35967 wx_cv_func_backtrace=no
35968
35969 fi
35970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35971
35972
35973 fi
35974 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35975 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35976
35977
35978     if test "$wx_cv_func_backtrace" = "no"; then
35979         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35980 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35981         wxUSE_STACKWALKER=no
35982     else
35983         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35984 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35985 if test "${wx_cv_func_cxa_demangle+set}" = set; then
35986   echo $ECHO_N "(cached) $ECHO_C" >&6
35987 else
35988
35989                 cat >conftest.$ac_ext <<_ACEOF
35990 /* confdefs.h.  */
35991 _ACEOF
35992 cat confdefs.h >>conftest.$ac_ext
35993 cat >>conftest.$ac_ext <<_ACEOF
35994 /* end confdefs.h.  */
35995 #include <cxxabi.h>
35996 int
35997 main ()
35998 {
35999
36000                         int rc;
36001                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36002
36003   ;
36004   return 0;
36005 }
36006 _ACEOF
36007 rm -f conftest.$ac_objext conftest$ac_exeext
36008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36009   (eval $ac_link) 2>conftest.er1
36010   ac_status=$?
36011   grep -v '^ *+' conftest.er1 >conftest.err
36012   rm -f conftest.er1
36013   cat conftest.err >&5
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); } &&
36016          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018   (eval $ac_try) 2>&5
36019   ac_status=$?
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); }; } &&
36022          { ac_try='test -s conftest$ac_exeext'
36023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024   (eval $ac_try) 2>&5
36025   ac_status=$?
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); }; }; then
36028   wx_cv_func_cxa_demangle=yes
36029 else
36030   echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.$ac_ext >&5
36032
36033 wx_cv_func_cxa_demangle=no
36034
36035 fi
36036 rm -f conftest.err conftest.$ac_objext \
36037       conftest$ac_exeext conftest.$ac_ext
36038
36039
36040 fi
36041 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36042 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36043
36044         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36045             cat >>confdefs.h <<\_ACEOF
36046 #define HAVE_CXA_DEMANGLE 1
36047 _ACEOF
36048
36049         fi
36050     fi
36051 fi
36052
36053 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36054     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36055 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36056     wxUSE_STACKWALKER=no
36057 fi
36058
36059
36060
36061
36062 for ac_func in mkstemp mktemp
36063 do
36064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36065 echo "$as_me:$LINENO: checking for $ac_func" >&5
36066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36067 if eval "test \"\${$as_ac_var+set}\" = set"; then
36068   echo $ECHO_N "(cached) $ECHO_C" >&6
36069 else
36070   cat >conftest.$ac_ext <<_ACEOF
36071 /* confdefs.h.  */
36072 _ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h.  */
36076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36078 #define $ac_func innocuous_$ac_func
36079
36080 /* System header to define __stub macros and hopefully few prototypes,
36081     which can conflict with char $ac_func (); below.
36082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36083     <limits.h> exists even on freestanding compilers.  */
36084
36085 #ifdef __STDC__
36086 # include <limits.h>
36087 #else
36088 # include <assert.h>
36089 #endif
36090
36091 #undef $ac_func
36092
36093 /* Override any gcc2 internal prototype to avoid an error.  */
36094 #ifdef __cplusplus
36095 extern "C"
36096 {
36097 #endif
36098 /* We use char because int might match the return type of a gcc2
36099    builtin and then its argument prototype would still apply.  */
36100 char $ac_func ();
36101 /* The GNU C library defines this for functions which it implements
36102     to always fail with ENOSYS.  Some functions are actually named
36103     something starting with __ and the normal name is an alias.  */
36104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36105 choke me
36106 #else
36107 char (*f) () = $ac_func;
36108 #endif
36109 #ifdef __cplusplus
36110 }
36111 #endif
36112
36113 int
36114 main ()
36115 {
36116 return f != $ac_func;
36117   ;
36118   return 0;
36119 }
36120 _ACEOF
36121 rm -f conftest.$ac_objext conftest$ac_exeext
36122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36123   (eval $ac_link) 2>conftest.er1
36124   ac_status=$?
36125   grep -v '^ *+' conftest.er1 >conftest.err
36126   rm -f conftest.er1
36127   cat conftest.err >&5
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); } &&
36130          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36132   (eval $ac_try) 2>&5
36133   ac_status=$?
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); }; } &&
36136          { ac_try='test -s conftest$ac_exeext'
36137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36138   (eval $ac_try) 2>&5
36139   ac_status=$?
36140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36141   (exit $ac_status); }; }; then
36142   eval "$as_ac_var=yes"
36143 else
36144   echo "$as_me: failed program was:" >&5
36145 sed 's/^/| /' conftest.$ac_ext >&5
36146
36147 eval "$as_ac_var=no"
36148 fi
36149 rm -f conftest.err conftest.$ac_objext \
36150       conftest$ac_exeext conftest.$ac_ext
36151 fi
36152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36154 if test `eval echo '${'$as_ac_var'}'` = yes; then
36155   cat >>confdefs.h <<_ACEOF
36156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36157 _ACEOF
36158  break
36159 fi
36160 done
36161
36162
36163 echo "$as_me:$LINENO: checking for statfs" >&5
36164 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36165 if test "${wx_cv_func_statfs+set}" = set; then
36166   echo $ECHO_N "(cached) $ECHO_C" >&6
36167 else
36168   cat >conftest.$ac_ext <<_ACEOF
36169 /* confdefs.h.  */
36170 _ACEOF
36171 cat confdefs.h >>conftest.$ac_ext
36172 cat >>conftest.$ac_ext <<_ACEOF
36173 /* end confdefs.h.  */
36174
36175              #if defined(__BSD__)
36176              #include <sys/param.h>
36177              #include <sys/mount.h>
36178              #else
36179              #include <sys/vfs.h>
36180              #endif
36181
36182 int
36183 main ()
36184 {
36185
36186              long l;
36187              struct statfs fs;
36188              statfs("/", &fs);
36189              l = fs.f_bsize;
36190              l += fs.f_blocks;
36191              l += fs.f_bavail;
36192
36193   ;
36194   return 0;
36195 }
36196 _ACEOF
36197 rm -f conftest.$ac_objext
36198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36199   (eval $ac_compile) 2>conftest.er1
36200   ac_status=$?
36201   grep -v '^ *+' conftest.er1 >conftest.err
36202   rm -f conftest.er1
36203   cat conftest.err >&5
36204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); } &&
36206          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208   (eval $ac_try) 2>&5
36209   ac_status=$?
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); }; } &&
36212          { ac_try='test -s conftest.$ac_objext'
36213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214   (eval $ac_try) 2>&5
36215   ac_status=$?
36216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217   (exit $ac_status); }; }; then
36218   wx_cv_func_statfs=yes
36219 else
36220   echo "$as_me: failed program was:" >&5
36221 sed 's/^/| /' conftest.$ac_ext >&5
36222
36223 wx_cv_func_statfs=no
36224
36225 fi
36226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36227
36228 fi
36229 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36230 echo "${ECHO_T}$wx_cv_func_statfs" >&6
36231
36232 if test "$wx_cv_func_statfs" = "yes"; then
36233         echo "$as_me:$LINENO: checking for statfs declaration" >&5
36234 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36235 if test "${wx_cv_func_statfs_decl+set}" = set; then
36236   echo $ECHO_N "(cached) $ECHO_C" >&6
36237 else
36238   cat >conftest.$ac_ext <<_ACEOF
36239 /* confdefs.h.  */
36240 _ACEOF
36241 cat confdefs.h >>conftest.$ac_ext
36242 cat >>conftest.$ac_ext <<_ACEOF
36243 /* end confdefs.h.  */
36244
36245                  #if defined(__BSD__)
36246                  #include <sys/param.h>
36247                  #include <sys/mount.h>
36248                  #else
36249                  #include <sys/vfs.h>
36250                  #endif
36251
36252 int
36253 main ()
36254 {
36255
36256                 struct statfs fs;
36257                 statfs("", &fs);
36258
36259   ;
36260   return 0;
36261 }
36262 _ACEOF
36263 rm -f conftest.$ac_objext
36264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36265   (eval $ac_compile) 2>conftest.er1
36266   ac_status=$?
36267   grep -v '^ *+' conftest.er1 >conftest.err
36268   rm -f conftest.er1
36269   cat conftest.err >&5
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); } &&
36272          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274   (eval $ac_try) 2>&5
36275   ac_status=$?
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); }; } &&
36278          { ac_try='test -s conftest.$ac_objext'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; }; then
36284   wx_cv_func_statfs_decl=yes
36285 else
36286   echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36288
36289 wx_cv_func_statfs_decl=no
36290
36291 fi
36292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36293
36294 fi
36295 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36296 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
36297
36298     if test "$wx_cv_func_statfs_decl" = "yes"; then
36299         cat >>confdefs.h <<\_ACEOF
36300 #define HAVE_STATFS_DECL 1
36301 _ACEOF
36302
36303     fi
36304
36305     wx_cv_type_statvfs_t="struct statfs"
36306     cat >>confdefs.h <<\_ACEOF
36307 #define HAVE_STATFS 1
36308 _ACEOF
36309
36310 else
36311     echo "$as_me:$LINENO: checking for statvfs" >&5
36312 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36313 if test "${wx_cv_func_statvfs+set}" = set; then
36314   echo $ECHO_N "(cached) $ECHO_C" >&6
36315 else
36316   cat >conftest.$ac_ext <<_ACEOF
36317 /* confdefs.h.  */
36318 _ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h.  */
36322
36323                 #include <stddef.h>
36324                 #include <sys/statvfs.h>
36325
36326 int
36327 main ()
36328 {
36329
36330                 statvfs("/", NULL);
36331
36332   ;
36333   return 0;
36334 }
36335 _ACEOF
36336 rm -f conftest.$ac_objext
36337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36338   (eval $ac_compile) 2>conftest.er1
36339   ac_status=$?
36340   grep -v '^ *+' conftest.er1 >conftest.err
36341   rm -f conftest.er1
36342   cat conftest.err >&5
36343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36344   (exit $ac_status); } &&
36345          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36347   (eval $ac_try) 2>&5
36348   ac_status=$?
36349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350   (exit $ac_status); }; } &&
36351          { ac_try='test -s conftest.$ac_objext'
36352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353   (eval $ac_try) 2>&5
36354   ac_status=$?
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); }; }; then
36357   wx_cv_func_statvfs=yes
36358 else
36359   echo "$as_me: failed program was:" >&5
36360 sed 's/^/| /' conftest.$ac_ext >&5
36361
36362 wx_cv_func_statvfs=no
36363
36364 fi
36365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36366
36367 fi
36368 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36369 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36370
36371     if test "$wx_cv_func_statvfs" = "yes"; then
36372                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36373 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36374 if test "${wx_cv_type_statvfs_t+set}" = set; then
36375   echo $ECHO_N "(cached) $ECHO_C" >&6
36376 else
36377   cat >conftest.$ac_ext <<_ACEOF
36378 /* confdefs.h.  */
36379 _ACEOF
36380 cat confdefs.h >>conftest.$ac_ext
36381 cat >>conftest.$ac_ext <<_ACEOF
36382 /* end confdefs.h.  */
36383
36384                     #include <sys/statvfs.h>
36385
36386 int
36387 main ()
36388 {
36389
36390                     long l;
36391                     statvfs_t fs;
36392                     statvfs("/", &fs);
36393                     l = fs.f_bsize;
36394                     l += fs.f_blocks;
36395                     l += fs.f_bavail;
36396
36397   ;
36398   return 0;
36399 }
36400 _ACEOF
36401 rm -f conftest.$ac_objext
36402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36403   (eval $ac_compile) 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } &&
36410          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36412   (eval $ac_try) 2>&5
36413   ac_status=$?
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); }; } &&
36416          { ac_try='test -s conftest.$ac_objext'
36417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36418   (eval $ac_try) 2>&5
36419   ac_status=$?
36420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421   (exit $ac_status); }; }; then
36422   wx_cv_type_statvfs_t=statvfs_t
36423 else
36424   echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427
36428                     cat >conftest.$ac_ext <<_ACEOF
36429 /* confdefs.h.  */
36430 _ACEOF
36431 cat confdefs.h >>conftest.$ac_ext
36432 cat >>conftest.$ac_ext <<_ACEOF
36433 /* end confdefs.h.  */
36434
36435                             #include <sys/statvfs.h>
36436
36437 int
36438 main ()
36439 {
36440
36441                             long l;
36442                             struct statvfs fs;
36443                             statvfs("/", &fs);
36444                             l = fs.f_bsize;
36445                             l += fs.f_blocks;
36446                             l += fs.f_bavail;
36447
36448   ;
36449   return 0;
36450 }
36451 _ACEOF
36452 rm -f conftest.$ac_objext
36453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36454   (eval $ac_compile) 2>conftest.er1
36455   ac_status=$?
36456   grep -v '^ *+' conftest.er1 >conftest.err
36457   rm -f conftest.er1
36458   cat conftest.err >&5
36459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460   (exit $ac_status); } &&
36461          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463   (eval $ac_try) 2>&5
36464   ac_status=$?
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); }; } &&
36467          { ac_try='test -s conftest.$ac_objext'
36468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469   (eval $ac_try) 2>&5
36470   ac_status=$?
36471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472   (exit $ac_status); }; }; then
36473   wx_cv_type_statvfs_t="struct statvfs"
36474 else
36475   echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478 wx_cv_type_statvfs_t="unknown"
36479
36480 fi
36481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36482
36483
36484 fi
36485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36486
36487 fi
36488 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36489 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36490
36491         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36492             cat >>confdefs.h <<\_ACEOF
36493 #define HAVE_STATVFS 1
36494 _ACEOF
36495
36496         fi
36497     else
36498                 wx_cv_type_statvfs_t="unknown"
36499     fi
36500 fi
36501
36502 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36503     cat >>confdefs.h <<_ACEOF
36504 #define WX_STATFS_T $wx_cv_type_statvfs_t
36505 _ACEOF
36506
36507 else
36508     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36509 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36510 fi
36511
36512 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36513
36514
36515 for ac_func in fcntl flock
36516 do
36517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36518 echo "$as_me:$LINENO: checking for $ac_func" >&5
36519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36520 if eval "test \"\${$as_ac_var+set}\" = set"; then
36521   echo $ECHO_N "(cached) $ECHO_C" >&6
36522 else
36523   cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h.  */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h.  */
36529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36531 #define $ac_func innocuous_$ac_func
36532
36533 /* System header to define __stub macros and hopefully few prototypes,
36534     which can conflict with char $ac_func (); below.
36535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36536     <limits.h> exists even on freestanding compilers.  */
36537
36538 #ifdef __STDC__
36539 # include <limits.h>
36540 #else
36541 # include <assert.h>
36542 #endif
36543
36544 #undef $ac_func
36545
36546 /* Override any gcc2 internal prototype to avoid an error.  */
36547 #ifdef __cplusplus
36548 extern "C"
36549 {
36550 #endif
36551 /* We use char because int might match the return type of a gcc2
36552    builtin and then its argument prototype would still apply.  */
36553 char $ac_func ();
36554 /* The GNU C library defines this for functions which it implements
36555     to always fail with ENOSYS.  Some functions are actually named
36556     something starting with __ and the normal name is an alias.  */
36557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36558 choke me
36559 #else
36560 char (*f) () = $ac_func;
36561 #endif
36562 #ifdef __cplusplus
36563 }
36564 #endif
36565
36566 int
36567 main ()
36568 {
36569 return f != $ac_func;
36570   ;
36571   return 0;
36572 }
36573 _ACEOF
36574 rm -f conftest.$ac_objext conftest$ac_exeext
36575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36576   (eval $ac_link) 2>conftest.er1
36577   ac_status=$?
36578   grep -v '^ *+' conftest.er1 >conftest.err
36579   rm -f conftest.er1
36580   cat conftest.err >&5
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); } &&
36583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; } &&
36589          { ac_try='test -s conftest$ac_exeext'
36590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591   (eval $ac_try) 2>&5
36592   ac_status=$?
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); }; }; then
36595   eval "$as_ac_var=yes"
36596 else
36597   echo "$as_me: failed program was:" >&5
36598 sed 's/^/| /' conftest.$ac_ext >&5
36599
36600 eval "$as_ac_var=no"
36601 fi
36602 rm -f conftest.err conftest.$ac_objext \
36603       conftest$ac_exeext conftest.$ac_ext
36604 fi
36605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36607 if test `eval echo '${'$as_ac_var'}'` = yes; then
36608   cat >>confdefs.h <<_ACEOF
36609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36610 _ACEOF
36611  break
36612 fi
36613 done
36614
36615
36616     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36617         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36618 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36619         wxUSE_SNGLINST_CHECKER=no
36620     fi
36621 fi
36622
36623
36624 for ac_func in timegm
36625 do
36626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36627 echo "$as_me:$LINENO: checking for $ac_func" >&5
36628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36629 if eval "test \"\${$as_ac_var+set}\" = set"; then
36630   echo $ECHO_N "(cached) $ECHO_C" >&6
36631 else
36632   cat >conftest.$ac_ext <<_ACEOF
36633 /* confdefs.h.  */
36634 _ACEOF
36635 cat confdefs.h >>conftest.$ac_ext
36636 cat >>conftest.$ac_ext <<_ACEOF
36637 /* end confdefs.h.  */
36638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36640 #define $ac_func innocuous_$ac_func
36641
36642 /* System header to define __stub macros and hopefully few prototypes,
36643     which can conflict with char $ac_func (); below.
36644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36645     <limits.h> exists even on freestanding compilers.  */
36646
36647 #ifdef __STDC__
36648 # include <limits.h>
36649 #else
36650 # include <assert.h>
36651 #endif
36652
36653 #undef $ac_func
36654
36655 /* Override any gcc2 internal prototype to avoid an error.  */
36656 #ifdef __cplusplus
36657 extern "C"
36658 {
36659 #endif
36660 /* We use char because int might match the return type of a gcc2
36661    builtin and then its argument prototype would still apply.  */
36662 char $ac_func ();
36663 /* The GNU C library defines this for functions which it implements
36664     to always fail with ENOSYS.  Some functions are actually named
36665     something starting with __ and the normal name is an alias.  */
36666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36667 choke me
36668 #else
36669 char (*f) () = $ac_func;
36670 #endif
36671 #ifdef __cplusplus
36672 }
36673 #endif
36674
36675 int
36676 main ()
36677 {
36678 return f != $ac_func;
36679   ;
36680   return 0;
36681 }
36682 _ACEOF
36683 rm -f conftest.$ac_objext conftest$ac_exeext
36684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36685   (eval $ac_link) 2>conftest.er1
36686   ac_status=$?
36687   grep -v '^ *+' conftest.er1 >conftest.err
36688   rm -f conftest.er1
36689   cat conftest.err >&5
36690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691   (exit $ac_status); } &&
36692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694   (eval $ac_try) 2>&5
36695   ac_status=$?
36696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697   (exit $ac_status); }; } &&
36698          { ac_try='test -s conftest$ac_exeext'
36699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700   (eval $ac_try) 2>&5
36701   ac_status=$?
36702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703   (exit $ac_status); }; }; then
36704   eval "$as_ac_var=yes"
36705 else
36706   echo "$as_me: failed program was:" >&5
36707 sed 's/^/| /' conftest.$ac_ext >&5
36708
36709 eval "$as_ac_var=no"
36710 fi
36711 rm -f conftest.err conftest.$ac_objext \
36712       conftest$ac_exeext conftest.$ac_ext
36713 fi
36714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36716 if test `eval echo '${'$as_ac_var'}'` = yes; then
36717   cat >>confdefs.h <<_ACEOF
36718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36719 _ACEOF
36720
36721 fi
36722 done
36723
36724
36725
36726
36727 for ac_func in putenv setenv
36728 do
36729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36730 echo "$as_me:$LINENO: checking for $ac_func" >&5
36731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36732 if eval "test \"\${$as_ac_var+set}\" = set"; then
36733   echo $ECHO_N "(cached) $ECHO_C" >&6
36734 else
36735   cat >conftest.$ac_ext <<_ACEOF
36736 /* confdefs.h.  */
36737 _ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h.  */
36741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36743 #define $ac_func innocuous_$ac_func
36744
36745 /* System header to define __stub macros and hopefully few prototypes,
36746     which can conflict with char $ac_func (); below.
36747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36748     <limits.h> exists even on freestanding compilers.  */
36749
36750 #ifdef __STDC__
36751 # include <limits.h>
36752 #else
36753 # include <assert.h>
36754 #endif
36755
36756 #undef $ac_func
36757
36758 /* Override any gcc2 internal prototype to avoid an error.  */
36759 #ifdef __cplusplus
36760 extern "C"
36761 {
36762 #endif
36763 /* We use char because int might match the return type of a gcc2
36764    builtin and then its argument prototype would still apply.  */
36765 char $ac_func ();
36766 /* The GNU C library defines this for functions which it implements
36767     to always fail with ENOSYS.  Some functions are actually named
36768     something starting with __ and the normal name is an alias.  */
36769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36770 choke me
36771 #else
36772 char (*f) () = $ac_func;
36773 #endif
36774 #ifdef __cplusplus
36775 }
36776 #endif
36777
36778 int
36779 main ()
36780 {
36781 return f != $ac_func;
36782   ;
36783   return 0;
36784 }
36785 _ACEOF
36786 rm -f conftest.$ac_objext conftest$ac_exeext
36787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36788   (eval $ac_link) 2>conftest.er1
36789   ac_status=$?
36790   grep -v '^ *+' conftest.er1 >conftest.err
36791   rm -f conftest.er1
36792   cat conftest.err >&5
36793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794   (exit $ac_status); } &&
36795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797   (eval $ac_try) 2>&5
36798   ac_status=$?
36799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800   (exit $ac_status); }; } &&
36801          { ac_try='test -s conftest$ac_exeext'
36802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803   (eval $ac_try) 2>&5
36804   ac_status=$?
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); }; }; then
36807   eval "$as_ac_var=yes"
36808 else
36809   echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36811
36812 eval "$as_ac_var=no"
36813 fi
36814 rm -f conftest.err conftest.$ac_objext \
36815       conftest$ac_exeext conftest.$ac_ext
36816 fi
36817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36819 if test `eval echo '${'$as_ac_var'}'` = yes; then
36820   cat >>confdefs.h <<_ACEOF
36821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36822 _ACEOF
36823  break
36824 fi
36825 done
36826
36827
36828 HAVE_SOME_SLEEP_FUNC=0
36829 if test "$USE_BEOS" = 1; then
36830             cat >>confdefs.h <<\_ACEOF
36831 #define HAVE_SLEEP 1
36832 _ACEOF
36833
36834     HAVE_SOME_SLEEP_FUNC=1
36835 fi
36836
36837 if test "$USE_DARWIN" = 1; then
36838             cat >>confdefs.h <<\_ACEOF
36839 #define HAVE_USLEEP 1
36840 _ACEOF
36841
36842     HAVE_SOME_SLEEP_FUNC=1
36843 fi
36844
36845 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36846         POSIX4_LINK=
36847
36848 for ac_func in nanosleep
36849 do
36850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36851 echo "$as_me:$LINENO: checking for $ac_func" >&5
36852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36853 if eval "test \"\${$as_ac_var+set}\" = set"; then
36854   echo $ECHO_N "(cached) $ECHO_C" >&6
36855 else
36856   cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h.  */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h.  */
36862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36864 #define $ac_func innocuous_$ac_func
36865
36866 /* System header to define __stub macros and hopefully few prototypes,
36867     which can conflict with char $ac_func (); below.
36868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36869     <limits.h> exists even on freestanding compilers.  */
36870
36871 #ifdef __STDC__
36872 # include <limits.h>
36873 #else
36874 # include <assert.h>
36875 #endif
36876
36877 #undef $ac_func
36878
36879 /* Override any gcc2 internal prototype to avoid an error.  */
36880 #ifdef __cplusplus
36881 extern "C"
36882 {
36883 #endif
36884 /* We use char because int might match the return type of a gcc2
36885    builtin and then its argument prototype would still apply.  */
36886 char $ac_func ();
36887 /* The GNU C library defines this for functions which it implements
36888     to always fail with ENOSYS.  Some functions are actually named
36889     something starting with __ and the normal name is an alias.  */
36890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36891 choke me
36892 #else
36893 char (*f) () = $ac_func;
36894 #endif
36895 #ifdef __cplusplus
36896 }
36897 #endif
36898
36899 int
36900 main ()
36901 {
36902 return f != $ac_func;
36903   ;
36904   return 0;
36905 }
36906 _ACEOF
36907 rm -f conftest.$ac_objext conftest$ac_exeext
36908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36909   (eval $ac_link) 2>conftest.er1
36910   ac_status=$?
36911   grep -v '^ *+' conftest.er1 >conftest.err
36912   rm -f conftest.er1
36913   cat conftest.err >&5
36914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915   (exit $ac_status); } &&
36916          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918   (eval $ac_try) 2>&5
36919   ac_status=$?
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); }; } &&
36922          { ac_try='test -s conftest$ac_exeext'
36923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924   (eval $ac_try) 2>&5
36925   ac_status=$?
36926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927   (exit $ac_status); }; }; then
36928   eval "$as_ac_var=yes"
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933 eval "$as_ac_var=no"
36934 fi
36935 rm -f conftest.err conftest.$ac_objext \
36936       conftest$ac_exeext conftest.$ac_ext
36937 fi
36938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36940 if test `eval echo '${'$as_ac_var'}'` = yes; then
36941   cat >>confdefs.h <<_ACEOF
36942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36943 _ACEOF
36944  cat >>confdefs.h <<\_ACEOF
36945 #define HAVE_NANOSLEEP 1
36946 _ACEOF
36947
36948 else
36949
36950             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36951 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36952 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36953   echo $ECHO_N "(cached) $ECHO_C" >&6
36954 else
36955   ac_check_lib_save_LIBS=$LIBS
36956 LIBS="-lposix4  $LIBS"
36957 cat >conftest.$ac_ext <<_ACEOF
36958 /* confdefs.h.  */
36959 _ACEOF
36960 cat confdefs.h >>conftest.$ac_ext
36961 cat >>conftest.$ac_ext <<_ACEOF
36962 /* end confdefs.h.  */
36963
36964 /* Override any gcc2 internal prototype to avoid an error.  */
36965 #ifdef __cplusplus
36966 extern "C"
36967 #endif
36968 /* We use char because int might match the return type of a gcc2
36969    builtin and then its argument prototype would still apply.  */
36970 char nanosleep ();
36971 int
36972 main ()
36973 {
36974 nanosleep ();
36975   ;
36976   return 0;
36977 }
36978 _ACEOF
36979 rm -f conftest.$ac_objext conftest$ac_exeext
36980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36981   (eval $ac_link) 2>conftest.er1
36982   ac_status=$?
36983   grep -v '^ *+' conftest.er1 >conftest.err
36984   rm -f conftest.er1
36985   cat conftest.err >&5
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); } &&
36988          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990   (eval $ac_try) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); }; } &&
36994          { ac_try='test -s conftest$ac_exeext'
36995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996   (eval $ac_try) 2>&5
36997   ac_status=$?
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); }; }; then
37000   ac_cv_lib_posix4_nanosleep=yes
37001 else
37002   echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37004
37005 ac_cv_lib_posix4_nanosleep=no
37006 fi
37007 rm -f conftest.err conftest.$ac_objext \
37008       conftest$ac_exeext conftest.$ac_ext
37009 LIBS=$ac_check_lib_save_LIBS
37010 fi
37011 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37012 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37013 if test $ac_cv_lib_posix4_nanosleep = yes; then
37014
37015                     cat >>confdefs.h <<\_ACEOF
37016 #define HAVE_NANOSLEEP 1
37017 _ACEOF
37018
37019                     POSIX4_LINK=" -lposix4"
37020
37021 else
37022
37023
37024 for ac_func in usleep
37025 do
37026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37027 echo "$as_me:$LINENO: checking for $ac_func" >&5
37028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37029 if eval "test \"\${$as_ac_var+set}\" = set"; then
37030   echo $ECHO_N "(cached) $ECHO_C" >&6
37031 else
37032   cat >conftest.$ac_ext <<_ACEOF
37033 /* confdefs.h.  */
37034 _ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h.  */
37038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37040 #define $ac_func innocuous_$ac_func
37041
37042 /* System header to define __stub macros and hopefully few prototypes,
37043     which can conflict with char $ac_func (); below.
37044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37045     <limits.h> exists even on freestanding compilers.  */
37046
37047 #ifdef __STDC__
37048 # include <limits.h>
37049 #else
37050 # include <assert.h>
37051 #endif
37052
37053 #undef $ac_func
37054
37055 /* Override any gcc2 internal prototype to avoid an error.  */
37056 #ifdef __cplusplus
37057 extern "C"
37058 {
37059 #endif
37060 /* We use char because int might match the return type of a gcc2
37061    builtin and then its argument prototype would still apply.  */
37062 char $ac_func ();
37063 /* The GNU C library defines this for functions which it implements
37064     to always fail with ENOSYS.  Some functions are actually named
37065     something starting with __ and the normal name is an alias.  */
37066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37067 choke me
37068 #else
37069 char (*f) () = $ac_func;
37070 #endif
37071 #ifdef __cplusplus
37072 }
37073 #endif
37074
37075 int
37076 main ()
37077 {
37078 return f != $ac_func;
37079   ;
37080   return 0;
37081 }
37082 _ACEOF
37083 rm -f conftest.$ac_objext conftest$ac_exeext
37084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37085   (eval $ac_link) 2>conftest.er1
37086   ac_status=$?
37087   grep -v '^ *+' conftest.er1 >conftest.err
37088   rm -f conftest.er1
37089   cat conftest.err >&5
37090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); } &&
37092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37094   (eval $ac_try) 2>&5
37095   ac_status=$?
37096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097   (exit $ac_status); }; } &&
37098          { ac_try='test -s conftest$ac_exeext'
37099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37100   (eval $ac_try) 2>&5
37101   ac_status=$?
37102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37103   (exit $ac_status); }; }; then
37104   eval "$as_ac_var=yes"
37105 else
37106   echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37108
37109 eval "$as_ac_var=no"
37110 fi
37111 rm -f conftest.err conftest.$ac_objext \
37112       conftest$ac_exeext conftest.$ac_ext
37113 fi
37114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37116 if test `eval echo '${'$as_ac_var'}'` = yes; then
37117   cat >>confdefs.h <<_ACEOF
37118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37119 _ACEOF
37120  cat >>confdefs.h <<\_ACEOF
37121 #define HAVE_USLEEP 1
37122 _ACEOF
37123
37124 else
37125   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37126 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37127
37128 fi
37129 done
37130
37131
37132
37133 fi
37134
37135
37136
37137 fi
37138 done
37139
37140 fi
37141
37142
37143
37144 for ac_func in uname gethostname
37145 do
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37160 #define $ac_func innocuous_$ac_func
37161
37162 /* System header to define __stub macros and hopefully few prototypes,
37163     which can conflict with char $ac_func (); below.
37164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165     <limits.h> exists even on freestanding compilers.  */
37166
37167 #ifdef __STDC__
37168 # include <limits.h>
37169 #else
37170 # include <assert.h>
37171 #endif
37172
37173 #undef $ac_func
37174
37175 /* Override any gcc2 internal prototype to avoid an error.  */
37176 #ifdef __cplusplus
37177 extern "C"
37178 {
37179 #endif
37180 /* We use char because int might match the return type of a gcc2
37181    builtin and then its argument prototype would still apply.  */
37182 char $ac_func ();
37183 /* The GNU C library defines this for functions which it implements
37184     to always fail with ENOSYS.  Some functions are actually named
37185     something starting with __ and the normal name is an alias.  */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37187 choke me
37188 #else
37189 char (*f) () = $ac_func;
37190 #endif
37191 #ifdef __cplusplus
37192 }
37193 #endif
37194
37195 int
37196 main ()
37197 {
37198 return f != $ac_func;
37199   ;
37200   return 0;
37201 }
37202 _ACEOF
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205   (eval $ac_link) 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } &&
37212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37214   (eval $ac_try) 2>&5
37215   ac_status=$?
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); }; } &&
37218          { ac_try='test -s conftest$ac_exeext'
37219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220   (eval $ac_try) 2>&5
37221   ac_status=$?
37222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223   (exit $ac_status); }; }; then
37224   eval "$as_ac_var=yes"
37225 else
37226   echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37228
37229 eval "$as_ac_var=no"
37230 fi
37231 rm -f conftest.err conftest.$ac_objext \
37232       conftest$ac_exeext conftest.$ac_ext
37233 fi
37234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37236 if test `eval echo '${'$as_ac_var'}'` = yes; then
37237   cat >>confdefs.h <<_ACEOF
37238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37239 _ACEOF
37240  break
37241 fi
37242 done
37243
37244
37245
37246   for wx_func in strtok_r
37247   do
37248     echo "$as_me:$LINENO: checking for $wx_func" >&5
37249 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37250 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37251   echo $ECHO_N "(cached) $ECHO_C" >&6
37252 else
37253
37254         cat >conftest.$ac_ext <<_ACEOF
37255
37256             /* confdefs.h.  */
37257 _ACEOF
37258 cat confdefs.h >>conftest.$ac_ext
37259 cat >>conftest.$ac_ext <<_ACEOF
37260 /* end confdefs.h.  */
37261
37262                 #define _REENTRANT
37263                 $ac_includes_default
37264
37265 int
37266 main ()
37267 {
37268
37269                 #ifndef $wx_func
37270                   &$wx_func;
37271                 #endif
37272
37273
37274   ;
37275   return 0;
37276 }
37277
37278 _ACEOF
37279 rm -f conftest.$ac_objext conftest$ac_exeext
37280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37281   (eval $ac_link) 2>conftest.er1
37282   ac_status=$?
37283   grep -v '^ *+' conftest.er1 >conftest.err
37284   rm -f conftest.er1
37285   cat conftest.err >&5
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); } &&
37288          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290   (eval $ac_try) 2>&5
37291   ac_status=$?
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); }; } &&
37294          { ac_try='test -s conftest$ac_exeext'
37295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296   (eval $ac_try) 2>&5
37297   ac_status=$?
37298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299   (exit $ac_status); }; }; then
37300   eval wx_cv_func_$wx_func=yes
37301 else
37302   echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37304
37305 eval wx_cv_func_$wx_func=no
37306 fi
37307 rm -f conftest.err conftest.$ac_objext \
37308       conftest$ac_exeext conftest.$ac_ext
37309
37310 fi
37311 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37312 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37313
37314     if eval test \$wx_cv_func_$wx_func = yes
37315     then
37316       cat >>confdefs.h <<_ACEOF
37317 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37318 _ACEOF
37319
37320
37321     else
37322       :
37323
37324     fi
37325   done
37326
37327
37328 INET_LINK=
37329
37330 for ac_func in inet_addr
37331 do
37332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37333 echo "$as_me:$LINENO: checking for $ac_func" >&5
37334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37335 if eval "test \"\${$as_ac_var+set}\" = set"; then
37336   echo $ECHO_N "(cached) $ECHO_C" >&6
37337 else
37338   cat >conftest.$ac_ext <<_ACEOF
37339 /* confdefs.h.  */
37340 _ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h.  */
37344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37346 #define $ac_func innocuous_$ac_func
37347
37348 /* System header to define __stub macros and hopefully few prototypes,
37349     which can conflict with char $ac_func (); below.
37350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37351     <limits.h> exists even on freestanding compilers.  */
37352
37353 #ifdef __STDC__
37354 # include <limits.h>
37355 #else
37356 # include <assert.h>
37357 #endif
37358
37359 #undef $ac_func
37360
37361 /* Override any gcc2 internal prototype to avoid an error.  */
37362 #ifdef __cplusplus
37363 extern "C"
37364 {
37365 #endif
37366 /* We use char because int might match the return type of a gcc2
37367    builtin and then its argument prototype would still apply.  */
37368 char $ac_func ();
37369 /* The GNU C library defines this for functions which it implements
37370     to always fail with ENOSYS.  Some functions are actually named
37371     something starting with __ and the normal name is an alias.  */
37372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37373 choke me
37374 #else
37375 char (*f) () = $ac_func;
37376 #endif
37377 #ifdef __cplusplus
37378 }
37379 #endif
37380
37381 int
37382 main ()
37383 {
37384 return f != $ac_func;
37385   ;
37386   return 0;
37387 }
37388 _ACEOF
37389 rm -f conftest.$ac_objext conftest$ac_exeext
37390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37391   (eval $ac_link) 2>conftest.er1
37392   ac_status=$?
37393   grep -v '^ *+' conftest.er1 >conftest.err
37394   rm -f conftest.er1
37395   cat conftest.err >&5
37396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397   (exit $ac_status); } &&
37398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400   (eval $ac_try) 2>&5
37401   ac_status=$?
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); }; } &&
37404          { ac_try='test -s conftest$ac_exeext'
37405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37406   (eval $ac_try) 2>&5
37407   ac_status=$?
37408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409   (exit $ac_status); }; }; then
37410   eval "$as_ac_var=yes"
37411 else
37412   echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37414
37415 eval "$as_ac_var=no"
37416 fi
37417 rm -f conftest.err conftest.$ac_objext \
37418       conftest$ac_exeext conftest.$ac_ext
37419 fi
37420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37422 if test `eval echo '${'$as_ac_var'}'` = yes; then
37423   cat >>confdefs.h <<_ACEOF
37424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37425 _ACEOF
37426  cat >>confdefs.h <<\_ACEOF
37427 #define HAVE_INET_ADDR 1
37428 _ACEOF
37429
37430 else
37431
37432         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37433 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37434 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37435   echo $ECHO_N "(cached) $ECHO_C" >&6
37436 else
37437   ac_check_lib_save_LIBS=$LIBS
37438 LIBS="-lnsl  $LIBS"
37439 cat >conftest.$ac_ext <<_ACEOF
37440 /* confdefs.h.  */
37441 _ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h.  */
37445
37446 /* Override any gcc2 internal prototype to avoid an error.  */
37447 #ifdef __cplusplus
37448 extern "C"
37449 #endif
37450 /* We use char because int might match the return type of a gcc2
37451    builtin and then its argument prototype would still apply.  */
37452 char inet_addr ();
37453 int
37454 main ()
37455 {
37456 inet_addr ();
37457   ;
37458   return 0;
37459 }
37460 _ACEOF
37461 rm -f conftest.$ac_objext conftest$ac_exeext
37462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37463   (eval $ac_link) 2>conftest.er1
37464   ac_status=$?
37465   grep -v '^ *+' conftest.er1 >conftest.err
37466   rm -f conftest.er1
37467   cat conftest.err >&5
37468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469   (exit $ac_status); } &&
37470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472   (eval $ac_try) 2>&5
37473   ac_status=$?
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); }; } &&
37476          { ac_try='test -s conftest$ac_exeext'
37477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37478   (eval $ac_try) 2>&5
37479   ac_status=$?
37480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481   (exit $ac_status); }; }; then
37482   ac_cv_lib_nsl_inet_addr=yes
37483 else
37484   echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487 ac_cv_lib_nsl_inet_addr=no
37488 fi
37489 rm -f conftest.err conftest.$ac_objext \
37490       conftest$ac_exeext conftest.$ac_ext
37491 LIBS=$ac_check_lib_save_LIBS
37492 fi
37493 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37494 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37495 if test $ac_cv_lib_nsl_inet_addr = yes; then
37496   INET_LINK="nsl"
37497 else
37498
37499                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37500 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37501 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37502   echo $ECHO_N "(cached) $ECHO_C" >&6
37503 else
37504   ac_check_lib_save_LIBS=$LIBS
37505 LIBS="-lresolv  $LIBS"
37506 cat >conftest.$ac_ext <<_ACEOF
37507 /* confdefs.h.  */
37508 _ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h.  */
37512
37513 /* Override any gcc2 internal prototype to avoid an error.  */
37514 #ifdef __cplusplus
37515 extern "C"
37516 #endif
37517 /* We use char because int might match the return type of a gcc2
37518    builtin and then its argument prototype would still apply.  */
37519 char inet_addr ();
37520 int
37521 main ()
37522 {
37523 inet_addr ();
37524   ;
37525   return 0;
37526 }
37527 _ACEOF
37528 rm -f conftest.$ac_objext conftest$ac_exeext
37529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37530   (eval $ac_link) 2>conftest.er1
37531   ac_status=$?
37532   grep -v '^ *+' conftest.er1 >conftest.err
37533   rm -f conftest.er1
37534   cat conftest.err >&5
37535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536   (exit $ac_status); } &&
37537          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37539   (eval $ac_try) 2>&5
37540   ac_status=$?
37541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542   (exit $ac_status); }; } &&
37543          { ac_try='test -s conftest$ac_exeext'
37544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545   (eval $ac_try) 2>&5
37546   ac_status=$?
37547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); }; }; then
37549   ac_cv_lib_resolv_inet_addr=yes
37550 else
37551   echo "$as_me: failed program was:" >&5
37552 sed 's/^/| /' conftest.$ac_ext >&5
37553
37554 ac_cv_lib_resolv_inet_addr=no
37555 fi
37556 rm -f conftest.err conftest.$ac_objext \
37557       conftest$ac_exeext conftest.$ac_ext
37558 LIBS=$ac_check_lib_save_LIBS
37559 fi
37560 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37561 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37562 if test $ac_cv_lib_resolv_inet_addr = yes; then
37563   INET_LINK="resolv"
37564 else
37565
37566                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37567 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37568 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37569   echo $ECHO_N "(cached) $ECHO_C" >&6
37570 else
37571   ac_check_lib_save_LIBS=$LIBS
37572 LIBS="-lsocket  $LIBS"
37573 cat >conftest.$ac_ext <<_ACEOF
37574 /* confdefs.h.  */
37575 _ACEOF
37576 cat confdefs.h >>conftest.$ac_ext
37577 cat >>conftest.$ac_ext <<_ACEOF
37578 /* end confdefs.h.  */
37579
37580 /* Override any gcc2 internal prototype to avoid an error.  */
37581 #ifdef __cplusplus
37582 extern "C"
37583 #endif
37584 /* We use char because int might match the return type of a gcc2
37585    builtin and then its argument prototype would still apply.  */
37586 char inet_addr ();
37587 int
37588 main ()
37589 {
37590 inet_addr ();
37591   ;
37592   return 0;
37593 }
37594 _ACEOF
37595 rm -f conftest.$ac_objext conftest$ac_exeext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37597   (eval $ac_link) 2>conftest.er1
37598   ac_status=$?
37599   grep -v '^ *+' conftest.er1 >conftest.err
37600   rm -f conftest.er1
37601   cat conftest.err >&5
37602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603   (exit $ac_status); } &&
37604          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606   (eval $ac_try) 2>&5
37607   ac_status=$?
37608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609   (exit $ac_status); }; } &&
37610          { ac_try='test -s conftest$ac_exeext'
37611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37612   (eval $ac_try) 2>&5
37613   ac_status=$?
37614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615   (exit $ac_status); }; }; then
37616   ac_cv_lib_socket_inet_addr=yes
37617 else
37618   echo "$as_me: failed program was:" >&5
37619 sed 's/^/| /' conftest.$ac_ext >&5
37620
37621 ac_cv_lib_socket_inet_addr=no
37622 fi
37623 rm -f conftest.err conftest.$ac_objext \
37624       conftest$ac_exeext conftest.$ac_ext
37625 LIBS=$ac_check_lib_save_LIBS
37626 fi
37627 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37628 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37629 if test $ac_cv_lib_socket_inet_addr = yes; then
37630   INET_LINK="socket"
37631
37632 fi
37633
37634
37635
37636 fi
37637
37638
37639
37640 fi
37641
37642
37643
37644 fi
37645 done
37646
37647
37648
37649 for ac_func in inet_aton
37650 do
37651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37652 echo "$as_me:$LINENO: checking for $ac_func" >&5
37653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37654 if eval "test \"\${$as_ac_var+set}\" = set"; then
37655   echo $ECHO_N "(cached) $ECHO_C" >&6
37656 else
37657   cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37665 #define $ac_func innocuous_$ac_func
37666
37667 /* System header to define __stub macros and hopefully few prototypes,
37668     which can conflict with char $ac_func (); below.
37669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37670     <limits.h> exists even on freestanding compilers.  */
37671
37672 #ifdef __STDC__
37673 # include <limits.h>
37674 #else
37675 # include <assert.h>
37676 #endif
37677
37678 #undef $ac_func
37679
37680 /* Override any gcc2 internal prototype to avoid an error.  */
37681 #ifdef __cplusplus
37682 extern "C"
37683 {
37684 #endif
37685 /* We use char because int might match the return type of a gcc2
37686    builtin and then its argument prototype would still apply.  */
37687 char $ac_func ();
37688 /* The GNU C library defines this for functions which it implements
37689     to always fail with ENOSYS.  Some functions are actually named
37690     something starting with __ and the normal name is an alias.  */
37691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37692 choke me
37693 #else
37694 char (*f) () = $ac_func;
37695 #endif
37696 #ifdef __cplusplus
37697 }
37698 #endif
37699
37700 int
37701 main ()
37702 {
37703 return f != $ac_func;
37704   ;
37705   return 0;
37706 }
37707 _ACEOF
37708 rm -f conftest.$ac_objext conftest$ac_exeext
37709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37710   (eval $ac_link) 2>conftest.er1
37711   ac_status=$?
37712   grep -v '^ *+' conftest.er1 >conftest.err
37713   rm -f conftest.er1
37714   cat conftest.err >&5
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); } &&
37717          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37719   (eval $ac_try) 2>&5
37720   ac_status=$?
37721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722   (exit $ac_status); }; } &&
37723          { ac_try='test -s conftest$ac_exeext'
37724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725   (eval $ac_try) 2>&5
37726   ac_status=$?
37727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728   (exit $ac_status); }; }; then
37729   eval "$as_ac_var=yes"
37730 else
37731   echo "$as_me: failed program was:" >&5
37732 sed 's/^/| /' conftest.$ac_ext >&5
37733
37734 eval "$as_ac_var=no"
37735 fi
37736 rm -f conftest.err conftest.$ac_objext \
37737       conftest$ac_exeext conftest.$ac_ext
37738 fi
37739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37741 if test `eval echo '${'$as_ac_var'}'` = yes; then
37742   cat >>confdefs.h <<_ACEOF
37743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37744 _ACEOF
37745  cat >>confdefs.h <<\_ACEOF
37746 #define HAVE_INET_ATON 1
37747 _ACEOF
37748
37749 else
37750
37751                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37752 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37753 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37754 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37755   echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757   ac_check_lib_save_LIBS=$LIBS
37758 LIBS="-l$INET_LINK  $LIBS"
37759 cat >conftest.$ac_ext <<_ACEOF
37760 /* confdefs.h.  */
37761 _ACEOF
37762 cat confdefs.h >>conftest.$ac_ext
37763 cat >>conftest.$ac_ext <<_ACEOF
37764 /* end confdefs.h.  */
37765
37766 /* Override any gcc2 internal prototype to avoid an error.  */
37767 #ifdef __cplusplus
37768 extern "C"
37769 #endif
37770 /* We use char because int might match the return type of a gcc2
37771    builtin and then its argument prototype would still apply.  */
37772 char inet_aton ();
37773 int
37774 main ()
37775 {
37776 inet_aton ();
37777   ;
37778   return 0;
37779 }
37780 _ACEOF
37781 rm -f conftest.$ac_objext conftest$ac_exeext
37782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37783   (eval $ac_link) 2>conftest.er1
37784   ac_status=$?
37785   grep -v '^ *+' conftest.er1 >conftest.err
37786   rm -f conftest.er1
37787   cat conftest.err >&5
37788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789   (exit $ac_status); } &&
37790          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37792   (eval $ac_try) 2>&5
37793   ac_status=$?
37794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795   (exit $ac_status); }; } &&
37796          { ac_try='test -s conftest$ac_exeext'
37797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37798   (eval $ac_try) 2>&5
37799   ac_status=$?
37800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801   (exit $ac_status); }; }; then
37802   eval "$as_ac_Lib=yes"
37803 else
37804   echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37806
37807 eval "$as_ac_Lib=no"
37808 fi
37809 rm -f conftest.err conftest.$ac_objext \
37810       conftest$ac_exeext conftest.$ac_ext
37811 LIBS=$ac_check_lib_save_LIBS
37812 fi
37813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37814 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37815 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37816   cat >>confdefs.h <<\_ACEOF
37817 #define HAVE_INET_ATON 1
37818 _ACEOF
37819
37820 fi
37821
37822
37823 fi
37824 done
37825
37826
37827 if test "x$INET_LINK" != "x"; then
37828     cat >>confdefs.h <<\_ACEOF
37829 #define HAVE_INET_ADDR 1
37830 _ACEOF
37831
37832     INET_LINK=" -l$INET_LINK"
37833 fi
37834
37835 fi
37836
37837
37838
37839 EXTRALIBS_ESD=
37840 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37841 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37842 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37843   echo $ECHO_N "(cached) $ECHO_C" >&6
37844 else
37845   ac_check_lib_save_LIBS=$LIBS
37846 LIBS="-lesd  $LIBS"
37847 cat >conftest.$ac_ext <<_ACEOF
37848 /* confdefs.h.  */
37849 _ACEOF
37850 cat confdefs.h >>conftest.$ac_ext
37851 cat >>conftest.$ac_ext <<_ACEOF
37852 /* end confdefs.h.  */
37853
37854 /* Override any gcc2 internal prototype to avoid an error.  */
37855 #ifdef __cplusplus
37856 extern "C"
37857 #endif
37858 /* We use char because int might match the return type of a gcc2
37859    builtin and then its argument prototype would still apply.  */
37860 char esd_close ();
37861 int
37862 main ()
37863 {
37864 esd_close ();
37865   ;
37866   return 0;
37867 }
37868 _ACEOF
37869 rm -f conftest.$ac_objext conftest$ac_exeext
37870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37871   (eval $ac_link) 2>conftest.er1
37872   ac_status=$?
37873   grep -v '^ *+' conftest.er1 >conftest.err
37874   rm -f conftest.er1
37875   cat conftest.err >&5
37876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877   (exit $ac_status); } &&
37878          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880   (eval $ac_try) 2>&5
37881   ac_status=$?
37882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883   (exit $ac_status); }; } &&
37884          { ac_try='test -s conftest$ac_exeext'
37885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886   (eval $ac_try) 2>&5
37887   ac_status=$?
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); }; }; then
37890   ac_cv_lib_esd_esd_close=yes
37891 else
37892   echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37894
37895 ac_cv_lib_esd_esd_close=no
37896 fi
37897 rm -f conftest.err conftest.$ac_objext \
37898       conftest$ac_exeext conftest.$ac_ext
37899 LIBS=$ac_check_lib_save_LIBS
37900 fi
37901 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37902 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37903 if test $ac_cv_lib_esd_esd_close = yes; then
37904
37905
37906 for ac_header in esd.h
37907 do
37908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37910   echo "$as_me:$LINENO: checking for $ac_header" >&5
37911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37913   echo $ECHO_N "(cached) $ECHO_C" >&6
37914 fi
37915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37917 else
37918   # Is the header compilable?
37919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37921 cat >conftest.$ac_ext <<_ACEOF
37922 /* confdefs.h.  */
37923 _ACEOF
37924 cat confdefs.h >>conftest.$ac_ext
37925 cat >>conftest.$ac_ext <<_ACEOF
37926 /* end confdefs.h.  */
37927 $ac_includes_default
37928 #include <$ac_header>
37929 _ACEOF
37930 rm -f conftest.$ac_objext
37931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37932   (eval $ac_compile) 2>conftest.er1
37933   ac_status=$?
37934   grep -v '^ *+' conftest.er1 >conftest.err
37935   rm -f conftest.er1
37936   cat conftest.err >&5
37937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938   (exit $ac_status); } &&
37939          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941   (eval $ac_try) 2>&5
37942   ac_status=$?
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); }; } &&
37945          { ac_try='test -s conftest.$ac_objext'
37946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947   (eval $ac_try) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); }; }; then
37951   ac_header_compiler=yes
37952 else
37953   echo "$as_me: failed program was:" >&5
37954 sed 's/^/| /' conftest.$ac_ext >&5
37955
37956 ac_header_compiler=no
37957 fi
37958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37960 echo "${ECHO_T}$ac_header_compiler" >&6
37961
37962 # Is the header present?
37963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37965 cat >conftest.$ac_ext <<_ACEOF
37966 /* confdefs.h.  */
37967 _ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h.  */
37971 #include <$ac_header>
37972 _ACEOF
37973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37975   ac_status=$?
37976   grep -v '^ *+' conftest.er1 >conftest.err
37977   rm -f conftest.er1
37978   cat conftest.err >&5
37979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980   (exit $ac_status); } >/dev/null; then
37981   if test -s conftest.err; then
37982     ac_cpp_err=$ac_cxx_preproc_warn_flag
37983     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37984   else
37985     ac_cpp_err=
37986   fi
37987 else
37988   ac_cpp_err=yes
37989 fi
37990 if test -z "$ac_cpp_err"; then
37991   ac_header_preproc=yes
37992 else
37993   echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37995
37996   ac_header_preproc=no
37997 fi
37998 rm -f conftest.err conftest.$ac_ext
37999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38000 echo "${ECHO_T}$ac_header_preproc" >&6
38001
38002 # So?  What about this header?
38003 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38004   yes:no: )
38005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38009     ac_header_preproc=yes
38010     ;;
38011   no:yes:* )
38012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38024     (
38025       cat <<\_ASBOX
38026 ## ----------------------------------------- ##
38027 ## Report this to wx-dev@lists.wxwidgets.org ##
38028 ## ----------------------------------------- ##
38029 _ASBOX
38030     ) |
38031       sed "s/^/$as_me: WARNING:     /" >&2
38032     ;;
38033 esac
38034 echo "$as_me:$LINENO: checking for $ac_header" >&5
38035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38037   echo $ECHO_N "(cached) $ECHO_C" >&6
38038 else
38039   eval "$as_ac_Header=\$ac_header_preproc"
38040 fi
38041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38043
38044 fi
38045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38046   cat >>confdefs.h <<_ACEOF
38047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38048 _ACEOF
38049
38050     EXTRALIBS_ESD="-lesd"
38051
38052 fi
38053
38054 done
38055
38056
38057 fi
38058
38059
38060
38061 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38062 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38063 cat >conftest.$ac_ext <<_ACEOF
38064 /* confdefs.h.  */
38065 _ACEOF
38066 cat confdefs.h >>conftest.$ac_ext
38067 cat >>conftest.$ac_ext <<_ACEOF
38068 /* end confdefs.h.  */
38069 #ifdef __linux__
38070                 #include <linux/cdrom.h>
38071                 #else
38072                 /* For Solaris */
38073                 #include <sys/cdio.h>
38074                 #endif
38075
38076 int
38077 main ()
38078 {
38079 struct cdrom_tocentry entry, old_entry;
38080   ;
38081   return 0;
38082 }
38083 _ACEOF
38084 rm -f conftest.$ac_objext
38085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38086   (eval $ac_compile) 2>conftest.er1
38087   ac_status=$?
38088   grep -v '^ *+' conftest.er1 >conftest.err
38089   rm -f conftest.er1
38090   cat conftest.err >&5
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); } &&
38093          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38095   (eval $ac_try) 2>&5
38096   ac_status=$?
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); }; } &&
38099          { ac_try='test -s conftest.$ac_objext'
38100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38101   (eval $ac_try) 2>&5
38102   ac_status=$?
38103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104   (exit $ac_status); }; }; then
38105   echo "$as_me:$LINENO: result: yes" >&5
38106 echo "${ECHO_T}yes" >&6
38107                 cat >>confdefs.h <<\_ACEOF
38108 #define HAVE_KNOWN_CDROM_INTERFACE 1
38109 _ACEOF
38110
38111 else
38112   echo "$as_me: failed program was:" >&5
38113 sed 's/^/| /' conftest.$ac_ext >&5
38114
38115 echo "$as_me:$LINENO: result: no" >&5
38116 echo "${ECHO_T}no" >&6
38117 fi
38118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38119
38120
38121 cat >confcache <<\_ACEOF
38122 # This file is a shell script that caches the results of configure
38123 # tests run on this system so they can be shared between configure
38124 # scripts and configure runs, see configure's option --config-cache.
38125 # It is not useful on other systems.  If it contains results you don't
38126 # want to keep, you may remove or edit it.
38127 #
38128 # config.status only pays attention to the cache file if you give it
38129 # the --recheck option to rerun configure.
38130 #
38131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38133 # following values.
38134
38135 _ACEOF
38136
38137 # The following way of writing the cache mishandles newlines in values,
38138 # but we know of no workaround that is simple, portable, and efficient.
38139 # So, don't put newlines in cache variables' values.
38140 # Ultrix sh set writes to stderr and can't be redirected directly,
38141 # and sets the high bit in the cache file unless we assign to the vars.
38142 {
38143   (set) 2>&1 |
38144     case `(ac_space=' '; set | grep ac_space) 2>&1` in
38145     *ac_space=\ *)
38146       # `set' does not quote correctly, so add quotes (double-quote
38147       # substitution turns \\\\ into \\, and sed turns \\ into \).
38148       sed -n \
38149         "s/'/'\\\\''/g;
38150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38151       ;;
38152     *)
38153       # `set' quotes correctly as required by POSIX, so do not add quotes.
38154       sed -n \
38155         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38156       ;;
38157     esac;
38158 } |
38159   sed '
38160      t clear
38161      : clear
38162      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38163      t end
38164      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38165      : end' >>confcache
38166 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38167   if test -w $cache_file; then
38168     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38169     cat confcache >$cache_file
38170   else
38171     echo "not updating unwritable cache $cache_file"
38172   fi
38173 fi
38174 rm -f confcache
38175
38176
38177 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38178
38179
38180     THREADS_LINK=
38181     THREADS_CXXFLAGS=
38182
38183     if test "$wxUSE_THREADS" = "yes" ; then
38184         if test "$USE_BEOS" = 1; then
38185             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38186 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38187             wxUSE_THREADS="no"
38188         fi
38189     fi
38190
38191     if test "$wxUSE_THREADS" = "yes" ; then
38192
38193
38194                                 THREAD_OPTS="-pthread"
38195         case "${host}" in
38196           *-*-solaris2* | *-*-sunos4* )
38197                 if test "x$GCC" = "xyes"; then
38198                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38199                 else
38200                     THREAD_OPTS="-mt $THREAD_OPTS"
38201                 fi
38202                 ;;
38203           *-*-freebsd*)
38204                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38205                 ;;
38206           *-*-darwin* | *-*-cygwin* )
38207                                                 THREAD_OPTS=""
38208                 ;;
38209           *-*-aix*)
38210                                 THREAD_OPTS="pthreads"
38211                 ;;
38212           *-hp-hpux* )
38213                 if test "x$GCC" = "xyes"; then
38214                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38215                         THREAD_OPTS=""
38216                 else
38217                                                             THREAD_OPTS="-mt"
38218                 fi
38219                 ;;
38220
38221           *-*-irix* )
38222                                                                 if test "x$GCC" = "xyes"; then
38223                     THREAD_OPTS=""
38224                 fi
38225                 ;;
38226
38227           *-*-*UnixWare*)
38228                                 if test "x$GCC" != "xyes"; then
38229                     THREAD_OPTS="-Ethread"
38230                 fi
38231                 ;;
38232         esac
38233
38234                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38235
38236                 THREADS_OK=no
38237         for flag in $THREAD_OPTS; do
38238             case $flag in
38239                 none)
38240                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38241 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38242                     ;;
38243
38244                 -*)
38245                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38246 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
38247                     THREADS_CXXFLAGS="$flag"
38248                     ;;
38249
38250                 *)
38251                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38252 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38253                     THREADS_LINK="-l$flag"
38254                     ;;
38255               esac
38256
38257               save_LIBS="$LIBS"
38258               save_CXXFLAGS="$CXXFLAGS"
38259               LIBS="$THREADS_LINK $LIBS"
38260               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
38261
38262               cat >conftest.$ac_ext <<_ACEOF
38263 /* confdefs.h.  */
38264 _ACEOF
38265 cat confdefs.h >>conftest.$ac_ext
38266 cat >>conftest.$ac_ext <<_ACEOF
38267 /* end confdefs.h.  */
38268 #include <pthread.h>
38269 int
38270 main ()
38271 {
38272 pthread_create(0,0,0,0);
38273   ;
38274   return 0;
38275 }
38276 _ACEOF
38277 rm -f conftest.$ac_objext conftest$ac_exeext
38278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38279   (eval $ac_link) 2>conftest.er1
38280   ac_status=$?
38281   grep -v '^ *+' conftest.er1 >conftest.err
38282   rm -f conftest.er1
38283   cat conftest.err >&5
38284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285   (exit $ac_status); } &&
38286          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288   (eval $ac_try) 2>&5
38289   ac_status=$?
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); }; } &&
38292          { ac_try='test -s conftest$ac_exeext'
38293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294   (eval $ac_try) 2>&5
38295   ac_status=$?
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); }; }; then
38298   THREADS_OK=yes
38299 else
38300   echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38302
38303 fi
38304 rm -f conftest.err conftest.$ac_objext \
38305       conftest$ac_exeext conftest.$ac_ext
38306
38307               LIBS="$save_LIBS"
38308               CXXFLAGS="$save_CXXFLAGS"
38309
38310               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38311 echo "${ECHO_T}$THREADS_OK" >&6
38312               if test "x$THREADS_OK" = "xyes"; then
38313                       break;
38314               fi
38315
38316               THREADS_LINK=""
38317               THREADS_CXXFLAGS=""
38318       done
38319
38320       if test "x$THREADS_OK" != "xyes"; then
38321           wxUSE_THREADS=no
38322           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38323 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38324       else
38325                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
38326           LIBS="$THREADS_LINK $LIBS"
38327
38328           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38329 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38330           flag=no
38331           case "${host}" in
38332             *-aix*)
38333                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38334                 flag="-D_THREAD_SAFE"
38335                 ;;
38336             *-freebsd*)
38337                 flag="-D_THREAD_SAFE"
38338                 ;;
38339             *-hp-hpux* )
38340                 flag="-D_REENTRANT"
38341                 if test "x$GCC" != "xyes"; then
38342                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38343                 fi
38344                 ;;
38345             *solaris* | alpha*-osf*)
38346                 flag="-D_REENTRANT"
38347                 ;;
38348           esac
38349           echo "$as_me:$LINENO: result: ${flag}" >&5
38350 echo "${ECHO_T}${flag}" >&6
38351           if test "x$flag" != xno; then
38352               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
38353           fi
38354
38355                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
38356       fi
38357     fi
38358
38359         if test "$wxUSE_THREADS" = "yes" ; then
38360
38361 for ac_func in thr_setconcurrency
38362 do
38363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38364 echo "$as_me:$LINENO: checking for $ac_func" >&5
38365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38366 if eval "test \"\${$as_ac_var+set}\" = set"; then
38367   echo $ECHO_N "(cached) $ECHO_C" >&6
38368 else
38369   cat >conftest.$ac_ext <<_ACEOF
38370 /* confdefs.h.  */
38371 _ACEOF
38372 cat confdefs.h >>conftest.$ac_ext
38373 cat >>conftest.$ac_ext <<_ACEOF
38374 /* end confdefs.h.  */
38375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38377 #define $ac_func innocuous_$ac_func
38378
38379 /* System header to define __stub macros and hopefully few prototypes,
38380     which can conflict with char $ac_func (); below.
38381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38382     <limits.h> exists even on freestanding compilers.  */
38383
38384 #ifdef __STDC__
38385 # include <limits.h>
38386 #else
38387 # include <assert.h>
38388 #endif
38389
38390 #undef $ac_func
38391
38392 /* Override any gcc2 internal prototype to avoid an error.  */
38393 #ifdef __cplusplus
38394 extern "C"
38395 {
38396 #endif
38397 /* We use char because int might match the return type of a gcc2
38398    builtin and then its argument prototype would still apply.  */
38399 char $ac_func ();
38400 /* The GNU C library defines this for functions which it implements
38401     to always fail with ENOSYS.  Some functions are actually named
38402     something starting with __ and the normal name is an alias.  */
38403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38404 choke me
38405 #else
38406 char (*f) () = $ac_func;
38407 #endif
38408 #ifdef __cplusplus
38409 }
38410 #endif
38411
38412 int
38413 main ()
38414 {
38415 return f != $ac_func;
38416   ;
38417   return 0;
38418 }
38419 _ACEOF
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38422   (eval $ac_link) 2>conftest.er1
38423   ac_status=$?
38424   grep -v '^ *+' conftest.er1 >conftest.err
38425   rm -f conftest.er1
38426   cat conftest.err >&5
38427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428   (exit $ac_status); } &&
38429          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431   (eval $ac_try) 2>&5
38432   ac_status=$?
38433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434   (exit $ac_status); }; } &&
38435          { ac_try='test -s conftest$ac_exeext'
38436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437   (eval $ac_try) 2>&5
38438   ac_status=$?
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); }; }; then
38441   eval "$as_ac_var=yes"
38442 else
38443   echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446 eval "$as_ac_var=no"
38447 fi
38448 rm -f conftest.err conftest.$ac_objext \
38449       conftest$ac_exeext conftest.$ac_ext
38450 fi
38451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38453 if test `eval echo '${'$as_ac_var'}'` = yes; then
38454   cat >>confdefs.h <<_ACEOF
38455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38456 _ACEOF
38457
38458 fi
38459 done
38460
38461
38462                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38463 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38464 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38465   echo $ECHO_N "(cached) $ECHO_C" >&6
38466 else
38467
38468         cat >conftest.$ac_ext <<_ACEOF
38469 /* confdefs.h.  */
38470 _ACEOF
38471 cat confdefs.h >>conftest.$ac_ext
38472 cat >>conftest.$ac_ext <<_ACEOF
38473 /* end confdefs.h.  */
38474 #include <pthread.h>
38475                void ThreadCleanupFunc(void *p);
38476
38477 int
38478 main ()
38479 {
38480
38481                 void *p;
38482                 pthread_cleanup_push(ThreadCleanupFunc, p);
38483                 pthread_cleanup_pop(0);
38484
38485   ;
38486   return 0;
38487 }
38488 _ACEOF
38489 rm -f conftest.$ac_objext
38490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38491   (eval $ac_compile) 2>conftest.er1
38492   ac_status=$?
38493   grep -v '^ *+' conftest.er1 >conftest.err
38494   rm -f conftest.er1
38495   cat conftest.err >&5
38496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497   (exit $ac_status); } &&
38498          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38500   (eval $ac_try) 2>&5
38501   ac_status=$?
38502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503   (exit $ac_status); }; } &&
38504          { ac_try='test -s conftest.$ac_objext'
38505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506   (eval $ac_try) 2>&5
38507   ac_status=$?
38508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509   (exit $ac_status); }; }; then
38510
38511                wx_cv_func_pthread_cleanup=yes
38512
38513 else
38514   echo "$as_me: failed program was:" >&5
38515 sed 's/^/| /' conftest.$ac_ext >&5
38516
38517
38518                wx_cv_func_pthread_cleanup=no
38519
38520
38521 fi
38522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38523
38524 fi
38525 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38526 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38527       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38528         cat >>confdefs.h <<\_ACEOF
38529 #define wxHAVE_PTHREAD_CLEANUP 1
38530 _ACEOF
38531
38532       fi
38533
38534
38535 for ac_header in sched.h
38536 do
38537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38539   echo "$as_me:$LINENO: checking for $ac_header" >&5
38540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38542   echo $ECHO_N "(cached) $ECHO_C" >&6
38543 fi
38544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38546 else
38547   # Is the header compilable?
38548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38550 cat >conftest.$ac_ext <<_ACEOF
38551 /* confdefs.h.  */
38552 _ACEOF
38553 cat confdefs.h >>conftest.$ac_ext
38554 cat >>conftest.$ac_ext <<_ACEOF
38555 /* end confdefs.h.  */
38556 $ac_includes_default
38557 #include <$ac_header>
38558 _ACEOF
38559 rm -f conftest.$ac_objext
38560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38561   (eval $ac_compile) 2>conftest.er1
38562   ac_status=$?
38563   grep -v '^ *+' conftest.er1 >conftest.err
38564   rm -f conftest.er1
38565   cat conftest.err >&5
38566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567   (exit $ac_status); } &&
38568          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38570   (eval $ac_try) 2>&5
38571   ac_status=$?
38572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573   (exit $ac_status); }; } &&
38574          { ac_try='test -s conftest.$ac_objext'
38575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38576   (eval $ac_try) 2>&5
38577   ac_status=$?
38578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579   (exit $ac_status); }; }; then
38580   ac_header_compiler=yes
38581 else
38582   echo "$as_me: failed program was:" >&5
38583 sed 's/^/| /' conftest.$ac_ext >&5
38584
38585 ac_header_compiler=no
38586 fi
38587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38589 echo "${ECHO_T}$ac_header_compiler" >&6
38590
38591 # Is the header present?
38592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38594 cat >conftest.$ac_ext <<_ACEOF
38595 /* confdefs.h.  */
38596 _ACEOF
38597 cat confdefs.h >>conftest.$ac_ext
38598 cat >>conftest.$ac_ext <<_ACEOF
38599 /* end confdefs.h.  */
38600 #include <$ac_header>
38601 _ACEOF
38602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38604   ac_status=$?
38605   grep -v '^ *+' conftest.er1 >conftest.err
38606   rm -f conftest.er1
38607   cat conftest.err >&5
38608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609   (exit $ac_status); } >/dev/null; then
38610   if test -s conftest.err; then
38611     ac_cpp_err=$ac_cxx_preproc_warn_flag
38612     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38613   else
38614     ac_cpp_err=
38615   fi
38616 else
38617   ac_cpp_err=yes
38618 fi
38619 if test -z "$ac_cpp_err"; then
38620   ac_header_preproc=yes
38621 else
38622   echo "$as_me: failed program was:" >&5
38623 sed 's/^/| /' conftest.$ac_ext >&5
38624
38625   ac_header_preproc=no
38626 fi
38627 rm -f conftest.err conftest.$ac_ext
38628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38629 echo "${ECHO_T}$ac_header_preproc" >&6
38630
38631 # So?  What about this header?
38632 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38633   yes:no: )
38634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38638     ac_header_preproc=yes
38639     ;;
38640   no:yes:* )
38641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38653     (
38654       cat <<\_ASBOX
38655 ## ----------------------------------------- ##
38656 ## Report this to wx-dev@lists.wxwidgets.org ##
38657 ## ----------------------------------------- ##
38658 _ASBOX
38659     ) |
38660       sed "s/^/$as_me: WARNING:     /" >&2
38661     ;;
38662 esac
38663 echo "$as_me:$LINENO: checking for $ac_header" >&5
38664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38666   echo $ECHO_N "(cached) $ECHO_C" >&6
38667 else
38668   eval "$as_ac_Header=\$ac_header_preproc"
38669 fi
38670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38672
38673 fi
38674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38675   cat >>confdefs.h <<_ACEOF
38676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38677 _ACEOF
38678
38679 fi
38680
38681 done
38682
38683       if test "$ac_cv_header_sched_h" = "yes"; then
38684           echo "$as_me:$LINENO: checking for sched_yield" >&5
38685 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38686 if test "${ac_cv_func_sched_yield+set}" = set; then
38687   echo $ECHO_N "(cached) $ECHO_C" >&6
38688 else
38689   cat >conftest.$ac_ext <<_ACEOF
38690 /* confdefs.h.  */
38691 _ACEOF
38692 cat confdefs.h >>conftest.$ac_ext
38693 cat >>conftest.$ac_ext <<_ACEOF
38694 /* end confdefs.h.  */
38695 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38697 #define sched_yield innocuous_sched_yield
38698
38699 /* System header to define __stub macros and hopefully few prototypes,
38700     which can conflict with char sched_yield (); below.
38701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38702     <limits.h> exists even on freestanding compilers.  */
38703
38704 #ifdef __STDC__
38705 # include <limits.h>
38706 #else
38707 # include <assert.h>
38708 #endif
38709
38710 #undef sched_yield
38711
38712 /* Override any gcc2 internal prototype to avoid an error.  */
38713 #ifdef __cplusplus
38714 extern "C"
38715 {
38716 #endif
38717 /* We use char because int might match the return type of a gcc2
38718    builtin and then its argument prototype would still apply.  */
38719 char sched_yield ();
38720 /* The GNU C library defines this for functions which it implements
38721     to always fail with ENOSYS.  Some functions are actually named
38722     something starting with __ and the normal name is an alias.  */
38723 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38724 choke me
38725 #else
38726 char (*f) () = sched_yield;
38727 #endif
38728 #ifdef __cplusplus
38729 }
38730 #endif
38731
38732 int
38733 main ()
38734 {
38735 return f != sched_yield;
38736   ;
38737   return 0;
38738 }
38739 _ACEOF
38740 rm -f conftest.$ac_objext conftest$ac_exeext
38741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38742   (eval $ac_link) 2>conftest.er1
38743   ac_status=$?
38744   grep -v '^ *+' conftest.er1 >conftest.err
38745   rm -f conftest.er1
38746   cat conftest.err >&5
38747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748   (exit $ac_status); } &&
38749          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38751   (eval $ac_try) 2>&5
38752   ac_status=$?
38753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754   (exit $ac_status); }; } &&
38755          { ac_try='test -s conftest$ac_exeext'
38756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757   (eval $ac_try) 2>&5
38758   ac_status=$?
38759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760   (exit $ac_status); }; }; then
38761   ac_cv_func_sched_yield=yes
38762 else
38763   echo "$as_me: failed program was:" >&5
38764 sed 's/^/| /' conftest.$ac_ext >&5
38765
38766 ac_cv_func_sched_yield=no
38767 fi
38768 rm -f conftest.err conftest.$ac_objext \
38769       conftest$ac_exeext conftest.$ac_ext
38770 fi
38771 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38772 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38773 if test $ac_cv_func_sched_yield = yes; then
38774   cat >>confdefs.h <<\_ACEOF
38775 #define HAVE_SCHED_YIELD 1
38776 _ACEOF
38777
38778 else
38779
38780                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38781 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38782 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38783   echo $ECHO_N "(cached) $ECHO_C" >&6
38784 else
38785   ac_check_lib_save_LIBS=$LIBS
38786 LIBS="-lposix4  $LIBS"
38787 cat >conftest.$ac_ext <<_ACEOF
38788 /* confdefs.h.  */
38789 _ACEOF
38790 cat confdefs.h >>conftest.$ac_ext
38791 cat >>conftest.$ac_ext <<_ACEOF
38792 /* end confdefs.h.  */
38793
38794 /* Override any gcc2 internal prototype to avoid an error.  */
38795 #ifdef __cplusplus
38796 extern "C"
38797 #endif
38798 /* We use char because int might match the return type of a gcc2
38799    builtin and then its argument prototype would still apply.  */
38800 char sched_yield ();
38801 int
38802 main ()
38803 {
38804 sched_yield ();
38805   ;
38806   return 0;
38807 }
38808 _ACEOF
38809 rm -f conftest.$ac_objext conftest$ac_exeext
38810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38811   (eval $ac_link) 2>conftest.er1
38812   ac_status=$?
38813   grep -v '^ *+' conftest.er1 >conftest.err
38814   rm -f conftest.er1
38815   cat conftest.err >&5
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); } &&
38818          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820   (eval $ac_try) 2>&5
38821   ac_status=$?
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); }; } &&
38824          { ac_try='test -s conftest$ac_exeext'
38825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826   (eval $ac_try) 2>&5
38827   ac_status=$?
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); }; }; then
38830   ac_cv_lib_posix4_sched_yield=yes
38831 else
38832   echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38834
38835 ac_cv_lib_posix4_sched_yield=no
38836 fi
38837 rm -f conftest.err conftest.$ac_objext \
38838       conftest$ac_exeext conftest.$ac_ext
38839 LIBS=$ac_check_lib_save_LIBS
38840 fi
38841 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38842 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38843 if test $ac_cv_lib_posix4_sched_yield = yes; then
38844   cat >>confdefs.h <<\_ACEOF
38845 #define HAVE_SCHED_YIELD 1
38846 _ACEOF
38847  POSIX4_LINK=" -lposix4"
38848 else
38849   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38850 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38851
38852 fi
38853
38854
38855
38856 fi
38857
38858       fi
38859
38860                                           HAVE_PRIOR_FUNCS=0
38861       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38862 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38863 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38864   echo $ECHO_N "(cached) $ECHO_C" >&6
38865 else
38866   cat >conftest.$ac_ext <<_ACEOF
38867 /* confdefs.h.  */
38868 _ACEOF
38869 cat confdefs.h >>conftest.$ac_ext
38870 cat >>conftest.$ac_ext <<_ACEOF
38871 /* end confdefs.h.  */
38872 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38874 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38875
38876 /* System header to define __stub macros and hopefully few prototypes,
38877     which can conflict with char pthread_attr_getschedpolicy (); below.
38878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38879     <limits.h> exists even on freestanding compilers.  */
38880
38881 #ifdef __STDC__
38882 # include <limits.h>
38883 #else
38884 # include <assert.h>
38885 #endif
38886
38887 #undef pthread_attr_getschedpolicy
38888
38889 /* Override any gcc2 internal prototype to avoid an error.  */
38890 #ifdef __cplusplus
38891 extern "C"
38892 {
38893 #endif
38894 /* We use char because int might match the return type of a gcc2
38895    builtin and then its argument prototype would still apply.  */
38896 char pthread_attr_getschedpolicy ();
38897 /* The GNU C library defines this for functions which it implements
38898     to always fail with ENOSYS.  Some functions are actually named
38899     something starting with __ and the normal name is an alias.  */
38900 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38901 choke me
38902 #else
38903 char (*f) () = pthread_attr_getschedpolicy;
38904 #endif
38905 #ifdef __cplusplus
38906 }
38907 #endif
38908
38909 int
38910 main ()
38911 {
38912 return f != pthread_attr_getschedpolicy;
38913   ;
38914   return 0;
38915 }
38916 _ACEOF
38917 rm -f conftest.$ac_objext conftest$ac_exeext
38918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38919   (eval $ac_link) 2>conftest.er1
38920   ac_status=$?
38921   grep -v '^ *+' conftest.er1 >conftest.err
38922   rm -f conftest.er1
38923   cat conftest.err >&5
38924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925   (exit $ac_status); } &&
38926          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38928   (eval $ac_try) 2>&5
38929   ac_status=$?
38930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931   (exit $ac_status); }; } &&
38932          { ac_try='test -s conftest$ac_exeext'
38933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38934   (eval $ac_try) 2>&5
38935   ac_status=$?
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); }; }; then
38938   ac_cv_func_pthread_attr_getschedpolicy=yes
38939 else
38940   echo "$as_me: failed program was:" >&5
38941 sed 's/^/| /' conftest.$ac_ext >&5
38942
38943 ac_cv_func_pthread_attr_getschedpolicy=no
38944 fi
38945 rm -f conftest.err conftest.$ac_objext \
38946       conftest$ac_exeext conftest.$ac_ext
38947 fi
38948 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38949 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38950 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38951   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38952 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38953 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38954   echo $ECHO_N "(cached) $ECHO_C" >&6
38955 else
38956   cat >conftest.$ac_ext <<_ACEOF
38957 /* confdefs.h.  */
38958 _ACEOF
38959 cat confdefs.h >>conftest.$ac_ext
38960 cat >>conftest.$ac_ext <<_ACEOF
38961 /* end confdefs.h.  */
38962 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38964 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38965
38966 /* System header to define __stub macros and hopefully few prototypes,
38967     which can conflict with char pthread_attr_setschedparam (); below.
38968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38969     <limits.h> exists even on freestanding compilers.  */
38970
38971 #ifdef __STDC__
38972 # include <limits.h>
38973 #else
38974 # include <assert.h>
38975 #endif
38976
38977 #undef pthread_attr_setschedparam
38978
38979 /* Override any gcc2 internal prototype to avoid an error.  */
38980 #ifdef __cplusplus
38981 extern "C"
38982 {
38983 #endif
38984 /* We use char because int might match the return type of a gcc2
38985    builtin and then its argument prototype would still apply.  */
38986 char pthread_attr_setschedparam ();
38987 /* The GNU C library defines this for functions which it implements
38988     to always fail with ENOSYS.  Some functions are actually named
38989     something starting with __ and the normal name is an alias.  */
38990 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38991 choke me
38992 #else
38993 char (*f) () = pthread_attr_setschedparam;
38994 #endif
38995 #ifdef __cplusplus
38996 }
38997 #endif
38998
38999 int
39000 main ()
39001 {
39002 return f != pthread_attr_setschedparam;
39003   ;
39004   return 0;
39005 }
39006 _ACEOF
39007 rm -f conftest.$ac_objext conftest$ac_exeext
39008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39009   (eval $ac_link) 2>conftest.er1
39010   ac_status=$?
39011   grep -v '^ *+' conftest.er1 >conftest.err
39012   rm -f conftest.er1
39013   cat conftest.err >&5
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); } &&
39016          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018   (eval $ac_try) 2>&5
39019   ac_status=$?
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); }; } &&
39022          { ac_try='test -s conftest$ac_exeext'
39023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024   (eval $ac_try) 2>&5
39025   ac_status=$?
39026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027   (exit $ac_status); }; }; then
39028   ac_cv_func_pthread_attr_setschedparam=yes
39029 else
39030   echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39032
39033 ac_cv_func_pthread_attr_setschedparam=no
39034 fi
39035 rm -f conftest.err conftest.$ac_objext \
39036       conftest$ac_exeext conftest.$ac_ext
39037 fi
39038 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39039 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39040 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39041   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39042 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39043 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39044   echo $ECHO_N "(cached) $ECHO_C" >&6
39045 else
39046   cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h.  */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h.  */
39052 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39054 #define sched_get_priority_max innocuous_sched_get_priority_max
39055
39056 /* System header to define __stub macros and hopefully few prototypes,
39057     which can conflict with char sched_get_priority_max (); below.
39058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39059     <limits.h> exists even on freestanding compilers.  */
39060
39061 #ifdef __STDC__
39062 # include <limits.h>
39063 #else
39064 # include <assert.h>
39065 #endif
39066
39067 #undef sched_get_priority_max
39068
39069 /* Override any gcc2 internal prototype to avoid an error.  */
39070 #ifdef __cplusplus
39071 extern "C"
39072 {
39073 #endif
39074 /* We use char because int might match the return type of a gcc2
39075    builtin and then its argument prototype would still apply.  */
39076 char sched_get_priority_max ();
39077 /* The GNU C library defines this for functions which it implements
39078     to always fail with ENOSYS.  Some functions are actually named
39079     something starting with __ and the normal name is an alias.  */
39080 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39081 choke me
39082 #else
39083 char (*f) () = sched_get_priority_max;
39084 #endif
39085 #ifdef __cplusplus
39086 }
39087 #endif
39088
39089 int
39090 main ()
39091 {
39092 return f != sched_get_priority_max;
39093   ;
39094   return 0;
39095 }
39096 _ACEOF
39097 rm -f conftest.$ac_objext conftest$ac_exeext
39098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39099   (eval $ac_link) 2>conftest.er1
39100   ac_status=$?
39101   grep -v '^ *+' conftest.er1 >conftest.err
39102   rm -f conftest.er1
39103   cat conftest.err >&5
39104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105   (exit $ac_status); } &&
39106          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108   (eval $ac_try) 2>&5
39109   ac_status=$?
39110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111   (exit $ac_status); }; } &&
39112          { ac_try='test -s conftest$ac_exeext'
39113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39114   (eval $ac_try) 2>&5
39115   ac_status=$?
39116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117   (exit $ac_status); }; }; then
39118   ac_cv_func_sched_get_priority_max=yes
39119 else
39120   echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39122
39123 ac_cv_func_sched_get_priority_max=no
39124 fi
39125 rm -f conftest.err conftest.$ac_objext \
39126       conftest$ac_exeext conftest.$ac_ext
39127 fi
39128 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39129 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39130 if test $ac_cv_func_sched_get_priority_max = yes; then
39131   HAVE_PRIOR_FUNCS=1
39132 else
39133   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39134 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39135 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39136   echo $ECHO_N "(cached) $ECHO_C" >&6
39137 else
39138   ac_check_lib_save_LIBS=$LIBS
39139 LIBS="-lposix4  $LIBS"
39140 cat >conftest.$ac_ext <<_ACEOF
39141 /* confdefs.h.  */
39142 _ACEOF
39143 cat confdefs.h >>conftest.$ac_ext
39144 cat >>conftest.$ac_ext <<_ACEOF
39145 /* end confdefs.h.  */
39146
39147 /* Override any gcc2 internal prototype to avoid an error.  */
39148 #ifdef __cplusplus
39149 extern "C"
39150 #endif
39151 /* We use char because int might match the return type of a gcc2
39152    builtin and then its argument prototype would still apply.  */
39153 char sched_get_priority_max ();
39154 int
39155 main ()
39156 {
39157 sched_get_priority_max ();
39158   ;
39159   return 0;
39160 }
39161 _ACEOF
39162 rm -f conftest.$ac_objext conftest$ac_exeext
39163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39164   (eval $ac_link) 2>conftest.er1
39165   ac_status=$?
39166   grep -v '^ *+' conftest.er1 >conftest.err
39167   rm -f conftest.er1
39168   cat conftest.err >&5
39169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170   (exit $ac_status); } &&
39171          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173   (eval $ac_try) 2>&5
39174   ac_status=$?
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); }; } &&
39177          { ac_try='test -s conftest$ac_exeext'
39178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39179   (eval $ac_try) 2>&5
39180   ac_status=$?
39181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182   (exit $ac_status); }; }; then
39183   ac_cv_lib_posix4_sched_get_priority_max=yes
39184 else
39185   echo "$as_me: failed program was:" >&5
39186 sed 's/^/| /' conftest.$ac_ext >&5
39187
39188 ac_cv_lib_posix4_sched_get_priority_max=no
39189 fi
39190 rm -f conftest.err conftest.$ac_objext \
39191       conftest$ac_exeext conftest.$ac_ext
39192 LIBS=$ac_check_lib_save_LIBS
39193 fi
39194 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39195 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39196 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39197
39198                                 HAVE_PRIOR_FUNCS=1
39199                                 POSIX4_LINK=" -lposix4"
39200
39201 fi
39202
39203
39204 fi
39205
39206
39207 fi
39208
39209
39210 fi
39211
39212
39213       if test "$HAVE_PRIOR_FUNCS" = 1; then
39214         cat >>confdefs.h <<\_ACEOF
39215 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39216 _ACEOF
39217
39218       else
39219         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39220 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39221       fi
39222
39223       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39224 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39225 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39226   echo $ECHO_N "(cached) $ECHO_C" >&6
39227 else
39228   cat >conftest.$ac_ext <<_ACEOF
39229 /* confdefs.h.  */
39230 _ACEOF
39231 cat confdefs.h >>conftest.$ac_ext
39232 cat >>conftest.$ac_ext <<_ACEOF
39233 /* end confdefs.h.  */
39234 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39236 #define pthread_cancel innocuous_pthread_cancel
39237
39238 /* System header to define __stub macros and hopefully few prototypes,
39239     which can conflict with char pthread_cancel (); below.
39240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39241     <limits.h> exists even on freestanding compilers.  */
39242
39243 #ifdef __STDC__
39244 # include <limits.h>
39245 #else
39246 # include <assert.h>
39247 #endif
39248
39249 #undef pthread_cancel
39250
39251 /* Override any gcc2 internal prototype to avoid an error.  */
39252 #ifdef __cplusplus
39253 extern "C"
39254 {
39255 #endif
39256 /* We use char because int might match the return type of a gcc2
39257    builtin and then its argument prototype would still apply.  */
39258 char pthread_cancel ();
39259 /* The GNU C library defines this for functions which it implements
39260     to always fail with ENOSYS.  Some functions are actually named
39261     something starting with __ and the normal name is an alias.  */
39262 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39263 choke me
39264 #else
39265 char (*f) () = pthread_cancel;
39266 #endif
39267 #ifdef __cplusplus
39268 }
39269 #endif
39270
39271 int
39272 main ()
39273 {
39274 return f != pthread_cancel;
39275   ;
39276   return 0;
39277 }
39278 _ACEOF
39279 rm -f conftest.$ac_objext conftest$ac_exeext
39280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39281   (eval $ac_link) 2>conftest.er1
39282   ac_status=$?
39283   grep -v '^ *+' conftest.er1 >conftest.err
39284   rm -f conftest.er1
39285   cat conftest.err >&5
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); } &&
39288          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290   (eval $ac_try) 2>&5
39291   ac_status=$?
39292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293   (exit $ac_status); }; } &&
39294          { ac_try='test -s conftest$ac_exeext'
39295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296   (eval $ac_try) 2>&5
39297   ac_status=$?
39298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); }; }; then
39300   ac_cv_func_pthread_cancel=yes
39301 else
39302   echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39304
39305 ac_cv_func_pthread_cancel=no
39306 fi
39307 rm -f conftest.err conftest.$ac_objext \
39308       conftest$ac_exeext conftest.$ac_ext
39309 fi
39310 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39311 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39312 if test $ac_cv_func_pthread_cancel = yes; then
39313   cat >>confdefs.h <<\_ACEOF
39314 #define HAVE_PTHREAD_CANCEL 1
39315 _ACEOF
39316
39317 else
39318   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39319 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39320 fi
39321
39322
39323       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39324 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39325 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39326   echo $ECHO_N "(cached) $ECHO_C" >&6
39327 else
39328   cat >conftest.$ac_ext <<_ACEOF
39329 /* confdefs.h.  */
39330 _ACEOF
39331 cat confdefs.h >>conftest.$ac_ext
39332 cat >>conftest.$ac_ext <<_ACEOF
39333 /* end confdefs.h.  */
39334 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39336 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39337
39338 /* System header to define __stub macros and hopefully few prototypes,
39339     which can conflict with char pthread_attr_setstacksize (); below.
39340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39341     <limits.h> exists even on freestanding compilers.  */
39342
39343 #ifdef __STDC__
39344 # include <limits.h>
39345 #else
39346 # include <assert.h>
39347 #endif
39348
39349 #undef pthread_attr_setstacksize
39350
39351 /* Override any gcc2 internal prototype to avoid an error.  */
39352 #ifdef __cplusplus
39353 extern "C"
39354 {
39355 #endif
39356 /* We use char because int might match the return type of a gcc2
39357    builtin and then its argument prototype would still apply.  */
39358 char pthread_attr_setstacksize ();
39359 /* The GNU C library defines this for functions which it implements
39360     to always fail with ENOSYS.  Some functions are actually named
39361     something starting with __ and the normal name is an alias.  */
39362 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39363 choke me
39364 #else
39365 char (*f) () = pthread_attr_setstacksize;
39366 #endif
39367 #ifdef __cplusplus
39368 }
39369 #endif
39370
39371 int
39372 main ()
39373 {
39374 return f != pthread_attr_setstacksize;
39375   ;
39376   return 0;
39377 }
39378 _ACEOF
39379 rm -f conftest.$ac_objext conftest$ac_exeext
39380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39381   (eval $ac_link) 2>conftest.er1
39382   ac_status=$?
39383   grep -v '^ *+' conftest.er1 >conftest.err
39384   rm -f conftest.er1
39385   cat conftest.err >&5
39386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); } &&
39388          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390   (eval $ac_try) 2>&5
39391   ac_status=$?
39392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393   (exit $ac_status); }; } &&
39394          { ac_try='test -s conftest$ac_exeext'
39395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396   (eval $ac_try) 2>&5
39397   ac_status=$?
39398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399   (exit $ac_status); }; }; then
39400   ac_cv_func_pthread_attr_setstacksize=yes
39401 else
39402   echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39404
39405 ac_cv_func_pthread_attr_setstacksize=no
39406 fi
39407 rm -f conftest.err conftest.$ac_objext \
39408       conftest$ac_exeext conftest.$ac_ext
39409 fi
39410 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39411 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39412 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39413   cat >>confdefs.h <<\_ACEOF
39414 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39415 _ACEOF
39416
39417 fi
39418
39419
39420
39421       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39422 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39423 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39424   echo $ECHO_N "(cached) $ECHO_C" >&6
39425 else
39426
39427         cat >conftest.$ac_ext <<_ACEOF
39428 /* confdefs.h.  */
39429 _ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h.  */
39433 #include <pthread.h>
39434 int
39435 main ()
39436 {
39437
39438                pthread_mutexattr_t attr;
39439                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39440
39441   ;
39442   return 0;
39443 }
39444 _ACEOF
39445 rm -f conftest.$ac_objext
39446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39447   (eval $ac_compile) 2>conftest.er1
39448   ac_status=$?
39449   grep -v '^ *+' conftest.er1 >conftest.err
39450   rm -f conftest.er1
39451   cat conftest.err >&5
39452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); } &&
39454          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39456   (eval $ac_try) 2>&5
39457   ac_status=$?
39458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39459   (exit $ac_status); }; } &&
39460          { ac_try='test -s conftest.$ac_objext'
39461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39462   (eval $ac_try) 2>&5
39463   ac_status=$?
39464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465   (exit $ac_status); }; }; then
39466   wx_cv_type_pthread_mutexattr_t=yes
39467 else
39468   echo "$as_me: failed program was:" >&5
39469 sed 's/^/| /' conftest.$ac_ext >&5
39470
39471 wx_cv_type_pthread_mutexattr_t=no
39472
39473 fi
39474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39475
39476 fi
39477 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39478 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39479
39480       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39481         cat >>confdefs.h <<\_ACEOF
39482 #define HAVE_PTHREAD_MUTEXATTR_T 1
39483 _ACEOF
39484
39485
39486                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39487 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39488 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39489   echo $ECHO_N "(cached) $ECHO_C" >&6
39490 else
39491
39492                        cat >conftest.$ac_ext <<_ACEOF
39493 /* confdefs.h.  */
39494 _ACEOF
39495 cat confdefs.h >>conftest.$ac_ext
39496 cat >>conftest.$ac_ext <<_ACEOF
39497 /* end confdefs.h.  */
39498 #include <pthread.h>
39499 int
39500 main ()
39501 {
39502
39503                                pthread_mutexattr_t attr;
39504                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39505
39506   ;
39507   return 0;
39508 }
39509 _ACEOF
39510 rm -f conftest.$ac_objext
39511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39512   (eval $ac_compile) 2>conftest.er1
39513   ac_status=$?
39514   grep -v '^ *+' conftest.er1 >conftest.err
39515   rm -f conftest.er1
39516   cat conftest.err >&5
39517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518   (exit $ac_status); } &&
39519          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39521   (eval $ac_try) 2>&5
39522   ac_status=$?
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); }; } &&
39525          { ac_try='test -s conftest.$ac_objext'
39526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39527   (eval $ac_try) 2>&5
39528   ac_status=$?
39529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39530   (exit $ac_status); }; }; then
39531   wx_cv_func_pthread_mutexattr_settype_decl=yes
39532 else
39533   echo "$as_me: failed program was:" >&5
39534 sed 's/^/| /' conftest.$ac_ext >&5
39535
39536 wx_cv_func_pthread_mutexattr_settype_decl=no
39537
39538 fi
39539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39540
39541 fi
39542 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39543 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39544         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39545             cat >>confdefs.h <<\_ACEOF
39546 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39547 _ACEOF
39548
39549         fi
39550       else
39551                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39552 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39553 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39554   echo $ECHO_N "(cached) $ECHO_C" >&6
39555 else
39556
39557             cat >conftest.$ac_ext <<_ACEOF
39558 /* confdefs.h.  */
39559 _ACEOF
39560 cat confdefs.h >>conftest.$ac_ext
39561 cat >>conftest.$ac_ext <<_ACEOF
39562 /* end confdefs.h.  */
39563 #include <pthread.h>
39564 int
39565 main ()
39566 {
39567
39568                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39569
39570   ;
39571   return 0;
39572 }
39573 _ACEOF
39574 rm -f conftest.$ac_objext
39575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39576   (eval $ac_compile) 2>conftest.er1
39577   ac_status=$?
39578   grep -v '^ *+' conftest.er1 >conftest.err
39579   rm -f conftest.er1
39580   cat conftest.err >&5
39581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582   (exit $ac_status); } &&
39583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39585   (eval $ac_try) 2>&5
39586   ac_status=$?
39587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588   (exit $ac_status); }; } &&
39589          { ac_try='test -s conftest.$ac_objext'
39590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591   (eval $ac_try) 2>&5
39592   ac_status=$?
39593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594   (exit $ac_status); }; }; then
39595
39596                     wx_cv_type_pthread_rec_mutex_init=yes
39597
39598 else
39599   echo "$as_me: failed program was:" >&5
39600 sed 's/^/| /' conftest.$ac_ext >&5
39601
39602
39603                     wx_cv_type_pthread_rec_mutex_init=no
39604
39605
39606 fi
39607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39608
39609 fi
39610 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39611 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39612         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39613           cat >>confdefs.h <<\_ACEOF
39614 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39615 _ACEOF
39616
39617         else
39618                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39619 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39620         fi
39621       fi
39622     fi
39623
39624 else
39625     if test "$wxUSE_THREADS" = "yes" ; then
39626       case "${host}" in
39627         *-*-mingw32* )
39628                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39629 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39630 if test "${wx_cv_cflags_mthread+set}" = set; then
39631   echo $ECHO_N "(cached) $ECHO_C" >&6
39632 else
39633
39634                     CXXFLAGS_OLD="$CXXFLAGS"
39635                     CXXFLAGS="-mthreads $CXXFLAGS"
39636                     cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642
39643 int
39644 main ()
39645 {
39646
39647   ;
39648   return 0;
39649 }
39650 _ACEOF
39651 rm -f conftest.$ac_objext
39652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39653   (eval $ac_compile) 2>conftest.er1
39654   ac_status=$?
39655   grep -v '^ *+' conftest.er1 >conftest.err
39656   rm -f conftest.er1
39657   cat conftest.err >&5
39658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659   (exit $ac_status); } &&
39660          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662   (eval $ac_try) 2>&5
39663   ac_status=$?
39664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665   (exit $ac_status); }; } &&
39666          { ac_try='test -s conftest.$ac_objext'
39667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668   (eval $ac_try) 2>&5
39669   ac_status=$?
39670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671   (exit $ac_status); }; }; then
39672   wx_cv_cflags_mthread=yes
39673 else
39674   echo "$as_me: failed program was:" >&5
39675 sed 's/^/| /' conftest.$ac_ext >&5
39676
39677 wx_cv_cflags_mthread=no
39678
39679 fi
39680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39681
39682
39683 fi
39684 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39685 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39686
39687             if test "$wx_cv_cflags_mthread" = "yes"; then
39688                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
39689                 LDFLAGS="$LDFLAGS -mthreads"
39690             else
39691                                 CXXFLAGS="$CXXFLAGS_OLD"
39692             fi
39693         ;;
39694         *-pc-os2*emx )
39695             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39696             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
39697             LDFLAGS="$LDFLAGS -Zmt"
39698         ;;
39699       esac
39700     fi
39701 fi
39702
39703 echo "$as_me:$LINENO: checking for localtime_r" >&5
39704 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39705 if test "${ac_cv_func_localtime_r+set}" = set; then
39706   echo $ECHO_N "(cached) $ECHO_C" >&6
39707 else
39708   cat >conftest.$ac_ext <<_ACEOF
39709 /* confdefs.h.  */
39710 _ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h.  */
39714 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39716 #define localtime_r innocuous_localtime_r
39717
39718 /* System header to define __stub macros and hopefully few prototypes,
39719     which can conflict with char localtime_r (); below.
39720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39721     <limits.h> exists even on freestanding compilers.  */
39722
39723 #ifdef __STDC__
39724 # include <limits.h>
39725 #else
39726 # include <assert.h>
39727 #endif
39728
39729 #undef localtime_r
39730
39731 /* Override any gcc2 internal prototype to avoid an error.  */
39732 #ifdef __cplusplus
39733 extern "C"
39734 {
39735 #endif
39736 /* We use char because int might match the return type of a gcc2
39737    builtin and then its argument prototype would still apply.  */
39738 char localtime_r ();
39739 /* The GNU C library defines this for functions which it implements
39740     to always fail with ENOSYS.  Some functions are actually named
39741     something starting with __ and the normal name is an alias.  */
39742 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
39743 choke me
39744 #else
39745 char (*f) () = localtime_r;
39746 #endif
39747 #ifdef __cplusplus
39748 }
39749 #endif
39750
39751 int
39752 main ()
39753 {
39754 return f != localtime_r;
39755   ;
39756   return 0;
39757 }
39758 _ACEOF
39759 rm -f conftest.$ac_objext conftest$ac_exeext
39760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39761   (eval $ac_link) 2>conftest.er1
39762   ac_status=$?
39763   grep -v '^ *+' conftest.er1 >conftest.err
39764   rm -f conftest.er1
39765   cat conftest.err >&5
39766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767   (exit $ac_status); } &&
39768          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39770   (eval $ac_try) 2>&5
39771   ac_status=$?
39772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773   (exit $ac_status); }; } &&
39774          { ac_try='test -s conftest$ac_exeext'
39775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776   (eval $ac_try) 2>&5
39777   ac_status=$?
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); }; }; then
39780   ac_cv_func_localtime_r=yes
39781 else
39782   echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39784
39785 ac_cv_func_localtime_r=no
39786 fi
39787 rm -f conftest.err conftest.$ac_objext \
39788       conftest$ac_exeext conftest.$ac_ext
39789 fi
39790 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39791 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39792 if test $ac_cv_func_localtime_r = yes; then
39793    cat >>confdefs.h <<\_ACEOF
39794 #define HAVE_LOCALTIME_R 1
39795 _ACEOF
39796
39797 fi
39798
39799 echo "$as_me:$LINENO: checking for gmtime_r" >&5
39800 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39801 if test "${ac_cv_func_gmtime_r+set}" = set; then
39802   echo $ECHO_N "(cached) $ECHO_C" >&6
39803 else
39804   cat >conftest.$ac_ext <<_ACEOF
39805 /* confdefs.h.  */
39806 _ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h.  */
39810 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39812 #define gmtime_r innocuous_gmtime_r
39813
39814 /* System header to define __stub macros and hopefully few prototypes,
39815     which can conflict with char gmtime_r (); below.
39816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39817     <limits.h> exists even on freestanding compilers.  */
39818
39819 #ifdef __STDC__
39820 # include <limits.h>
39821 #else
39822 # include <assert.h>
39823 #endif
39824
39825 #undef gmtime_r
39826
39827 /* Override any gcc2 internal prototype to avoid an error.  */
39828 #ifdef __cplusplus
39829 extern "C"
39830 {
39831 #endif
39832 /* We use char because int might match the return type of a gcc2
39833    builtin and then its argument prototype would still apply.  */
39834 char gmtime_r ();
39835 /* The GNU C library defines this for functions which it implements
39836     to always fail with ENOSYS.  Some functions are actually named
39837     something starting with __ and the normal name is an alias.  */
39838 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39839 choke me
39840 #else
39841 char (*f) () = gmtime_r;
39842 #endif
39843 #ifdef __cplusplus
39844 }
39845 #endif
39846
39847 int
39848 main ()
39849 {
39850 return f != gmtime_r;
39851   ;
39852   return 0;
39853 }
39854 _ACEOF
39855 rm -f conftest.$ac_objext conftest$ac_exeext
39856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39857   (eval $ac_link) 2>conftest.er1
39858   ac_status=$?
39859   grep -v '^ *+' conftest.er1 >conftest.err
39860   rm -f conftest.er1
39861   cat conftest.err >&5
39862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863   (exit $ac_status); } &&
39864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39866   (eval $ac_try) 2>&5
39867   ac_status=$?
39868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869   (exit $ac_status); }; } &&
39870          { ac_try='test -s conftest$ac_exeext'
39871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872   (eval $ac_try) 2>&5
39873   ac_status=$?
39874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875   (exit $ac_status); }; }; then
39876   ac_cv_func_gmtime_r=yes
39877 else
39878   echo "$as_me: failed program was:" >&5
39879 sed 's/^/| /' conftest.$ac_ext >&5
39880
39881 ac_cv_func_gmtime_r=no
39882 fi
39883 rm -f conftest.err conftest.$ac_objext \
39884       conftest$ac_exeext conftest.$ac_ext
39885 fi
39886 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39887 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39888 if test $ac_cv_func_gmtime_r = yes; then
39889    cat >>confdefs.h <<\_ACEOF
39890 #define HAVE_GMTIME_R 1
39891 _ACEOF
39892
39893 fi
39894
39895 echo "$as_me:$LINENO: checking for readdir_r" >&5
39896 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39897 if test "${ac_cv_func_readdir_r+set}" = set; then
39898   echo $ECHO_N "(cached) $ECHO_C" >&6
39899 else
39900   cat >conftest.$ac_ext <<_ACEOF
39901 /* confdefs.h.  */
39902 _ACEOF
39903 cat confdefs.h >>conftest.$ac_ext
39904 cat >>conftest.$ac_ext <<_ACEOF
39905 /* end confdefs.h.  */
39906 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39908 #define readdir_r innocuous_readdir_r
39909
39910 /* System header to define __stub macros and hopefully few prototypes,
39911     which can conflict with char readdir_r (); below.
39912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39913     <limits.h> exists even on freestanding compilers.  */
39914
39915 #ifdef __STDC__
39916 # include <limits.h>
39917 #else
39918 # include <assert.h>
39919 #endif
39920
39921 #undef readdir_r
39922
39923 /* Override any gcc2 internal prototype to avoid an error.  */
39924 #ifdef __cplusplus
39925 extern "C"
39926 {
39927 #endif
39928 /* We use char because int might match the return type of a gcc2
39929    builtin and then its argument prototype would still apply.  */
39930 char readdir_r ();
39931 /* The GNU C library defines this for functions which it implements
39932     to always fail with ENOSYS.  Some functions are actually named
39933     something starting with __ and the normal name is an alias.  */
39934 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39935 choke me
39936 #else
39937 char (*f) () = readdir_r;
39938 #endif
39939 #ifdef __cplusplus
39940 }
39941 #endif
39942
39943 int
39944 main ()
39945 {
39946 return f != readdir_r;
39947   ;
39948   return 0;
39949 }
39950 _ACEOF
39951 rm -f conftest.$ac_objext conftest$ac_exeext
39952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39953   (eval $ac_link) 2>conftest.er1
39954   ac_status=$?
39955   grep -v '^ *+' conftest.er1 >conftest.err
39956   rm -f conftest.er1
39957   cat conftest.err >&5
39958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959   (exit $ac_status); } &&
39960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962   (eval $ac_try) 2>&5
39963   ac_status=$?
39964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965   (exit $ac_status); }; } &&
39966          { ac_try='test -s conftest$ac_exeext'
39967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39968   (eval $ac_try) 2>&5
39969   ac_status=$?
39970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971   (exit $ac_status); }; }; then
39972   ac_cv_func_readdir_r=yes
39973 else
39974   echo "$as_me: failed program was:" >&5
39975 sed 's/^/| /' conftest.$ac_ext >&5
39976
39977 ac_cv_func_readdir_r=no
39978 fi
39979 rm -f conftest.err conftest.$ac_objext \
39980       conftest$ac_exeext conftest.$ac_ext
39981 fi
39982 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39983 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39984 if test $ac_cv_func_readdir_r = yes; then
39985    cat >>confdefs.h <<\_ACEOF
39986 #define HAVE_READDIR_R 1
39987 _ACEOF
39988
39989 fi
39990
39991
39992
39993
39994     ac_ext=c
39995 ac_cpp='$CPP $CPPFLAGS'
39996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39999
40000     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40001 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40002
40003     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40004   echo $ECHO_N "(cached) $ECHO_C" >&6
40005 else
40006
40007
40008 ################################################################
40009
40010 ac_cv_func_which_gethostbyname_r=unknown
40011
40012 #
40013 # ONE ARGUMENT (sanity check)
40014 #
40015
40016 # This should fail, as there is no variant of gethostbyname_r() that takes
40017 # a single argument. If it actually compiles, then we can assume that
40018 # netdb.h is not declaring the function, and the compiler is thereby
40019 # assuming an implicit prototype. In which case, we're out of luck.
40020 #
40021 cat >conftest.$ac_ext <<_ACEOF
40022 /* confdefs.h.  */
40023 _ACEOF
40024 cat confdefs.h >>conftest.$ac_ext
40025 cat >>conftest.$ac_ext <<_ACEOF
40026 /* end confdefs.h.  */
40027 #include <netdb.h>
40028 int
40029 main ()
40030 {
40031
40032             char *name = "www.gnu.org";
40033             (void)gethostbyname_r(name) /* ; */
40034
40035   ;
40036   return 0;
40037 }
40038 _ACEOF
40039 rm -f conftest.$ac_objext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40041   (eval $ac_compile) 2>conftest.er1
40042   ac_status=$?
40043   grep -v '^ *+' conftest.er1 >conftest.err
40044   rm -f conftest.er1
40045   cat conftest.err >&5
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } &&
40048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050   (eval $ac_try) 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); }; } &&
40054          { ac_try='test -s conftest.$ac_objext'
40055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056   (eval $ac_try) 2>&5
40057   ac_status=$?
40058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059   (exit $ac_status); }; }; then
40060   ac_cv_func_which_gethostbyname_r=no
40061 else
40062   echo "$as_me: failed program was:" >&5
40063 sed 's/^/| /' conftest.$ac_ext >&5
40064
40065 fi
40066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40067
40068 #
40069 # SIX ARGUMENTS
40070 # (e.g. Linux)
40071 #
40072
40073 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40074
40075 cat >conftest.$ac_ext <<_ACEOF
40076 /* confdefs.h.  */
40077 _ACEOF
40078 cat confdefs.h >>conftest.$ac_ext
40079 cat >>conftest.$ac_ext <<_ACEOF
40080 /* end confdefs.h.  */
40081 #include <netdb.h>
40082 int
40083 main ()
40084 {
40085
40086             char *name = "www.gnu.org";
40087             struct hostent ret, *retp;
40088             char buf[1024];
40089             int buflen = 1024;
40090             int my_h_errno;
40091             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40092
40093   ;
40094   return 0;
40095 }
40096 _ACEOF
40097 rm -f conftest.$ac_objext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40099   (eval $ac_compile) 2>conftest.er1
40100   ac_status=$?
40101   grep -v '^ *+' conftest.er1 >conftest.err
40102   rm -f conftest.er1
40103   cat conftest.err >&5
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); } &&
40106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40108   (eval $ac_try) 2>&5
40109   ac_status=$?
40110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111   (exit $ac_status); }; } &&
40112          { ac_try='test -s conftest.$ac_objext'
40113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40114   (eval $ac_try) 2>&5
40115   ac_status=$?
40116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40117   (exit $ac_status); }; }; then
40118   ac_cv_func_which_gethostbyname_r=six
40119 else
40120   echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40122
40123 fi
40124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40125
40126 fi
40127
40128 #
40129 # FIVE ARGUMENTS
40130 # (e.g. Solaris)
40131 #
40132
40133 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40134
40135 cat >conftest.$ac_ext <<_ACEOF
40136 /* confdefs.h.  */
40137 _ACEOF
40138 cat confdefs.h >>conftest.$ac_ext
40139 cat >>conftest.$ac_ext <<_ACEOF
40140 /* end confdefs.h.  */
40141 #include <netdb.h>
40142 int
40143 main ()
40144 {
40145
40146             char *name = "www.gnu.org";
40147             struct hostent ret;
40148             char buf[1024];
40149             int buflen = 1024;
40150             int my_h_errno;
40151             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40152
40153   ;
40154   return 0;
40155 }
40156 _ACEOF
40157 rm -f conftest.$ac_objext
40158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40159   (eval $ac_compile) 2>conftest.er1
40160   ac_status=$?
40161   grep -v '^ *+' conftest.er1 >conftest.err
40162   rm -f conftest.er1
40163   cat conftest.err >&5
40164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165   (exit $ac_status); } &&
40166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40168   (eval $ac_try) 2>&5
40169   ac_status=$?
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); }; } &&
40172          { ac_try='test -s conftest.$ac_objext'
40173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174   (eval $ac_try) 2>&5
40175   ac_status=$?
40176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177   (exit $ac_status); }; }; then
40178   ac_cv_func_which_gethostbyname_r=five
40179 else
40180   echo "$as_me: failed program was:" >&5
40181 sed 's/^/| /' conftest.$ac_ext >&5
40182
40183 fi
40184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40185
40186 fi
40187
40188 #
40189 # THREE ARGUMENTS
40190 # (e.g. AIX, HP-UX, Tru64)
40191 #
40192
40193 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40194
40195 cat >conftest.$ac_ext <<_ACEOF
40196 /* confdefs.h.  */
40197 _ACEOF
40198 cat confdefs.h >>conftest.$ac_ext
40199 cat >>conftest.$ac_ext <<_ACEOF
40200 /* end confdefs.h.  */
40201 #include <netdb.h>
40202 int
40203 main ()
40204 {
40205
40206             char *name = "www.gnu.org";
40207             struct hostent ret;
40208             struct hostent_data data;
40209             (void)gethostbyname_r(name, &ret, &data) /* ; */
40210
40211   ;
40212   return 0;
40213 }
40214 _ACEOF
40215 rm -f conftest.$ac_objext
40216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40217   (eval $ac_compile) 2>conftest.er1
40218   ac_status=$?
40219   grep -v '^ *+' conftest.er1 >conftest.err
40220   rm -f conftest.er1
40221   cat conftest.err >&5
40222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); } &&
40224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40226   (eval $ac_try) 2>&5
40227   ac_status=$?
40228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229   (exit $ac_status); }; } &&
40230          { ac_try='test -s conftest.$ac_objext'
40231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40232   (eval $ac_try) 2>&5
40233   ac_status=$?
40234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235   (exit $ac_status); }; }; then
40236   ac_cv_func_which_gethostbyname_r=three
40237 else
40238   echo "$as_me: failed program was:" >&5
40239 sed 's/^/| /' conftest.$ac_ext >&5
40240
40241 fi
40242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40243
40244 fi
40245
40246 ################################################################
40247
40248
40249 fi
40250
40251 case "$ac_cv_func_which_gethostbyname_r" in
40252     three)
40253     echo "$as_me:$LINENO: result: three" >&5
40254 echo "${ECHO_T}three" >&6
40255     cat >>confdefs.h <<\_ACEOF
40256 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40257 _ACEOF
40258
40259     ;;
40260
40261     five)
40262     echo "$as_me:$LINENO: result: five" >&5
40263 echo "${ECHO_T}five" >&6
40264     cat >>confdefs.h <<\_ACEOF
40265 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40266 _ACEOF
40267
40268     ;;
40269
40270     six)
40271     echo "$as_me:$LINENO: result: six" >&5
40272 echo "${ECHO_T}six" >&6
40273     cat >>confdefs.h <<\_ACEOF
40274 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40275 _ACEOF
40276
40277     ;;
40278
40279     no)
40280     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40281 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40282     ;;
40283
40284     unknown)
40285     echo "$as_me:$LINENO: result: can't tell" >&5
40286 echo "${ECHO_T}can't tell" >&6
40287     ;;
40288
40289     *)
40290     { { echo "$as_me:$LINENO: error: internal error" >&5
40291 echo "$as_me: error: internal error" >&2;}
40292    { (exit 1); exit 1; }; }
40293     ;;
40294 esac
40295
40296 ac_ext=cc
40297 ac_cpp='$CXXCPP $CPPFLAGS'
40298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40301
40302
40303
40304       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40305               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40306           echo "$as_me:$LINENO: checking for gethostbyname" >&5
40307 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40308 if test "${ac_cv_func_gethostbyname+set}" = set; then
40309   echo $ECHO_N "(cached) $ECHO_C" >&6
40310 else
40311   cat >conftest.$ac_ext <<_ACEOF
40312 /* confdefs.h.  */
40313 _ACEOF
40314 cat confdefs.h >>conftest.$ac_ext
40315 cat >>conftest.$ac_ext <<_ACEOF
40316 /* end confdefs.h.  */
40317 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40319 #define gethostbyname innocuous_gethostbyname
40320
40321 /* System header to define __stub macros and hopefully few prototypes,
40322     which can conflict with char gethostbyname (); below.
40323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40324     <limits.h> exists even on freestanding compilers.  */
40325
40326 #ifdef __STDC__
40327 # include <limits.h>
40328 #else
40329 # include <assert.h>
40330 #endif
40331
40332 #undef gethostbyname
40333
40334 /* Override any gcc2 internal prototype to avoid an error.  */
40335 #ifdef __cplusplus
40336 extern "C"
40337 {
40338 #endif
40339 /* We use char because int might match the return type of a gcc2
40340    builtin and then its argument prototype would still apply.  */
40341 char gethostbyname ();
40342 /* The GNU C library defines this for functions which it implements
40343     to always fail with ENOSYS.  Some functions are actually named
40344     something starting with __ and the normal name is an alias.  */
40345 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40346 choke me
40347 #else
40348 char (*f) () = gethostbyname;
40349 #endif
40350 #ifdef __cplusplus
40351 }
40352 #endif
40353
40354 int
40355 main ()
40356 {
40357 return f != gethostbyname;
40358   ;
40359   return 0;
40360 }
40361 _ACEOF
40362 rm -f conftest.$ac_objext conftest$ac_exeext
40363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40364   (eval $ac_link) 2>conftest.er1
40365   ac_status=$?
40366   grep -v '^ *+' conftest.er1 >conftest.err
40367   rm -f conftest.er1
40368   cat conftest.err >&5
40369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370   (exit $ac_status); } &&
40371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40373   (eval $ac_try) 2>&5
40374   ac_status=$?
40375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376   (exit $ac_status); }; } &&
40377          { ac_try='test -s conftest$ac_exeext'
40378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40379   (eval $ac_try) 2>&5
40380   ac_status=$?
40381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382   (exit $ac_status); }; }; then
40383   ac_cv_func_gethostbyname=yes
40384 else
40385   echo "$as_me: failed program was:" >&5
40386 sed 's/^/| /' conftest.$ac_ext >&5
40387
40388 ac_cv_func_gethostbyname=no
40389 fi
40390 rm -f conftest.err conftest.$ac_objext \
40391       conftest$ac_exeext conftest.$ac_ext
40392 fi
40393 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40394 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40395 if test $ac_cv_func_gethostbyname = yes; then
40396    cat >>confdefs.h <<\_ACEOF
40397 #define HAVE_GETHOSTBYNAME 1
40398 _ACEOF
40399
40400 fi
40401
40402       fi
40403                               echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40404 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40405 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40406   echo $ECHO_N "(cached) $ECHO_C" >&6
40407 else
40408
40409 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40410 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40411 if test "${ac_cv_func_getservbyname_r+set}" = set; then
40412   echo $ECHO_N "(cached) $ECHO_C" >&6
40413 else
40414   cat >conftest.$ac_ext <<_ACEOF
40415 /* confdefs.h.  */
40416 _ACEOF
40417 cat confdefs.h >>conftest.$ac_ext
40418 cat >>conftest.$ac_ext <<_ACEOF
40419 /* end confdefs.h.  */
40420 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40422 #define getservbyname_r innocuous_getservbyname_r
40423
40424 /* System header to define __stub macros and hopefully few prototypes,
40425     which can conflict with char getservbyname_r (); below.
40426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40427     <limits.h> exists even on freestanding compilers.  */
40428
40429 #ifdef __STDC__
40430 # include <limits.h>
40431 #else
40432 # include <assert.h>
40433 #endif
40434
40435 #undef getservbyname_r
40436
40437 /* Override any gcc2 internal prototype to avoid an error.  */
40438 #ifdef __cplusplus
40439 extern "C"
40440 {
40441 #endif
40442 /* We use char because int might match the return type of a gcc2
40443    builtin and then its argument prototype would still apply.  */
40444 char getservbyname_r ();
40445 /* The GNU C library defines this for functions which it implements
40446     to always fail with ENOSYS.  Some functions are actually named
40447     something starting with __ and the normal name is an alias.  */
40448 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40449 choke me
40450 #else
40451 char (*f) () = getservbyname_r;
40452 #endif
40453 #ifdef __cplusplus
40454 }
40455 #endif
40456
40457 int
40458 main ()
40459 {
40460 return f != getservbyname_r;
40461   ;
40462   return 0;
40463 }
40464 _ACEOF
40465 rm -f conftest.$ac_objext conftest$ac_exeext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40467   (eval $ac_link) 2>conftest.er1
40468   ac_status=$?
40469   grep -v '^ *+' conftest.er1 >conftest.err
40470   rm -f conftest.er1
40471   cat conftest.err >&5
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); } &&
40474          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476   (eval $ac_try) 2>&5
40477   ac_status=$?
40478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479   (exit $ac_status); }; } &&
40480          { ac_try='test -s conftest$ac_exeext'
40481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482   (eval $ac_try) 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; }; then
40486   ac_cv_func_getservbyname_r=yes
40487 else
40488   echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491 ac_cv_func_getservbyname_r=no
40492 fi
40493 rm -f conftest.err conftest.$ac_objext \
40494       conftest$ac_exeext conftest.$ac_ext
40495 fi
40496 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40497 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40498 if test $ac_cv_func_getservbyname_r = yes; then
40499
40500         cat >conftest.$ac_ext <<_ACEOF
40501 /* confdefs.h.  */
40502 _ACEOF
40503 cat confdefs.h >>conftest.$ac_ext
40504 cat >>conftest.$ac_ext <<_ACEOF
40505 /* end confdefs.h.  */
40506
40507 #               include <netdb.h>
40508
40509 int
40510 main ()
40511 {
40512
40513
40514         char *name;
40515         char *proto;
40516         struct servent *se;
40517         struct servent_data data;
40518         (void) getservbyname_r(name, proto, se, &data);
40519
40520
40521   ;
40522   return 0;
40523 }
40524 _ACEOF
40525 rm -f conftest.$ac_objext
40526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40527   (eval $ac_compile) 2>conftest.er1
40528   ac_status=$?
40529   grep -v '^ *+' conftest.er1 >conftest.err
40530   rm -f conftest.er1
40531   cat conftest.err >&5
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); } &&
40534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40536   (eval $ac_try) 2>&5
40537   ac_status=$?
40538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539   (exit $ac_status); }; } &&
40540          { ac_try='test -s conftest.$ac_objext'
40541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40542   (eval $ac_try) 2>&5
40543   ac_status=$?
40544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40545   (exit $ac_status); }; }; then
40546   ac_cv_func_which_getservbyname_r=four
40547 else
40548   echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.$ac_ext >&5
40550
40551
40552   cat >conftest.$ac_ext <<_ACEOF
40553 /* confdefs.h.  */
40554 _ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h.  */
40558
40559 #   include <netdb.h>
40560
40561 int
40562 main ()
40563 {
40564
40565         char *name;
40566         char *proto;
40567         struct servent *se, *res;
40568         char buffer[2048];
40569         int buflen = 2048;
40570         (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40571
40572   ;
40573   return 0;
40574 }
40575 _ACEOF
40576 rm -f conftest.$ac_objext
40577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40578   (eval $ac_compile) 2>conftest.er1
40579   ac_status=$?
40580   grep -v '^ *+' conftest.er1 >conftest.err
40581   rm -f conftest.er1
40582   cat conftest.err >&5
40583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584   (exit $ac_status); } &&
40585          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40587   (eval $ac_try) 2>&5
40588   ac_status=$?
40589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590   (exit $ac_status); }; } &&
40591          { ac_try='test -s conftest.$ac_objext'
40592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40593   (eval $ac_try) 2>&5
40594   ac_status=$?
40595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596   (exit $ac_status); }; }; then
40597   ac_cv_func_which_getservbyname_r=six
40598 else
40599   echo "$as_me: failed program was:" >&5
40600 sed 's/^/| /' conftest.$ac_ext >&5
40601
40602
40603   cat >conftest.$ac_ext <<_ACEOF
40604 /* confdefs.h.  */
40605 _ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h.  */
40609
40610 #   include <netdb.h>
40611
40612 int
40613 main ()
40614 {
40615
40616         char *name;
40617         char *proto;
40618         struct servent *se;
40619         char buffer[2048];
40620         int buflen = 2048;
40621         (void) getservbyname_r(name, proto, se, buffer, buflen)
40622
40623   ;
40624   return 0;
40625 }
40626 _ACEOF
40627 rm -f conftest.$ac_objext
40628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40629   (eval $ac_compile) 2>conftest.er1
40630   ac_status=$?
40631   grep -v '^ *+' conftest.er1 >conftest.err
40632   rm -f conftest.er1
40633   cat conftest.err >&5
40634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635   (exit $ac_status); } &&
40636          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40638   (eval $ac_try) 2>&5
40639   ac_status=$?
40640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40641   (exit $ac_status); }; } &&
40642          { ac_try='test -s conftest.$ac_objext'
40643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40644   (eval $ac_try) 2>&5
40645   ac_status=$?
40646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647   (exit $ac_status); }; }; then
40648   ac_cv_func_which_getservbyname_r=five
40649 else
40650   echo "$as_me: failed program was:" >&5
40651 sed 's/^/| /' conftest.$ac_ext >&5
40652
40653 ac_cv_func_which_getservbyname_r=no
40654 fi
40655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40656
40657
40658
40659
40660 fi
40661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40662
40663
40664 fi
40665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40666
40667 else
40668   ac_cv_func_which_getservbyname_r=no
40669 fi
40670
40671 fi
40672 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40673 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
40674
40675 if test $ac_cv_func_which_getservbyname_r = six; then
40676   cat >>confdefs.h <<\_ACEOF
40677 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40678 _ACEOF
40679
40680 elif test $ac_cv_func_which_getservbyname_r = five; then
40681   cat >>confdefs.h <<\_ACEOF
40682 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40683 _ACEOF
40684
40685 elif test $ac_cv_func_which_getservbyname_r = four; then
40686   cat >>confdefs.h <<\_ACEOF
40687 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40688 _ACEOF
40689
40690
40691 fi
40692
40693
40694       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40695               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40696
40697 for ac_func in getservbyname
40698 do
40699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40700 echo "$as_me:$LINENO: checking for $ac_func" >&5
40701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40702 if eval "test \"\${$as_ac_var+set}\" = set"; then
40703   echo $ECHO_N "(cached) $ECHO_C" >&6
40704 else
40705   cat >conftest.$ac_ext <<_ACEOF
40706 /* confdefs.h.  */
40707 _ACEOF
40708 cat confdefs.h >>conftest.$ac_ext
40709 cat >>conftest.$ac_ext <<_ACEOF
40710 /* end confdefs.h.  */
40711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40713 #define $ac_func innocuous_$ac_func
40714
40715 /* System header to define __stub macros and hopefully few prototypes,
40716     which can conflict with char $ac_func (); below.
40717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40718     <limits.h> exists even on freestanding compilers.  */
40719
40720 #ifdef __STDC__
40721 # include <limits.h>
40722 #else
40723 # include <assert.h>
40724 #endif
40725
40726 #undef $ac_func
40727
40728 /* Override any gcc2 internal prototype to avoid an error.  */
40729 #ifdef __cplusplus
40730 extern "C"
40731 {
40732 #endif
40733 /* We use char because int might match the return type of a gcc2
40734    builtin and then its argument prototype would still apply.  */
40735 char $ac_func ();
40736 /* The GNU C library defines this for functions which it implements
40737     to always fail with ENOSYS.  Some functions are actually named
40738     something starting with __ and the normal name is an alias.  */
40739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40740 choke me
40741 #else
40742 char (*f) () = $ac_func;
40743 #endif
40744 #ifdef __cplusplus
40745 }
40746 #endif
40747
40748 int
40749 main ()
40750 {
40751 return f != $ac_func;
40752   ;
40753   return 0;
40754 }
40755 _ACEOF
40756 rm -f conftest.$ac_objext conftest$ac_exeext
40757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40758   (eval $ac_link) 2>conftest.er1
40759   ac_status=$?
40760   grep -v '^ *+' conftest.er1 >conftest.err
40761   rm -f conftest.er1
40762   cat conftest.err >&5
40763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764   (exit $ac_status); } &&
40765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40767   (eval $ac_try) 2>&5
40768   ac_status=$?
40769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770   (exit $ac_status); }; } &&
40771          { ac_try='test -s conftest$ac_exeext'
40772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40773   (eval $ac_try) 2>&5
40774   ac_status=$?
40775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776   (exit $ac_status); }; }; then
40777   eval "$as_ac_var=yes"
40778 else
40779   echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40781
40782 eval "$as_ac_var=no"
40783 fi
40784 rm -f conftest.err conftest.$ac_objext \
40785       conftest$ac_exeext conftest.$ac_ext
40786 fi
40787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40789 if test `eval echo '${'$as_ac_var'}'` = yes; then
40790   cat >>confdefs.h <<_ACEOF
40791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40792 _ACEOF
40793   cat >>confdefs.h <<\_ACEOF
40794 #define HAVE_GETSERVBYNAME 1
40795 _ACEOF
40796
40797 fi
40798 done
40799
40800       fi
40801
40802 if test "$wxUSE_THREADS" = "yes"; then
40803   cat >>confdefs.h <<\_ACEOF
40804 #define wxUSE_THREADS 1
40805 _ACEOF
40806
40807
40808   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40809 else
40810       if test "$wx_cv_func_strtok_r" = "yes"; then
40811     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40812 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40813     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40814         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40815         echo "$as_me:$LINENO: result: yes" >&5
40816 echo "${ECHO_T}yes" >&6
40817     else
40818         echo "$as_me:$LINENO: result: no" >&5
40819 echo "${ECHO_T}no" >&6
40820     fi
40821   fi
40822 fi
40823
40824 if test "$WXGTK20" = 1 ; then
40825   cat >>confdefs.h <<_ACEOF
40826 #define __WXGTK20__ $WXGTK20
40827 _ACEOF
40828
40829   WXGTK12=1
40830 fi
40831
40832 if test "$WXGTK12" = 1 ; then
40833   cat >>confdefs.h <<_ACEOF
40834 #define __WXGTK12__ $WXGTK12
40835 _ACEOF
40836
40837 fi
40838
40839 if test "$WXGTK127" = 1 ; then
40840   cat >>confdefs.h <<_ACEOF
40841 #define __WXGTK127__ $WXGTK127
40842 _ACEOF
40843
40844 fi
40845
40846 if test "$WXGPE" = 1 ; then
40847   cat >>confdefs.h <<_ACEOF
40848 #define __WXGPE__ $WXGPE
40849 _ACEOF
40850
40851 fi
40852
40853 DEBUG_CFLAGS=
40854 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40855     DEBUG_CFLAGS="-g"
40856     wxUSE_OPTIMISE=no
40857 fi
40858
40859 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40860     wxUSE_DEBUG_INFO=yes
40861     if test "$GCC" = yes; then
40862         DEBUG_CFLAGS="-ggdb"
40863     fi
40864 fi
40865
40866 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40867     cat >>confdefs.h <<\_ACEOF
40868 #define WXDEBUG 1
40869 _ACEOF
40870
40871     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40872 else
40873     if test "$wxUSE_GTK" = 1 ; then
40874         if test "x$wxGTK_VERSION" = "x1" ; then
40875             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40876         fi
40877     fi
40878 fi
40879
40880 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40881     cat >>confdefs.h <<\_ACEOF
40882 #define wxUSE_MEMORY_TRACING 1
40883 _ACEOF
40884
40885     cat >>confdefs.h <<\_ACEOF
40886 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40887 _ACEOF
40888
40889     cat >>confdefs.h <<\_ACEOF
40890 #define wxUSE_DEBUG_NEW_ALWAYS 1
40891 _ACEOF
40892
40893     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40894 fi
40895
40896 if test "$wxUSE_DMALLOC" = "yes" ; then
40897     DMALLOC_LIBS="-ldmallocthcxx"
40898 fi
40899
40900 PROFILE_FLAGS=
40901 if test "$wxUSE_PROFILE" = "yes" ; then
40902     PROFILE_FLAGS=" -pg"
40903 fi
40904
40905 if test "$GCC" = "yes" ; then
40906     if test "$wxUSE_NO_RTTI" = "yes" ; then
40907         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40908     fi
40909     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40910         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40911     fi
40912     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40913         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40914     fi
40915
40916                                                 case "${host}" in
40917       powerpc*-*-aix* )
40918         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40919         ;;
40920       *-hppa* )
40921         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40922         ;;
40923     esac
40924 fi
40925
40926 OPTIMISE_CFLAGS=
40927 if test "$wxUSE_OPTIMISE" = "no" ; then
40928     if test "$GCC" = yes ; then
40929                         OPTIMISE_CFLAGS="-O0"
40930     fi
40931 else
40932     if test "$GCC" = yes ; then
40933         case "${host}" in
40934             *-pc-os2_emx | *-pc-os2-emx )
40935                                                 OPTIMISE_CFLAGS="-O2"
40936             ;;
40937             *)
40938                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40939             ;;
40940         esac
40941     else
40942         OPTIMISE_CFLAGS="-O"
40943     fi
40944 fi
40945
40946
40947 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40948     cat >>confdefs.h <<\_ACEOF
40949 #define WXWIN_COMPATIBILITY_2_4 1
40950 _ACEOF
40951
40952
40953     WXWIN_COMPATIBILITY_2_6="yes"
40954 fi
40955
40956 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40957     cat >>confdefs.h <<\_ACEOF
40958 #define WXWIN_COMPATIBILITY_2_6 1
40959 _ACEOF
40960
40961 fi
40962
40963
40964 if test "$wxUSE_GUI" = "yes"; then
40965     cat >>confdefs.h <<\_ACEOF
40966 #define wxUSE_GUI 1
40967 _ACEOF
40968
40969
40970                                             fi
40971
40972
40973 if test "$wxUSE_UNIX" = "yes"; then
40974   cat >>confdefs.h <<\_ACEOF
40975 #define wxUSE_UNIX 1
40976 _ACEOF
40977
40978 fi
40979
40980
40981 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40982
40983     HAVE_DL_FUNCS=0
40984     HAVE_SHL_FUNCS=0
40985     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40986         if test "$USE_DARWIN" = 1; then
40987                         HAVE_DL_FUNCS=1
40988         elif test "$USE_DOS" = 1; then
40989             HAVE_DL_FUNCS=0
40990         else
40991
40992 for ac_func in dlopen
40993 do
40994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40995 echo "$as_me:$LINENO: checking for $ac_func" >&5
40996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40997 if eval "test \"\${$as_ac_var+set}\" = set"; then
40998   echo $ECHO_N "(cached) $ECHO_C" >&6
40999 else
41000   cat >conftest.$ac_ext <<_ACEOF
41001 /* confdefs.h.  */
41002 _ACEOF
41003 cat confdefs.h >>conftest.$ac_ext
41004 cat >>conftest.$ac_ext <<_ACEOF
41005 /* end confdefs.h.  */
41006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41008 #define $ac_func innocuous_$ac_func
41009
41010 /* System header to define __stub macros and hopefully few prototypes,
41011     which can conflict with char $ac_func (); below.
41012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41013     <limits.h> exists even on freestanding compilers.  */
41014
41015 #ifdef __STDC__
41016 # include <limits.h>
41017 #else
41018 # include <assert.h>
41019 #endif
41020
41021 #undef $ac_func
41022
41023 /* Override any gcc2 internal prototype to avoid an error.  */
41024 #ifdef __cplusplus
41025 extern "C"
41026 {
41027 #endif
41028 /* We use char because int might match the return type of a gcc2
41029    builtin and then its argument prototype would still apply.  */
41030 char $ac_func ();
41031 /* The GNU C library defines this for functions which it implements
41032     to always fail with ENOSYS.  Some functions are actually named
41033     something starting with __ and the normal name is an alias.  */
41034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41035 choke me
41036 #else
41037 char (*f) () = $ac_func;
41038 #endif
41039 #ifdef __cplusplus
41040 }
41041 #endif
41042
41043 int
41044 main ()
41045 {
41046 return f != $ac_func;
41047   ;
41048   return 0;
41049 }
41050 _ACEOF
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41053   (eval $ac_link) 2>conftest.er1
41054   ac_status=$?
41055   grep -v '^ *+' conftest.er1 >conftest.err
41056   rm -f conftest.er1
41057   cat conftest.err >&5
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); } &&
41060          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41062   (eval $ac_try) 2>&5
41063   ac_status=$?
41064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065   (exit $ac_status); }; } &&
41066          { ac_try='test -s conftest$ac_exeext'
41067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068   (eval $ac_try) 2>&5
41069   ac_status=$?
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); }; }; then
41072   eval "$as_ac_var=yes"
41073 else
41074   echo "$as_me: failed program was:" >&5
41075 sed 's/^/| /' conftest.$ac_ext >&5
41076
41077 eval "$as_ac_var=no"
41078 fi
41079 rm -f conftest.err conftest.$ac_objext \
41080       conftest$ac_exeext conftest.$ac_ext
41081 fi
41082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41084 if test `eval echo '${'$as_ac_var'}'` = yes; then
41085   cat >>confdefs.h <<_ACEOF
41086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41087 _ACEOF
41088
41089                 cat >>confdefs.h <<\_ACEOF
41090 #define HAVE_DLOPEN 1
41091 _ACEOF
41092
41093                 HAVE_DL_FUNCS=1
41094
41095 else
41096
41097                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41100   echo $ECHO_N "(cached) $ECHO_C" >&6
41101 else
41102   ac_check_lib_save_LIBS=$LIBS
41103 LIBS="-ldl  $LIBS"
41104 cat >conftest.$ac_ext <<_ACEOF
41105 /* confdefs.h.  */
41106 _ACEOF
41107 cat confdefs.h >>conftest.$ac_ext
41108 cat >>conftest.$ac_ext <<_ACEOF
41109 /* end confdefs.h.  */
41110
41111 /* Override any gcc2 internal prototype to avoid an error.  */
41112 #ifdef __cplusplus
41113 extern "C"
41114 #endif
41115 /* We use char because int might match the return type of a gcc2
41116    builtin and then its argument prototype would still apply.  */
41117 char dlopen ();
41118 int
41119 main ()
41120 {
41121 dlopen ();
41122   ;
41123   return 0;
41124 }
41125 _ACEOF
41126 rm -f conftest.$ac_objext conftest$ac_exeext
41127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41128   (eval $ac_link) 2>conftest.er1
41129   ac_status=$?
41130   grep -v '^ *+' conftest.er1 >conftest.err
41131   rm -f conftest.er1
41132   cat conftest.err >&5
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); } &&
41135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137   (eval $ac_try) 2>&5
41138   ac_status=$?
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); }; } &&
41141          { ac_try='test -s conftest$ac_exeext'
41142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41143   (eval $ac_try) 2>&5
41144   ac_status=$?
41145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146   (exit $ac_status); }; }; then
41147   ac_cv_lib_dl_dlopen=yes
41148 else
41149   echo "$as_me: failed program was:" >&5
41150 sed 's/^/| /' conftest.$ac_ext >&5
41151
41152 ac_cv_lib_dl_dlopen=no
41153 fi
41154 rm -f conftest.err conftest.$ac_objext \
41155       conftest$ac_exeext conftest.$ac_ext
41156 LIBS=$ac_check_lib_save_LIBS
41157 fi
41158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41160 if test $ac_cv_lib_dl_dlopen = yes; then
41161
41162                                 cat >>confdefs.h <<\_ACEOF
41163 #define HAVE_DLOPEN 1
41164 _ACEOF
41165
41166                                 HAVE_DL_FUNCS=1
41167                                 DL_LINK=" -ldl$DL_LINK"
41168
41169 else
41170
41171
41172 for ac_func in shl_load
41173 do
41174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41175 echo "$as_me:$LINENO: checking for $ac_func" >&5
41176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41177 if eval "test \"\${$as_ac_var+set}\" = set"; then
41178   echo $ECHO_N "(cached) $ECHO_C" >&6
41179 else
41180   cat >conftest.$ac_ext <<_ACEOF
41181 /* confdefs.h.  */
41182 _ACEOF
41183 cat confdefs.h >>conftest.$ac_ext
41184 cat >>conftest.$ac_ext <<_ACEOF
41185 /* end confdefs.h.  */
41186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41188 #define $ac_func innocuous_$ac_func
41189
41190 /* System header to define __stub macros and hopefully few prototypes,
41191     which can conflict with char $ac_func (); below.
41192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41193     <limits.h> exists even on freestanding compilers.  */
41194
41195 #ifdef __STDC__
41196 # include <limits.h>
41197 #else
41198 # include <assert.h>
41199 #endif
41200
41201 #undef $ac_func
41202
41203 /* Override any gcc2 internal prototype to avoid an error.  */
41204 #ifdef __cplusplus
41205 extern "C"
41206 {
41207 #endif
41208 /* We use char because int might match the return type of a gcc2
41209    builtin and then its argument prototype would still apply.  */
41210 char $ac_func ();
41211 /* The GNU C library defines this for functions which it implements
41212     to always fail with ENOSYS.  Some functions are actually named
41213     something starting with __ and the normal name is an alias.  */
41214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41215 choke me
41216 #else
41217 char (*f) () = $ac_func;
41218 #endif
41219 #ifdef __cplusplus
41220 }
41221 #endif
41222
41223 int
41224 main ()
41225 {
41226 return f != $ac_func;
41227   ;
41228   return 0;
41229 }
41230 _ACEOF
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41233   (eval $ac_link) 2>conftest.er1
41234   ac_status=$?
41235   grep -v '^ *+' conftest.er1 >conftest.err
41236   rm -f conftest.er1
41237   cat conftest.err >&5
41238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239   (exit $ac_status); } &&
41240          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41242   (eval $ac_try) 2>&5
41243   ac_status=$?
41244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41245   (exit $ac_status); }; } &&
41246          { ac_try='test -s conftest$ac_exeext'
41247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41248   (eval $ac_try) 2>&5
41249   ac_status=$?
41250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41251   (exit $ac_status); }; }; then
41252   eval "$as_ac_var=yes"
41253 else
41254   echo "$as_me: failed program was:" >&5
41255 sed 's/^/| /' conftest.$ac_ext >&5
41256
41257 eval "$as_ac_var=no"
41258 fi
41259 rm -f conftest.err conftest.$ac_objext \
41260       conftest$ac_exeext conftest.$ac_ext
41261 fi
41262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41264 if test `eval echo '${'$as_ac_var'}'` = yes; then
41265   cat >>confdefs.h <<_ACEOF
41266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41267 _ACEOF
41268
41269                                                 cat >>confdefs.h <<\_ACEOF
41270 #define HAVE_SHL_LOAD 1
41271 _ACEOF
41272
41273                                                 HAVE_SHL_FUNCS=1
41274
41275 else
41276
41277                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41278 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41279 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41280   echo $ECHO_N "(cached) $ECHO_C" >&6
41281 else
41282   ac_check_lib_save_LIBS=$LIBS
41283 LIBS="-lshl_load  $LIBS"
41284 cat >conftest.$ac_ext <<_ACEOF
41285 /* confdefs.h.  */
41286 _ACEOF
41287 cat confdefs.h >>conftest.$ac_ext
41288 cat >>conftest.$ac_ext <<_ACEOF
41289 /* end confdefs.h.  */
41290
41291 /* Override any gcc2 internal prototype to avoid an error.  */
41292 #ifdef __cplusplus
41293 extern "C"
41294 #endif
41295 /* We use char because int might match the return type of a gcc2
41296    builtin and then its argument prototype would still apply.  */
41297 char dld ();
41298 int
41299 main ()
41300 {
41301 dld ();
41302   ;
41303   return 0;
41304 }
41305 _ACEOF
41306 rm -f conftest.$ac_objext conftest$ac_exeext
41307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41308   (eval $ac_link) 2>conftest.er1
41309   ac_status=$?
41310   grep -v '^ *+' conftest.er1 >conftest.err
41311   rm -f conftest.er1
41312   cat conftest.err >&5
41313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314   (exit $ac_status); } &&
41315          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41317   (eval $ac_try) 2>&5
41318   ac_status=$?
41319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41320   (exit $ac_status); }; } &&
41321          { ac_try='test -s conftest$ac_exeext'
41322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41323   (eval $ac_try) 2>&5
41324   ac_status=$?
41325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326   (exit $ac_status); }; }; then
41327   ac_cv_lib_shl_load_dld=yes
41328 else
41329   echo "$as_me: failed program was:" >&5
41330 sed 's/^/| /' conftest.$ac_ext >&5
41331
41332 ac_cv_lib_shl_load_dld=no
41333 fi
41334 rm -f conftest.err conftest.$ac_objext \
41335       conftest$ac_exeext conftest.$ac_ext
41336 LIBS=$ac_check_lib_save_LIBS
41337 fi
41338 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41339 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41340 if test $ac_cv_lib_shl_load_dld = yes; then
41341
41342                                                                 HAVE_SHL_FUNCS=1
41343                                                                 DL_LINK=" -ldld$DL_LINK"
41344
41345 fi
41346
41347
41348 fi
41349 done
41350
41351
41352 fi
41353
41354
41355 fi
41356 done
41357
41358
41359                 if test "$HAVE_DL_FUNCS" = 1; then
41360
41361 for ac_func in dlerror
41362 do
41363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41364 echo "$as_me:$LINENO: checking for $ac_func" >&5
41365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41366 if eval "test \"\${$as_ac_var+set}\" = set"; then
41367   echo $ECHO_N "(cached) $ECHO_C" >&6
41368 else
41369   cat >conftest.$ac_ext <<_ACEOF
41370 /* confdefs.h.  */
41371 _ACEOF
41372 cat confdefs.h >>conftest.$ac_ext
41373 cat >>conftest.$ac_ext <<_ACEOF
41374 /* end confdefs.h.  */
41375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41377 #define $ac_func innocuous_$ac_func
41378
41379 /* System header to define __stub macros and hopefully few prototypes,
41380     which can conflict with char $ac_func (); below.
41381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41382     <limits.h> exists even on freestanding compilers.  */
41383
41384 #ifdef __STDC__
41385 # include <limits.h>
41386 #else
41387 # include <assert.h>
41388 #endif
41389
41390 #undef $ac_func
41391
41392 /* Override any gcc2 internal prototype to avoid an error.  */
41393 #ifdef __cplusplus
41394 extern "C"
41395 {
41396 #endif
41397 /* We use char because int might match the return type of a gcc2
41398    builtin and then its argument prototype would still apply.  */
41399 char $ac_func ();
41400 /* The GNU C library defines this for functions which it implements
41401     to always fail with ENOSYS.  Some functions are actually named
41402     something starting with __ and the normal name is an alias.  */
41403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41404 choke me
41405 #else
41406 char (*f) () = $ac_func;
41407 #endif
41408 #ifdef __cplusplus
41409 }
41410 #endif
41411
41412 int
41413 main ()
41414 {
41415 return f != $ac_func;
41416   ;
41417   return 0;
41418 }
41419 _ACEOF
41420 rm -f conftest.$ac_objext conftest$ac_exeext
41421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41422   (eval $ac_link) 2>conftest.er1
41423   ac_status=$?
41424   grep -v '^ *+' conftest.er1 >conftest.err
41425   rm -f conftest.er1
41426   cat conftest.err >&5
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); } &&
41429          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41431   (eval $ac_try) 2>&5
41432   ac_status=$?
41433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434   (exit $ac_status); }; } &&
41435          { ac_try='test -s conftest$ac_exeext'
41436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437   (eval $ac_try) 2>&5
41438   ac_status=$?
41439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440   (exit $ac_status); }; }; then
41441   eval "$as_ac_var=yes"
41442 else
41443   echo "$as_me: failed program was:" >&5
41444 sed 's/^/| /' conftest.$ac_ext >&5
41445
41446 eval "$as_ac_var=no"
41447 fi
41448 rm -f conftest.err conftest.$ac_objext \
41449       conftest$ac_exeext conftest.$ac_ext
41450 fi
41451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41453 if test `eval echo '${'$as_ac_var'}'` = yes; then
41454   cat >>confdefs.h <<_ACEOF
41455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41456 _ACEOF
41457  cat >>confdefs.h <<\_ACEOF
41458 #define HAVE_DLERROR 1
41459 _ACEOF
41460
41461 else
41462
41463                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41464 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41465 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41466   echo $ECHO_N "(cached) $ECHO_C" >&6
41467 else
41468   ac_check_lib_save_LIBS=$LIBS
41469 LIBS="-ldl  $LIBS"
41470 cat >conftest.$ac_ext <<_ACEOF
41471 /* confdefs.h.  */
41472 _ACEOF
41473 cat confdefs.h >>conftest.$ac_ext
41474 cat >>conftest.$ac_ext <<_ACEOF
41475 /* end confdefs.h.  */
41476
41477 /* Override any gcc2 internal prototype to avoid an error.  */
41478 #ifdef __cplusplus
41479 extern "C"
41480 #endif
41481 /* We use char because int might match the return type of a gcc2
41482    builtin and then its argument prototype would still apply.  */
41483 char dlerror ();
41484 int
41485 main ()
41486 {
41487 dlerror ();
41488   ;
41489   return 0;
41490 }
41491 _ACEOF
41492 rm -f conftest.$ac_objext conftest$ac_exeext
41493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41494   (eval $ac_link) 2>conftest.er1
41495   ac_status=$?
41496   grep -v '^ *+' conftest.er1 >conftest.err
41497   rm -f conftest.er1
41498   cat conftest.err >&5
41499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41500   (exit $ac_status); } &&
41501          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41503   (eval $ac_try) 2>&5
41504   ac_status=$?
41505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41506   (exit $ac_status); }; } &&
41507          { ac_try='test -s conftest$ac_exeext'
41508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41509   (eval $ac_try) 2>&5
41510   ac_status=$?
41511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41512   (exit $ac_status); }; }; then
41513   ac_cv_lib_dl_dlerror=yes
41514 else
41515   echo "$as_me: failed program was:" >&5
41516 sed 's/^/| /' conftest.$ac_ext >&5
41517
41518 ac_cv_lib_dl_dlerror=no
41519 fi
41520 rm -f conftest.err conftest.$ac_objext \
41521       conftest$ac_exeext conftest.$ac_ext
41522 LIBS=$ac_check_lib_save_LIBS
41523 fi
41524 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41525 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41526 if test $ac_cv_lib_dl_dlerror = yes; then
41527   cat >>confdefs.h <<\_ACEOF
41528 #define HAVE_DLERROR 1
41529 _ACEOF
41530
41531 fi
41532
41533
41534
41535 fi
41536 done
41537
41538         fi
41539         fi
41540
41541         if test "$HAVE_DL_FUNCS" = 0; then
41542             if test "$HAVE_SHL_FUNCS" = 0; then
41543               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41544                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41545 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41546                   wxUSE_DYNAMIC_LOADER=no
41547                   wxUSE_DYNLIB_CLASS=no
41548               else
41549                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41550 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41551               fi
41552             fi
41553         fi
41554     fi
41555 fi
41556
41557 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41558     cat >>confdefs.h <<\_ACEOF
41559 #define wxUSE_DYNAMIC_LOADER 1
41560 _ACEOF
41561
41562 fi
41563 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41564     cat >>confdefs.h <<\_ACEOF
41565 #define wxUSE_DYNLIB_CLASS 1
41566 _ACEOF
41567
41568 fi
41569
41570
41571
41572 if test "$wxUSE_PLUGINS" = "yes" ; then
41573     if test "$wxUSE_SHARED" = "no" ; then
41574         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41575 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41576         wxUSE_PLUGINS=no
41577     fi
41578     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41579         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41580 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41581         wxUSE_PLUGINS=no
41582     fi
41583     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41584         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41585 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41586         wxUSE_PLUGINS=no
41587     fi
41588     if test "$wxUSE_PLUGINS" = "yes" ; then
41589         cat >>confdefs.h <<\_ACEOF
41590 #define wxUSE_PLUGINS 1
41591 _ACEOF
41592
41593     fi
41594 fi
41595
41596
41597 if test "$wxUSE_STL" = "yes"; then
41598   cat >>confdefs.h <<\_ACEOF
41599 #define wxUSE_STL 1
41600 _ACEOF
41601
41602 fi
41603
41604 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41605   cat >>confdefs.h <<\_ACEOF
41606 #define wxUSE_APPLE_IEEE 1
41607 _ACEOF
41608
41609 fi
41610
41611 if test "$wxUSE_TIMER" = "yes"; then
41612   cat >>confdefs.h <<\_ACEOF
41613 #define wxUSE_TIMER 1
41614 _ACEOF
41615
41616 fi
41617
41618 if test "$USE_UNIX" = "1" ; then
41619                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41620 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
41621 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41622   echo $ECHO_N "(cached) $ECHO_C" >&6
41623 else
41624
41625         cat >conftest.$ac_ext <<_ACEOF
41626 /* confdefs.h.  */
41627 _ACEOF
41628 cat confdefs.h >>conftest.$ac_ext
41629 cat >>conftest.$ac_ext <<_ACEOF
41630 /* end confdefs.h.  */
41631
41632                 #include <sys/ioctl.h>
41633                 #include <sys/soundcard.h>
41634
41635 int
41636 main ()
41637 {
41638
41639                 ioctl(0, SNDCTL_DSP_SPEED, 0);
41640
41641   ;
41642   return 0;
41643 }
41644 _ACEOF
41645 rm -f conftest.$ac_objext conftest$ac_exeext
41646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41647   (eval $ac_link) 2>conftest.er1
41648   ac_status=$?
41649   grep -v '^ *+' conftest.er1 >conftest.err
41650   rm -f conftest.er1
41651   cat conftest.err >&5
41652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653   (exit $ac_status); } &&
41654          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41656   (eval $ac_try) 2>&5
41657   ac_status=$?
41658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659   (exit $ac_status); }; } &&
41660          { ac_try='test -s conftest$ac_exeext'
41661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662   (eval $ac_try) 2>&5
41663   ac_status=$?
41664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665   (exit $ac_status); }; }; then
41666   ac_cv_header_sys_soundcard=yes
41667 else
41668   echo "$as_me: failed program was:" >&5
41669 sed 's/^/| /' conftest.$ac_ext >&5
41670
41671
41672                 saveLibs="$LIBS"
41673                 LIBS="$saveLibs -lossaudio"
41674                 cat >conftest.$ac_ext <<_ACEOF
41675 /* confdefs.h.  */
41676 _ACEOF
41677 cat confdefs.h >>conftest.$ac_ext
41678 cat >>conftest.$ac_ext <<_ACEOF
41679 /* end confdefs.h.  */
41680
41681                         #include <sys/ioctl.h>
41682                         #include <sys/soundcard.h>
41683
41684 int
41685 main ()
41686 {
41687
41688                         ioctl(0, SNDCTL_DSP_SPEED, 0);
41689
41690   ;
41691   return 0;
41692 }
41693 _ACEOF
41694 rm -f conftest.$ac_objext conftest$ac_exeext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41696   (eval $ac_link) 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } &&
41703          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705   (eval $ac_try) 2>&5
41706   ac_status=$?
41707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708   (exit $ac_status); }; } &&
41709          { ac_try='test -s conftest$ac_exeext'
41710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41711   (eval $ac_try) 2>&5
41712   ac_status=$?
41713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714   (exit $ac_status); }; }; then
41715   ac_cv_header_sys_soundcard=yes
41716 else
41717   echo "$as_me: failed program was:" >&5
41718 sed 's/^/| /' conftest.$ac_ext >&5
41719
41720
41721                         LIBS="$saveLibs"
41722                         ac_cv_header_sys_soundcard=no
41723
41724
41725 fi
41726 rm -f conftest.err conftest.$ac_objext \
41727       conftest$ac_exeext conftest.$ac_ext
41728
41729
41730 fi
41731 rm -f conftest.err conftest.$ac_objext \
41732       conftest$ac_exeext conftest.$ac_ext
41733
41734 fi
41735 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41736 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
41737
41738     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41739         cat >>confdefs.h <<\_ACEOF
41740 #define HAVE_SYS_SOUNDCARD_H 1
41741 _ACEOF
41742
41743     else
41744         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41745     fi
41746 fi
41747 WITH_PLUGIN_SDL=0
41748 if test "$wxUSE_SOUND" = "yes"; then
41749   if test "$USE_UNIX" = "1" ; then
41750     if test "$wxUSE_LIBSDL" != "no"; then
41751
41752 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41753 if test "${with_sdl_prefix+set}" = set; then
41754   withval="$with_sdl_prefix"
41755   sdl_prefix="$withval"
41756 else
41757   sdl_prefix=""
41758 fi;
41759
41760 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41761 if test "${with_sdl_exec_prefix+set}" = set; then
41762   withval="$with_sdl_exec_prefix"
41763   sdl_exec_prefix="$withval"
41764 else
41765   sdl_exec_prefix=""
41766 fi;
41767 # Check whether --enable-sdltest or --disable-sdltest was given.
41768 if test "${enable_sdltest+set}" = set; then
41769   enableval="$enable_sdltest"
41770
41771 else
41772   enable_sdltest=yes
41773 fi;
41774
41775   if test x$sdl_exec_prefix != x ; then
41776     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41777     if test x${SDL_CONFIG+set} != xset ; then
41778       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41779     fi
41780   fi
41781   if test x$sdl_prefix != x ; then
41782     sdl_args="$sdl_args --prefix=$sdl_prefix"
41783     if test x${SDL_CONFIG+set} != xset ; then
41784       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41785     fi
41786   fi
41787
41788   if test "x$prefix" != xNONE; then
41789     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41790   fi
41791   # Extract the first word of "sdl-config", so it can be a program name with args.
41792 set dummy sdl-config; ac_word=$2
41793 echo "$as_me:$LINENO: checking for $ac_word" >&5
41794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41795 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41796   echo $ECHO_N "(cached) $ECHO_C" >&6
41797 else
41798   case $SDL_CONFIG in
41799   [\\/]* | ?:[\\/]*)
41800   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41801   ;;
41802   *)
41803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41804 for as_dir in $PATH
41805 do
41806   IFS=$as_save_IFS
41807   test -z "$as_dir" && as_dir=.
41808   for ac_exec_ext in '' $ac_executable_extensions; do
41809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41810     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41812     break 2
41813   fi
41814 done
41815 done
41816
41817   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41818   ;;
41819 esac
41820 fi
41821 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41822
41823 if test -n "$SDL_CONFIG"; then
41824   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41825 echo "${ECHO_T}$SDL_CONFIG" >&6
41826 else
41827   echo "$as_me:$LINENO: result: no" >&5
41828 echo "${ECHO_T}no" >&6
41829 fi
41830
41831   min_sdl_version=1.2.0
41832   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41833 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41834   no_sdl=""
41835   if test "$SDL_CONFIG" = "no" ; then
41836     no_sdl=yes
41837   else
41838     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41839     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41840
41841     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41842            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41843     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41844            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41845     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41846            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41847     if test "x$enable_sdltest" = "xyes" ; then
41848       ac_save_CFLAGS="$CFLAGS"
41849       ac_save_CXXFLAGS="$CXXFLAGS"
41850       ac_save_LIBS="$LIBS"
41851       CFLAGS="$CFLAGS $SDL_CFLAGS"
41852       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41853       LIBS="$LIBS $SDL_LIBS"
41854       rm -f conf.sdltest
41855       if test "$cross_compiling" = yes; then
41856   echo $ac_n "cross compiling; assumed OK... $ac_c"
41857 else
41858   cat >conftest.$ac_ext <<_ACEOF
41859 /* confdefs.h.  */
41860 _ACEOF
41861 cat confdefs.h >>conftest.$ac_ext
41862 cat >>conftest.$ac_ext <<_ACEOF
41863 /* end confdefs.h.  */
41864
41865 #include <stdio.h>
41866 #include <stdlib.h>
41867 #include <string.h>
41868 #include "SDL.h"
41869
41870 char*
41871 my_strdup (char *str)
41872 {
41873   char *new_str;
41874
41875   if (str)
41876     {
41877       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41878       strcpy (new_str, str);
41879     }
41880   else
41881     new_str = NULL;
41882
41883   return new_str;
41884 }
41885
41886 int main (int argc, char *argv[])
41887 {
41888   int major, minor, micro;
41889   char *tmp_version;
41890
41891   /* This hangs on some systems (?)
41892   system ("touch conf.sdltest");
41893   */
41894   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41895
41896   /* HP/UX 9 (%@#!) writes to sscanf strings */
41897   tmp_version = my_strdup("$min_sdl_version");
41898   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41899      printf("%s, bad version string\n", "$min_sdl_version");
41900      exit(1);
41901    }
41902
41903    if (($sdl_major_version > major) ||
41904       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41905       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41906     {
41907       return 0;
41908     }
41909   else
41910     {
41911       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41912       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41913       printf("*** best to upgrade to the required version.\n");
41914       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41915       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41916       printf("*** config.cache before re-running configure\n");
41917       return 1;
41918     }
41919 }
41920
41921
41922 _ACEOF
41923 rm -f conftest$ac_exeext
41924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41925   (eval $ac_link) 2>&5
41926   ac_status=$?
41927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930   (eval $ac_try) 2>&5
41931   ac_status=$?
41932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933   (exit $ac_status); }; }; then
41934   :
41935 else
41936   echo "$as_me: program exited with status $ac_status" >&5
41937 echo "$as_me: failed program was:" >&5
41938 sed 's/^/| /' conftest.$ac_ext >&5
41939
41940 ( exit $ac_status )
41941 no_sdl=yes
41942 fi
41943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41944 fi
41945        CFLAGS="$ac_save_CFLAGS"
41946        CXXFLAGS="$ac_save_CXXFLAGS"
41947        LIBS="$ac_save_LIBS"
41948      fi
41949   fi
41950   if test "x$no_sdl" = x ; then
41951      echo "$as_me:$LINENO: result: yes" >&5
41952 echo "${ECHO_T}yes" >&6
41953
41954                     EXTRALIBS_SDL="$SDL_LIBS"
41955                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41956                     cat >>confdefs.h <<\_ACEOF
41957 #define wxUSE_LIBSDL 1
41958 _ACEOF
41959
41960
41961   else
41962      echo "$as_me:$LINENO: result: no" >&5
41963 echo "${ECHO_T}no" >&6
41964      if test "$SDL_CONFIG" = "no" ; then
41965        echo "*** The sdl-config script installed by SDL could not be found"
41966        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41967        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41968        echo "*** full path to sdl-config."
41969      else
41970        if test -f conf.sdltest ; then
41971         :
41972        else
41973           echo "*** Could not run SDL test program, checking why..."
41974           CFLAGS="$CFLAGS $SDL_CFLAGS"
41975           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41976           LIBS="$LIBS $SDL_LIBS"
41977           cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h.  */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h.  */
41983
41984 #include <stdio.h>
41985 #include "SDL.h"
41986
41987 int main(int argc, char *argv[])
41988 { return 0; }
41989 #undef  main
41990 #define main K_and_R_C_main
41991
41992 int
41993 main ()
41994 {
41995  return 0;
41996   ;
41997   return 0;
41998 }
41999 _ACEOF
42000 rm -f conftest.$ac_objext conftest$ac_exeext
42001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42002   (eval $ac_link) 2>conftest.er1
42003   ac_status=$?
42004   grep -v '^ *+' conftest.er1 >conftest.err
42005   rm -f conftest.er1
42006   cat conftest.err >&5
42007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008   (exit $ac_status); } &&
42009          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42011   (eval $ac_try) 2>&5
42012   ac_status=$?
42013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42014   (exit $ac_status); }; } &&
42015          { ac_try='test -s conftest$ac_exeext'
42016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42017   (eval $ac_try) 2>&5
42018   ac_status=$?
42019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020   (exit $ac_status); }; }; then
42021    echo "*** The test program compiled, but did not run. This usually means"
42022           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42023           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42024           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42025           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42026           echo "*** is required on your system"
42027           echo "***"
42028           echo "*** If you have an old version installed, it is best to remove it, although"
42029           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42030 else
42031   echo "$as_me: failed program was:" >&5
42032 sed 's/^/| /' conftest.$ac_ext >&5
42033
42034  echo "*** The test program failed to compile or link. See the file config.log for the"
42035           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42036           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42037           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42038 fi
42039 rm -f conftest.err conftest.$ac_objext \
42040       conftest$ac_exeext conftest.$ac_ext
42041           CFLAGS="$ac_save_CFLAGS"
42042           CXXFLAGS="$ac_save_CXXFLAGS"
42043           LIBS="$ac_save_LIBS"
42044        fi
42045      fi
42046      SDL_CFLAGS=""
42047      SDL_LIBS=""
42048      wxUSE_LIBSDL="no"
42049   fi
42050
42051
42052   rm -f conf.sdltest
42053
42054       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42055         WITH_PLUGIN_SDL=1
42056       fi
42057     fi
42058   fi
42059
42060   cat >>confdefs.h <<\_ACEOF
42061 #define wxUSE_SOUND 1
42062 _ACEOF
42063
42064   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42065 fi
42066
42067 if test "$WXGTK20" = 1; then
42068     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42069         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42070
42071
42072 pkg_failed=no
42073 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42074 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
42075
42076 if test -n "$PKG_CONFIG"; then
42077     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42078         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42079     else
42080         if test -n "$PKG_CONFIG" && \
42081     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42082   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42083   ac_status=$?
42084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42085   (exit $ac_status); }; then
42086   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42087 else
42088   pkg_failed=yes
42089 fi
42090     fi
42091 else
42092         pkg_failed=untried
42093 fi
42094 if test -n "$PKG_CONFIG"; then
42095     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42096         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42097     else
42098         if test -n "$PKG_CONFIG" && \
42099     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42100   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42101   ac_status=$?
42102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103   (exit $ac_status); }; then
42104   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42105 else
42106   pkg_failed=yes
42107 fi
42108     fi
42109 else
42110         pkg_failed=untried
42111 fi
42112
42113
42114
42115 if test $pkg_failed = yes; then
42116
42117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42118         _pkg_short_errors_supported=yes
42119 else
42120         _pkg_short_errors_supported=no
42121 fi
42122         if test $_pkg_short_errors_supported = yes; then
42123                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42124         else
42125                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42126         fi
42127         # Put the nasty error message in config.log where it belongs
42128         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42129
42130
42131                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42132 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42133                         wxUSE_LIBGNOMEPRINT="no"
42134
42135
42136 elif test $pkg_failed = untried; then
42137
42138                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42139 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42140                         wxUSE_LIBGNOMEPRINT="no"
42141
42142
42143 else
42144         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42145         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42146         echo "$as_me:$LINENO: result: yes" >&5
42147 echo "${ECHO_T}yes" >&6
42148
42149                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42150                         cat >>confdefs.h <<\_ACEOF
42151 #define wxUSE_LIBGNOMEPRINT 1
42152 _ACEOF
42153
42154
42155 fi
42156         fi
42157     fi
42158 fi
42159
42160 if test "$WXGTK20" = 1; then
42161     if test "$wxUSE_MIMETYPE" = "yes" ; then
42162         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42163
42164
42165 pkg_failed=no
42166 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42167 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
42168
42169 if test -n "$PKG_CONFIG"; then
42170     if test -n "$GNOMEVFS_CFLAGS"; then
42171         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42172     else
42173         if test -n "$PKG_CONFIG" && \
42174     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42175   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42176   ac_status=$?
42177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178   (exit $ac_status); }; then
42179   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42180 else
42181   pkg_failed=yes
42182 fi
42183     fi
42184 else
42185         pkg_failed=untried
42186 fi
42187 if test -n "$PKG_CONFIG"; then
42188     if test -n "$GNOMEVFS_LIBS"; then
42189         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42190     else
42191         if test -n "$PKG_CONFIG" && \
42192     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42193   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42194   ac_status=$?
42195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42196   (exit $ac_status); }; then
42197   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42198 else
42199   pkg_failed=yes
42200 fi
42201     fi
42202 else
42203         pkg_failed=untried
42204 fi
42205
42206
42207
42208 if test $pkg_failed = yes; then
42209
42210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42211         _pkg_short_errors_supported=yes
42212 else
42213         _pkg_short_errors_supported=no
42214 fi
42215         if test $_pkg_short_errors_supported = yes; then
42216                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42217         else
42218                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42219         fi
42220         # Put the nasty error message in config.log where it belongs
42221         echo "$GNOMEVFS_PKG_ERRORS" >&5
42222
42223
42224                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42225 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42226                         wxUSE_LIBGNOMEVFS="no"
42227
42228
42229 elif test $pkg_failed = untried; then
42230
42231                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42232 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42233                         wxUSE_LIBGNOMEVFS="no"
42234
42235
42236 else
42237         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42238         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42239         echo "$as_me:$LINENO: result: yes" >&5
42240 echo "${ECHO_T}yes" >&6
42241
42242                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42243                         cat >>confdefs.h <<\_ACEOF
42244 #define wxUSE_LIBGNOMEVFS 1
42245 _ACEOF
42246
42247
42248 fi
42249         fi
42250     fi
42251 fi
42252
42253 if test "$WXGTK20" = 1; then
42254     if test "$wxUSE_LIBHILDON" = "yes" ; then
42255
42256 pkg_failed=no
42257 echo "$as_me:$LINENO: checking for HILDON" >&5
42258 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
42259
42260 if test -n "$PKG_CONFIG"; then
42261     if test -n "$HILDON_CFLAGS"; then
42262         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42263     else
42264         if test -n "$PKG_CONFIG" && \
42265     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42266   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42267   ac_status=$?
42268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269   (exit $ac_status); }; then
42270   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42271 else
42272   pkg_failed=yes
42273 fi
42274     fi
42275 else
42276         pkg_failed=untried
42277 fi
42278 if test -n "$PKG_CONFIG"; then
42279     if test -n "$HILDON_LIBS"; then
42280         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42281     else
42282         if test -n "$PKG_CONFIG" && \
42283     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42284   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42285   ac_status=$?
42286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42287   (exit $ac_status); }; then
42288   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42289 else
42290   pkg_failed=yes
42291 fi
42292     fi
42293 else
42294         pkg_failed=untried
42295 fi
42296
42297
42298
42299 if test $pkg_failed = yes; then
42300
42301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42302         _pkg_short_errors_supported=yes
42303 else
42304         _pkg_short_errors_supported=no
42305 fi
42306         if test $_pkg_short_errors_supported = yes; then
42307                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42308         else
42309                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42310         fi
42311         # Put the nasty error message in config.log where it belongs
42312         echo "$HILDON_PKG_ERRORS" >&5
42313
42314
42315                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42316 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42317                         wxUSE_LIBHILDON="no"
42318
42319
42320 elif test $pkg_failed = untried; then
42321
42322                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42323 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42324                         wxUSE_LIBHILDON="no"
42325
42326
42327 else
42328         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42329         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42330         echo "$as_me:$LINENO: result: yes" >&5
42331 echo "${ECHO_T}yes" >&6
42332
42333                 EXTRALIBS_HILDON="$HILDON_LIBS"
42334                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42335                 cat >>confdefs.h <<\_ACEOF
42336 #define wxUSE_LIBHILDON 1
42337 _ACEOF
42338
42339
42340 fi
42341     fi
42342 fi
42343
42344 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42345   cat >>confdefs.h <<\_ACEOF
42346 #define wxUSE_CMDLINE_PARSER 1
42347 _ACEOF
42348
42349 fi
42350
42351 if test "$wxUSE_STOPWATCH" = "yes"; then
42352   cat >>confdefs.h <<\_ACEOF
42353 #define wxUSE_STOPWATCH 1
42354 _ACEOF
42355
42356 fi
42357
42358 if test "$wxUSE_DATETIME" = "yes"; then
42359   cat >>confdefs.h <<\_ACEOF
42360 #define wxUSE_DATETIME 1
42361 _ACEOF
42362
42363 fi
42364
42365 if test "$wxUSE_FILE" = "yes"; then
42366   cat >>confdefs.h <<\_ACEOF
42367 #define wxUSE_FILE 1
42368 _ACEOF
42369
42370 fi
42371
42372 if test "$wxUSE_FFILE" = "yes"; then
42373   cat >>confdefs.h <<\_ACEOF
42374 #define wxUSE_FFILE 1
42375 _ACEOF
42376
42377 fi
42378
42379 if test "$wxUSE_FILESYSTEM" = "yes"; then
42380   cat >>confdefs.h <<\_ACEOF
42381 #define wxUSE_FILESYSTEM 1
42382 _ACEOF
42383
42384 fi
42385
42386 if test "$wxUSE_FS_ZIP" = "yes"; then
42387   cat >>confdefs.h <<\_ACEOF
42388 #define wxUSE_FS_ZIP 1
42389 _ACEOF
42390
42391 fi
42392
42393 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42394   cat >>confdefs.h <<\_ACEOF
42395 #define wxUSE_ARCHIVE_STREAMS 1
42396 _ACEOF
42397
42398 fi
42399
42400 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42401   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42402     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42403 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42404   elif test "$wxUSE_ZLIB" = "no"; then
42405     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42406 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42407   else
42408     cat >>confdefs.h <<\_ACEOF
42409 #define wxUSE_ZIPSTREAM 1
42410 _ACEOF
42411
42412   fi
42413 fi
42414
42415 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42416   if test "$USE_UNIX" != 1; then
42417     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42418 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42419     wxUSE_ON_FATAL_EXCEPTION=no
42420   else
42421     cat >>confdefs.h <<\_ACEOF
42422 #define wxUSE_ON_FATAL_EXCEPTION 1
42423 _ACEOF
42424
42425   fi
42426 fi
42427
42428 if test "$wxUSE_STACKWALKER" = "yes"; then
42429     cat >>confdefs.h <<\_ACEOF
42430 #define wxUSE_STACKWALKER 1
42431 _ACEOF
42432
42433 fi
42434
42435 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42436     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42437         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42438 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42439         wxUSE_DEBUGREPORT=no
42440     else
42441         cat >>confdefs.h <<\_ACEOF
42442 #define wxUSE_DEBUGREPORT 1
42443 _ACEOF
42444
42445         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42446             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42447         fi
42448     fi
42449 fi
42450
42451 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42452   cat >>confdefs.h <<\_ACEOF
42453 #define wxUSE_SNGLINST_CHECKER 1
42454 _ACEOF
42455
42456 fi
42457
42458 if test "$wxUSE_BUSYINFO" = "yes"; then
42459   cat >>confdefs.h <<\_ACEOF
42460 #define wxUSE_BUSYINFO 1
42461 _ACEOF
42462
42463 fi
42464
42465 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42466   cat >>confdefs.h <<\_ACEOF
42467 #define wxUSE_STD_IOSTREAM 1
42468 _ACEOF
42469
42470 fi
42471
42472 if test "$wxUSE_STD_STRING" = "yes"; then
42473   cat >>confdefs.h <<\_ACEOF
42474 #define wxUSE_STD_STRING 1
42475 _ACEOF
42476
42477 fi
42478
42479 if test "$wxUSE_STDPATHS" = "yes"; then
42480   cat >>confdefs.h <<\_ACEOF
42481 #define wxUSE_STDPATHS 1
42482 _ACEOF
42483
42484 fi
42485
42486 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42487     cat >>confdefs.h <<\_ACEOF
42488 #define wxUSE_TEXTBUFFER 1
42489 _ACEOF
42490
42491 fi
42492
42493 if test "$wxUSE_TEXTFILE" = "yes"; then
42494   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42495     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42496 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42497   else
42498     cat >>confdefs.h <<\_ACEOF
42499 #define wxUSE_TEXTFILE 1
42500 _ACEOF
42501
42502   fi
42503 fi
42504
42505 if test "$wxUSE_CONFIG" = "yes" ; then
42506   if test "$wxUSE_TEXTFILE" != "yes"; then
42507     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42508 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42509   else
42510     cat >>confdefs.h <<\_ACEOF
42511 #define wxUSE_CONFIG 1
42512 _ACEOF
42513
42514     cat >>confdefs.h <<\_ACEOF
42515 #define wxUSE_CONFIG_NATIVE 1
42516 _ACEOF
42517
42518     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42519   fi
42520 fi
42521
42522 if test "$wxUSE_INTL" = "yes" ; then
42523   if test "$wxUSE_FILE" != "yes"; then
42524     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42525 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42526   else
42527     cat >>confdefs.h <<\_ACEOF
42528 #define wxUSE_INTL 1
42529 _ACEOF
42530
42531     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42532     GUIDIST="$GUIDIST INTL_DIST"
42533   fi
42534 fi
42535
42536 if test "$wxUSE_LOG" = "yes"; then
42537   cat >>confdefs.h <<\_ACEOF
42538 #define wxUSE_LOG 1
42539 _ACEOF
42540
42541
42542     if test "$wxUSE_LOGGUI" = "yes"; then
42543       cat >>confdefs.h <<\_ACEOF
42544 #define wxUSE_LOGGUI 1
42545 _ACEOF
42546
42547     fi
42548
42549     if test "$wxUSE_LOGWINDOW" = "yes"; then
42550       cat >>confdefs.h <<\_ACEOF
42551 #define wxUSE_LOGWINDOW 1
42552 _ACEOF
42553
42554     fi
42555
42556     if test "$wxUSE_LOGDIALOG" = "yes"; then
42557       cat >>confdefs.h <<\_ACEOF
42558 #define wxUSE_LOG_DIALOG 1
42559 _ACEOF
42560
42561     fi
42562
42563         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42564 fi
42565
42566 if test "$wxUSE_LONGLONG" = "yes"; then
42567   cat >>confdefs.h <<\_ACEOF
42568 #define wxUSE_LONGLONG 1
42569 _ACEOF
42570
42571 fi
42572
42573 if test "$wxUSE_GEOMETRY" = "yes"; then
42574   cat >>confdefs.h <<\_ACEOF
42575 #define wxUSE_GEOMETRY 1
42576 _ACEOF
42577
42578 fi
42579
42580 if test "$wxUSE_STREAMS" = "yes" ; then
42581   cat >>confdefs.h <<\_ACEOF
42582 #define wxUSE_STREAMS 1
42583 _ACEOF
42584
42585 fi
42586
42587 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42588   cat >>confdefs.h <<\_ACEOF
42589 #define wxUSE_PRINTF_POS_PARAMS 1
42590 _ACEOF
42591
42592 fi
42593
42594
42595
42596 if test "$wxUSE_DATETIME" = "yes"; then
42597
42598 for ac_func in strptime
42599 do
42600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42601 echo "$as_me:$LINENO: checking for $ac_func" >&5
42602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42603 if eval "test \"\${$as_ac_var+set}\" = set"; then
42604   echo $ECHO_N "(cached) $ECHO_C" >&6
42605 else
42606   cat >conftest.$ac_ext <<_ACEOF
42607 /* confdefs.h.  */
42608 _ACEOF
42609 cat confdefs.h >>conftest.$ac_ext
42610 cat >>conftest.$ac_ext <<_ACEOF
42611 /* end confdefs.h.  */
42612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42614 #define $ac_func innocuous_$ac_func
42615
42616 /* System header to define __stub macros and hopefully few prototypes,
42617     which can conflict with char $ac_func (); below.
42618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42619     <limits.h> exists even on freestanding compilers.  */
42620
42621 #ifdef __STDC__
42622 # include <limits.h>
42623 #else
42624 # include <assert.h>
42625 #endif
42626
42627 #undef $ac_func
42628
42629 /* Override any gcc2 internal prototype to avoid an error.  */
42630 #ifdef __cplusplus
42631 extern "C"
42632 {
42633 #endif
42634 /* We use char because int might match the return type of a gcc2
42635    builtin and then its argument prototype would still apply.  */
42636 char $ac_func ();
42637 /* The GNU C library defines this for functions which it implements
42638     to always fail with ENOSYS.  Some functions are actually named
42639     something starting with __ and the normal name is an alias.  */
42640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42641 choke me
42642 #else
42643 char (*f) () = $ac_func;
42644 #endif
42645 #ifdef __cplusplus
42646 }
42647 #endif
42648
42649 int
42650 main ()
42651 {
42652 return f != $ac_func;
42653   ;
42654   return 0;
42655 }
42656 _ACEOF
42657 rm -f conftest.$ac_objext conftest$ac_exeext
42658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42659   (eval $ac_link) 2>conftest.er1
42660   ac_status=$?
42661   grep -v '^ *+' conftest.er1 >conftest.err
42662   rm -f conftest.er1
42663   cat conftest.err >&5
42664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665   (exit $ac_status); } &&
42666          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42668   (eval $ac_try) 2>&5
42669   ac_status=$?
42670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671   (exit $ac_status); }; } &&
42672          { ac_try='test -s conftest$ac_exeext'
42673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42674   (eval $ac_try) 2>&5
42675   ac_status=$?
42676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42677   (exit $ac_status); }; }; then
42678   eval "$as_ac_var=yes"
42679 else
42680   echo "$as_me: failed program was:" >&5
42681 sed 's/^/| /' conftest.$ac_ext >&5
42682
42683 eval "$as_ac_var=no"
42684 fi
42685 rm -f conftest.err conftest.$ac_objext \
42686       conftest$ac_exeext conftest.$ac_ext
42687 fi
42688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42690 if test `eval echo '${'$as_ac_var'}'` = yes; then
42691   cat >>confdefs.h <<_ACEOF
42692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42693 _ACEOF
42694
42695 fi
42696 done
42697
42698     if test "$ac_cv_func_strptime" = "yes"; then
42699         echo "$as_me:$LINENO: checking for strptime declaration" >&5
42700 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42701 if test "${wx_cv_func_strptime_decl+set}" = set; then
42702   echo $ECHO_N "(cached) $ECHO_C" >&6
42703 else
42704
42705                 cat >conftest.$ac_ext <<_ACEOF
42706 /* confdefs.h.  */
42707 _ACEOF
42708 cat confdefs.h >>conftest.$ac_ext
42709 cat >>conftest.$ac_ext <<_ACEOF
42710 /* end confdefs.h.  */
42711
42712                         #include <time.h>
42713
42714 int
42715 main ()
42716 {
42717
42718                         struct tm t;
42719                         strptime("foo", "bar", &t);
42720
42721   ;
42722   return 0;
42723 }
42724 _ACEOF
42725 rm -f conftest.$ac_objext
42726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42727   (eval $ac_compile) 2>conftest.er1
42728   ac_status=$?
42729   grep -v '^ *+' conftest.er1 >conftest.err
42730   rm -f conftest.er1
42731   cat conftest.err >&5
42732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42733   (exit $ac_status); } &&
42734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42736   (eval $ac_try) 2>&5
42737   ac_status=$?
42738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739   (exit $ac_status); }; } &&
42740          { ac_try='test -s conftest.$ac_objext'
42741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42742   (eval $ac_try) 2>&5
42743   ac_status=$?
42744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745   (exit $ac_status); }; }; then
42746   wx_cv_func_strptime_decl=yes
42747 else
42748   echo "$as_me: failed program was:" >&5
42749 sed 's/^/| /' conftest.$ac_ext >&5
42750
42751 wx_cv_func_strptime_decl=no
42752
42753 fi
42754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42755
42756
42757 fi
42758 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42759 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42760     fi
42761     if test "$wx_cv_func_strptime_decl" = "yes"; then
42762         cat >>confdefs.h <<\_ACEOF
42763 #define HAVE_STRPTIME_DECL 1
42764 _ACEOF
42765
42766     fi
42767
42768             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42769 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42770 if test "${wx_cv_var_timezone+set}" = set; then
42771   echo $ECHO_N "(cached) $ECHO_C" >&6
42772 else
42773
42774                         cat >conftest.$ac_ext <<_ACEOF
42775 /* confdefs.h.  */
42776 _ACEOF
42777 cat confdefs.h >>conftest.$ac_ext
42778 cat >>conftest.$ac_ext <<_ACEOF
42779 /* end confdefs.h.  */
42780
42781                                 #include <time.h>
42782
42783 int
42784 main ()
42785 {
42786
42787                                 int tz;
42788                                 tz = timezone;
42789
42790   ;
42791   return 0;
42792 }
42793 _ACEOF
42794 rm -f conftest.$ac_objext
42795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42796   (eval $ac_compile) 2>conftest.er1
42797   ac_status=$?
42798   grep -v '^ *+' conftest.er1 >conftest.err
42799   rm -f conftest.er1
42800   cat conftest.err >&5
42801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802   (exit $ac_status); } &&
42803          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42805   (eval $ac_try) 2>&5
42806   ac_status=$?
42807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808   (exit $ac_status); }; } &&
42809          { ac_try='test -s conftest.$ac_objext'
42810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42811   (eval $ac_try) 2>&5
42812   ac_status=$?
42813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42814   (exit $ac_status); }; }; then
42815
42816                                 wx_cv_var_timezone=timezone
42817
42818 else
42819   echo "$as_me: failed program was:" >&5
42820 sed 's/^/| /' conftest.$ac_ext >&5
42821
42822
42823                                 cat >conftest.$ac_ext <<_ACEOF
42824 /* confdefs.h.  */
42825 _ACEOF
42826 cat confdefs.h >>conftest.$ac_ext
42827 cat >>conftest.$ac_ext <<_ACEOF
42828 /* end confdefs.h.  */
42829
42830                                         #include <time.h>
42831
42832 int
42833 main ()
42834 {
42835
42836                                         int tz;
42837                                         tz = _timezone;
42838
42839   ;
42840   return 0;
42841 }
42842 _ACEOF
42843 rm -f conftest.$ac_objext
42844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42845   (eval $ac_compile) 2>conftest.er1
42846   ac_status=$?
42847   grep -v '^ *+' conftest.er1 >conftest.err
42848   rm -f conftest.er1
42849   cat conftest.err >&5
42850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851   (exit $ac_status); } &&
42852          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42854   (eval $ac_try) 2>&5
42855   ac_status=$?
42856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42857   (exit $ac_status); }; } &&
42858          { ac_try='test -s conftest.$ac_objext'
42859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42860   (eval $ac_try) 2>&5
42861   ac_status=$?
42862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863   (exit $ac_status); }; }; then
42864
42865                                         wx_cv_var_timezone=_timezone
42866
42867 else
42868   echo "$as_me: failed program was:" >&5
42869 sed 's/^/| /' conftest.$ac_ext >&5
42870
42871
42872                                         cat >conftest.$ac_ext <<_ACEOF
42873 /* confdefs.h.  */
42874 _ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h.  */
42878
42879                                                 #include <time.h>
42880
42881 int
42882 main ()
42883 {
42884
42885                                                 int tz;
42886                                                 tz = __timezone;
42887
42888   ;
42889   return 0;
42890 }
42891 _ACEOF
42892 rm -f conftest.$ac_objext
42893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42894   (eval $ac_compile) 2>conftest.er1
42895   ac_status=$?
42896   grep -v '^ *+' conftest.er1 >conftest.err
42897   rm -f conftest.er1
42898   cat conftest.err >&5
42899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42900   (exit $ac_status); } &&
42901          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42903   (eval $ac_try) 2>&5
42904   ac_status=$?
42905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42906   (exit $ac_status); }; } &&
42907          { ac_try='test -s conftest.$ac_objext'
42908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42909   (eval $ac_try) 2>&5
42910   ac_status=$?
42911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42912   (exit $ac_status); }; }; then
42913
42914                                                 wx_cv_var_timezone=__timezone
42915
42916 else
42917   echo "$as_me: failed program was:" >&5
42918 sed 's/^/| /' conftest.$ac_ext >&5
42919
42920
42921                                                 if test "$USE_DOS" = 0 ; then
42922                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42923 echo "$as_me: WARNING: no timezone variable" >&2;}
42924                                                 fi
42925
42926
42927 fi
42928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42929
42930
42931 fi
42932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42933
42934
42935 fi
42936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42937
42938
42939 fi
42940 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42941 echo "${ECHO_T}$wx_cv_var_timezone" >&6
42942
42943         if test "x$wx_cv_var_timezone" != x ; then
42944         cat >>confdefs.h <<_ACEOF
42945 #define WX_TIMEZONE $wx_cv_var_timezone
42946 _ACEOF
42947
42948     fi
42949
42950
42951 for ac_func in localtime
42952 do
42953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42954 echo "$as_me:$LINENO: checking for $ac_func" >&5
42955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42956 if eval "test \"\${$as_ac_var+set}\" = set"; then
42957   echo $ECHO_N "(cached) $ECHO_C" >&6
42958 else
42959   cat >conftest.$ac_ext <<_ACEOF
42960 /* confdefs.h.  */
42961 _ACEOF
42962 cat confdefs.h >>conftest.$ac_ext
42963 cat >>conftest.$ac_ext <<_ACEOF
42964 /* end confdefs.h.  */
42965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42967 #define $ac_func innocuous_$ac_func
42968
42969 /* System header to define __stub macros and hopefully few prototypes,
42970     which can conflict with char $ac_func (); below.
42971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42972     <limits.h> exists even on freestanding compilers.  */
42973
42974 #ifdef __STDC__
42975 # include <limits.h>
42976 #else
42977 # include <assert.h>
42978 #endif
42979
42980 #undef $ac_func
42981
42982 /* Override any gcc2 internal prototype to avoid an error.  */
42983 #ifdef __cplusplus
42984 extern "C"
42985 {
42986 #endif
42987 /* We use char because int might match the return type of a gcc2
42988    builtin and then its argument prototype would still apply.  */
42989 char $ac_func ();
42990 /* The GNU C library defines this for functions which it implements
42991     to always fail with ENOSYS.  Some functions are actually named
42992     something starting with __ and the normal name is an alias.  */
42993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42994 choke me
42995 #else
42996 char (*f) () = $ac_func;
42997 #endif
42998 #ifdef __cplusplus
42999 }
43000 #endif
43001
43002 int
43003 main ()
43004 {
43005 return f != $ac_func;
43006   ;
43007   return 0;
43008 }
43009 _ACEOF
43010 rm -f conftest.$ac_objext conftest$ac_exeext
43011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43012   (eval $ac_link) 2>conftest.er1
43013   ac_status=$?
43014   grep -v '^ *+' conftest.er1 >conftest.err
43015   rm -f conftest.er1
43016   cat conftest.err >&5
43017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018   (exit $ac_status); } &&
43019          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021   (eval $ac_try) 2>&5
43022   ac_status=$?
43023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024   (exit $ac_status); }; } &&
43025          { ac_try='test -s conftest$ac_exeext'
43026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43027   (eval $ac_try) 2>&5
43028   ac_status=$?
43029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030   (exit $ac_status); }; }; then
43031   eval "$as_ac_var=yes"
43032 else
43033   echo "$as_me: failed program was:" >&5
43034 sed 's/^/| /' conftest.$ac_ext >&5
43035
43036 eval "$as_ac_var=no"
43037 fi
43038 rm -f conftest.err conftest.$ac_objext \
43039       conftest$ac_exeext conftest.$ac_ext
43040 fi
43041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43043 if test `eval echo '${'$as_ac_var'}'` = yes; then
43044   cat >>confdefs.h <<_ACEOF
43045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43046 _ACEOF
43047
43048 fi
43049 done
43050
43051
43052     if test "$ac_cv_func_localtime" = "yes"; then
43053         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43054 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43055 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058
43059             cat >conftest.$ac_ext <<_ACEOF
43060 /* confdefs.h.  */
43061 _ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h.  */
43065
43066                     #include <time.h>
43067
43068 int
43069 main ()
43070 {
43071
43072                     struct tm tm;
43073                     tm.tm_gmtoff++;
43074
43075   ;
43076   return 0;
43077 }
43078 _ACEOF
43079 rm -f conftest.$ac_objext
43080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43081   (eval $ac_compile) 2>conftest.er1
43082   ac_status=$?
43083   grep -v '^ *+' conftest.er1 >conftest.err
43084   rm -f conftest.er1
43085   cat conftest.err >&5
43086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087   (exit $ac_status); } &&
43088          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43090   (eval $ac_try) 2>&5
43091   ac_status=$?
43092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093   (exit $ac_status); }; } &&
43094          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
43100
43101                     wx_cv_struct_tm_has_gmtoff=yes
43102
43103 else
43104   echo "$as_me: failed program was:" >&5
43105 sed 's/^/| /' conftest.$ac_ext >&5
43106
43107 wx_cv_struct_tm_has_gmtoff=no
43108
43109 fi
43110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43111
43112 fi
43113 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43114 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43115     fi
43116
43117     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43118         cat >>confdefs.h <<\_ACEOF
43119 #define WX_GMTOFF_IN_TM 1
43120 _ACEOF
43121
43122     fi
43123
43124
43125
43126 for ac_func in gettimeofday ftime
43127 do
43128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43129 echo "$as_me:$LINENO: checking for $ac_func" >&5
43130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43131 if eval "test \"\${$as_ac_var+set}\" = set"; then
43132   echo $ECHO_N "(cached) $ECHO_C" >&6
43133 else
43134   cat >conftest.$ac_ext <<_ACEOF
43135 /* confdefs.h.  */
43136 _ACEOF
43137 cat confdefs.h >>conftest.$ac_ext
43138 cat >>conftest.$ac_ext <<_ACEOF
43139 /* end confdefs.h.  */
43140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43142 #define $ac_func innocuous_$ac_func
43143
43144 /* System header to define __stub macros and hopefully few prototypes,
43145     which can conflict with char $ac_func (); below.
43146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43147     <limits.h> exists even on freestanding compilers.  */
43148
43149 #ifdef __STDC__
43150 # include <limits.h>
43151 #else
43152 # include <assert.h>
43153 #endif
43154
43155 #undef $ac_func
43156
43157 /* Override any gcc2 internal prototype to avoid an error.  */
43158 #ifdef __cplusplus
43159 extern "C"
43160 {
43161 #endif
43162 /* We use char because int might match the return type of a gcc2
43163    builtin and then its argument prototype would still apply.  */
43164 char $ac_func ();
43165 /* The GNU C library defines this for functions which it implements
43166     to always fail with ENOSYS.  Some functions are actually named
43167     something starting with __ and the normal name is an alias.  */
43168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43169 choke me
43170 #else
43171 char (*f) () = $ac_func;
43172 #endif
43173 #ifdef __cplusplus
43174 }
43175 #endif
43176
43177 int
43178 main ()
43179 {
43180 return f != $ac_func;
43181   ;
43182   return 0;
43183 }
43184 _ACEOF
43185 rm -f conftest.$ac_objext conftest$ac_exeext
43186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43187   (eval $ac_link) 2>conftest.er1
43188   ac_status=$?
43189   grep -v '^ *+' conftest.er1 >conftest.err
43190   rm -f conftest.er1
43191   cat conftest.err >&5
43192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193   (exit $ac_status); } &&
43194          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43196   (eval $ac_try) 2>&5
43197   ac_status=$?
43198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199   (exit $ac_status); }; } &&
43200          { ac_try='test -s conftest$ac_exeext'
43201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43202   (eval $ac_try) 2>&5
43203   ac_status=$?
43204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43205   (exit $ac_status); }; }; then
43206   eval "$as_ac_var=yes"
43207 else
43208   echo "$as_me: failed program was:" >&5
43209 sed 's/^/| /' conftest.$ac_ext >&5
43210
43211 eval "$as_ac_var=no"
43212 fi
43213 rm -f conftest.err conftest.$ac_objext \
43214       conftest$ac_exeext conftest.$ac_ext
43215 fi
43216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43218 if test `eval echo '${'$as_ac_var'}'` = yes; then
43219   cat >>confdefs.h <<_ACEOF
43220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43221 _ACEOF
43222  break
43223 fi
43224 done
43225
43226
43227     if test "$ac_cv_func_gettimeofday" = "yes"; then
43228         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43229 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43230 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43231   echo $ECHO_N "(cached) $ECHO_C" >&6
43232 else
43233
43234                         cat >conftest.$ac_ext <<_ACEOF
43235 /* confdefs.h.  */
43236 _ACEOF
43237 cat confdefs.h >>conftest.$ac_ext
43238 cat >>conftest.$ac_ext <<_ACEOF
43239 /* end confdefs.h.  */
43240
43241                     #include <sys/time.h>
43242                     #include <unistd.h>
43243
43244 int
43245 main ()
43246 {
43247
43248                     struct timeval tv;
43249                     gettimeofday(&tv, NULL);
43250
43251   ;
43252   return 0;
43253 }
43254 _ACEOF
43255 rm -f conftest.$ac_objext
43256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43257   (eval $ac_compile) 2>conftest.er1
43258   ac_status=$?
43259   grep -v '^ *+' conftest.er1 >conftest.err
43260   rm -f conftest.er1
43261   cat conftest.err >&5
43262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43263   (exit $ac_status); } &&
43264          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266   (eval $ac_try) 2>&5
43267   ac_status=$?
43268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269   (exit $ac_status); }; } &&
43270          { ac_try='test -s conftest.$ac_objext'
43271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43272   (eval $ac_try) 2>&5
43273   ac_status=$?
43274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275   (exit $ac_status); }; }; then
43276   wx_cv_func_gettimeofday_has_2_args=yes
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281 cat >conftest.$ac_ext <<_ACEOF
43282 /* confdefs.h.  */
43283 _ACEOF
43284 cat confdefs.h >>conftest.$ac_ext
43285 cat >>conftest.$ac_ext <<_ACEOF
43286 /* end confdefs.h.  */
43287
43288                         #include <sys/time.h>
43289                         #include <unistd.h>
43290
43291 int
43292 main ()
43293 {
43294
43295                         struct timeval tv;
43296                         gettimeofday(&tv);
43297
43298   ;
43299   return 0;
43300 }
43301 _ACEOF
43302 rm -f conftest.$ac_objext
43303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43304   (eval $ac_compile) 2>conftest.er1
43305   ac_status=$?
43306   grep -v '^ *+' conftest.er1 >conftest.err
43307   rm -f conftest.er1
43308   cat conftest.err >&5
43309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310   (exit $ac_status); } &&
43311          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43313   (eval $ac_try) 2>&5
43314   ac_status=$?
43315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316   (exit $ac_status); }; } &&
43317          { ac_try='test -s conftest.$ac_objext'
43318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43319   (eval $ac_try) 2>&5
43320   ac_status=$?
43321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43322   (exit $ac_status); }; }; then
43323   wx_cv_func_gettimeofday_has_2_args=no
43324 else
43325   echo "$as_me: failed program was:" >&5
43326 sed 's/^/| /' conftest.$ac_ext >&5
43327
43328
43329                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43330 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43331                         wx_cv_func_gettimeofday_has_2_args=unknown
43332
43333
43334 fi
43335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43336
43337 fi
43338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43339
43340 fi
43341 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43342 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43343
43344         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43345             cat >>confdefs.h <<\_ACEOF
43346 #define WX_GETTIMEOFDAY_NO_TZ 1
43347 _ACEOF
43348
43349         fi
43350     fi
43351
43352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43353 fi
43354
43355
43356 if test "$wxUSE_SOCKETS" = "yes"; then
43357     if test "$wxUSE_MGL" = "1"; then
43358         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43359 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43360         wxUSE_SOCKETS="no"
43361     fi
43362 fi
43363
43364 if test "$wxUSE_SOCKETS" = "yes"; then
43365         if test "$TOOLKIT" != "MSW"; then
43366                 echo "$as_me:$LINENO: checking for socket" >&5
43367 echo $ECHO_N "checking for socket... $ECHO_C" >&6
43368 if test "${ac_cv_func_socket+set}" = set; then
43369   echo $ECHO_N "(cached) $ECHO_C" >&6
43370 else
43371   cat >conftest.$ac_ext <<_ACEOF
43372 /* confdefs.h.  */
43373 _ACEOF
43374 cat confdefs.h >>conftest.$ac_ext
43375 cat >>conftest.$ac_ext <<_ACEOF
43376 /* end confdefs.h.  */
43377 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43379 #define socket innocuous_socket
43380
43381 /* System header to define __stub macros and hopefully few prototypes,
43382     which can conflict with char socket (); below.
43383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43384     <limits.h> exists even on freestanding compilers.  */
43385
43386 #ifdef __STDC__
43387 # include <limits.h>
43388 #else
43389 # include <assert.h>
43390 #endif
43391
43392 #undef socket
43393
43394 /* Override any gcc2 internal prototype to avoid an error.  */
43395 #ifdef __cplusplus
43396 extern "C"
43397 {
43398 #endif
43399 /* We use char because int might match the return type of a gcc2
43400    builtin and then its argument prototype would still apply.  */
43401 char socket ();
43402 /* The GNU C library defines this for functions which it implements
43403     to always fail with ENOSYS.  Some functions are actually named
43404     something starting with __ and the normal name is an alias.  */
43405 #if defined (__stub_socket) || defined (__stub___socket)
43406 choke me
43407 #else
43408 char (*f) () = socket;
43409 #endif
43410 #ifdef __cplusplus
43411 }
43412 #endif
43413
43414 int
43415 main ()
43416 {
43417 return f != socket;
43418   ;
43419   return 0;
43420 }
43421 _ACEOF
43422 rm -f conftest.$ac_objext conftest$ac_exeext
43423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43424   (eval $ac_link) 2>conftest.er1
43425   ac_status=$?
43426   grep -v '^ *+' conftest.er1 >conftest.err
43427   rm -f conftest.er1
43428   cat conftest.err >&5
43429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430   (exit $ac_status); } &&
43431          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43433   (eval $ac_try) 2>&5
43434   ac_status=$?
43435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43436   (exit $ac_status); }; } &&
43437          { ac_try='test -s conftest$ac_exeext'
43438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43439   (eval $ac_try) 2>&5
43440   ac_status=$?
43441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442   (exit $ac_status); }; }; then
43443   ac_cv_func_socket=yes
43444 else
43445   echo "$as_me: failed program was:" >&5
43446 sed 's/^/| /' conftest.$ac_ext >&5
43447
43448 ac_cv_func_socket=no
43449 fi
43450 rm -f conftest.err conftest.$ac_objext \
43451       conftest$ac_exeext conftest.$ac_ext
43452 fi
43453 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43454 echo "${ECHO_T}$ac_cv_func_socket" >&6
43455 if test $ac_cv_func_socket = yes; then
43456   :
43457 else
43458
43459                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43460 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43461 if test "${ac_cv_lib_socket_socket+set}" = set; then
43462   echo $ECHO_N "(cached) $ECHO_C" >&6
43463 else
43464   ac_check_lib_save_LIBS=$LIBS
43465 LIBS="-lsocket  $LIBS"
43466 cat >conftest.$ac_ext <<_ACEOF
43467 /* confdefs.h.  */
43468 _ACEOF
43469 cat confdefs.h >>conftest.$ac_ext
43470 cat >>conftest.$ac_ext <<_ACEOF
43471 /* end confdefs.h.  */
43472
43473 /* Override any gcc2 internal prototype to avoid an error.  */
43474 #ifdef __cplusplus
43475 extern "C"
43476 #endif
43477 /* We use char because int might match the return type of a gcc2
43478    builtin and then its argument prototype would still apply.  */
43479 char socket ();
43480 int
43481 main ()
43482 {
43483 socket ();
43484   ;
43485   return 0;
43486 }
43487 _ACEOF
43488 rm -f conftest.$ac_objext conftest$ac_exeext
43489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43490   (eval $ac_link) 2>conftest.er1
43491   ac_status=$?
43492   grep -v '^ *+' conftest.er1 >conftest.err
43493   rm -f conftest.er1
43494   cat conftest.err >&5
43495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43496   (exit $ac_status); } &&
43497          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43499   (eval $ac_try) 2>&5
43500   ac_status=$?
43501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502   (exit $ac_status); }; } &&
43503          { ac_try='test -s conftest$ac_exeext'
43504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43505   (eval $ac_try) 2>&5
43506   ac_status=$?
43507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508   (exit $ac_status); }; }; then
43509   ac_cv_lib_socket_socket=yes
43510 else
43511   echo "$as_me: failed program was:" >&5
43512 sed 's/^/| /' conftest.$ac_ext >&5
43513
43514 ac_cv_lib_socket_socket=no
43515 fi
43516 rm -f conftest.err conftest.$ac_objext \
43517       conftest$ac_exeext conftest.$ac_ext
43518 LIBS=$ac_check_lib_save_LIBS
43519 fi
43520 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43521 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43522 if test $ac_cv_lib_socket_socket = yes; then
43523   if test "$INET_LINK" != " -lsocket"; then
43524                         INET_LINK="$INET_LINK -lsocket"
43525                     fi
43526 else
43527
43528                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43529 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43530                         wxUSE_SOCKETS=no
43531
43532
43533 fi
43534
43535
43536
43537 fi
43538
43539     fi
43540 fi
43541
43542 if test "$wxUSE_SOCKETS" = "yes" ; then
43543                 if test "$TOOLKIT" != "MSW"; then
43544                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43545 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43546 if test "${wx_cv_type_getsockname3+set}" = set; then
43547   echo $ECHO_N "(cached) $ECHO_C" >&6
43548 else
43549
43550                 cat >conftest.$ac_ext <<_ACEOF
43551 /* confdefs.h.  */
43552 _ACEOF
43553 cat confdefs.h >>conftest.$ac_ext
43554 cat >>conftest.$ac_ext <<_ACEOF
43555 /* end confdefs.h.  */
43556
43557                         #include <sys/types.h>
43558                         #include <sys/socket.h>
43559
43560 int
43561 main ()
43562 {
43563
43564                         socklen_t len;
43565                         getsockname(0, 0, &len);
43566
43567   ;
43568   return 0;
43569 }
43570 _ACEOF
43571 rm -f conftest.$ac_objext
43572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43573   (eval $ac_compile) 2>conftest.er1
43574   ac_status=$?
43575   grep -v '^ *+' conftest.er1 >conftest.err
43576   rm -f conftest.er1
43577   cat conftest.err >&5
43578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43579   (exit $ac_status); } &&
43580          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43582   (eval $ac_try) 2>&5
43583   ac_status=$?
43584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585   (exit $ac_status); }; } &&
43586          { ac_try='test -s conftest.$ac_objext'
43587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43588   (eval $ac_try) 2>&5
43589   ac_status=$?
43590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591   (exit $ac_status); }; }; then
43592   wx_cv_type_getsockname3=socklen_t
43593 else
43594   echo "$as_me: failed program was:" >&5
43595 sed 's/^/| /' conftest.$ac_ext >&5
43596
43597
43598                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43599                         if test "$GCC" = yes ; then
43600                             CXXFLAGS="-Werror $CXXFLAGS"
43601                         fi
43602
43603                         cat >conftest.$ac_ext <<_ACEOF
43604 /* confdefs.h.  */
43605 _ACEOF
43606 cat confdefs.h >>conftest.$ac_ext
43607 cat >>conftest.$ac_ext <<_ACEOF
43608 /* end confdefs.h.  */
43609
43610                                 #include <sys/types.h>
43611                                 #include <sys/socket.h>
43612
43613 int
43614 main ()
43615 {
43616
43617                                 size_t len;
43618                                 getsockname(0, 0, &len);
43619
43620   ;
43621   return 0;
43622 }
43623 _ACEOF
43624 rm -f conftest.$ac_objext
43625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43626   (eval $ac_compile) 2>conftest.er1
43627   ac_status=$?
43628   grep -v '^ *+' conftest.er1 >conftest.err
43629   rm -f conftest.er1
43630   cat conftest.err >&5
43631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43632   (exit $ac_status); } &&
43633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43635   (eval $ac_try) 2>&5
43636   ac_status=$?
43637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43638   (exit $ac_status); }; } &&
43639          { ac_try='test -s conftest.$ac_objext'
43640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43641   (eval $ac_try) 2>&5
43642   ac_status=$?
43643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43644   (exit $ac_status); }; }; then
43645   wx_cv_type_getsockname3=size_t
43646 else
43647   echo "$as_me: failed program was:" >&5
43648 sed 's/^/| /' conftest.$ac_ext >&5
43649
43650 cat >conftest.$ac_ext <<_ACEOF
43651 /* confdefs.h.  */
43652 _ACEOF
43653 cat confdefs.h >>conftest.$ac_ext
43654 cat >>conftest.$ac_ext <<_ACEOF
43655 /* end confdefs.h.  */
43656
43657                                     #include <sys/types.h>
43658                                     #include <sys/socket.h>
43659
43660 int
43661 main ()
43662 {
43663
43664                                     int len;
43665                                     getsockname(0, 0, &len);
43666
43667   ;
43668   return 0;
43669 }
43670 _ACEOF
43671 rm -f conftest.$ac_objext
43672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43673   (eval $ac_compile) 2>conftest.er1
43674   ac_status=$?
43675   grep -v '^ *+' conftest.er1 >conftest.err
43676   rm -f conftest.er1
43677   cat conftest.err >&5
43678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43679   (exit $ac_status); } &&
43680          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43682   (eval $ac_try) 2>&5
43683   ac_status=$?
43684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685   (exit $ac_status); }; } &&
43686          { ac_try='test -s conftest.$ac_objext'
43687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43688   (eval $ac_try) 2>&5
43689   ac_status=$?
43690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43691   (exit $ac_status); }; }; then
43692   wx_cv_type_getsockname3=int
43693 else
43694   echo "$as_me: failed program was:" >&5
43695 sed 's/^/| /' conftest.$ac_ext >&5
43696
43697 wx_cv_type_getsockname3=unknown
43698
43699 fi
43700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43701
43702 fi
43703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43704
43705                         CXXFLAGS="$CXXFLAGS_OLD"
43706
43707
43708 fi
43709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43710
43711 fi
43712 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43713 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43714
43715         if test "$wx_cv_type_getsockname3" = "unknown"; then
43716             wxUSE_SOCKETS=no
43717             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43718 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43719         else
43720             cat >>confdefs.h <<_ACEOF
43721 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43722 _ACEOF
43723
43724         fi
43725                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43726 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43727 if test "${wx_cv_type_getsockopt5+set}" = set; then
43728   echo $ECHO_N "(cached) $ECHO_C" >&6
43729 else
43730
43731                 cat >conftest.$ac_ext <<_ACEOF
43732 /* confdefs.h.  */
43733 _ACEOF
43734 cat confdefs.h >>conftest.$ac_ext
43735 cat >>conftest.$ac_ext <<_ACEOF
43736 /* end confdefs.h.  */
43737
43738                         #include <sys/types.h>
43739                         #include <sys/socket.h>
43740
43741 int
43742 main ()
43743 {
43744
43745                         socklen_t len;
43746                         getsockopt(0, 0, 0, 0, &len);
43747
43748   ;
43749   return 0;
43750 }
43751 _ACEOF
43752 rm -f conftest.$ac_objext
43753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43754   (eval $ac_compile) 2>conftest.er1
43755   ac_status=$?
43756   grep -v '^ *+' conftest.er1 >conftest.err
43757   rm -f conftest.er1
43758   cat conftest.err >&5
43759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43760   (exit $ac_status); } &&
43761          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43763   (eval $ac_try) 2>&5
43764   ac_status=$?
43765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43766   (exit $ac_status); }; } &&
43767          { ac_try='test -s conftest.$ac_objext'
43768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43769   (eval $ac_try) 2>&5
43770   ac_status=$?
43771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43772   (exit $ac_status); }; }; then
43773   wx_cv_type_getsockopt5=socklen_t
43774 else
43775   echo "$as_me: failed program was:" >&5
43776 sed 's/^/| /' conftest.$ac_ext >&5
43777
43778
43779                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43780                         if test "$GCC" = yes ; then
43781                             CXXFLAGS="-Werror $CXXFLAGS"
43782                         fi
43783
43784                         cat >conftest.$ac_ext <<_ACEOF
43785 /* confdefs.h.  */
43786 _ACEOF
43787 cat confdefs.h >>conftest.$ac_ext
43788 cat >>conftest.$ac_ext <<_ACEOF
43789 /* end confdefs.h.  */
43790
43791                                 #include <sys/types.h>
43792                                 #include <sys/socket.h>
43793
43794 int
43795 main ()
43796 {
43797
43798                                 size_t len;
43799                                 getsockopt(0, 0, 0, 0, &len);
43800
43801   ;
43802   return 0;
43803 }
43804 _ACEOF
43805 rm -f conftest.$ac_objext
43806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43807   (eval $ac_compile) 2>conftest.er1
43808   ac_status=$?
43809   grep -v '^ *+' conftest.er1 >conftest.err
43810   rm -f conftest.er1
43811   cat conftest.err >&5
43812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43813   (exit $ac_status); } &&
43814          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43816   (eval $ac_try) 2>&5
43817   ac_status=$?
43818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43819   (exit $ac_status); }; } &&
43820          { ac_try='test -s conftest.$ac_objext'
43821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43822   (eval $ac_try) 2>&5
43823   ac_status=$?
43824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43825   (exit $ac_status); }; }; then
43826   wx_cv_type_getsockopt5=size_t
43827 else
43828   echo "$as_me: failed program was:" >&5
43829 sed 's/^/| /' conftest.$ac_ext >&5
43830
43831 cat >conftest.$ac_ext <<_ACEOF
43832 /* confdefs.h.  */
43833 _ACEOF
43834 cat confdefs.h >>conftest.$ac_ext
43835 cat >>conftest.$ac_ext <<_ACEOF
43836 /* end confdefs.h.  */
43837
43838                                     #include <sys/types.h>
43839                                     #include <sys/socket.h>
43840
43841 int
43842 main ()
43843 {
43844
43845                                     int len;
43846                                     getsockopt(0, 0, 0, 0, &len);
43847
43848   ;
43849   return 0;
43850 }
43851 _ACEOF
43852 rm -f conftest.$ac_objext
43853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43854   (eval $ac_compile) 2>conftest.er1
43855   ac_status=$?
43856   grep -v '^ *+' conftest.er1 >conftest.err
43857   rm -f conftest.er1
43858   cat conftest.err >&5
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); } &&
43861          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43863   (eval $ac_try) 2>&5
43864   ac_status=$?
43865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43866   (exit $ac_status); }; } &&
43867          { ac_try='test -s conftest.$ac_objext'
43868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43869   (eval $ac_try) 2>&5
43870   ac_status=$?
43871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43872   (exit $ac_status); }; }; then
43873   wx_cv_type_getsockopt5=int
43874 else
43875   echo "$as_me: failed program was:" >&5
43876 sed 's/^/| /' conftest.$ac_ext >&5
43877
43878 wx_cv_type_getsockopt5=unknown
43879
43880 fi
43881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43882
43883 fi
43884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43885
43886                         CXXFLAGS="$CXXFLAGS_OLD"
43887
43888
43889 fi
43890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43891
43892 fi
43893 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43894 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43895
43896         if test "$wx_cv_type_getsockopt5" = "unknown"; then
43897             wxUSE_SOCKETS=no
43898             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43899 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43900         else
43901             cat >>confdefs.h <<_ACEOF
43902 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
43903 _ACEOF
43904
43905         fi
43906     fi
43907 fi
43908
43909 if test "$wxUSE_SOCKETS" = "yes" ; then
43910     cat >>confdefs.h <<\_ACEOF
43911 #define wxUSE_SOCKETS 1
43912 _ACEOF
43913
43914     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43915 fi
43916
43917 if test "$wxUSE_PROTOCOL" = "yes"; then
43918     if test "$wxUSE_SOCKETS" != "yes"; then
43919         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43920 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43921         wxUSE_PROTOCOL=no
43922     fi
43923 fi
43924
43925 if test "$wxUSE_PROTOCOL" = "yes"; then
43926     cat >>confdefs.h <<\_ACEOF
43927 #define wxUSE_PROTOCOL 1
43928 _ACEOF
43929
43930
43931     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43932         cat >>confdefs.h <<\_ACEOF
43933 #define wxUSE_PROTOCOL_HTTP 1
43934 _ACEOF
43935
43936     fi
43937     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43938         cat >>confdefs.h <<\_ACEOF
43939 #define wxUSE_PROTOCOL_FTP 1
43940 _ACEOF
43941
43942     fi
43943     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43944         cat >>confdefs.h <<\_ACEOF
43945 #define wxUSE_PROTOCOL_FILE 1
43946 _ACEOF
43947
43948     fi
43949 else
43950     if test "$wxUSE_FS_INET" = "yes"; then
43951         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43952 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43953         wxUSE_FS_INET="no"
43954     fi
43955 fi
43956
43957 if test "$wxUSE_URL" = "yes"; then
43958     if test "$wxUSE_PROTOCOL" != "yes"; then
43959         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43960 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43961         wxUSE_URL=no
43962     fi
43963     if test "$wxUSE_URL" = "yes"; then
43964         cat >>confdefs.h <<\_ACEOF
43965 #define wxUSE_URL 1
43966 _ACEOF
43967
43968     fi
43969 fi
43970
43971 if test "$wxUSE_FS_INET" = "yes"; then
43972   cat >>confdefs.h <<\_ACEOF
43973 #define wxUSE_FS_INET 1
43974 _ACEOF
43975
43976 fi
43977
43978
43979 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43980     wxUSE_JOYSTICK=no
43981
43982         if test "$TOOLKIT" = "MSW"; then
43983         wxUSE_JOYSTICK=yes
43984
43985         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43986         if test "$USE_DARWIN" = 1; then
43987                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43988 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
43989             cat >conftest.$ac_ext <<_ACEOF
43990 /* confdefs.h.  */
43991 _ACEOF
43992 cat confdefs.h >>conftest.$ac_ext
43993 cat >>conftest.$ac_ext <<_ACEOF
43994 /* end confdefs.h.  */
43995  #include <IOKit/hid/IOHIDLib.h>
43996 int
43997 main ()
43998 {
43999  IOHIDQueueInterface *qi = NULL;
44000                               IOHIDCallbackFunction cb = NULL;
44001                               qi->setEventCallout(NULL, cb, NULL, NULL);
44002   ;
44003   return 0;
44004 }
44005 _ACEOF
44006 rm -f conftest.$ac_objext
44007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44008   (eval $ac_compile) 2>conftest.er1
44009   ac_status=$?
44010   grep -v '^ *+' conftest.er1 >conftest.err
44011   rm -f conftest.er1
44012   cat conftest.err >&5
44013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44014   (exit $ac_status); } &&
44015          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44017   (eval $ac_try) 2>&5
44018   ac_status=$?
44019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44020   (exit $ac_status); }; } &&
44021          { ac_try='test -s conftest.$ac_objext'
44022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44023   (eval $ac_try) 2>&5
44024   ac_status=$?
44025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44026   (exit $ac_status); }; }; then
44027    wxUSE_JOYSTICK=yes
44028
44029 else
44030   echo "$as_me: failed program was:" >&5
44031 sed 's/^/| /' conftest.$ac_ext >&5
44032
44033 fi
44034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44035             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44036 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44037         fi
44038
44039         else
44040
44041 for ac_header in linux/joystick.h
44042 do
44043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44045   echo "$as_me:$LINENO: checking for $ac_header" >&5
44046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44048   echo $ECHO_N "(cached) $ECHO_C" >&6
44049 fi
44050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44052 else
44053   # Is the header compilable?
44054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44056 cat >conftest.$ac_ext <<_ACEOF
44057 /* confdefs.h.  */
44058 _ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h.  */
44062 $ac_includes_default
44063 #include <$ac_header>
44064 _ACEOF
44065 rm -f conftest.$ac_objext
44066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44067   (eval $ac_compile) 2>conftest.er1
44068   ac_status=$?
44069   grep -v '^ *+' conftest.er1 >conftest.err
44070   rm -f conftest.er1
44071   cat conftest.err >&5
44072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073   (exit $ac_status); } &&
44074          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44076   (eval $ac_try) 2>&5
44077   ac_status=$?
44078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44079   (exit $ac_status); }; } &&
44080          { ac_try='test -s conftest.$ac_objext'
44081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44082   (eval $ac_try) 2>&5
44083   ac_status=$?
44084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44085   (exit $ac_status); }; }; then
44086   ac_header_compiler=yes
44087 else
44088   echo "$as_me: failed program was:" >&5
44089 sed 's/^/| /' conftest.$ac_ext >&5
44090
44091 ac_header_compiler=no
44092 fi
44093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44095 echo "${ECHO_T}$ac_header_compiler" >&6
44096
44097 # Is the header present?
44098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44100 cat >conftest.$ac_ext <<_ACEOF
44101 /* confdefs.h.  */
44102 _ACEOF
44103 cat confdefs.h >>conftest.$ac_ext
44104 cat >>conftest.$ac_ext <<_ACEOF
44105 /* end confdefs.h.  */
44106 #include <$ac_header>
44107 _ACEOF
44108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44110   ac_status=$?
44111   grep -v '^ *+' conftest.er1 >conftest.err
44112   rm -f conftest.er1
44113   cat conftest.err >&5
44114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115   (exit $ac_status); } >/dev/null; then
44116   if test -s conftest.err; then
44117     ac_cpp_err=$ac_cxx_preproc_warn_flag
44118     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44119   else
44120     ac_cpp_err=
44121   fi
44122 else
44123   ac_cpp_err=yes
44124 fi
44125 if test -z "$ac_cpp_err"; then
44126   ac_header_preproc=yes
44127 else
44128   echo "$as_me: failed program was:" >&5
44129 sed 's/^/| /' conftest.$ac_ext >&5
44130
44131   ac_header_preproc=no
44132 fi
44133 rm -f conftest.err conftest.$ac_ext
44134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44135 echo "${ECHO_T}$ac_header_preproc" >&6
44136
44137 # So?  What about this header?
44138 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44139   yes:no: )
44140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44144     ac_header_preproc=yes
44145     ;;
44146   no:yes:* )
44147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44159     (
44160       cat <<\_ASBOX
44161 ## ----------------------------------------- ##
44162 ## Report this to wx-dev@lists.wxwidgets.org ##
44163 ## ----------------------------------------- ##
44164 _ASBOX
44165     ) |
44166       sed "s/^/$as_me: WARNING:     /" >&2
44167     ;;
44168 esac
44169 echo "$as_me:$LINENO: checking for $ac_header" >&5
44170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44172   echo $ECHO_N "(cached) $ECHO_C" >&6
44173 else
44174   eval "$as_ac_Header=\$ac_header_preproc"
44175 fi
44176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44178
44179 fi
44180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44181   cat >>confdefs.h <<_ACEOF
44182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44183 _ACEOF
44184  wxUSE_JOYSTICK=yes
44185 fi
44186
44187 done
44188
44189     fi
44190
44191     if test "$wxUSE_JOYSTICK" = "yes"; then
44192         cat >>confdefs.h <<\_ACEOF
44193 #define wxUSE_JOYSTICK 1
44194 _ACEOF
44195
44196         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44197     else
44198         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44199 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44200     fi
44201 fi
44202
44203
44204
44205 if test "$wxUSE_FONTMAP" = "yes" ; then
44206   cat >>confdefs.h <<\_ACEOF
44207 #define wxUSE_FONTMAP 1
44208 _ACEOF
44209
44210 fi
44211
44212 if test "$wxUSE_UNICODE" = "yes" ; then
44213   cat >>confdefs.h <<\_ACEOF
44214 #define wxUSE_UNICODE 1
44215 _ACEOF
44216
44217
44218   if test "$USE_WIN32" != 1; then
44219       wxUSE_UNICODE_MSLU=no
44220   fi
44221
44222   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44223         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44224 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44225 if test "${ac_cv_lib_unicows_main+set}" = set; then
44226   echo $ECHO_N "(cached) $ECHO_C" >&6
44227 else
44228   ac_check_lib_save_LIBS=$LIBS
44229 LIBS="-lunicows  $LIBS"
44230 cat >conftest.$ac_ext <<_ACEOF
44231 /* confdefs.h.  */
44232 _ACEOF
44233 cat confdefs.h >>conftest.$ac_ext
44234 cat >>conftest.$ac_ext <<_ACEOF
44235 /* end confdefs.h.  */
44236
44237
44238 int
44239 main ()
44240 {
44241 main ();
44242   ;
44243   return 0;
44244 }
44245 _ACEOF
44246 rm -f conftest.$ac_objext conftest$ac_exeext
44247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44248   (eval $ac_link) 2>conftest.er1
44249   ac_status=$?
44250   grep -v '^ *+' conftest.er1 >conftest.err
44251   rm -f conftest.er1
44252   cat conftest.err >&5
44253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44254   (exit $ac_status); } &&
44255          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44257   (eval $ac_try) 2>&5
44258   ac_status=$?
44259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44260   (exit $ac_status); }; } &&
44261          { ac_try='test -s conftest$ac_exeext'
44262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44263   (eval $ac_try) 2>&5
44264   ac_status=$?
44265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44266   (exit $ac_status); }; }; then
44267   ac_cv_lib_unicows_main=yes
44268 else
44269   echo "$as_me: failed program was:" >&5
44270 sed 's/^/| /' conftest.$ac_ext >&5
44271
44272 ac_cv_lib_unicows_main=no
44273 fi
44274 rm -f conftest.err conftest.$ac_objext \
44275       conftest$ac_exeext conftest.$ac_ext
44276 LIBS=$ac_check_lib_save_LIBS
44277 fi
44278 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44279 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44280 if test $ac_cv_lib_unicows_main = yes; then
44281
44282                 cat >>confdefs.h <<\_ACEOF
44283 #define wxUSE_UNICODE_MSLU 1
44284 _ACEOF
44285
44286
44287 else
44288
44289                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44290                              Applications will only run on Windows NT/2000/XP!" >&5
44291 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44292                              Applications will only run on Windows NT/2000/XP!" >&2;}
44293                 wxUSE_UNICODE_MSLU=no
44294
44295 fi
44296
44297     fi
44298 fi
44299
44300 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44301   cat >>confdefs.h <<\_ACEOF
44302 #define wxUSE_EXPERIMENTAL_PRINTF 1
44303 _ACEOF
44304
44305 fi
44306
44307
44308 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44309   cat >>confdefs.h <<\_ACEOF
44310 #define wxUSE_POSTSCRIPT 1
44311 _ACEOF
44312
44313 fi
44314
44315 cat >>confdefs.h <<\_ACEOF
44316 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44317 _ACEOF
44318
44319
44320 cat >>confdefs.h <<\_ACEOF
44321 #define wxUSE_NORMALIZED_PS_FONTS 1
44322 _ACEOF
44323
44324
44325
44326 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44327     cat >>confdefs.h <<\_ACEOF
44328 #define wxUSE_CONSTRAINTS 1
44329 _ACEOF
44330
44331     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44332 fi
44333
44334 if test "$wxUSE_MDI" = "yes"; then
44335     cat >>confdefs.h <<\_ACEOF
44336 #define wxUSE_MDI 1
44337 _ACEOF
44338
44339
44340     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44341         cat >>confdefs.h <<\_ACEOF
44342 #define wxUSE_MDI_ARCHITECTURE 1
44343 _ACEOF
44344
44345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44346     fi
44347 fi
44348
44349 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44350     cat >>confdefs.h <<\_ACEOF
44351 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44352 _ACEOF
44353
44354     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44355     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44356         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44357     fi
44358 fi
44359
44360 if test "$wxUSE_HELP" = "yes"; then
44361     cat >>confdefs.h <<\_ACEOF
44362 #define wxUSE_HELP 1
44363 _ACEOF
44364
44365     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44366
44367     if test "$wxUSE_MSW" = 1; then
44368       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44369         cat >>confdefs.h <<\_ACEOF
44370 #define wxUSE_MS_HTML_HELP 1
44371 _ACEOF
44372
44373       fi
44374     fi
44375
44376     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44377       if test "$wxUSE_HTML" = "yes"; then
44378         cat >>confdefs.h <<\_ACEOF
44379 #define wxUSE_WXHTML_HELP 1
44380 _ACEOF
44381
44382       else
44383         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44384 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44385         wxUSE_WXHTML_HELP=no
44386       fi
44387     fi
44388 fi
44389
44390 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44391     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44392         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44393 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44394     else
44395         cat >>confdefs.h <<\_ACEOF
44396 #define wxUSE_PRINTING_ARCHITECTURE 1
44397 _ACEOF
44398
44399     fi
44400     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44401 fi
44402
44403 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
44404     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44405 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44406    { (exit 1); exit 1; }; }
44407 fi
44408
44409
44410 if test "$wxUSE_METAFILE" = "yes"; then
44411     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44412         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44413 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44414         wxUSE_METAFILE=no
44415     fi
44416 fi
44417
44418
44419 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44420                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44421                           -o "$wxUSE_OLE"     = "yes" \
44422                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44423
44424 for ac_header in ole2.h
44425 do
44426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44428   echo "$as_me:$LINENO: checking for $ac_header" >&5
44429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44431   echo $ECHO_N "(cached) $ECHO_C" >&6
44432 fi
44433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44435 else
44436   # Is the header compilable?
44437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44439 cat >conftest.$ac_ext <<_ACEOF
44440 /* confdefs.h.  */
44441 _ACEOF
44442 cat confdefs.h >>conftest.$ac_ext
44443 cat >>conftest.$ac_ext <<_ACEOF
44444 /* end confdefs.h.  */
44445 $ac_includes_default
44446 #include <$ac_header>
44447 _ACEOF
44448 rm -f conftest.$ac_objext
44449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44450   (eval $ac_compile) 2>conftest.er1
44451   ac_status=$?
44452   grep -v '^ *+' conftest.er1 >conftest.err
44453   rm -f conftest.er1
44454   cat conftest.err >&5
44455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44456   (exit $ac_status); } &&
44457          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44459   (eval $ac_try) 2>&5
44460   ac_status=$?
44461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44462   (exit $ac_status); }; } &&
44463          { ac_try='test -s conftest.$ac_objext'
44464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44465   (eval $ac_try) 2>&5
44466   ac_status=$?
44467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44468   (exit $ac_status); }; }; then
44469   ac_header_compiler=yes
44470 else
44471   echo "$as_me: failed program was:" >&5
44472 sed 's/^/| /' conftest.$ac_ext >&5
44473
44474 ac_header_compiler=no
44475 fi
44476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44478 echo "${ECHO_T}$ac_header_compiler" >&6
44479
44480 # Is the header present?
44481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44483 cat >conftest.$ac_ext <<_ACEOF
44484 /* confdefs.h.  */
44485 _ACEOF
44486 cat confdefs.h >>conftest.$ac_ext
44487 cat >>conftest.$ac_ext <<_ACEOF
44488 /* end confdefs.h.  */
44489 #include <$ac_header>
44490 _ACEOF
44491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44493   ac_status=$?
44494   grep -v '^ *+' conftest.er1 >conftest.err
44495   rm -f conftest.er1
44496   cat conftest.err >&5
44497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498   (exit $ac_status); } >/dev/null; then
44499   if test -s conftest.err; then
44500     ac_cpp_err=$ac_cxx_preproc_warn_flag
44501     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44502   else
44503     ac_cpp_err=
44504   fi
44505 else
44506   ac_cpp_err=yes
44507 fi
44508 if test -z "$ac_cpp_err"; then
44509   ac_header_preproc=yes
44510 else
44511   echo "$as_me: failed program was:" >&5
44512 sed 's/^/| /' conftest.$ac_ext >&5
44513
44514   ac_header_preproc=no
44515 fi
44516 rm -f conftest.err conftest.$ac_ext
44517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44518 echo "${ECHO_T}$ac_header_preproc" >&6
44519
44520 # So?  What about this header?
44521 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44522   yes:no: )
44523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44527     ac_header_preproc=yes
44528     ;;
44529   no:yes:* )
44530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44542     (
44543       cat <<\_ASBOX
44544 ## ----------------------------------------- ##
44545 ## Report this to wx-dev@lists.wxwidgets.org ##
44546 ## ----------------------------------------- ##
44547 _ASBOX
44548     ) |
44549       sed "s/^/$as_me: WARNING:     /" >&2
44550     ;;
44551 esac
44552 echo "$as_me:$LINENO: checking for $ac_header" >&5
44553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44555   echo $ECHO_N "(cached) $ECHO_C" >&6
44556 else
44557   eval "$as_ac_Header=\$ac_header_preproc"
44558 fi
44559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44561
44562 fi
44563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44564   cat >>confdefs.h <<_ACEOF
44565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44566 _ACEOF
44567
44568 fi
44569
44570 done
44571
44572
44573     if test "$ac_cv_header_ole2_h" = "yes" ; then
44574         if test "$GCC" = yes ; then
44575             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44576 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44577             cat >conftest.$ac_ext <<_ACEOF
44578 /* confdefs.h.  */
44579 _ACEOF
44580 cat confdefs.h >>conftest.$ac_ext
44581 cat >>conftest.$ac_ext <<_ACEOF
44582 /* end confdefs.h.  */
44583 #include <windows.h>
44584                             #include <ole2.h>
44585 int
44586 main ()
44587 {
44588
44589   ;
44590   return 0;
44591 }
44592 _ACEOF
44593 rm -f conftest.$ac_objext
44594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44595   (eval $ac_compile) 2>conftest.er1
44596   ac_status=$?
44597   grep -v '^ *+' conftest.er1 >conftest.err
44598   rm -f conftest.er1
44599   cat conftest.err >&5
44600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44601   (exit $ac_status); } &&
44602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44604   (eval $ac_try) 2>&5
44605   ac_status=$?
44606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607   (exit $ac_status); }; } &&
44608          { ac_try='test -s conftest.$ac_objext'
44609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44610   (eval $ac_try) 2>&5
44611   ac_status=$?
44612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44613   (exit $ac_status); }; }; then
44614   echo "$as_me:$LINENO: result: no" >&5
44615 echo "${ECHO_T}no" >&6
44616 else
44617   echo "$as_me: failed program was:" >&5
44618 sed 's/^/| /' conftest.$ac_ext >&5
44619
44620 echo "$as_me:$LINENO: result: yes" >&5
44621 echo "${ECHO_T}yes" >&6
44622                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44623 fi
44624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44625             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44626             if test "$wxUSE_OLE" = "yes" ; then
44627                 cat >>confdefs.h <<\_ACEOF
44628 #define wxUSE_OLE 1
44629 _ACEOF
44630
44631                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44632             fi
44633         fi
44634
44635                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44636             cat >>confdefs.h <<\_ACEOF
44637 #define wxUSE_DATAOBJ 1
44638 _ACEOF
44639
44640         fi
44641     else
44642         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44643 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44644
44645         wxUSE_CLIPBOARD=no
44646         wxUSE_DRAG_AND_DROP=no
44647         wxUSE_DATAOBJ=no
44648         wxUSE_OLE=no
44649     fi
44650
44651     if test "$wxUSE_METAFILE" = "yes"; then
44652         cat >>confdefs.h <<\_ACEOF
44653 #define wxUSE_METAFILE 1
44654 _ACEOF
44655
44656
44657                 cat >>confdefs.h <<\_ACEOF
44658 #define wxUSE_ENH_METAFILE 1
44659 _ACEOF
44660
44661     fi
44662 fi
44663
44664 if test "$wxUSE_IPC" = "yes"; then
44665     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44666         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44667 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44668         wxUSE_IPC=no
44669     fi
44670
44671     if test "$wxUSE_IPC" = "yes"; then
44672         cat >>confdefs.h <<\_ACEOF
44673 #define wxUSE_IPC 1
44674 _ACEOF
44675
44676         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44677     fi
44678 fi
44679
44680 if test "$wxUSE_DATAOBJ" = "yes"; then
44681     if test "$wxUSE_MGL" = 1; then
44682         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44683 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44684         wxUSE_DATAOBJ=no
44685     else
44686         cat >>confdefs.h <<\_ACEOF
44687 #define wxUSE_DATAOBJ 1
44688 _ACEOF
44689
44690     fi
44691 else
44692     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44693 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44694     wxUSE_CLIPBOARD=no
44695     wxUSE_DRAG_AND_DROP=no
44696 fi
44697
44698 if test "$wxUSE_CLIPBOARD" = "yes"; then
44699     if test "$wxUSE_MGL" = 1; then
44700         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44701 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44702         wxUSE_CLIPBOARD=no
44703     fi
44704
44705     if test "$wxUSE_CLIPBOARD" = "yes"; then
44706         cat >>confdefs.h <<\_ACEOF
44707 #define wxUSE_CLIPBOARD 1
44708 _ACEOF
44709
44710     fi
44711 fi
44712
44713 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44714     if test "$wxUSE_GTK" = 1; then
44715         if test "$WXGTK12" != 1; then
44716             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44717 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44718             wxUSE_DRAG_AND_DROP=no
44719         fi
44720     fi
44721
44722     if test "$wxUSE_MOTIF" = 1; then
44723         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44724 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44725         wxUSE_DRAG_AND_DROP=no
44726     fi
44727
44728     if test "$wxUSE_X11" = 1; then
44729         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44730 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44731         wxUSE_DRAG_AND_DROP=no
44732     fi
44733
44734     if test "$wxUSE_MGL" = 1; then
44735         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44736 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44737         wxUSE_DRAG_AND_DROP=no
44738     fi
44739
44740     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44741         cat >>confdefs.h <<\_ACEOF
44742 #define wxUSE_DRAG_AND_DROP 1
44743 _ACEOF
44744
44745     fi
44746
44747 fi
44748
44749 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44750     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44751 fi
44752
44753 if test "$wxUSE_SPLINES" = "yes" ; then
44754   cat >>confdefs.h <<\_ACEOF
44755 #define wxUSE_SPLINES 1
44756 _ACEOF
44757
44758 fi
44759
44760 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44761   cat >>confdefs.h <<\_ACEOF
44762 #define wxUSE_MOUSEWHEEL 1
44763 _ACEOF
44764
44765 fi
44766
44767
44768 USES_CONTROLS=0
44769 if test "$wxUSE_CONTROLS" = "yes"; then
44770   USES_CONTROLS=1
44771 fi
44772
44773 if test "$wxUSE_ACCEL" = "yes"; then
44774   cat >>confdefs.h <<\_ACEOF
44775 #define wxUSE_ACCEL 1
44776 _ACEOF
44777
44778   USES_CONTROLS=1
44779 fi
44780
44781 if test "$wxUSE_BUTTON" = "yes"; then
44782   cat >>confdefs.h <<\_ACEOF
44783 #define wxUSE_BUTTON 1
44784 _ACEOF
44785
44786   USES_CONTROLS=1
44787 fi
44788
44789 if test "$wxUSE_BMPBUTTON" = "yes"; then
44790   cat >>confdefs.h <<\_ACEOF
44791 #define wxUSE_BMPBUTTON 1
44792 _ACEOF
44793
44794   USES_CONTROLS=1
44795 fi
44796
44797 if test "$wxUSE_CALCTRL" = "yes"; then
44798   cat >>confdefs.h <<\_ACEOF
44799 #define wxUSE_CALENDARCTRL 1
44800 _ACEOF
44801
44802   USES_CONTROLS=1
44803   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44804 fi
44805
44806 if test "$wxUSE_CARET" = "yes"; then
44807   cat >>confdefs.h <<\_ACEOF
44808 #define wxUSE_CARET 1
44809 _ACEOF
44810
44811   USES_CONTROLS=1
44812   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44813 fi
44814
44815 if test "$wxUSE_COMBOBOX" = "yes"; then
44816   cat >>confdefs.h <<\_ACEOF
44817 #define wxUSE_COMBOBOX 1
44818 _ACEOF
44819
44820   USES_CONTROLS=1
44821 fi
44822
44823 if test "$wxUSE_COMBOCTRL" = "yes"; then
44824   cat >>confdefs.h <<\_ACEOF
44825 #define wxUSE_COMBOCTRL 1
44826 _ACEOF
44827
44828   USES_CONTROLS=1
44829 fi
44830
44831 if test "$wxUSE_CHOICE" = "yes"; then
44832   cat >>confdefs.h <<\_ACEOF
44833 #define wxUSE_CHOICE 1
44834 _ACEOF
44835
44836   USES_CONTROLS=1
44837 fi
44838
44839 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44840     cat >>confdefs.h <<\_ACEOF
44841 #define wxUSE_CHOICEBOOK 1
44842 _ACEOF
44843
44844     USES_CONTROLS=1
44845 fi
44846
44847 if test "$wxUSE_CHECKBOX" = "yes"; then
44848   cat >>confdefs.h <<\_ACEOF
44849 #define wxUSE_CHECKBOX 1
44850 _ACEOF
44851
44852   USES_CONTROLS=1
44853 fi
44854
44855 if test "$wxUSE_CHECKLST" = "yes"; then
44856   cat >>confdefs.h <<\_ACEOF
44857 #define wxUSE_CHECKLISTBOX 1
44858 _ACEOF
44859
44860   USES_CONTROLS=1
44861   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44862 fi
44863
44864 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44865   cat >>confdefs.h <<\_ACEOF
44866 #define wxUSE_COLOURPICKERCTRL 1
44867 _ACEOF
44868
44869   USES_CONTROLS=1
44870 fi
44871
44872 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44873   cat >>confdefs.h <<\_ACEOF
44874 #define wxUSE_DATEPICKCTRL 1
44875 _ACEOF
44876
44877   USES_CONTROLS=1
44878 fi
44879
44880 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44881   cat >>confdefs.h <<\_ACEOF
44882 #define wxUSE_DIRPICKERCTRL 1
44883 _ACEOF
44884
44885   USES_CONTROLS=1
44886 fi
44887
44888 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44889   cat >>confdefs.h <<\_ACEOF
44890 #define wxUSE_FILEPICKERCTRL 1
44891 _ACEOF
44892
44893   USES_CONTROLS=1
44894 fi
44895
44896 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44897   cat >>confdefs.h <<\_ACEOF
44898 #define wxUSE_FONTPICKERCTRL 1
44899 _ACEOF
44900
44901   USES_CONTROLS=1
44902 fi
44903
44904 if test "$wxUSE_DISPLAY" = "yes"; then
44905     cat >>confdefs.h <<\_ACEOF
44906 #define wxUSE_DISPLAY 1
44907 _ACEOF
44908
44909     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44910 fi
44911
44912 if test "$wxUSE_GAUGE" = "yes"; then
44913   cat >>confdefs.h <<\_ACEOF
44914 #define wxUSE_GAUGE 1
44915 _ACEOF
44916
44917   USES_CONTROLS=1
44918 fi
44919
44920 if test "$wxUSE_GRID" = "yes"; then
44921   cat >>confdefs.h <<\_ACEOF
44922 #define wxUSE_GRID 1
44923 _ACEOF
44924
44925   USES_CONTROLS=1
44926   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44927 fi
44928
44929 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44930   cat >>confdefs.h <<\_ACEOF
44931 #define wxUSE_HYPERLINKCTRL 1
44932 _ACEOF
44933
44934   USES_CONTROLS=1
44935 fi
44936
44937 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44938   cat >>confdefs.h <<\_ACEOF
44939 #define wxUSE_DATAVIEWCTRL 1
44940 _ACEOF
44941
44942   USES_CONTROLS=1
44943   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44944 fi
44945
44946 if test "$wxUSE_IMAGLIST" = "yes"; then
44947     cat >>confdefs.h <<\_ACEOF
44948 #define wxUSE_IMAGLIST 1
44949 _ACEOF
44950
44951 fi
44952
44953 if test "$wxUSE_LISTBOOK" = "yes"; then
44954     cat >>confdefs.h <<\_ACEOF
44955 #define wxUSE_LISTBOOK 1
44956 _ACEOF
44957
44958     USES_CONTROLS=1
44959 fi
44960
44961 if test "$wxUSE_LISTBOX" = "yes"; then
44962     cat >>confdefs.h <<\_ACEOF
44963 #define wxUSE_LISTBOX 1
44964 _ACEOF
44965
44966     USES_CONTROLS=1
44967     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44968 fi
44969
44970 if test "$wxUSE_LISTCTRL" = "yes"; then
44971     if test "$wxUSE_IMAGLIST" = "yes"; then
44972         cat >>confdefs.h <<\_ACEOF
44973 #define wxUSE_LISTCTRL 1
44974 _ACEOF
44975
44976         USES_CONTROLS=1
44977         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44978     else
44979         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44980 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44981     fi
44982 fi
44983
44984 if test "$wxUSE_NOTEBOOK" = "yes"; then
44985     cat >>confdefs.h <<\_ACEOF
44986 #define wxUSE_NOTEBOOK 1
44987 _ACEOF
44988
44989     USES_CONTROLS=1
44990     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44991 fi
44992
44993 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44994   cat >>confdefs.h <<\_ACEOF
44995 #define wxUSE_ODCOMBOBOX 1
44996 _ACEOF
44997
44998   USES_CONTROLS=1
44999   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45000 fi
45001
45002
45003 if test "$wxUSE_RADIOBOX" = "yes"; then
45004     cat >>confdefs.h <<\_ACEOF
45005 #define wxUSE_RADIOBOX 1
45006 _ACEOF
45007
45008     USES_CONTROLS=1
45009 fi
45010
45011 if test "$wxUSE_RADIOBTN" = "yes"; then
45012     cat >>confdefs.h <<\_ACEOF
45013 #define wxUSE_RADIOBTN 1
45014 _ACEOF
45015
45016     USES_CONTROLS=1
45017 fi
45018
45019 if test "$wxUSE_SASH" = "yes"; then
45020     cat >>confdefs.h <<\_ACEOF
45021 #define wxUSE_SASH 1
45022 _ACEOF
45023
45024     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45025 fi
45026
45027 if test "$wxUSE_SCROLLBAR" = "yes"; then
45028     cat >>confdefs.h <<\_ACEOF
45029 #define wxUSE_SCROLLBAR 1
45030 _ACEOF
45031
45032     USES_CONTROLS=1
45033     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45034 fi
45035
45036 if test "$wxUSE_SLIDER" = "yes"; then
45037     cat >>confdefs.h <<\_ACEOF
45038 #define wxUSE_SLIDER 1
45039 _ACEOF
45040
45041     USES_CONTROLS=1
45042 fi
45043
45044 if test "$wxUSE_SPINBTN" = "yes"; then
45045     cat >>confdefs.h <<\_ACEOF
45046 #define wxUSE_SPINBTN 1
45047 _ACEOF
45048
45049     USES_CONTROLS=1
45050 fi
45051
45052 if test "$wxUSE_SPINCTRL" = "yes"; then
45053     cat >>confdefs.h <<\_ACEOF
45054 #define wxUSE_SPINCTRL 1
45055 _ACEOF
45056
45057     USES_CONTROLS=1
45058 fi
45059
45060 if test "$wxUSE_SPLITTER" = "yes"; then
45061     cat >>confdefs.h <<\_ACEOF
45062 #define wxUSE_SPLITTER 1
45063 _ACEOF
45064
45065     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45066 fi
45067
45068 if test "$wxUSE_STATBMP" = "yes"; then
45069     cat >>confdefs.h <<\_ACEOF
45070 #define wxUSE_STATBMP 1
45071 _ACEOF
45072
45073     USES_CONTROLS=1
45074 fi
45075
45076 if test "$wxUSE_STATBOX" = "yes"; then
45077     cat >>confdefs.h <<\_ACEOF
45078 #define wxUSE_STATBOX 1
45079 _ACEOF
45080
45081     USES_CONTROLS=1
45082 fi
45083
45084 if test "$wxUSE_STATTEXT" = "yes"; then
45085     cat >>confdefs.h <<\_ACEOF
45086 #define wxUSE_STATTEXT 1
45087 _ACEOF
45088
45089     USES_CONTROLS=1
45090 fi
45091
45092 if test "$wxUSE_STATLINE" = "yes"; then
45093     cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_STATLINE 1
45095 _ACEOF
45096
45097     USES_CONTROLS=1
45098 fi
45099
45100 if test "$wxUSE_STATUSBAR" = "yes"; then
45101         cat >>confdefs.h <<\_ACEOF
45102 #define wxUSE_NATIVE_STATUSBAR 1
45103 _ACEOF
45104
45105     cat >>confdefs.h <<\_ACEOF
45106 #define wxUSE_STATUSBAR 1
45107 _ACEOF
45108
45109     USES_CONTROLS=1
45110
45111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45112 fi
45113
45114 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45115     cat >>confdefs.h <<\_ACEOF
45116 #define wxUSE_TAB_DIALOG 1
45117 _ACEOF
45118
45119 fi
45120
45121 if test "$wxUSE_TEXTCTRL" = "yes"; then
45122     cat >>confdefs.h <<\_ACEOF
45123 #define wxUSE_TEXTCTRL 1
45124 _ACEOF
45125
45126     USES_CONTROLS=1
45127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45128 fi
45129
45130 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45131     if test "$wxUSE_COCOA" = 1 ; then
45132         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45133 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45134         wxUSE_TOGGLEBTN=no
45135     fi
45136
45137     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45138         cat >>confdefs.h <<\_ACEOF
45139 #define wxUSE_TOGGLEBTN 1
45140 _ACEOF
45141
45142         USES_CONTROLS=1
45143     fi
45144 fi
45145
45146 if test "$wxUSE_TOOLBAR" = "yes"; then
45147     cat >>confdefs.h <<\_ACEOF
45148 #define wxUSE_TOOLBAR 1
45149 _ACEOF
45150
45151     USES_CONTROLS=1
45152
45153     if test "$wxUSE_UNIVERSAL" = "yes"; then
45154         wxUSE_TOOLBAR_NATIVE="no"
45155     else
45156         wxUSE_TOOLBAR_NATIVE="yes"
45157         cat >>confdefs.h <<\_ACEOF
45158 #define wxUSE_TOOLBAR_NATIVE 1
45159 _ACEOF
45160
45161     fi
45162
45163     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45164 fi
45165
45166 if test "$wxUSE_TOOLTIPS" = "yes"; then
45167     if test "$wxUSE_MOTIF" = 1; then
45168         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45169 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45170     else
45171         if test "$wxUSE_UNIVERSAL" = "yes"; then
45172             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45173 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45174         else
45175             cat >>confdefs.h <<\_ACEOF
45176 #define wxUSE_TOOLTIPS 1
45177 _ACEOF
45178
45179         fi
45180     fi
45181 fi
45182
45183 if test "$wxUSE_TREEBOOK" = "yes"; then
45184     cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_TREEBOOK 1
45186 _ACEOF
45187
45188     USES_CONTROLS=1
45189 fi
45190
45191 if test "$wxUSE_TOOLBOOK" = "yes"; then
45192     cat >>confdefs.h <<\_ACEOF
45193 #define wxUSE_TOOLBOOK 1
45194 _ACEOF
45195
45196     USES_CONTROLS=1
45197 fi
45198
45199 if test "$wxUSE_TREECTRL" = "yes"; then
45200     if test "$wxUSE_IMAGLIST" = "yes"; then
45201         cat >>confdefs.h <<\_ACEOF
45202 #define wxUSE_TREECTRL 1
45203 _ACEOF
45204
45205         USES_CONTROLS=1
45206         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45207     else
45208         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45209 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45210     fi
45211 fi
45212
45213 if test "$wxUSE_POPUPWIN" = "yes"; then
45214     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45215         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45216 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45217     else
45218         if test "$wxUSE_PM" = 1; then
45219             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45220 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45221         else
45222             cat >>confdefs.h <<\_ACEOF
45223 #define wxUSE_POPUPWIN 1
45224 _ACEOF
45225
45226             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45227
45228             USES_CONTROLS=1
45229         fi
45230     fi
45231 fi
45232
45233 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45234     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45235         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45236 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45237     else
45238         cat >>confdefs.h <<\_ACEOF
45239 #define wxUSE_DIALUP_MANAGER 1
45240 _ACEOF
45241
45242         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45243     fi
45244 fi
45245
45246 if test "$wxUSE_TIPWINDOW" = "yes"; then
45247     if test "$wxUSE_PM" = 1; then
45248         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45249 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45250     else
45251         cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_TIPWINDOW 1
45253 _ACEOF
45254
45255     fi
45256 fi
45257
45258 if test "$USES_CONTROLS" = 1; then
45259     cat >>confdefs.h <<\_ACEOF
45260 #define wxUSE_CONTROLS 1
45261 _ACEOF
45262
45263 fi
45264
45265
45266 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45267     cat >>confdefs.h <<\_ACEOF
45268 #define wxUSE_ACCESSIBILITY 1
45269 _ACEOF
45270
45271     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45272 fi
45273
45274 if test "$wxUSE_DC_CACHEING" = "yes"; then
45275     cat >>confdefs.h <<\_ACEOF
45276 #define wxUSE_DC_CACHEING 1
45277 _ACEOF
45278
45279 fi
45280
45281 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45282     cat >>confdefs.h <<\_ACEOF
45283 #define wxUSE_DRAGIMAGE 1
45284 _ACEOF
45285
45286     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45287 fi
45288
45289 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45290     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45291         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45292 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45293     else
45294         cat >>confdefs.h <<\_ACEOF
45295 #define wxUSE_EXCEPTIONS 1
45296 _ACEOF
45297
45298         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45299     fi
45300 fi
45301
45302 USE_HTML=0
45303 if test "$wxUSE_HTML" = "yes"; then
45304     cat >>confdefs.h <<\_ACEOF
45305 #define wxUSE_HTML 1
45306 _ACEOF
45307
45308     USE_HTML=1
45309     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45310     if test "$wxUSE_MAC" = 1; then
45311         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45312     fi
45313 fi
45314 if test "$wxUSE_WEBKIT" = "yes"; then
45315     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45316         old_CPPFLAGS="$CPPFLAGS"
45317         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45318         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45319 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45320 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45321   echo $ECHO_N "(cached) $ECHO_C" >&6
45322 else
45323   cat >conftest.$ac_ext <<_ACEOF
45324 /* confdefs.h.  */
45325 _ACEOF
45326 cat confdefs.h >>conftest.$ac_ext
45327 cat >>conftest.$ac_ext <<_ACEOF
45328 /* end confdefs.h.  */
45329 #include <Carbon/Carbon.h>
45330
45331 #include <WebKit/HIWebView.h>
45332 _ACEOF
45333 rm -f conftest.$ac_objext
45334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45335   (eval $ac_compile) 2>conftest.er1
45336   ac_status=$?
45337   grep -v '^ *+' conftest.er1 >conftest.err
45338   rm -f conftest.er1
45339   cat conftest.err >&5
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); } &&
45342          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45344   (eval $ac_try) 2>&5
45345   ac_status=$?
45346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45347   (exit $ac_status); }; } &&
45348          { ac_try='test -s conftest.$ac_objext'
45349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45350   (eval $ac_try) 2>&5
45351   ac_status=$?
45352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45353   (exit $ac_status); }; }; then
45354   ac_cv_header_WebKit_HIWebView_h=yes
45355 else
45356   echo "$as_me: failed program was:" >&5
45357 sed 's/^/| /' conftest.$ac_ext >&5
45358
45359 ac_cv_header_WebKit_HIWebView_h=no
45360 fi
45361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45362 fi
45363 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45364 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45365 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45366
45367                            cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_WEBKIT 1
45369 _ACEOF
45370
45371                            WEBKIT_LINK="-framework WebKit"
45372
45373 else
45374
45375                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45376 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45377                            wxUSE_WEBKIT=no
45378
45379 fi
45380
45381
45382         CPPFLAGS="$old_CPPFLAGS"
45383     elif test "$wxUSE_COCOA" = 1; then
45384         cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_WEBKIT 1
45386 _ACEOF
45387
45388     else
45389         wxUSE_WEBKIT=no
45390     fi
45391 fi
45392
45393 USE_XRC=0
45394 if test "$wxUSE_XRC" = "yes"; then
45395     if test "$wxUSE_XML" != "yes"; then
45396         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45397 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45398         wxUSE_XRC=no
45399     else
45400         cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_XRC 1
45402 _ACEOF
45403
45404         USE_XRC=1
45405         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45406     fi
45407 fi
45408
45409 USE_AUI=0
45410 if test "$wxUSE_AUI" = "yes"; then
45411    cat >>confdefs.h <<\_ACEOF
45412 #define wxUSE_AUI 1
45413 _ACEOF
45414
45415    USE_AUI=1
45416    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45417 fi
45418
45419 if test "$wxUSE_MENUS" = "yes"; then
45420     cat >>confdefs.h <<\_ACEOF
45421 #define wxUSE_MENUS 1
45422 _ACEOF
45423
45424     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45425 fi
45426
45427 if test "$wxUSE_METAFILE" = "yes"; then
45428     cat >>confdefs.h <<\_ACEOF
45429 #define wxUSE_METAFILE 1
45430 _ACEOF
45431
45432 fi
45433
45434 if test "$wxUSE_MIMETYPE" = "yes"; then
45435     cat >>confdefs.h <<\_ACEOF
45436 #define wxUSE_MIMETYPE 1
45437 _ACEOF
45438
45439 fi
45440
45441 if test "$wxUSE_MINIFRAME" = "yes"; then
45442     cat >>confdefs.h <<\_ACEOF
45443 #define wxUSE_MINIFRAME 1
45444 _ACEOF
45445
45446     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45447 fi
45448
45449 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45450     cat >>confdefs.h <<\_ACEOF
45451 #define wxUSE_SYSTEM_OPTIONS 1
45452 _ACEOF
45453
45454     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
45455         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
45456         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45457     fi
45458 fi
45459
45460
45461 if test "$wxUSE_VALIDATORS" = "yes"; then
45462     cat >>confdefs.h <<\_ACEOF
45463 #define wxUSE_VALIDATORS 1
45464 _ACEOF
45465
45466     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45467 fi
45468
45469 if test "$wxUSE_PALETTE" = "yes" ; then
45470   cat >>confdefs.h <<\_ACEOF
45471 #define wxUSE_PALETTE 1
45472 _ACEOF
45473
45474 fi
45475
45476 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45477     LIBS=" -lunicows $LIBS"
45478 fi
45479
45480 USE_RICHTEXT=0
45481 if test "$wxUSE_RICHTEXT" = "yes"; then
45482     cat >>confdefs.h <<\_ACEOF
45483 #define wxUSE_RICHTEXT 1
45484 _ACEOF
45485
45486     USE_RICHTEXT=1
45487     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45488 fi
45489
45490
45491 if test "$wxUSE_IMAGE" = "yes" ; then
45492     cat >>confdefs.h <<\_ACEOF
45493 #define wxUSE_IMAGE 1
45494 _ACEOF
45495
45496
45497     if test "$wxUSE_GIF" = "yes" ; then
45498       cat >>confdefs.h <<\_ACEOF
45499 #define wxUSE_GIF 1
45500 _ACEOF
45501
45502     fi
45503
45504     if test "$wxUSE_PCX" = "yes" ; then
45505       cat >>confdefs.h <<\_ACEOF
45506 #define wxUSE_PCX 1
45507 _ACEOF
45508
45509     fi
45510
45511     if test "$wxUSE_IFF" = "yes" ; then
45512       cat >>confdefs.h <<\_ACEOF
45513 #define wxUSE_IFF 1
45514 _ACEOF
45515
45516     fi
45517
45518     if test "$wxUSE_PNM" = "yes" ; then
45519       cat >>confdefs.h <<\_ACEOF
45520 #define wxUSE_PNM 1
45521 _ACEOF
45522
45523     fi
45524
45525     if test "$wxUSE_XPM" = "yes" ; then
45526       cat >>confdefs.h <<\_ACEOF
45527 #define wxUSE_XPM 1
45528 _ACEOF
45529
45530     fi
45531
45532     if test "$wxUSE_ICO_CUR" = "yes" ; then
45533       cat >>confdefs.h <<\_ACEOF
45534 #define wxUSE_ICO_CUR 1
45535 _ACEOF
45536
45537     fi
45538 fi
45539
45540
45541 if test "$wxUSE_CHOICEDLG" = "yes"; then
45542     cat >>confdefs.h <<\_ACEOF
45543 #define wxUSE_CHOICEDLG 1
45544 _ACEOF
45545
45546 fi
45547
45548 if test "$wxUSE_COLOURDLG" = "yes"; then
45549     cat >>confdefs.h <<\_ACEOF
45550 #define wxUSE_COLOURDLG 1
45551 _ACEOF
45552
45553 fi
45554
45555 if test "$wxUSE_FILEDLG" = "yes"; then
45556     cat >>confdefs.h <<\_ACEOF
45557 #define wxUSE_FILEDLG 1
45558 _ACEOF
45559
45560 fi
45561
45562 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45563     cat >>confdefs.h <<\_ACEOF
45564 #define wxUSE_FINDREPLDLG 1
45565 _ACEOF
45566
45567 fi
45568
45569 if test "$wxUSE_FONTDLG" = "yes"; then
45570     cat >>confdefs.h <<\_ACEOF
45571 #define wxUSE_FONTDLG 1
45572 _ACEOF
45573
45574 fi
45575
45576 if test "$wxUSE_DIRDLG" = "yes"; then
45577     if test "$wxUSE_TREECTRL" != "yes"; then
45578         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45579 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45580     else
45581         cat >>confdefs.h <<\_ACEOF
45582 #define wxUSE_DIRDLG 1
45583 _ACEOF
45584
45585     fi
45586 fi
45587
45588 if test "$wxUSE_MSGDLG" = "yes"; then
45589     cat >>confdefs.h <<\_ACEOF
45590 #define wxUSE_MSGDLG 1
45591 _ACEOF
45592
45593 fi
45594
45595 if test "$wxUSE_NUMBERDLG" = "yes"; then
45596     cat >>confdefs.h <<\_ACEOF
45597 #define wxUSE_NUMBERDLG 1
45598 _ACEOF
45599
45600 fi
45601
45602 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45603     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45604        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45605 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45606     else
45607         cat >>confdefs.h <<\_ACEOF
45608 #define wxUSE_PROGRESSDLG 1
45609 _ACEOF
45610
45611     fi
45612 fi
45613
45614 if test "$wxUSE_SPLASH" = "yes"; then
45615     cat >>confdefs.h <<\_ACEOF
45616 #define wxUSE_SPLASH 1
45617 _ACEOF
45618
45619     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45620 fi
45621
45622 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45623     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45624        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45625 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45626     else
45627         cat >>confdefs.h <<\_ACEOF
45628 #define wxUSE_STARTUP_TIPS 1
45629 _ACEOF
45630
45631     fi
45632 fi
45633
45634 if test "$wxUSE_TEXTDLG" = "yes"; then
45635     cat >>confdefs.h <<\_ACEOF
45636 #define wxUSE_TEXTDLG 1
45637 _ACEOF
45638
45639 fi
45640
45641 if test "$wxUSE_WIZARDDLG" = "yes"; then
45642     cat >>confdefs.h <<\_ACEOF
45643 #define wxUSE_WIZARDDLG 1
45644 _ACEOF
45645
45646     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45647 fi
45648
45649
45650 USE_MEDIA=0
45651
45652 if test "$wxUSE_MEDIACTRL" = "yes"; then
45653     USE_MEDIA=1
45654
45655                 if test "$wxUSE_GTK" = 1; then
45656         wxUSE_GSTREAMER="no"
45657
45658                                                                 GST_VERSION_MAJOR=0
45659         GST_VERSION_MINOR=10
45660         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45661
45662         if test "$wxUSE_GSTREAMER8" = "no"; then
45663
45664 pkg_failed=no
45665 echo "$as_me:$LINENO: checking for GST" >&5
45666 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45667
45668 if test -n "$PKG_CONFIG"; then
45669     if test -n "$GST_CFLAGS"; then
45670         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45671     else
45672         if test -n "$PKG_CONFIG" && \
45673     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45674   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45675   ac_status=$?
45676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45677   (exit $ac_status); }; then
45678   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45679 else
45680   pkg_failed=yes
45681 fi
45682     fi
45683 else
45684         pkg_failed=untried
45685 fi
45686 if test -n "$PKG_CONFIG"; then
45687     if test -n "$GST_LIBS"; then
45688         pkg_cv_GST_LIBS="$GST_LIBS"
45689     else
45690         if test -n "$PKG_CONFIG" && \
45691     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45692   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45693   ac_status=$?
45694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45695   (exit $ac_status); }; then
45696   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45697 else
45698   pkg_failed=yes
45699 fi
45700     fi
45701 else
45702         pkg_failed=untried
45703 fi
45704
45705
45706
45707 if test $pkg_failed = yes; then
45708
45709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45710         _pkg_short_errors_supported=yes
45711 else
45712         _pkg_short_errors_supported=no
45713 fi
45714         if test $_pkg_short_errors_supported = yes; then
45715                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45716         else
45717                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45718         fi
45719         # Put the nasty error message in config.log where it belongs
45720         echo "$GST_PKG_ERRORS" >&5
45721
45722
45723                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45724 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45725                     GST_VERSION_MINOR=8
45726
45727
45728 elif test $pkg_failed = untried; then
45729
45730                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45731 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45732                     GST_VERSION_MINOR=8
45733
45734
45735 else
45736         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45737         GST_LIBS=$pkg_cv_GST_LIBS
45738         echo "$as_me:$LINENO: result: yes" >&5
45739 echo "${ECHO_T}yes" >&6
45740
45741                     wxUSE_GSTREAMER="yes"
45742                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
45743
45744 fi
45745         else
45746                         GST_VERSION_MINOR=8
45747         fi
45748
45749         if test $GST_VERSION_MINOR = "8"; then
45750             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45751
45752 pkg_failed=no
45753 echo "$as_me:$LINENO: checking for GST" >&5
45754 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45755
45756 if test -n "$PKG_CONFIG"; then
45757     if test -n "$GST_CFLAGS"; then
45758         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45759     else
45760         if test -n "$PKG_CONFIG" && \
45761     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45762   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45763   ac_status=$?
45764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45765   (exit $ac_status); }; then
45766   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45767 else
45768   pkg_failed=yes
45769 fi
45770     fi
45771 else
45772         pkg_failed=untried
45773 fi
45774 if test -n "$PKG_CONFIG"; then
45775     if test -n "$GST_LIBS"; then
45776         pkg_cv_GST_LIBS="$GST_LIBS"
45777     else
45778         if test -n "$PKG_CONFIG" && \
45779     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45780   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45781   ac_status=$?
45782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45783   (exit $ac_status); }; then
45784   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45785 else
45786   pkg_failed=yes
45787 fi
45788     fi
45789 else
45790         pkg_failed=untried
45791 fi
45792
45793
45794
45795 if test $pkg_failed = yes; then
45796
45797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45798         _pkg_short_errors_supported=yes
45799 else
45800         _pkg_short_errors_supported=no
45801 fi
45802         if test $_pkg_short_errors_supported = yes; then
45803                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45804         else
45805                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45806         fi
45807         # Put the nasty error message in config.log where it belongs
45808         echo "$GST_PKG_ERRORS" >&5
45809
45810
45811                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45812 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45813
45814 elif test $pkg_failed = untried; then
45815
45816                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45817 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45818
45819 else
45820         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45821         GST_LIBS=$pkg_cv_GST_LIBS
45822         echo "$as_me:$LINENO: result: yes" >&5
45823 echo "${ECHO_T}yes" >&6
45824         wxUSE_GSTREAMER="yes"
45825 fi
45826         fi
45827
45828
45829         if test "$wxUSE_GSTREAMER" = "yes"; then
45830                                     case "${host}" in
45831                 *-*-solaris2* )
45832                     if "$GCC" = yes; then
45833                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45834                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45835                     fi
45836             esac
45837
45838             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45839             LIBS="$GST_LIBS $LIBS"
45840
45841             cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_GSTREAMER 1
45843 _ACEOF
45844
45845         else
45846             USE_MEDIA=0
45847         fi
45848     fi
45849
45850     if test $USE_MEDIA = 1; then
45851         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45852         cat >>confdefs.h <<\_ACEOF
45853 #define wxUSE_MEDIACTRL 1
45854 _ACEOF
45855
45856     fi
45857 fi
45858
45859
45860 if test "$cross_compiling" = "yes"; then
45861         OSINFO="\"$host\""
45862 else
45863         OSINFO=`uname -s -r -m`
45864     OSINFO="\"$OSINFO\""
45865 fi
45866
45867 cat >>confdefs.h <<_ACEOF
45868 #define WXWIN_OS_DESCRIPTION $OSINFO
45869 _ACEOF
45870
45871
45872
45873 if test "x$prefix" != "xNONE"; then
45874     wxPREFIX=$prefix
45875 else
45876     wxPREFIX=$ac_default_prefix
45877 fi
45878
45879 cat >>confdefs.h <<_ACEOF
45880 #define wxINSTALL_PREFIX "$wxPREFIX"
45881 _ACEOF
45882
45883
45884
45885
45886 CORE_BASE_LIBS="net base"
45887 CORE_GUI_LIBS="adv core"
45888
45889 if test "$wxUSE_XML" = "yes" ; then
45890     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45891 fi
45892 if test "$wxUSE_ODBC" != "no" ; then
45893     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45894     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45895 fi
45896 if test "$wxUSE_HTML" = "yes" ; then
45897     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45898 fi
45899 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45900     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45901 fi
45902 if test "$wxUSE_XRC" = "yes" ; then
45903     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45904 fi
45905 if test "$wxUSE_AUI" = "yes" ; then
45906     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45907 fi
45908
45909 if test "$wxUSE_GUI" != "yes"; then
45910     CORE_GUI_LIBS=""
45911 fi
45912
45913
45914
45915
45916
45917 ac_ext=c
45918 ac_cpp='$CPP $CPPFLAGS'
45919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45922
45923
45924
45925 if test "$wxUSE_MAC" = 1 ; then
45926     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
45927         if test "$USE_DARWIN" = 1; then
45928             LDFLAGS="$LDFLAGS -framework QuickTime"
45929         else
45930             LDFLAGS="$LDFLAGS -lQuickTimeLib"
45931         fi
45932     fi
45933     if test "$USE_DARWIN" = 1; then
45934         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45935     else
45936         LDFLAGS="$LDFLAGS -lCarbonLib"
45937     fi
45938 fi
45939 if test "$wxUSE_COCOA" = 1 ; then
45940     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
45941     if test "$wxUSE_MEDIACTRL" = "yes"; then
45942         LDFLAGS="$LDFLAGS -framework QuickTime"
45943     fi
45944 fi
45945 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45946     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45947 fi
45948
45949 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45950
45951 if test "$wxUSE_GUI" = "yes"; then
45952
45953
45954         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45955                      dynamic erase event exec font image minimal mobile \
45956                      mobile/wxedit mobile/styles propsize render \
45957                      rotate shaped vscroll widgets"
45958
45959     if test "$wxUSE_MONOLITHIC" != "yes"; then
45960         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45961     fi
45962     if test "$TOOLKIT" = "MSW"; then
45963         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45964         if test "$wxUSE_UNIVERSAL" != "yes"; then
45965             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45966         fi
45967     fi
45968     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45969         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
45970     fi
45971 else
45972     SAMPLES_SUBDIRS="console"
45973 fi
45974
45975
45976 if test "x$INTELCC" = "xyes" ; then
45977                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45978 elif test "$GCC" = yes ; then
45979     CWARNINGS="-Wall -Wundef"
45980 fi
45981
45982 if test "x$INTELCXX" = "xyes" ; then
45983                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
45984 elif test "$GXX" = yes ; then
45985         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
45986 fi
45987
45988
45989 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45990 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45991
45992
45993 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
45994  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
45995  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45996  $CPPFLAGS `
45997
45998 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
45999 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46000 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
46001
46002 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46003
46004
46005 if test "x$MWCC" = "xyes"; then
46006
46007             CC="$CC -cwd source -I-"
46008     CXX="$CXX -cwd source -I-"
46009 fi
46010
46011
46012 LIBS=`echo $LIBS`
46013 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46014 EXTRALIBS_XML="$EXPAT_LINK"
46015 EXTRALIBS_HTML="$MSPACK_LINK"
46016 EXTRALIBS_ODBC="$ODBC_LINK"
46017 if test "$wxUSE_GUI" = "yes"; then
46018     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46019 fi
46020 if test "$wxUSE_OPENGL" = "yes"; then
46021     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46022 fi
46023
46024 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46025
46026 WXCONFIG_LIBS="$LIBS"
46027
46028 if test "$wxUSE_REGEX" = "builtin" ; then
46029     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46030 fi
46031 if test "$wxUSE_EXPAT" = "builtin" ; then
46032     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46033 fi
46034 if test "$wxUSE_ODBC" = "builtin" ; then
46035     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
46036 fi
46037 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46038     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46039 fi
46040 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46041     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46042 fi
46043 if test "$wxUSE_LIBPNG" = "builtin" ; then
46044     wxconfig_3rdparty="png $wxconfig_3rdparty"
46045 fi
46046 if test "$wxUSE_ZLIB" = "builtin" ; then
46047     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46048 fi
46049
46050 for i in $wxconfig_3rdparty ; do
46051     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46052 done
46053
46054
46055 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46056     WXUNIV=1
46057 else
46058     WXUNIV=0
46059 fi
46060
46061
46062
46063
46064
46065
46066
46067
46068
46069 if test $wxUSE_MONOLITHIC = "yes" ; then
46070     MONOLITHIC=1
46071 else
46072     MONOLITHIC=0
46073 fi
46074
46075 if test $wxUSE_PLUGINS = "yes" ; then
46076     USE_PLUGINS=1
46077 else
46078     USE_PLUGINS=0
46079 fi
46080
46081 if test $wxUSE_ODBC != "no" ; then
46082     USE_ODBC=1
46083 else
46084     USE_ODBC=0
46085 fi
46086
46087 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46088     USE_QA=1
46089 else
46090     USE_QA=0
46091 fi
46092
46093 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46094     OFFICIAL_BUILD=1
46095 else
46096     OFFICIAL_BUILD=0
46097 fi
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
46110
46111
46112
46113
46114
46115
46116
46117
46118
46119
46120
46121
46122
46123 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46124
46125
46126
46127
46128
46129
46130
46131
46132 case "$TOOLKIT" in
46133     GTK)
46134         TOOLKIT_DESC="GTK+"
46135         if test "$WXGTK20" = 1; then
46136             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46137             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46138                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46139             fi
46140             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46141                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46142             fi
46143             if test "$wxUSE_LIBHILDON" = "yes"; then
46144                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46145             fi
46146
46147             if test "$TOOLKIT_EXTRA" != ""; then
46148                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46149             fi
46150         fi
46151         ;;
46152
46153     ?*)
46154         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46155         ;;
46156
46157     *)
46158         TOOLKIT_DESC="base only"
46159         ;;
46160 esac
46161
46162 if test "$wxUSE_WINE" = "yes"; then
46163     BAKEFILE_FORCE_PLATFORM=win32
46164 fi
46165
46166 if test "$wxUSE_MAC" = 1 ; then
46167     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46168                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46169             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46170         else
46171                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46172         fi
46173         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46174         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46175         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46176         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
46177         bk_use_pch=no
46178     fi
46179     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46180     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
46181 fi
46182
46183
46184
46185
46186     if test "x$BAKEFILE_HOST" = "x"; then
46187                if test "x${host}" = "x" ; then
46188                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46189 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46190    { (exit 1); exit 1; }; }
46191                fi
46192
46193         BAKEFILE_HOST="${host}"
46194     fi
46195
46196     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46197
46198     if test -n "$ac_tool_prefix"; then
46199   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46201 echo "$as_me:$LINENO: checking for $ac_word" >&5
46202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46203 if test "${ac_cv_prog_RANLIB+set}" = set; then
46204   echo $ECHO_N "(cached) $ECHO_C" >&6
46205 else
46206   if test -n "$RANLIB"; then
46207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46208 else
46209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46210 for as_dir in $PATH
46211 do
46212   IFS=$as_save_IFS
46213   test -z "$as_dir" && as_dir=.
46214   for ac_exec_ext in '' $ac_executable_extensions; do
46215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46216     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46218     break 2
46219   fi
46220 done
46221 done
46222
46223 fi
46224 fi
46225 RANLIB=$ac_cv_prog_RANLIB
46226 if test -n "$RANLIB"; then
46227   echo "$as_me:$LINENO: result: $RANLIB" >&5
46228 echo "${ECHO_T}$RANLIB" >&6
46229 else
46230   echo "$as_me:$LINENO: result: no" >&5
46231 echo "${ECHO_T}no" >&6
46232 fi
46233
46234 fi
46235 if test -z "$ac_cv_prog_RANLIB"; then
46236   ac_ct_RANLIB=$RANLIB
46237   # Extract the first word of "ranlib", so it can be a program name with args.
46238 set dummy ranlib; ac_word=$2
46239 echo "$as_me:$LINENO: checking for $ac_word" >&5
46240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46242   echo $ECHO_N "(cached) $ECHO_C" >&6
46243 else
46244   if test -n "$ac_ct_RANLIB"; then
46245   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46246 else
46247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46248 for as_dir in $PATH
46249 do
46250   IFS=$as_save_IFS
46251   test -z "$as_dir" && as_dir=.
46252   for ac_exec_ext in '' $ac_executable_extensions; do
46253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46254     ac_cv_prog_ac_ct_RANLIB="ranlib"
46255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46256     break 2
46257   fi
46258 done
46259 done
46260
46261   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46262 fi
46263 fi
46264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46265 if test -n "$ac_ct_RANLIB"; then
46266   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46267 echo "${ECHO_T}$ac_ct_RANLIB" >&6
46268 else
46269   echo "$as_me:$LINENO: result: no" >&5
46270 echo "${ECHO_T}no" >&6
46271 fi
46272
46273   RANLIB=$ac_ct_RANLIB
46274 else
46275   RANLIB="$ac_cv_prog_RANLIB"
46276 fi
46277
46278     # Find a good install program.  We prefer a C program (faster),
46279 # so one script is as good as another.  But avoid the broken or
46280 # incompatible versions:
46281 # SysV /etc/install, /usr/sbin/install
46282 # SunOS /usr/etc/install
46283 # IRIX /sbin/install
46284 # AIX /bin/install
46285 # AmigaOS /C/install, which installs bootblocks on floppy discs
46286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46289 # OS/2's system install, which has a completely different semantic
46290 # ./install, which can be erroneously created by make from ./install.sh.
46291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46293 if test -z "$INSTALL"; then
46294 if test "${ac_cv_path_install+set}" = set; then
46295   echo $ECHO_N "(cached) $ECHO_C" >&6
46296 else
46297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46298 for as_dir in $PATH
46299 do
46300   IFS=$as_save_IFS
46301   test -z "$as_dir" && as_dir=.
46302   # Account for people who put trailing slashes in PATH elements.
46303 case $as_dir/ in
46304   ./ | .// | /cC/* | \
46305   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46306   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46307   /usr/ucb/* ) ;;
46308   *)
46309     # OSF1 and SCO ODT 3.0 have their own names for install.
46310     # Don't use installbsd from OSF since it installs stuff as root
46311     # by default.
46312     for ac_prog in ginstall scoinst install; do
46313       for ac_exec_ext in '' $ac_executable_extensions; do
46314         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46315           if test $ac_prog = install &&
46316             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46317             # AIX install.  It has an incompatible calling convention.
46318             :
46319           elif test $ac_prog = install &&
46320             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46321             # program-specific install script used by HP pwplus--don't use.
46322             :
46323           else
46324             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46325             break 3
46326           fi
46327         fi
46328       done
46329     done
46330     ;;
46331 esac
46332 done
46333
46334
46335 fi
46336   if test "${ac_cv_path_install+set}" = set; then
46337     INSTALL=$ac_cv_path_install
46338   else
46339     # As a last resort, use the slow shell script.  We don't cache a
46340     # path for INSTALL within a source directory, because that will
46341     # break other packages using the cache if that directory is
46342     # removed, or if the path is relative.
46343     INSTALL=$ac_install_sh
46344   fi
46345 fi
46346 echo "$as_me:$LINENO: result: $INSTALL" >&5
46347 echo "${ECHO_T}$INSTALL" >&6
46348
46349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46350 # It thinks the first close brace ends the variable substitution.
46351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46352
46353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46354
46355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46356
46357     echo "$as_me:$LINENO: checking whether ln -s works" >&5
46358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46359 LN_S=$as_ln_s
46360 if test "$LN_S" = "ln -s"; then
46361   echo "$as_me:$LINENO: result: yes" >&5
46362 echo "${ECHO_T}yes" >&6
46363 else
46364   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46365 echo "${ECHO_T}no, using $LN_S" >&6
46366 fi
46367
46368
46369     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46371 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46372 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46373   echo $ECHO_N "(cached) $ECHO_C" >&6
46374 else
46375   cat >conftest.make <<\_ACEOF
46376 all:
46377         @echo 'ac_maketemp="$(MAKE)"'
46378 _ACEOF
46379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46380 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46381 if test -n "$ac_maketemp"; then
46382   eval ac_cv_prog_make_${ac_make}_set=yes
46383 else
46384   eval ac_cv_prog_make_${ac_make}_set=no
46385 fi
46386 rm -f conftest.make
46387 fi
46388 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46389   echo "$as_me:$LINENO: result: yes" >&5
46390 echo "${ECHO_T}yes" >&6
46391   SET_MAKE=
46392 else
46393   echo "$as_me:$LINENO: result: no" >&5
46394 echo "${ECHO_T}no" >&6
46395   SET_MAKE="MAKE=${MAKE-make}"
46396 fi
46397
46398
46399
46400     if test -n "$ac_tool_prefix"; then
46401   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46402 set dummy ${ac_tool_prefix}ar; ac_word=$2
46403 echo "$as_me:$LINENO: checking for $ac_word" >&5
46404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46405 if test "${ac_cv_prog_AR+set}" = set; then
46406   echo $ECHO_N "(cached) $ECHO_C" >&6
46407 else
46408   if test -n "$AR"; then
46409   ac_cv_prog_AR="$AR" # Let the user override the test.
46410 else
46411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46412 for as_dir in $PATH
46413 do
46414   IFS=$as_save_IFS
46415   test -z "$as_dir" && as_dir=.
46416   for ac_exec_ext in '' $ac_executable_extensions; do
46417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46418     ac_cv_prog_AR="${ac_tool_prefix}ar"
46419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46420     break 2
46421   fi
46422 done
46423 done
46424
46425 fi
46426 fi
46427 AR=$ac_cv_prog_AR
46428 if test -n "$AR"; then
46429   echo "$as_me:$LINENO: result: $AR" >&5
46430 echo "${ECHO_T}$AR" >&6
46431 else
46432   echo "$as_me:$LINENO: result: no" >&5
46433 echo "${ECHO_T}no" >&6
46434 fi
46435
46436 fi
46437 if test -z "$ac_cv_prog_AR"; then
46438   ac_ct_AR=$AR
46439   # Extract the first word of "ar", so it can be a program name with args.
46440 set dummy ar; ac_word=$2
46441 echo "$as_me:$LINENO: checking for $ac_word" >&5
46442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46444   echo $ECHO_N "(cached) $ECHO_C" >&6
46445 else
46446   if test -n "$ac_ct_AR"; then
46447   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46448 else
46449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46450 for as_dir in $PATH
46451 do
46452   IFS=$as_save_IFS
46453   test -z "$as_dir" && as_dir=.
46454   for ac_exec_ext in '' $ac_executable_extensions; do
46455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46456     ac_cv_prog_ac_ct_AR="ar"
46457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46458     break 2
46459   fi
46460 done
46461 done
46462
46463   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46464 fi
46465 fi
46466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46467 if test -n "$ac_ct_AR"; then
46468   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46469 echo "${ECHO_T}$ac_ct_AR" >&6
46470 else
46471   echo "$as_me:$LINENO: result: no" >&5
46472 echo "${ECHO_T}no" >&6
46473 fi
46474
46475   AR=$ac_ct_AR
46476 else
46477   AR="$ac_cv_prog_AR"
46478 fi
46479
46480     if test -n "$ac_tool_prefix"; then
46481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46482 set dummy ${ac_tool_prefix}strip; ac_word=$2
46483 echo "$as_me:$LINENO: checking for $ac_word" >&5
46484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46485 if test "${ac_cv_prog_STRIP+set}" = set; then
46486   echo $ECHO_N "(cached) $ECHO_C" >&6
46487 else
46488   if test -n "$STRIP"; then
46489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46490 else
46491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46492 for as_dir in $PATH
46493 do
46494   IFS=$as_save_IFS
46495   test -z "$as_dir" && as_dir=.
46496   for ac_exec_ext in '' $ac_executable_extensions; do
46497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46500     break 2
46501   fi
46502 done
46503 done
46504
46505 fi
46506 fi
46507 STRIP=$ac_cv_prog_STRIP
46508 if test -n "$STRIP"; then
46509   echo "$as_me:$LINENO: result: $STRIP" >&5
46510 echo "${ECHO_T}$STRIP" >&6
46511 else
46512   echo "$as_me:$LINENO: result: no" >&5
46513 echo "${ECHO_T}no" >&6
46514 fi
46515
46516 fi
46517 if test -z "$ac_cv_prog_STRIP"; then
46518   ac_ct_STRIP=$STRIP
46519   # Extract the first word of "strip", so it can be a program name with args.
46520 set dummy strip; ac_word=$2
46521 echo "$as_me:$LINENO: checking for $ac_word" >&5
46522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46524   echo $ECHO_N "(cached) $ECHO_C" >&6
46525 else
46526   if test -n "$ac_ct_STRIP"; then
46527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46528 else
46529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46530 for as_dir in $PATH
46531 do
46532   IFS=$as_save_IFS
46533   test -z "$as_dir" && as_dir=.
46534   for ac_exec_ext in '' $ac_executable_extensions; do
46535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46536     ac_cv_prog_ac_ct_STRIP="strip"
46537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46538     break 2
46539   fi
46540 done
46541 done
46542
46543   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46544 fi
46545 fi
46546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46547 if test -n "$ac_ct_STRIP"; then
46548   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46549 echo "${ECHO_T}$ac_ct_STRIP" >&6
46550 else
46551   echo "$as_me:$LINENO: result: no" >&5
46552 echo "${ECHO_T}no" >&6
46553 fi
46554
46555   STRIP=$ac_ct_STRIP
46556 else
46557   STRIP="$ac_cv_prog_STRIP"
46558 fi
46559
46560     if test -n "$ac_tool_prefix"; then
46561   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46562 set dummy ${ac_tool_prefix}nm; ac_word=$2
46563 echo "$as_me:$LINENO: checking for $ac_word" >&5
46564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46565 if test "${ac_cv_prog_NM+set}" = set; then
46566   echo $ECHO_N "(cached) $ECHO_C" >&6
46567 else
46568   if test -n "$NM"; then
46569   ac_cv_prog_NM="$NM" # Let the user override the test.
46570 else
46571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46572 for as_dir in $PATH
46573 do
46574   IFS=$as_save_IFS
46575   test -z "$as_dir" && as_dir=.
46576   for ac_exec_ext in '' $ac_executable_extensions; do
46577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46578     ac_cv_prog_NM="${ac_tool_prefix}nm"
46579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46580     break 2
46581   fi
46582 done
46583 done
46584
46585 fi
46586 fi
46587 NM=$ac_cv_prog_NM
46588 if test -n "$NM"; then
46589   echo "$as_me:$LINENO: result: $NM" >&5
46590 echo "${ECHO_T}$NM" >&6
46591 else
46592   echo "$as_me:$LINENO: result: no" >&5
46593 echo "${ECHO_T}no" >&6
46594 fi
46595
46596 fi
46597 if test -z "$ac_cv_prog_NM"; then
46598   ac_ct_NM=$NM
46599   # Extract the first word of "nm", so it can be a program name with args.
46600 set dummy nm; ac_word=$2
46601 echo "$as_me:$LINENO: checking for $ac_word" >&5
46602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46603 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46604   echo $ECHO_N "(cached) $ECHO_C" >&6
46605 else
46606   if test -n "$ac_ct_NM"; then
46607   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46608 else
46609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46610 for as_dir in $PATH
46611 do
46612   IFS=$as_save_IFS
46613   test -z "$as_dir" && as_dir=.
46614   for ac_exec_ext in '' $ac_executable_extensions; do
46615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46616     ac_cv_prog_ac_ct_NM="nm"
46617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46618     break 2
46619   fi
46620 done
46621 done
46622
46623   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46624 fi
46625 fi
46626 ac_ct_NM=$ac_cv_prog_ac_ct_NM
46627 if test -n "$ac_ct_NM"; then
46628   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46629 echo "${ECHO_T}$ac_ct_NM" >&6
46630 else
46631   echo "$as_me:$LINENO: result: no" >&5
46632 echo "${ECHO_T}no" >&6
46633 fi
46634
46635   NM=$ac_ct_NM
46636 else
46637   NM="$ac_cv_prog_NM"
46638 fi
46639
46640
46641     case ${BAKEFILE_HOST} in
46642         *-hp-hpux* )
46643                                     INSTALL_DIR="mkdir -p"
46644             ;;
46645         *)  INSTALL_DIR="$INSTALL -d"
46646             ;;
46647     esac
46648
46649
46650     LDFLAGS_GUI=
46651     case ${BAKEFILE_HOST} in
46652         *-*-cygwin* | *-*-mingw32* )
46653         LDFLAGS_GUI="-mwindows"
46654     esac
46655
46656
46657     fi
46658
46659         echo "$as_me:$LINENO: checking if make is GNU make" >&5
46660 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46661 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46662   echo $ECHO_N "(cached) $ECHO_C" >&6
46663 else
46664
46665         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46666                 egrep -s GNU > /dev/null); then
46667             bakefile_cv_prog_makeisgnu="yes"
46668         else
46669             bakefile_cv_prog_makeisgnu="no"
46670         fi
46671
46672 fi
46673 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46674 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46675
46676     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46677         IF_GNU_MAKE=""
46678     else
46679         IF_GNU_MAKE="#"
46680     fi
46681
46682
46683
46684     PLATFORM_UNIX=0
46685     PLATFORM_WIN32=0
46686     PLATFORM_MSDOS=0
46687     PLATFORM_MAC=0
46688     PLATFORM_MACOS=0
46689     PLATFORM_MACOSX=0
46690     PLATFORM_OS2=0
46691     PLATFORM_BEOS=0
46692
46693     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46694         case "${BAKEFILE_HOST}" in
46695             *-*-mingw32* )
46696                 PLATFORM_WIN32=1
46697             ;;
46698             *-pc-msdosdjgpp )
46699                 PLATFORM_MSDOS=1
46700             ;;
46701             *-pc-os2_emx | *-pc-os2-emx )
46702                 PLATFORM_OS2=1
46703             ;;
46704             *-*-darwin* )
46705                 PLATFORM_MAC=1
46706                 PLATFORM_MACOSX=1
46707             ;;
46708             *-*-beos* )
46709                 PLATFORM_BEOS=1
46710             ;;
46711             powerpc-apple-macos* )
46712                 PLATFORM_MAC=1
46713                 PLATFORM_MACOS=1
46714             ;;
46715             * )
46716                 PLATFORM_UNIX=1
46717             ;;
46718         esac
46719     else
46720         case "$BAKEFILE_FORCE_PLATFORM" in
46721             win32 )
46722                 PLATFORM_WIN32=1
46723             ;;
46724             msdos )
46725                 PLATFORM_MSDOS=1
46726             ;;
46727             os2 )
46728                 PLATFORM_OS2=1
46729             ;;
46730             darwin )
46731                 PLATFORM_MAC=1
46732                 PLATFORM_MACOSX=1
46733             ;;
46734             unix )
46735                 PLATFORM_UNIX=1
46736             ;;
46737             beos )
46738                 PLATFORM_BEOS=1
46739             ;;
46740             * )
46741                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46742 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46743    { (exit 1); exit 1; }; }
46744             ;;
46745         esac
46746     fi
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758     # Check whether --enable-omf or --disable-omf was given.
46759 if test "${enable_omf+set}" = set; then
46760   enableval="$enable_omf"
46761   bk_os2_use_omf="$enableval"
46762 fi;
46763
46764     case "${BAKEFILE_HOST}" in
46765       *-*-darwin* )
46766                         if test "x$GCC" = "xyes"; then
46767             CFLAGS="$CFLAGS -fno-common"
46768             CXXFLAGS="$CXXFLAGS -fno-common"
46769         fi
46770         if test "x$XLCC" = "xyes"; then
46771             CFLAGS="$CFLAGS -qnocommon"
46772             CXXFLAGS="$CXXFLAGS -qnocommon"
46773         fi
46774         ;;
46775
46776       *-pc-os2_emx | *-pc-os2-emx )
46777         if test "x$bk_os2_use_omf" = "xyes" ; then
46778             AR=emxomfar
46779             RANLIB=:
46780             LDFLAGS="-Zomf $LDFLAGS"
46781             CFLAGS="-Zomf $CFLAGS"
46782             CXXFLAGS="-Zomf $CXXFLAGS"
46783             OS2_LIBEXT="lib"
46784         else
46785             OS2_LIBEXT="a"
46786         fi
46787         ;;
46788
46789       i*86-*-beos* )
46790         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46791         ;;
46792     esac
46793
46794
46795     SO_SUFFIX="so"
46796     SO_SUFFIX_MODULE="so"
46797     EXEEXT=""
46798     LIBPREFIX="lib"
46799     LIBEXT=".a"
46800     DLLPREFIX="lib"
46801     DLLPREFIX_MODULE=""
46802     DLLIMP_SUFFIX=""
46803     dlldir="$libdir"
46804
46805     case "${BAKEFILE_HOST}" in
46806         *-hp-hpux* )
46807             SO_SUFFIX="sl"
46808             SO_SUFFIX_MODULE="sl"
46809         ;;
46810         *-*-aix* )
46811                                                                         SO_SUFFIX="a"
46812             SO_SUFFIX_MODULE="a"
46813         ;;
46814         *-*-cygwin* )
46815             SO_SUFFIX="dll"
46816             SO_SUFFIX_MODULE="dll"
46817             DLLIMP_SUFFIX="dll.a"
46818             EXEEXT=".exe"
46819             DLLPREFIX="cyg"
46820             dlldir="$bindir"
46821         ;;
46822         *-*-mingw32* )
46823             SO_SUFFIX="dll"
46824             SO_SUFFIX_MODULE="dll"
46825             DLLIMP_SUFFIX="dll.a"
46826             EXEEXT=".exe"
46827             DLLPREFIX=""
46828             dlldir="$bindir"
46829         ;;
46830         *-pc-msdosdjgpp )
46831             EXEEXT=".exe"
46832             DLLPREFIX=""
46833             dlldir="$bindir"
46834         ;;
46835         *-pc-os2_emx | *-pc-os2-emx )
46836             SO_SUFFIX="dll"
46837             SO_SUFFIX_MODULE="dll"
46838             DLLIMP_SUFFIX=$OS2_LIBEXT
46839             EXEEXT=".exe"
46840             DLLPREFIX=""
46841             LIBPREFIX=""
46842             LIBEXT=".$OS2_LIBEXT"
46843             dlldir="$bindir"
46844         ;;
46845         *-*-darwin* )
46846             SO_SUFFIX="dylib"
46847             SO_SUFFIX_MODULE="bundle"
46848         ;;
46849     esac
46850
46851     if test "x$DLLIMP_SUFFIX" = "x" ; then
46852         DLLIMP_SUFFIX="$SO_SUFFIX"
46853     fi
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
46866         PIC_FLAG=""
46867     if test "x$GCC" = "xyes"; then
46868                 PIC_FLAG="-fPIC"
46869     fi
46870
46871         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46872     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
46873     WINDOWS_IMPLIB=0
46874
46875     case "${BAKEFILE_HOST}" in
46876       *-hp-hpux* )
46877                 if test "x$GCC" != "xyes"; then
46878                         LDFLAGS="$LDFLAGS -L/usr/lib"
46879
46880             SHARED_LD_CC="${CC} -b -o"
46881             SHARED_LD_CXX="${CXX} -b -o"
46882             PIC_FLAG="+Z"
46883         fi
46884       ;;
46885
46886       *-*-linux* )
46887         if test "x$GCC" != "xyes"; then
46888             echo "$as_me:$LINENO: checking for Intel compiler" >&5
46889 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46890 if test "${bakefile_cv_prog_icc+set}" = set; then
46891   echo $ECHO_N "(cached) $ECHO_C" >&6
46892 else
46893
46894                 cat >conftest.$ac_ext <<_ACEOF
46895 /* confdefs.h.  */
46896 _ACEOF
46897 cat confdefs.h >>conftest.$ac_ext
46898 cat >>conftest.$ac_ext <<_ACEOF
46899 /* end confdefs.h.  */
46900
46901 int
46902 main ()
46903 {
46904
46905                         #ifndef __INTEL_COMPILER
46906                         This is not ICC
46907                         #endif
46908
46909   ;
46910   return 0;
46911 }
46912 _ACEOF
46913 rm -f conftest.$ac_objext
46914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46915   (eval $ac_compile) 2>conftest.er1
46916   ac_status=$?
46917   grep -v '^ *+' conftest.er1 >conftest.err
46918   rm -f conftest.er1
46919   cat conftest.err >&5
46920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46921   (exit $ac_status); } &&
46922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46924   (eval $ac_try) 2>&5
46925   ac_status=$?
46926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927   (exit $ac_status); }; } &&
46928          { ac_try='test -s conftest.$ac_objext'
46929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46930   (eval $ac_try) 2>&5
46931   ac_status=$?
46932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46933   (exit $ac_status); }; }; then
46934   bakefile_cv_prog_icc=yes
46935 else
46936   echo "$as_me: failed program was:" >&5
46937 sed 's/^/| /' conftest.$ac_ext >&5
46938
46939 bakefile_cv_prog_icc=no
46940
46941 fi
46942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46943
46944 fi
46945 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46946 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46947             if test "$bakefile_cv_prog_icc" = "yes"; then
46948                 PIC_FLAG="-KPIC"
46949             fi
46950         fi
46951       ;;
46952
46953       *-*-solaris2* )
46954         if test "x$GCC" != xyes ; then
46955             SHARED_LD_CC="${CC} -G -o"
46956             SHARED_LD_CXX="${CXX} -G -o"
46957             PIC_FLAG="-KPIC"
46958         fi
46959       ;;
46960
46961       *-*-darwin* )
46962
46963 D='$'
46964 cat <<EOF >shared-ld-sh
46965 #!/bin/sh
46966 #-----------------------------------------------------------------------------
46967 #-- Name:        distrib/mac/shared-ld-sh
46968 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
46969 #-- Author:      Gilles Depeyrot
46970 #-- Copyright:   (c) 2002 Gilles Depeyrot
46971 #-- Licence:     any use permitted
46972 #-----------------------------------------------------------------------------
46973
46974 verbose=0
46975 args=""
46976 objects=""
46977 linking_flag="-dynamiclib"
46978 ldargs="-r -keep_private_externs -nostdlib"
46979
46980 while test ${D}# -gt 0; do
46981     case ${D}1 in
46982
46983        -v)
46984         verbose=1
46985         ;;
46986
46987        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46988         # collect these options and values
46989         args="${D}{args} ${D}1 ${D}2"
46990         shift
46991         ;;
46992
46993        -s|-Wl,*)
46994         # collect these load args
46995         ldargs="${D}{ldargs} ${D}1"
46996         ;;
46997
46998        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
46999         # collect these options
47000         args="${D}{args} ${D}1"
47001         ;;
47002
47003        -dynamiclib|-bundle)
47004         linking_flag="${D}1"
47005         ;;
47006
47007        -*)
47008         echo "shared-ld: unhandled option '${D}1'"
47009         exit 1
47010         ;;
47011
47012         *.o | *.a | *.dylib)
47013         # collect object files
47014         objects="${D}{objects} ${D}1"
47015         ;;
47016
47017         *)
47018         echo "shared-ld: unhandled argument '${D}1'"
47019         exit 1
47020         ;;
47021
47022     esac
47023     shift
47024 done
47025
47026 status=0
47027
47028 #
47029 # Link one module containing all the others
47030 #
47031 if test ${D}{verbose} = 1; then
47032     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47033 fi
47034 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47035 status=${D}?
47036
47037 #
47038 # Link the shared library from the single module created, but only if the
47039 # previous command didn't fail:
47040 #
47041 if test ${D}{status} = 0; then
47042     if test ${D}{verbose} = 1; then
47043         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47044     fi
47045     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47046     status=${D}?
47047 fi
47048
47049 #
47050 # Remove intermediate module
47051 #
47052 rm -f master.${D}${D}.o
47053
47054 exit ${D}status
47055 EOF
47056
47057         chmod +x shared-ld-sh
47058
47059         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47060         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47061
47062
47063                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47064 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47065 if test "${bakefile_cv_gcc31+set}" = set; then
47066   echo $ECHO_N "(cached) $ECHO_C" >&6
47067 else
47068
47069            cat >conftest.$ac_ext <<_ACEOF
47070 /* confdefs.h.  */
47071 _ACEOF
47072 cat confdefs.h >>conftest.$ac_ext
47073 cat >>conftest.$ac_ext <<_ACEOF
47074 /* end confdefs.h.  */
47075
47076 int
47077 main ()
47078 {
47079
47080                    #if (__GNUC__ < 3) || \
47081                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47082                        This is old gcc
47083                    #endif
47084
47085   ;
47086   return 0;
47087 }
47088 _ACEOF
47089 rm -f conftest.$ac_objext
47090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47091   (eval $ac_compile) 2>conftest.er1
47092   ac_status=$?
47093   grep -v '^ *+' conftest.er1 >conftest.err
47094   rm -f conftest.er1
47095   cat conftest.err >&5
47096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47097   (exit $ac_status); } &&
47098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47100   (eval $ac_try) 2>&5
47101   ac_status=$?
47102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47103   (exit $ac_status); }; } &&
47104          { ac_try='test -s conftest.$ac_objext'
47105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47106   (eval $ac_try) 2>&5
47107   ac_status=$?
47108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47109   (exit $ac_status); }; }; then
47110
47111                    bakefile_cv_gcc31=yes
47112
47113 else
47114   echo "$as_me: failed program was:" >&5
47115 sed 's/^/| /' conftest.$ac_ext >&5
47116
47117
47118                    bakefile_cv_gcc31=no
47119
47120
47121 fi
47122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47123
47124 fi
47125 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47126 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47127         if test "$bakefile_cv_gcc31" = "no"; then
47128                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47129             SHARED_LD_CXX="$SHARED_LD_CC"
47130         else
47131                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47132             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47133         fi
47134
47135         if test "x$GCC" == "xyes"; then
47136             PIC_FLAG="-dynamic -fPIC"
47137         fi
47138         if test "x$XLCC" = "xyes"; then
47139             PIC_FLAG="-dynamic -DPIC"
47140         fi
47141       ;;
47142
47143       *-*-aix* )
47144         if test "x$GCC" = "xyes"; then
47145                                                             PIC_FLAG=""
47146
47147                                                                                     case "${BAKEFILE_HOST}" in
47148                 *-*-aix5* )
47149                     LD_EXPFULL="-Wl,-bexpfull"
47150                     ;;
47151             esac
47152
47153             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47154             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47155         else
47156                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47157 set dummy makeC++SharedLib; ac_word=$2
47158 echo "$as_me:$LINENO: checking for $ac_word" >&5
47159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47160 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47161   echo $ECHO_N "(cached) $ECHO_C" >&6
47162 else
47163   if test -n "$AIX_CXX_LD"; then
47164   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47165 else
47166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47167 for as_dir in $PATH
47168 do
47169   IFS=$as_save_IFS
47170   test -z "$as_dir" && as_dir=.
47171   for ac_exec_ext in '' $ac_executable_extensions; do
47172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47173     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47175     break 2
47176   fi
47177 done
47178 done
47179
47180   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47181 fi
47182 fi
47183 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47184 if test -n "$AIX_CXX_LD"; then
47185   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47186 echo "${ECHO_T}$AIX_CXX_LD" >&6
47187 else
47188   echo "$as_me:$LINENO: result: no" >&5
47189 echo "${ECHO_T}no" >&6
47190 fi
47191
47192             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47193             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47194         fi
47195       ;;
47196
47197       *-*-beos* )
47198                         SHARED_LD_CC="${LD} -nostart -o"
47199         SHARED_LD_CXX="${LD} -nostart -o"
47200       ;;
47201
47202       *-*-irix* )
47203                 if test "x$GCC" != "xyes"; then
47204             PIC_FLAG="-KPIC"
47205         fi
47206       ;;
47207
47208       *-*-cygwin* | *-*-mingw32* )
47209         PIC_FLAG=""
47210         SHARED_LD_CC="\$(CC) -shared -o"
47211         SHARED_LD_CXX="\$(CXX) -shared -o"
47212         WINDOWS_IMPLIB=1
47213       ;;
47214
47215       *-pc-os2_emx | *-pc-os2-emx )
47216         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47217         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47218         PIC_FLAG=""
47219
47220 D='$'
47221 cat <<EOF >dllar.sh
47222 #!/bin/sh
47223 #
47224 # dllar - a tool to build both a .dll and an .a file
47225 # from a set of object (.o) files for EMX/OS2.
47226 #
47227 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47228 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47229 #
47230 #  This script will accept a set of files on the command line.
47231 #  All the public symbols from the .o files will be exported into
47232 #  a .DEF file, then linker will be run (through gcc) against them to
47233 #  build a shared library consisting of all given .o files. All libraries
47234 #  (.a) will be first decompressed into component .o files then act as
47235 #  described above. You can optionally give a description (-d "description")
47236 #  which will be put into .DLL. To see the list of accepted options (as well
47237 #  as command-line format) simply run this program without options. The .DLL
47238 #  is built to be imported by name (there is no guarantee that new versions
47239 #  of the library you build will have same ordinals for same symbols).
47240 #
47241 #  dllar is free software; you can redistribute it and/or modify
47242 #  it under the terms of the GNU General Public License as published by
47243 #  the Free Software Foundation; either version 2, or (at your option)
47244 #  any later version.
47245 #
47246 #  dllar is distributed in the hope that it will be useful,
47247 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47248 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47249 #  GNU General Public License for more details.
47250 #
47251 #  You should have received a copy of the GNU General Public License
47252 #  along with dllar; see the file COPYING.  If not, write to the Free
47253 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47254 #  02111-1307, USA.
47255
47256 # To successfuly run this program you will need:
47257 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47258 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47259 #  - gcc
47260 #    (used to build the .dll)
47261 #  - emxexp
47262 #    (used to create .def file from .o files)
47263 #  - emximp
47264 #    (used to create .a file from .def file)
47265 #  - GNU text utilites (cat, sort, uniq)
47266 #    used to process emxexp output
47267 #  - GNU file utilities (mv, rm)
47268 #  - GNU sed
47269 #  - lxlite (optional, see flag below)
47270 #    (used for general .dll cleanup)
47271 #
47272
47273 flag_USE_LXLITE=1;
47274
47275 #
47276 # helper functions
47277 # basnam, variant of basename, which does _not_ remove the path, _iff_
47278 #                              second argument (suffix to remove) is given
47279 basnam(){
47280     case ${D}# in
47281     1)
47282         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47283         ;;
47284     2)
47285         echo ${D}1 | sed 's/'${D}2'${D}//'
47286         ;;
47287     *)
47288         echo "error in basnam ${D}*"
47289         exit 8
47290         ;;
47291     esac
47292 }
47293
47294 # Cleanup temporary files and output
47295 CleanUp() {
47296     cd ${D}curDir
47297     for i in ${D}inputFiles ; do
47298         case ${D}i in
47299         *!)
47300             rm -rf \`basnam ${D}i !\`
47301             ;;
47302         *)
47303             ;;
47304         esac
47305     done
47306
47307     # Kill result in case of failure as there is just to many stupid make/nmake
47308     # things out there which doesn't do this.
47309     if [ ${D}# -eq 0 ]; then
47310         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47311     fi
47312 }
47313
47314 # Print usage and exit script with rc=1.
47315 PrintHelp() {
47316  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47317  echo '       [-name-mangler-script script.sh]'
47318  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47319  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47320  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47321  echo '       [*.o] [*.a]'
47322  echo '*> "output_file" should have no extension.'
47323  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47324  echo '   The import library name is derived from this and is set to "name".a,'
47325  echo '   unless overridden by -import'
47326  echo '*> "importlib_name" should have no extension.'
47327  echo '   If it has the .o, or .a extension, it is automatically removed.'
47328  echo '   This name is used as the import library name and may be longer and'
47329  echo '   more descriptive than the DLL name which has to follow the old '
47330  echo '   8.3 convention of FAT.'
47331  echo '*> "script.sh may be given to override the output_file name by a'
47332  echo '   different name. It is mainly useful if the regular make process'
47333  echo '   of some package does not take into account OS/2 restriction of'
47334  echo '   DLL name lengths. It takes the importlib name as input and is'
47335  echo '   supposed to procude a shorter name as output. The script should'
47336  echo '   expect to get importlib_name without extension and should produce'
47337  echo '   a (max.) 8 letter name without extension.'
47338  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47339  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47340  echo '   These flags will be put at the start of GCC command line.'
47341  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47342  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47343  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47344  echo '   If the last character of a symbol is "*", all symbols beginning'
47345  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47346  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47347  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47348  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47349  echo '   C runtime DLLs.'
47350  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47351  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47352  echo '   unchanged to GCC at the end of command line.'
47353  echo '*> If you create a DLL from a library and you do not specify -o,'
47354  echo '   the basename for DLL and import library will be set to library name,'
47355  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47356  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47357  echo '   library will be renamed into gcc_s.a.'
47358  echo '--------'
47359  echo 'Example:'
47360  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47361  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47362  CleanUp
47363  exit 1
47364 }
47365
47366 # Execute a command.
47367 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47368 # @Uses    Whatever CleanUp() uses.
47369 doCommand() {
47370     echo "${D}*"
47371     eval ${D}*
47372     rcCmd=${D}?
47373
47374     if [ ${D}rcCmd -ne 0 ]; then
47375         echo "command failed, exit code="${D}rcCmd
47376         CleanUp
47377         exit ${D}rcCmd
47378     fi
47379 }
47380
47381 # main routine
47382 # setup globals
47383 cmdLine=${D}*
47384 outFile=""
47385 outimpFile=""
47386 inputFiles=""
47387 renameScript=""
47388 description=""
47389 CC=gcc.exe
47390 CFLAGS="-s -Zcrtdll"
47391 EXTRA_CFLAGS=""
47392 EXPORT_BY_ORDINALS=0
47393 exclude_symbols=""
47394 library_flags=""
47395 curDir=\`pwd\`
47396 curDirS=curDir
47397 case ${D}curDirS in
47398 */)
47399   ;;
47400 *)
47401   curDirS=${D}{curDirS}"/"
47402   ;;
47403 esac
47404 # Parse commandline
47405 libsToLink=0
47406 omfLinking=0
47407 while [ ${D}1 ]; do
47408     case ${D}1 in
47409     -ord*)
47410         EXPORT_BY_ORDINALS=1;
47411         ;;
47412     -o*)
47413         shift
47414         outFile=${D}1
47415         ;;
47416     -i*)
47417         shift
47418         outimpFile=${D}1
47419         ;;
47420     -name-mangler-script)
47421         shift
47422         renameScript=${D}1
47423         ;;
47424     -d*)
47425         shift
47426         description=${D}1
47427         ;;
47428     -f*)
47429         shift
47430         CFLAGS=${D}1
47431         ;;
47432     -c*)
47433         shift
47434         CC=${D}1
47435         ;;
47436     -h*)
47437         PrintHelp
47438         ;;
47439     -ex*)
47440         shift
47441         exclude_symbols=${D}{exclude_symbols}${D}1" "
47442         ;;
47443     -libf*)
47444         shift
47445         library_flags=${D}{library_flags}${D}1" "
47446         ;;
47447     -nocrt*)
47448         CFLAGS="-s"
47449         ;;
47450     -nolxl*)
47451         flag_USE_LXLITE=0
47452         ;;
47453     -* | /*)
47454         case ${D}1 in
47455         -L* | -l*)
47456             libsToLink=1
47457             ;;
47458         -Zomf)
47459             omfLinking=1
47460             ;;
47461         *)
47462             ;;
47463         esac
47464         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47465         ;;
47466     *.dll)
47467         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47468         if [ ${D}omfLinking -eq 1 ]; then
47469             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47470         else
47471             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47472         fi
47473         ;;
47474     *)
47475         found=0;
47476         if [ ${D}libsToLink -ne 0 ]; then
47477             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47478         else
47479             for file in ${D}1 ; do
47480                 if [ -f ${D}file ]; then
47481                     inputFiles="${D}{inputFiles} ${D}file"
47482                     found=1
47483                 fi
47484             done
47485             if [ ${D}found -eq 0 ]; then
47486                 echo "ERROR: No file(s) found: "${D}1
47487                 exit 8
47488             fi
47489         fi
47490       ;;
47491     esac
47492     shift
47493 done # iterate cmdline words
47494
47495 #
47496 if [ -z "${D}inputFiles" ]; then
47497     echo "dllar: no input files"
47498     PrintHelp
47499 fi
47500
47501 # Now extract all .o files from .a files
47502 newInputFiles=""
47503 for file in ${D}inputFiles ; do
47504     case ${D}file in
47505     *.a | *.lib)
47506         case ${D}file in
47507         *.a)
47508             suffix=".a"
47509             AR="ar"
47510             ;;
47511         *.lib)
47512             suffix=".lib"
47513             AR="emxomfar"
47514             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47515             ;;
47516         *)
47517             ;;
47518         esac
47519         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47520         mkdir ${D}dirname
47521         if [ ${D}? -ne 0 ]; then
47522             echo "Failed to create subdirectory ./${D}dirname"
47523             CleanUp
47524             exit 8;
47525         fi
47526         # Append '!' to indicate archive
47527         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47528         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47529         cd ${D}curDir
47530         found=0;
47531         for subfile in ${D}dirname/*.o* ; do
47532             if [ -f ${D}subfile ]; then
47533                 found=1
47534                 if [ -s ${D}subfile ]; then
47535                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47536                     newInputFiles="${D}newInputFiles ${D}subfile"
47537                 fi
47538             fi
47539         done
47540         if [ ${D}found -eq 0 ]; then
47541             echo "WARNING: there are no files in archive \\'${D}file\\'"
47542         fi
47543         ;;
47544     *)
47545         newInputFiles="${D}{newInputFiles} ${D}file"
47546         ;;
47547     esac
47548 done
47549 inputFiles="${D}newInputFiles"
47550
47551 # Output filename(s).
47552 do_backup=0;
47553 if [ -z ${D}outFile ]; then
47554     do_backup=1;
47555     set outFile ${D}inputFiles; outFile=${D}2
47556 fi
47557
47558 # If it is an archive, remove the '!' and the '_%' suffixes
47559 case ${D}outFile in
47560 *_%!)
47561     outFile=\`basnam ${D}outFile _%!\`
47562     ;;
47563 *)
47564     ;;
47565 esac
47566 case ${D}outFile in
47567 *.dll)
47568     outFile=\`basnam ${D}outFile .dll\`
47569     ;;
47570 *.DLL)
47571     outFile=\`basnam ${D}outFile .DLL\`
47572     ;;
47573 *.o)
47574     outFile=\`basnam ${D}outFile .o\`
47575     ;;
47576 *.obj)
47577     outFile=\`basnam ${D}outFile .obj\`
47578     ;;
47579 *.a)
47580     outFile=\`basnam ${D}outFile .a\`
47581     ;;
47582 *.lib)
47583     outFile=\`basnam ${D}outFile .lib\`
47584     ;;
47585 *)
47586     ;;
47587 esac
47588 case ${D}outimpFile in
47589 *.a)
47590     outimpFile=\`basnam ${D}outimpFile .a\`
47591     ;;
47592 *.lib)
47593     outimpFile=\`basnam ${D}outimpFile .lib\`
47594     ;;
47595 *)
47596     ;;
47597 esac
47598 if [ -z ${D}outimpFile ]; then
47599     outimpFile=${D}outFile
47600 fi
47601 defFile="${D}{outFile}.def"
47602 arcFile="${D}{outimpFile}.a"
47603 arcFile2="${D}{outimpFile}.lib"
47604
47605 #create ${D}dllFile as something matching 8.3 restrictions,
47606 if [ -z ${D}renameScript ] ; then
47607     dllFile="${D}outFile"
47608 else
47609     dllFile=\`${D}renameScript ${D}outimpFile\`
47610 fi
47611
47612 if [ ${D}do_backup -ne 0 ] ; then
47613     if [ -f ${D}arcFile ] ; then
47614         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47615     fi
47616     if [ -f ${D}arcFile2 ] ; then
47617         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47618     fi
47619 fi
47620
47621 # Extract public symbols from all the object files.
47622 tmpdefFile=${D}{defFile}_%
47623 rm -f ${D}tmpdefFile
47624 for file in ${D}inputFiles ; do
47625     case ${D}file in
47626     *!)
47627         ;;
47628     *)
47629         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47630         ;;
47631     esac
47632 done
47633
47634 # Create the def file.
47635 rm -f ${D}defFile
47636 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
47637 dllFile="${D}{dllFile}.dll"
47638 if [ ! -z ${D}description ]; then
47639     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
47640 fi
47641 echo "EXPORTS" >> ${D}defFile
47642
47643 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47644 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47645
47646 # Checks if the export is ok or not.
47647 for word in ${D}exclude_symbols; do
47648     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47649     mv ${D}{tmpdefFile}% ${D}tmpdefFile
47650 done
47651
47652
47653 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47654     sed "=" < ${D}tmpdefFile | \\
47655     sed '
47656       N
47657       : loop
47658       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
47659       t loop
47660     ' > ${D}{tmpdefFile}%
47661     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47662 else
47663     rm -f ${D}{tmpdefFile}%
47664 fi
47665 cat ${D}tmpdefFile >> ${D}defFile
47666 rm -f ${D}tmpdefFile
47667
47668 # Do linking, create implib, and apply lxlite.
47669 gccCmdl="";
47670 for file in ${D}inputFiles ; do
47671     case ${D}file in
47672     *!)
47673         ;;
47674     *)
47675         gccCmdl="${D}gccCmdl ${D}file"
47676         ;;
47677     esac
47678 done
47679 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47680 touch "${D}{outFile}.dll"
47681
47682 doCommand "emximp -o ${D}arcFile ${D}defFile"
47683 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
47684     add_flags="";
47685     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47686         add_flags="-ynd"
47687     fi
47688     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47689 fi
47690 doCommand "emxomf -s -l ${D}arcFile"
47691
47692 # Successful exit.
47693 CleanUp 1
47694 exit 0
47695 EOF
47696
47697         chmod +x dllar.sh
47698       ;;
47699
47700       powerpc-apple-macos* | \
47701       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
47702       *-*-sunos4* | \
47703       *-*-osf* | \
47704       *-*-dgux5* | \
47705       *-*-sysv5* | \
47706       *-pc-msdosdjgpp )
47707               ;;
47708
47709       *)
47710                     esac
47711
47712     if test "x$PIC_FLAG" != "x" ; then
47713         PIC_FLAG="$PIC_FLAG -DPIC"
47714     fi
47715
47716     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47717         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47718     fi
47719     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47720         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47721     fi
47722
47723
47724
47725
47726
47727
47728
47729
47730
47731     USE_SOVERSION=0
47732     USE_SOVERLINUX=0
47733     USE_SOVERSOLARIS=0
47734     USE_SOVERCYGWIN=0
47735     USE_SOSYMLINKS=0
47736     USE_MACVERSION=0
47737     SONAME_FLAG=
47738
47739     case "${BAKEFILE_HOST}" in
47740       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
47741         SONAME_FLAG="-Wl,-soname,"
47742         USE_SOVERSION=1
47743         USE_SOVERLINUX=1
47744         USE_SOSYMLINKS=1
47745       ;;
47746
47747       *-*-solaris2* )
47748         SONAME_FLAG="-h "
47749         USE_SOVERSION=1
47750         USE_SOVERSOLARIS=1
47751         USE_SOSYMLINKS=1
47752       ;;
47753
47754       *-*-darwin* )
47755         USE_MACVERSION=1
47756         USE_SOVERSION=1
47757         USE_SOSYMLINKS=1
47758       ;;
47759
47760       *-*-cygwin* )
47761         USE_SOVERSION=1
47762         USE_SOVERCYGWIN=1
47763       ;;
47764     esac
47765
47766
47767
47768
47769
47770
47771
47772
47773
47774
47775     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47776 if test "${enable_dependency_tracking+set}" = set; then
47777   enableval="$enable_dependency_tracking"
47778   bk_use_trackdeps="$enableval"
47779 fi;
47780
47781     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47782 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
47783
47784     if test "x$bk_use_trackdeps" = "xno" ; then
47785         DEPS_TRACKING=0
47786         echo "$as_me:$LINENO: result: disabled" >&5
47787 echo "${ECHO_T}disabled" >&6
47788     else
47789         DEPS_TRACKING=1
47790
47791         if test "x$GCC" = "xyes"; then
47792             DEPSMODE=gcc
47793             case "${BAKEFILE_HOST}" in
47794                 *-*-darwin* )
47795                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47796                 ;;
47797                 * )
47798                     DEPSFLAG="-MMD"
47799                 ;;
47800             esac
47801             echo "$as_me:$LINENO: result: gcc" >&5
47802 echo "${ECHO_T}gcc" >&6
47803         elif test "x$MWCC" = "xyes"; then
47804             DEPSMODE=mwcc
47805             DEPSFLAG="-MM"
47806             echo "$as_me:$LINENO: result: mwcc" >&5
47807 echo "${ECHO_T}mwcc" >&6
47808         elif test "x$SUNCC" = "xyes"; then
47809             DEPSMODE=unixcc
47810             DEPSFLAG="-xM1"
47811             echo "$as_me:$LINENO: result: Sun cc" >&5
47812 echo "${ECHO_T}Sun cc" >&6
47813         elif test "x$SGICC" = "xyes"; then
47814             DEPSMODE=unixcc
47815             DEPSFLAG="-M"
47816             echo "$as_me:$LINENO: result: SGI cc" >&5
47817 echo "${ECHO_T}SGI cc" >&6
47818         elif test "x$HPCC" = "xyes"; then
47819             DEPSMODE=unixcc
47820             DEPSFLAG="+make"
47821             echo "$as_me:$LINENO: result: HP cc" >&5
47822 echo "${ECHO_T}HP cc" >&6
47823         elif test "x$COMPAQCC" = "xyes"; then
47824             DEPSMODE=gcc
47825             DEPSFLAG="-MD"
47826             echo "$as_me:$LINENO: result: Compaq cc" >&5
47827 echo "${ECHO_T}Compaq cc" >&6
47828         else
47829             DEPS_TRACKING=0
47830             echo "$as_me:$LINENO: result: none" >&5
47831 echo "${ECHO_T}none" >&6
47832         fi
47833
47834         if test $DEPS_TRACKING = 1 ; then
47835
47836 D='$'
47837 cat <<EOF >bk-deps
47838 #!/bin/sh
47839
47840 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47841 # script. It is used to track C/C++ files dependencies in portable way.
47842 #
47843 # Permission is given to use this file in any way.
47844
47845 DEPSMODE=${DEPSMODE}
47846 DEPSDIR=.deps
47847 DEPSFLAG="${DEPSFLAG}"
47848
47849 mkdir -p ${D}DEPSDIR
47850
47851 if test ${D}DEPSMODE = gcc ; then
47852     ${D}* ${D}{DEPSFLAG}
47853     status=${D}?
47854     if test ${D}{status} != 0 ; then
47855         exit ${D}{status}
47856     fi
47857     # move created file to the location we want it in:
47858     while test ${D}# -gt 0; do
47859         case "${D}1" in
47860             -o )
47861                 shift
47862                 objfile=${D}1
47863             ;;
47864             -* )
47865             ;;
47866             * )
47867                 srcfile=${D}1
47868             ;;
47869         esac
47870         shift
47871     done
47872     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47873     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
47874     if test -f ${D}depfile ; then
47875         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47876         rm -f ${D}depfile
47877     else
47878         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
47879         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
47880         if test ! -f ${D}depfile ; then
47881             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47882             depfile="${D}objfile.d"
47883         fi
47884         if test -f ${D}depfile ; then
47885             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47886             rm -f ${D}depfile
47887         fi
47888     fi
47889     exit 0
47890 elif test ${D}DEPSMODE = mwcc ; then
47891     ${D}* || exit ${D}?
47892     # Run mwcc again with -MM and redirect into the dep file we want
47893     # NOTE: We can't use shift here because we need ${D}* to be valid
47894     prevarg=
47895     for arg in ${D}* ; do
47896         if test "${D}prevarg" = "-o"; then
47897             objfile=${D}arg
47898         else
47899             case "${D}arg" in
47900                 -* )
47901                 ;;
47902                 * )
47903                     srcfile=${D}arg
47904                 ;;
47905             esac
47906         fi
47907         prevarg="${D}arg"
47908     done
47909     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
47910     exit 0
47911 elif test ${D}DEPSMODE = unixcc; then
47912     ${D}* || exit ${D}?
47913     # Run compiler again with deps flag and redirect into the dep file.
47914     # It doesn't work if the '-o FILE' option is used, but without it the
47915     # dependency file will contain the wrong name for the object. So it is
47916     # removed from the command line, and the dep file is fixed with sed.
47917     cmd=""
47918     while test ${D}# -gt 0; do
47919         case "${D}1" in
47920             -o )
47921                 shift
47922                 objfile=${D}1
47923             ;;
47924             * )
47925                 eval arg${D}#=\\${D}1
47926                 cmd="${D}cmd \\${D}arg${D}#"
47927             ;;
47928         esac
47929         shift
47930     done
47931     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
47932     exit 0
47933 else
47934     ${D}*
47935     exit ${D}?
47936 fi
47937 EOF
47938
47939             chmod +x bk-deps
47940         fi
47941     fi
47942
47943
47944
47945
47946     case ${BAKEFILE_HOST} in
47947         *-*-cygwin* | *-*-mingw32* )
47948                         if test -n "$ac_tool_prefix"; then
47949   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47950 set dummy ${ac_tool_prefix}windres; ac_word=$2
47951 echo "$as_me:$LINENO: checking for $ac_word" >&5
47952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47953 if test "${ac_cv_prog_WINDRES+set}" = set; then
47954   echo $ECHO_N "(cached) $ECHO_C" >&6
47955 else
47956   if test -n "$WINDRES"; then
47957   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47958 else
47959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47960 for as_dir in $PATH
47961 do
47962   IFS=$as_save_IFS
47963   test -z "$as_dir" && as_dir=.
47964   for ac_exec_ext in '' $ac_executable_extensions; do
47965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47966     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47968     break 2
47969   fi
47970 done
47971 done
47972
47973 fi
47974 fi
47975 WINDRES=$ac_cv_prog_WINDRES
47976 if test -n "$WINDRES"; then
47977   echo "$as_me:$LINENO: result: $WINDRES" >&5
47978 echo "${ECHO_T}$WINDRES" >&6
47979 else
47980   echo "$as_me:$LINENO: result: no" >&5
47981 echo "${ECHO_T}no" >&6
47982 fi
47983
47984 fi
47985 if test -z "$ac_cv_prog_WINDRES"; then
47986   ac_ct_WINDRES=$WINDRES
47987   # Extract the first word of "windres", so it can be a program name with args.
47988 set dummy windres; ac_word=$2
47989 echo "$as_me:$LINENO: checking for $ac_word" >&5
47990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47991 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
47992   echo $ECHO_N "(cached) $ECHO_C" >&6
47993 else
47994   if test -n "$ac_ct_WINDRES"; then
47995   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
47996 else
47997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47998 for as_dir in $PATH
47999 do
48000   IFS=$as_save_IFS
48001   test -z "$as_dir" && as_dir=.
48002   for ac_exec_ext in '' $ac_executable_extensions; do
48003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48004     ac_cv_prog_ac_ct_WINDRES="windres"
48005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48006     break 2
48007   fi
48008 done
48009 done
48010
48011 fi
48012 fi
48013 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48014 if test -n "$ac_ct_WINDRES"; then
48015   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48016 echo "${ECHO_T}$ac_ct_WINDRES" >&6
48017 else
48018   echo "$as_me:$LINENO: result: no" >&5
48019 echo "${ECHO_T}no" >&6
48020 fi
48021
48022   WINDRES=$ac_ct_WINDRES
48023 else
48024   WINDRES="$ac_cv_prog_WINDRES"
48025 fi
48026
48027          ;;
48028
48029       *-*-darwin* | powerpc-apple-macos* )
48030             # Extract the first word of "Rez", so it can be a program name with args.
48031 set dummy Rez; ac_word=$2
48032 echo "$as_me:$LINENO: checking for $ac_word" >&5
48033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48034 if test "${ac_cv_prog_REZ+set}" = set; then
48035   echo $ECHO_N "(cached) $ECHO_C" >&6
48036 else
48037   if test -n "$REZ"; then
48038   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48039 else
48040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48041 for as_dir in $PATH
48042 do
48043   IFS=$as_save_IFS
48044   test -z "$as_dir" && as_dir=.
48045   for ac_exec_ext in '' $ac_executable_extensions; do
48046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48047     ac_cv_prog_REZ="Rez"
48048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48049     break 2
48050   fi
48051 done
48052 done
48053
48054   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48055 fi
48056 fi
48057 REZ=$ac_cv_prog_REZ
48058 if test -n "$REZ"; then
48059   echo "$as_me:$LINENO: result: $REZ" >&5
48060 echo "${ECHO_T}$REZ" >&6
48061 else
48062   echo "$as_me:$LINENO: result: no" >&5
48063 echo "${ECHO_T}no" >&6
48064 fi
48065
48066             # Extract the first word of "SetFile", so it can be a program name with args.
48067 set dummy SetFile; ac_word=$2
48068 echo "$as_me:$LINENO: checking for $ac_word" >&5
48069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48070 if test "${ac_cv_prog_SETFILE+set}" = set; then
48071   echo $ECHO_N "(cached) $ECHO_C" >&6
48072 else
48073   if test -n "$SETFILE"; then
48074   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48075 else
48076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48077 for as_dir in $PATH
48078 do
48079   IFS=$as_save_IFS
48080   test -z "$as_dir" && as_dir=.
48081   for ac_exec_ext in '' $ac_executable_extensions; do
48082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48083     ac_cv_prog_SETFILE="SetFile"
48084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48085     break 2
48086   fi
48087 done
48088 done
48089
48090   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48091 fi
48092 fi
48093 SETFILE=$ac_cv_prog_SETFILE
48094 if test -n "$SETFILE"; then
48095   echo "$as_me:$LINENO: result: $SETFILE" >&5
48096 echo "${ECHO_T}$SETFILE" >&6
48097 else
48098   echo "$as_me:$LINENO: result: no" >&5
48099 echo "${ECHO_T}no" >&6
48100 fi
48101
48102         ;;
48103     esac
48104
48105
48106
48107
48108
48109
48110     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
48111
48112
48113 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
48114
48115
48116
48117     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48118 if test "${enable_precomp_headers+set}" = set; then
48119   enableval="$enable_precomp_headers"
48120   bk_use_pch="$enableval"
48121 fi;
48122
48123     GCC_PCH=0
48124     ICC_PCH=0
48125     USE_PCH=0
48126
48127     case ${BAKEFILE_HOST} in
48128         *-*-cygwin* )
48129                                                 bk_use_pch="no"
48130             ;;
48131     esac
48132
48133     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48134         if test "x$GCC" = "xyes"; then
48135                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48136 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48137             cat >conftest.$ac_ext <<_ACEOF
48138 /* confdefs.h.  */
48139 _ACEOF
48140 cat confdefs.h >>conftest.$ac_ext
48141 cat >>conftest.$ac_ext <<_ACEOF
48142 /* end confdefs.h.  */
48143
48144 int
48145 main ()
48146 {
48147
48148                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48149                         There is no PCH support
48150                     #endif
48151                     #if (__GNUC__ < 3)
48152                         There is no PCH support
48153                     #endif
48154                     #if (__GNUC__ == 3) && \
48155                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48156                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48157                        ( defined(__INTEL_COMPILER) )
48158                         There is no PCH support
48159                     #endif
48160
48161   ;
48162   return 0;
48163 }
48164 _ACEOF
48165 rm -f conftest.$ac_objext
48166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48167   (eval $ac_compile) 2>conftest.er1
48168   ac_status=$?
48169   grep -v '^ *+' conftest.er1 >conftest.err
48170   rm -f conftest.er1
48171   cat conftest.err >&5
48172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48173   (exit $ac_status); } &&
48174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48176   (eval $ac_try) 2>&5
48177   ac_status=$?
48178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48179   (exit $ac_status); }; } &&
48180          { ac_try='test -s conftest.$ac_objext'
48181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48182   (eval $ac_try) 2>&5
48183   ac_status=$?
48184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48185   (exit $ac_status); }; }; then
48186
48187                     echo "$as_me:$LINENO: result: yes" >&5
48188 echo "${ECHO_T}yes" >&6
48189                     GCC_PCH=1
48190
48191 else
48192   echo "$as_me: failed program was:" >&5
48193 sed 's/^/| /' conftest.$ac_ext >&5
48194
48195
48196                     cat >conftest.$ac_ext <<_ACEOF
48197 /* confdefs.h.  */
48198 _ACEOF
48199 cat confdefs.h >>conftest.$ac_ext
48200 cat >>conftest.$ac_ext <<_ACEOF
48201 /* end confdefs.h.  */
48202
48203 int
48204 main ()
48205 {
48206
48207                             #if !defined(__INTEL_COMPILER) || \
48208                                 (__INTEL_COMPILER < 800)
48209                                 There is no PCH support
48210                             #endif
48211
48212   ;
48213   return 0;
48214 }
48215 _ACEOF
48216 rm -f conftest.$ac_objext
48217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48218   (eval $ac_compile) 2>conftest.er1
48219   ac_status=$?
48220   grep -v '^ *+' conftest.er1 >conftest.err
48221   rm -f conftest.er1
48222   cat conftest.err >&5
48223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48224   (exit $ac_status); } &&
48225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48227   (eval $ac_try) 2>&5
48228   ac_status=$?
48229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48230   (exit $ac_status); }; } &&
48231          { ac_try='test -s conftest.$ac_objext'
48232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48233   (eval $ac_try) 2>&5
48234   ac_status=$?
48235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48236   (exit $ac_status); }; }; then
48237
48238                             echo "$as_me:$LINENO: result: yes" >&5
48239 echo "${ECHO_T}yes" >&6
48240                             ICC_PCH=1
48241
48242 else
48243   echo "$as_me: failed program was:" >&5
48244 sed 's/^/| /' conftest.$ac_ext >&5
48245
48246
48247                             echo "$as_me:$LINENO: result: no" >&5
48248 echo "${ECHO_T}no" >&6
48249
48250 fi
48251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48252
48253 fi
48254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48255             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48256                 USE_PCH=1
48257
48258 D='$'
48259 cat <<EOF >bk-make-pch
48260 #!/bin/sh
48261
48262 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48263 # script. It is used to generated precompiled headers.
48264 #
48265 # Permission is given to use this file in any way.
48266
48267 outfile="${D}{1}"
48268 header="${D}{2}"
48269 shift
48270 shift
48271
48272 compiler=""
48273 headerfile=""
48274
48275 while test ${D}{#} -gt 0; do
48276     add_to_cmdline=1
48277     case "${D}{1}" in
48278         -I* )
48279             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48280             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48281                 headerfile="${D}{incdir}/${D}{header}"
48282             fi
48283         ;;
48284         -use-pch|-use_pch )
48285             shift
48286             add_to_cmdline=0
48287         ;;
48288     esac
48289     if test ${D}add_to_cmdline = 1 ; then
48290         compiler="${D}{compiler} ${D}{1}"
48291     fi
48292     shift
48293 done
48294
48295 if test "x${D}{headerfile}" = "x" ; then
48296     echo "error: can't find header ${D}{header} in include paths" >&2
48297 else
48298     if test -f ${D}{outfile} ; then
48299         rm -f ${D}{outfile}
48300     else
48301         mkdir -p \`dirname ${D}{outfile}\`
48302     fi
48303     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48304     mkdir -p .deps
48305     if test "x${GCC_PCH}" = "x1" ; then
48306         # can do this because gcc is >= 3.4:
48307         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48308     elif test "x${ICC_PCH}" = "x1" ; then
48309         filename=pch_gen-${D}${D}
48310         file=${D}{filename}.c
48311         dfile=${D}{filename}.d
48312         cat > ${D}file <<EOT
48313 #include "${D}header"
48314 EOT
48315         # using -MF icc complains about differing command lines in creation/use
48316         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48317           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48318           rm -f ${D}file ${D}dfile ${D}{filename}.o
48319     fi
48320     exit ${D}{?}
48321 fi
48322 EOF
48323
48324                 chmod +x bk-make-pch
48325             fi
48326         fi
48327     fi
48328
48329
48330
48331
48332     COND_BUILD_DEBUG="#"
48333     if test "x$BUILD" = "xdebug" ; then
48334         COND_BUILD_DEBUG=""
48335     fi
48336
48337     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48338     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48339         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48340     fi
48341
48342     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48343     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48344         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48345     fi
48346
48347     COND_BUILD_DEBUG_UNICODE_0="#"
48348     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48349         COND_BUILD_DEBUG_UNICODE_0=""
48350     fi
48351
48352     COND_BUILD_DEBUG_UNICODE_1="#"
48353     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48354         COND_BUILD_DEBUG_UNICODE_1=""
48355     fi
48356
48357     COND_BUILD_RELEASE="#"
48358     if test "x$BUILD" = "xrelease" ; then
48359         COND_BUILD_RELEASE=""
48360     fi
48361
48362     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48363     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48364         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48365     fi
48366
48367     COND_BUILD_RELEASE_UNICODE_0="#"
48368     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48369         COND_BUILD_RELEASE_UNICODE_0=""
48370     fi
48371
48372     COND_BUILD_RELEASE_UNICODE_1="#"
48373     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48374         COND_BUILD_RELEASE_UNICODE_1=""
48375     fi
48376
48377     COND_DEBUG_FLAG_1="#"
48378     if test "x$DEBUG_FLAG" = "x1" ; then
48379         COND_DEBUG_FLAG_1=""
48380     fi
48381
48382     COND_DEBUG_INFO_0="#"
48383     if test "x$DEBUG_INFO" = "x0" ; then
48384         COND_DEBUG_INFO_0=""
48385     fi
48386
48387     COND_DEBUG_INFO_1="#"
48388     if test "x$DEBUG_INFO" = "x1" ; then
48389         COND_DEBUG_INFO_1=""
48390     fi
48391
48392     COND_DEPS_TRACKING_0="#"
48393     if test "x$DEPS_TRACKING" = "x0" ; then
48394         COND_DEPS_TRACKING_0=""
48395     fi
48396
48397     COND_DEPS_TRACKING_1="#"
48398     if test "x$DEPS_TRACKING" = "x1" ; then
48399         COND_DEPS_TRACKING_1=""
48400     fi
48401
48402     COND_GCC_PCH_1="#"
48403     if test "x$GCC_PCH" = "x1" ; then
48404         COND_GCC_PCH_1=""
48405     fi
48406
48407     COND_ICC_PCH_1="#"
48408     if test "x$ICC_PCH" = "x1" ; then
48409         COND_ICC_PCH_1=""
48410     fi
48411
48412     COND_MONOLITHIC_0="#"
48413     if test "x$MONOLITHIC" = "x0" ; then
48414         COND_MONOLITHIC_0=""
48415     fi
48416
48417     COND_MONOLITHIC_0_SHARED_0="#"
48418     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48419         COND_MONOLITHIC_0_SHARED_0=""
48420     fi
48421
48422     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48423     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48424         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48425     fi
48426
48427     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48428     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48429         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48430     fi
48431
48432     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48433     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48434         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48435     fi
48436
48437     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48438     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48439         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48440     fi
48441
48442     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48443     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48444         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48445     fi
48446
48447     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48448     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48449         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48450     fi
48451
48452     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48453     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48454         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48455     fi
48456
48457     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48458     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48459         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48460     fi
48461
48462     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48463     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48464         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48465     fi
48466
48467     COND_MONOLITHIC_0_SHARED_1="#"
48468     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48469         COND_MONOLITHIC_0_SHARED_1=""
48470     fi
48471
48472     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48473     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48474         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48475     fi
48476
48477     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48478     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48479         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48480     fi
48481
48482     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48483     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48484         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48485     fi
48486
48487     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48488     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48489         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48490     fi
48491
48492     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48493     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48494         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48495     fi
48496
48497     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48498     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48499         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48500     fi
48501
48502     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48503     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48504         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48505     fi
48506
48507     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48508     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48509         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48510     fi
48511
48512     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48513     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48514         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48515     fi
48516
48517     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48518     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48519         COND_MONOLITHIC_0_USE_MEDIA_1=""
48520     fi
48521
48522     COND_MONOLITHIC_0_USE_ODBC_1="#"
48523     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48524         COND_MONOLITHIC_0_USE_ODBC_1=""
48525     fi
48526
48527     COND_MONOLITHIC_1="#"
48528     if test "x$MONOLITHIC" = "x1" ; then
48529         COND_MONOLITHIC_1=""
48530     fi
48531
48532     COND_MONOLITHIC_1_SHARED_0="#"
48533     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48534         COND_MONOLITHIC_1_SHARED_0=""
48535     fi
48536
48537     COND_MONOLITHIC_1_SHARED_1="#"
48538     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48539         COND_MONOLITHIC_1_SHARED_1=""
48540     fi
48541
48542     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48543     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48544         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48545     fi
48546
48547     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48548     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48549         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48550     fi
48551
48552     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48553     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48554         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48555     fi
48556
48557     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48558     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48559         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48560     fi
48561
48562     COND_PLATFORM_MACOSX_1="#"
48563     if test "x$PLATFORM_MACOSX" = "x1" ; then
48564         COND_PLATFORM_MACOSX_1=""
48565     fi
48566
48567     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48568     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48569         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48570     fi
48571
48572     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48573     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48574         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48575     fi
48576
48577     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48578     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48579         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48580     fi
48581
48582     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48583     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48584         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48585     fi
48586
48587     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48588     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48589         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48590     fi
48591
48592     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48593     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48594         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48595     fi
48596
48597     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48598     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48599         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48600     fi
48601
48602     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48603     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48604         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48605     fi
48606
48607     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48608     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48609         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48610     fi
48611
48612     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48613     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48614         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48615     fi
48616
48617     COND_PLATFORM_MACOS_1="#"
48618     if test "x$PLATFORM_MACOS" = "x1" ; then
48619         COND_PLATFORM_MACOS_1=""
48620     fi
48621
48622     COND_PLATFORM_MAC_1="#"
48623     if test "x$PLATFORM_MAC" = "x1" ; then
48624         COND_PLATFORM_MAC_1=""
48625     fi
48626
48627     COND_PLATFORM_MSDOS_0="#"
48628     if test "x$PLATFORM_MSDOS" = "x0" ; then
48629         COND_PLATFORM_MSDOS_0=""
48630     fi
48631
48632     COND_PLATFORM_MSDOS_1="#"
48633     if test "x$PLATFORM_MSDOS" = "x1" ; then
48634         COND_PLATFORM_MSDOS_1=""
48635     fi
48636
48637     COND_PLATFORM_OS2_1="#"
48638     if test "x$PLATFORM_OS2" = "x1" ; then
48639         COND_PLATFORM_OS2_1=""
48640     fi
48641
48642     COND_PLATFORM_UNIX_0="#"
48643     if test "x$PLATFORM_UNIX" = "x0" ; then
48644         COND_PLATFORM_UNIX_0=""
48645     fi
48646
48647     COND_PLATFORM_UNIX_1="#"
48648     if test "x$PLATFORM_UNIX" = "x1" ; then
48649         COND_PLATFORM_UNIX_1=""
48650     fi
48651
48652     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48653     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48654         COND_PLATFORM_UNIX_1_USE_GUI_1=""
48655     fi
48656
48657     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48658     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48659         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48660     fi
48661
48662     COND_PLATFORM_WIN32_0="#"
48663     if test "x$PLATFORM_WIN32" = "x0" ; then
48664         COND_PLATFORM_WIN32_0=""
48665     fi
48666
48667     COND_PLATFORM_WIN32_1="#"
48668     if test "x$PLATFORM_WIN32" = "x1" ; then
48669         COND_PLATFORM_WIN32_1=""
48670     fi
48671
48672     COND_SHARED_0="#"
48673     if test "x$SHARED" = "x0" ; then
48674         COND_SHARED_0=""
48675     fi
48676
48677     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48678     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48679         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48680     fi
48681
48682     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48683     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48684         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48685     fi
48686
48687     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48688     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48689         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48690     fi
48691
48692     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48693     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48694         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48695     fi
48696
48697     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48698     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48699         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48700     fi
48701
48702     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48703     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48704         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48705     fi
48706
48707     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48708     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48709         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48710     fi
48711
48712     COND_SHARED_0_USE_XRC_1="#"
48713     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48714         COND_SHARED_0_USE_XRC_1=""
48715     fi
48716
48717     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48718     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48719         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48720     fi
48721
48722     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48723     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48724         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48725     fi
48726
48727     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48728     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48729         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48730     fi
48731
48732     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48733     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48734         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48735     fi
48736
48737     COND_SHARED_1="#"
48738     if test "x$SHARED" = "x1" ; then
48739         COND_SHARED_1=""
48740     fi
48741
48742     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48743     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48744         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48745     fi
48746
48747     COND_SHARED_1_USE_XRC_1="#"
48748     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48749         COND_SHARED_1_USE_XRC_1=""
48750     fi
48751
48752     COND_TOOLKIT_="#"
48753     if test "x$TOOLKIT" = "x" ; then
48754         COND_TOOLKIT_=""
48755     fi
48756
48757     COND_TOOLKIT_COCOA="#"
48758     if test "x$TOOLKIT" = "xCOCOA" ; then
48759         COND_TOOLKIT_COCOA=""
48760     fi
48761
48762     COND_TOOLKIT_COCOA_USE_GUI_1="#"
48763     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48764         COND_TOOLKIT_COCOA_USE_GUI_1=""
48765     fi
48766
48767     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48768     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48769         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48770     fi
48771
48772     COND_TOOLKIT_DFB="#"
48773     if test "x$TOOLKIT" = "xDFB" ; then
48774         COND_TOOLKIT_DFB=""
48775     fi
48776
48777     COND_TOOLKIT_DFB_USE_GUI_1="#"
48778     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
48779         COND_TOOLKIT_DFB_USE_GUI_1=""
48780     fi
48781
48782     COND_TOOLKIT_GTK="#"
48783     if test "x$TOOLKIT" = "xGTK" ; then
48784         COND_TOOLKIT_GTK=""
48785     fi
48786
48787     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48788     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48789         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48790     fi
48791
48792     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48793     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48794         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48795     fi
48796
48797     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48798     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48799         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48800     fi
48801
48802     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48803     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48804         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48805     fi
48806
48807     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48808     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48809         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48810     fi
48811
48812     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48813     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48814         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48815     fi
48816
48817     COND_TOOLKIT_GTK_USE_GUI_1="#"
48818     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48819         COND_TOOLKIT_GTK_USE_GUI_1=""
48820     fi
48821
48822     COND_TOOLKIT_MAC="#"
48823     if test "x$TOOLKIT" = "xMAC" ; then
48824         COND_TOOLKIT_MAC=""
48825     fi
48826
48827     COND_TOOLKIT_MAC_USE_GUI_1="#"
48828     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48829         COND_TOOLKIT_MAC_USE_GUI_1=""
48830     fi
48831
48832     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48833     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48834         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48835     fi
48836
48837     COND_TOOLKIT_MGL="#"
48838     if test "x$TOOLKIT" = "xMGL" ; then
48839         COND_TOOLKIT_MGL=""
48840     fi
48841
48842     COND_TOOLKIT_MGL_USE_GUI_1="#"
48843     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48844         COND_TOOLKIT_MGL_USE_GUI_1=""
48845     fi
48846
48847     COND_TOOLKIT_MOTIF="#"
48848     if test "x$TOOLKIT" = "xMOTIF" ; then
48849         COND_TOOLKIT_MOTIF=""
48850     fi
48851
48852     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48853     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48854         COND_TOOLKIT_MOTIF_USE_GUI_1=""
48855     fi
48856
48857     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48858     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48859         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48860     fi
48861
48862     COND_TOOLKIT_MSW="#"
48863     if test "x$TOOLKIT" = "xMSW" ; then
48864         COND_TOOLKIT_MSW=""
48865     fi
48866
48867     COND_TOOLKIT_MSW_USE_GUI_1="#"
48868     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48869         COND_TOOLKIT_MSW_USE_GUI_1=""
48870     fi
48871
48872     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48873     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48874         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48875     fi
48876
48877     COND_TOOLKIT_MSW_WXUNIV_0="#"
48878     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48879         COND_TOOLKIT_MSW_WXUNIV_0=""
48880     fi
48881
48882     COND_TOOLKIT_PM="#"
48883     if test "x$TOOLKIT" = "xPM" ; then
48884         COND_TOOLKIT_PM=""
48885     fi
48886
48887     COND_TOOLKIT_PM_USE_GUI_1="#"
48888     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48889         COND_TOOLKIT_PM_USE_GUI_1=""
48890     fi
48891
48892     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48893     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48894         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48895     fi
48896
48897     COND_TOOLKIT_WINCE="#"
48898     if test "x$TOOLKIT" = "xWINCE" ; then
48899         COND_TOOLKIT_WINCE=""
48900     fi
48901
48902     COND_TOOLKIT_WINCE_USE_GUI_1="#"
48903     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48904         COND_TOOLKIT_WINCE_USE_GUI_1=""
48905     fi
48906
48907     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48908     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48909         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48910     fi
48911
48912     COND_TOOLKIT_WINCE_WXUNIV_0="#"
48913     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48914         COND_TOOLKIT_WINCE_WXUNIV_0=""
48915     fi
48916
48917     COND_TOOLKIT_X11="#"
48918     if test "x$TOOLKIT" = "xX11" ; then
48919         COND_TOOLKIT_X11=""
48920     fi
48921
48922     COND_TOOLKIT_X11_USE_GUI_1="#"
48923     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48924         COND_TOOLKIT_X11_USE_GUI_1=""
48925     fi
48926
48927     COND_UNICODE_1="#"
48928     if test "x$UNICODE" = "x1" ; then
48929         COND_UNICODE_1=""
48930     fi
48931
48932     COND_USE_EXCEPTIONS_0="#"
48933     if test "x$USE_EXCEPTIONS" = "x0" ; then
48934         COND_USE_EXCEPTIONS_0=""
48935     fi
48936
48937     COND_USE_EXCEPTIONS_1="#"
48938     if test "x$USE_EXCEPTIONS" = "x1" ; then
48939         COND_USE_EXCEPTIONS_1=""
48940     fi
48941
48942     COND_USE_GUI_0="#"
48943     if test "x$USE_GUI" = "x0" ; then
48944         COND_USE_GUI_0=""
48945     fi
48946
48947     COND_USE_GUI_1="#"
48948     if test "x$USE_GUI" = "x1" ; then
48949         COND_USE_GUI_1=""
48950     fi
48951
48952     COND_USE_GUI_1_WXUNIV_0="#"
48953     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48954         COND_USE_GUI_1_WXUNIV_0=""
48955     fi
48956
48957     COND_USE_GUI_1_WXUNIV_1="#"
48958     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48959         COND_USE_GUI_1_WXUNIV_1=""
48960     fi
48961
48962     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48963     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48964         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48965     fi
48966
48967     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48968     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48969         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48970     fi
48971
48972     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48973     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48974         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48975     fi
48976
48977     COND_USE_ODBC_1="#"
48978     if test "x$USE_ODBC" = "x1" ; then
48979         COND_USE_ODBC_1=""
48980     fi
48981
48982     COND_USE_OPENGL_1="#"
48983     if test "x$USE_OPENGL" = "x1" ; then
48984         COND_USE_OPENGL_1=""
48985     fi
48986
48987     COND_USE_PCH_1="#"
48988     if test "x$USE_PCH" = "x1" ; then
48989         COND_USE_PCH_1=""
48990     fi
48991
48992     COND_USE_PLUGINS_0="#"
48993     if test "x$USE_PLUGINS" = "x0" ; then
48994         COND_USE_PLUGINS_0=""
48995     fi
48996
48997     COND_USE_RTTI_0="#"
48998     if test "x$USE_RTTI" = "x0" ; then
48999         COND_USE_RTTI_0=""
49000     fi
49001
49002     COND_USE_RTTI_1="#"
49003     if test "x$USE_RTTI" = "x1" ; then
49004         COND_USE_RTTI_1=""
49005     fi
49006
49007     COND_USE_SOSYMLINKS_1="#"
49008     if test "x$USE_SOSYMLINKS" = "x1" ; then
49009         COND_USE_SOSYMLINKS_1=""
49010     fi
49011
49012     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49013     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49014         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49015     fi
49016
49017     COND_USE_SOVERLINUX_1="#"
49018     if test "x$USE_SOVERLINUX" = "x1" ; then
49019         COND_USE_SOVERLINUX_1=""
49020     fi
49021
49022     COND_USE_SOVERSION_0="#"
49023     if test "x$USE_SOVERSION" = "x0" ; then
49024         COND_USE_SOVERSION_0=""
49025     fi
49026
49027     COND_USE_SOVERSOLARIS_1="#"
49028     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49029         COND_USE_SOVERSOLARIS_1=""
49030     fi
49031
49032     COND_USE_THREADS_0="#"
49033     if test "x$USE_THREADS" = "x0" ; then
49034         COND_USE_THREADS_0=""
49035     fi
49036
49037     COND_USE_THREADS_1="#"
49038     if test "x$USE_THREADS" = "x1" ; then
49039         COND_USE_THREADS_1=""
49040     fi
49041
49042     COND_USE_XRC_1="#"
49043     if test "x$USE_XRC" = "x1" ; then
49044         COND_USE_XRC_1=""
49045     fi
49046
49047     COND_WINDOWS_IMPLIB_1="#"
49048     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49049         COND_WINDOWS_IMPLIB_1=""
49050     fi
49051
49052     COND_WITH_PLUGIN_SDL_1="#"
49053     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49054         COND_WITH_PLUGIN_SDL_1=""
49055     fi
49056
49057     COND_WXUNIV_0="#"
49058     if test "x$WXUNIV" = "x0" ; then
49059         COND_WXUNIV_0=""
49060     fi
49061
49062     COND_WXUNIV_1="#"
49063     if test "x$WXUNIV" = "x1" ; then
49064         COND_WXUNIV_1=""
49065     fi
49066
49067     COND_WXUSE_EXPAT_BUILTIN="#"
49068     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49069         COND_WXUSE_EXPAT_BUILTIN=""
49070     fi
49071
49072     COND_WXUSE_LIBJPEG_BUILTIN="#"
49073     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49074         COND_WXUSE_LIBJPEG_BUILTIN=""
49075     fi
49076
49077     COND_WXUSE_LIBPNG_BUILTIN="#"
49078     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49079         COND_WXUSE_LIBPNG_BUILTIN=""
49080     fi
49081
49082     COND_WXUSE_LIBTIFF_BUILTIN="#"
49083     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49084         COND_WXUSE_LIBTIFF_BUILTIN=""
49085     fi
49086
49087     COND_WXUSE_ODBC_BUILTIN="#"
49088     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49089         COND_WXUSE_ODBC_BUILTIN=""
49090     fi
49091
49092     COND_WXUSE_REGEX_BUILTIN="#"
49093     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49094         COND_WXUSE_REGEX_BUILTIN=""
49095     fi
49096
49097     COND_WXUSE_ZLIB_BUILTIN="#"
49098     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49099         COND_WXUSE_ZLIB_BUILTIN=""
49100     fi
49101
49102
49103
49104     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49105         { { 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
49106 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;}
49107    { (exit 1); exit 1; }; }
49108     fi
49109
49110     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49111         { { 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
49112 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;}
49113    { (exit 1); exit 1; }; }
49114     fi
49115
49116
49117
49118 if test "$wxUSE_MAC" = 1 ; then
49119     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49120         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49121         mv temp bk-deps
49122         chmod +x bk-deps
49123     fi
49124 fi
49125
49126 if test "$wxUSE_SHARED" = "yes"; then
49127
49128                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49129     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49130
49131                 case "${host}" in
49132       *-pc-os2_emx | *-pc-os2-emx )
49133         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49134         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49135         cp -p ${srcdir}/src/os2/dllnames.sh .
49136         cp -p ${srcdir}/src/os2/dllar.sh .
49137       ;;
49138     esac
49139 else
49140
49141         EXE_LINKER="$CXX -o"
49142
49143 fi
49144 if test "$wxUSE_OMF" = "yes"; then
49145     case "${host}" in
49146       *-pc-os2_emx | *-pc-os2-emx )
49147         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49148         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49149         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49150       ;;
49151     esac
49152 fi
49153
49154 if test $GCC_PCH = 1 ; then
49155     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49156 fi
49157
49158 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49159
49160 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49161
49162
49163
49164
49165
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
49202
49203
49204
49205
49206
49207
49208
49209
49210
49211
49212
49213
49214
49215
49216
49217
49218
49219
49220
49221
49222 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49223 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
49224 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
49225 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49226   echo $ECHO_N "(cached) $ECHO_C" >&6
49227 else
49228   cat >conftest.make <<\_ACEOF
49229 all:
49230         @echo 'ac_maketemp="$(MAKE)"'
49231 _ACEOF
49232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49233 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49234 if test -n "$ac_maketemp"; then
49235   eval ac_cv_prog_make_${ac_make}_set=yes
49236 else
49237   eval ac_cv_prog_make_${ac_make}_set=no
49238 fi
49239 rm -f conftest.make
49240 fi
49241 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49242   echo "$as_me:$LINENO: result: yes" >&5
49243 echo "${ECHO_T}yes" >&6
49244   SET_MAKE=
49245 else
49246   echo "$as_me:$LINENO: result: no" >&5
49247 echo "${ECHO_T}no" >&6
49248   SET_MAKE="MAKE=${MAKE-make}"
49249 fi
49250
49251
49252
49253           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49254
49255
49256 if test "$USE_WIN32" = 1; then
49257               ac_config_commands="$ac_config_commands
49258             rcdefs.h
49259         "
49260
49261 fi
49262
49263           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49264
49265
49266           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49267
49268
49269                     ac_config_files="$ac_config_files version-script Makefile"
49270
49271
49272           ac_config_commands="$ac_config_commands wx-config"
49273
49274
49275
49276 if test "$wxWITH_SUBDIRS" != "no"; then
49277 if test "$wxUSE_GUI" = "yes"; then
49278     SUBDIRS="samples demos utils contrib"
49279 else         SUBDIRS="samples utils"
49280 fi
49281
49282
49283
49284 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49285 if test "${with_cppunit_prefix+set}" = set; then
49286   withval="$with_cppunit_prefix"
49287   cppunit_config_prefix="$withval"
49288 else
49289   cppunit_config_prefix=""
49290 fi;
49291
49292 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49293 if test "${with_cppunit_exec_prefix+set}" = set; then
49294   withval="$with_cppunit_exec_prefix"
49295   cppunit_config_exec_prefix="$withval"
49296 else
49297   cppunit_config_exec_prefix=""
49298 fi;
49299
49300   if test x$cppunit_config_exec_prefix != x ; then
49301      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49302      if test x${CPPUNIT_CONFIG+set} != xset ; then
49303         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49304      fi
49305   fi
49306   if test x$cppunit_config_prefix != x ; then
49307      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49308      if test x${CPPUNIT_CONFIG+set} != xset ; then
49309         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49310      fi
49311   fi
49312
49313   # Extract the first word of "cppunit-config", so it can be a program name with args.
49314 set dummy cppunit-config; ac_word=$2
49315 echo "$as_me:$LINENO: checking for $ac_word" >&5
49316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49317 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49318   echo $ECHO_N "(cached) $ECHO_C" >&6
49319 else
49320   case $CPPUNIT_CONFIG in
49321   [\\/]* | ?:[\\/]*)
49322   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49323   ;;
49324   *)
49325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49326 for as_dir in $PATH
49327 do
49328   IFS=$as_save_IFS
49329   test -z "$as_dir" && as_dir=.
49330   for ac_exec_ext in '' $ac_executable_extensions; do
49331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49332     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49334     break 2
49335   fi
49336 done
49337 done
49338
49339   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49340   ;;
49341 esac
49342 fi
49343 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49344
49345 if test -n "$CPPUNIT_CONFIG"; then
49346   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49347 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49348 else
49349   echo "$as_me:$LINENO: result: no" >&5
49350 echo "${ECHO_T}no" >&6
49351 fi
49352
49353   cppunit_version_min=1.8.0
49354
49355   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49356 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49357   no_cppunit=""
49358   if test "$CPPUNIT_CONFIG" = "no" ; then
49359     echo "$as_me:$LINENO: result: no" >&5
49360 echo "${ECHO_T}no" >&6
49361     no_cppunit=yes
49362   else
49363     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49364     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49365     cppunit_version=`$CPPUNIT_CONFIG --version`
49366
49367     cppunit_major_version=`echo $cppunit_version | \
49368            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49369     cppunit_minor_version=`echo $cppunit_version | \
49370            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49371     cppunit_micro_version=`echo $cppunit_version | \
49372            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49373
49374     cppunit_major_min=`echo $cppunit_version_min | \
49375            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49376     cppunit_minor_min=`echo $cppunit_version_min | \
49377            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49378     cppunit_micro_min=`echo $cppunit_version_min | \
49379            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49380
49381     cppunit_version_proper=`expr \
49382         $cppunit_major_version \> $cppunit_major_min \| \
49383         $cppunit_major_version \= $cppunit_major_min \& \
49384         $cppunit_minor_version \> $cppunit_minor_min \| \
49385         $cppunit_major_version \= $cppunit_major_min \& \
49386         $cppunit_minor_version \= $cppunit_minor_min \& \
49387         $cppunit_micro_version \>= $cppunit_micro_min `
49388
49389     if test "$cppunit_version_proper" = "1" ; then
49390       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49391 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49392     else
49393       echo "$as_me:$LINENO: result: no" >&5
49394 echo "${ECHO_T}no" >&6
49395       no_cppunit=yes
49396     fi
49397   fi
49398
49399   if test "x$no_cppunit" = x ; then
49400      SUBDIRS="$SUBDIRS tests"
49401   else
49402      CPPUNIT_CFLAGS=""
49403      CPPUNIT_LIBS=""
49404      :
49405   fi
49406
49407
49408
49409
49410
49411 for subdir in `echo $SUBDIRS`; do
49412     if test -d ${srcdir}/${subdir} ; then
49413         if test "$wxUSE_GUI" = "yes"; then
49414             if test ${subdir} = "samples"; then
49415                                                 makefiles="samples/Makefile.in $makefiles"
49416                 for sample in `echo $SAMPLES_SUBDIRS`; do
49417                     if test -d $srcdir/samples/$sample; then
49418                         makefiles="samples/$sample/Makefile.in $makefiles"
49419                     fi
49420                 done
49421             else
49422                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49423                 eval "disabled=\$$disabled_var"
49424                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49425                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
49426             fi
49427         else                                     if test ${subdir} = "samples"; then
49428                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49429             elif test ${subdir} = "utils"; then
49430                 makefiles=""
49431                 for util in HelpGen tex2rtf ; do
49432                     if test -d $srcdir/utils/$util ; then
49433                         makefiles="utils/$util/Makefile.in \
49434                                    utils/$util/src/Makefile.in \
49435                                    $makefiles"
49436                     fi
49437                 done
49438             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49439             fi
49440         fi
49441
49442         for mkin in $makefiles ; do
49443             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49444                       ac_config_files="$ac_config_files $mk"
49445
49446         done
49447     fi
49448 done
49449 fi
49450 cat >confcache <<\_ACEOF
49451 # This file is a shell script that caches the results of configure
49452 # tests run on this system so they can be shared between configure
49453 # scripts and configure runs, see configure's option --config-cache.
49454 # It is not useful on other systems.  If it contains results you don't
49455 # want to keep, you may remove or edit it.
49456 #
49457 # config.status only pays attention to the cache file if you give it
49458 # the --recheck option to rerun configure.
49459 #
49460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49462 # following values.
49463
49464 _ACEOF
49465
49466 # The following way of writing the cache mishandles newlines in values,
49467 # but we know of no workaround that is simple, portable, and efficient.
49468 # So, don't put newlines in cache variables' values.
49469 # Ultrix sh set writes to stderr and can't be redirected directly,
49470 # and sets the high bit in the cache file unless we assign to the vars.
49471 {
49472   (set) 2>&1 |
49473     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49474     *ac_space=\ *)
49475       # `set' does not quote correctly, so add quotes (double-quote
49476       # substitution turns \\\\ into \\, and sed turns \\ into \).
49477       sed -n \
49478         "s/'/'\\\\''/g;
49479           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49480       ;;
49481     *)
49482       # `set' quotes correctly as required by POSIX, so do not add quotes.
49483       sed -n \
49484         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49485       ;;
49486     esac;
49487 } |
49488   sed '
49489      t clear
49490      : clear
49491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49492      t end
49493      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49494      : end' >>confcache
49495 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49496   if test -w $cache_file; then
49497     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49498     cat confcache >$cache_file
49499   else
49500     echo "not updating unwritable cache $cache_file"
49501   fi
49502 fi
49503 rm -f confcache
49504
49505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49506 # Let make expand exec_prefix.
49507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49508
49509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49511 # trailing colons and then remove the whole line if VPATH becomes empty
49512 # (actually we leave an empty line to preserve line numbers).
49513 if test "x$srcdir" = x.; then
49514   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49515 s/:*\$(srcdir):*/:/;
49516 s/:*\${srcdir}:*/:/;
49517 s/:*@srcdir@:*/:/;
49518 s/^\([^=]*=[     ]*\):*/\1/;
49519 s/:*$//;
49520 s/^[^=]*=[       ]*$//;
49521 }'
49522 fi
49523
49524 DEFS=-DHAVE_CONFIG_H
49525
49526 ac_libobjs=
49527 ac_ltlibobjs=
49528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49529   # 1. Remove the extension, and $U if already installed.
49530   ac_i=`echo "$ac_i" |
49531          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49532   # 2. Add them.
49533   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49534   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49535 done
49536 LIBOBJS=$ac_libobjs
49537
49538 LTLIBOBJS=$ac_ltlibobjs
49539
49540
49541
49542 : ${CONFIG_STATUS=./config.status}
49543 ac_clean_files_save=$ac_clean_files
49544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49545 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49547 cat >$CONFIG_STATUS <<_ACEOF
49548 #! $SHELL
49549 # Generated by $as_me.
49550 # Run this file to recreate the current configuration.
49551 # Compiler output produced by configure, useful for debugging
49552 # configure, is in config.log if it exists.
49553
49554 debug=false
49555 ac_cs_recheck=false
49556 ac_cs_silent=false
49557 SHELL=\${CONFIG_SHELL-$SHELL}
49558 _ACEOF
49559
49560 cat >>$CONFIG_STATUS <<\_ACEOF
49561 ## --------------------- ##
49562 ## M4sh Initialization.  ##
49563 ## --------------------- ##
49564
49565 # Be Bourne compatible
49566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49567   emulate sh
49568   NULLCMD=:
49569   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49570   # is contrary to our usage.  Disable this feature.
49571   alias -g '${1+"$@"}'='"$@"'
49572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49573   set -o posix
49574 fi
49575 DUALCASE=1; export DUALCASE # for MKS sh
49576
49577 # Support unset when possible.
49578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49579   as_unset=unset
49580 else
49581   as_unset=false
49582 fi
49583
49584
49585 # Work around bugs in pre-3.0 UWIN ksh.
49586 $as_unset ENV MAIL MAILPATH
49587 PS1='$ '
49588 PS2='> '
49589 PS4='+ '
49590
49591 # NLS nuisances.
49592 for as_var in \
49593   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49594   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49595   LC_TELEPHONE LC_TIME
49596 do
49597   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49598     eval $as_var=C; export $as_var
49599   else
49600     $as_unset $as_var
49601   fi
49602 done
49603
49604 # Required to use basename.
49605 if expr a : '\(a\)' >/dev/null 2>&1; then
49606   as_expr=expr
49607 else
49608   as_expr=false
49609 fi
49610
49611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49612   as_basename=basename
49613 else
49614   as_basename=false
49615 fi
49616
49617
49618 # Name of the executable.
49619 as_me=`$as_basename "$0" ||
49620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49621          X"$0" : 'X\(//\)$' \| \
49622          X"$0" : 'X\(/\)$' \| \
49623          .     : '\(.\)' 2>/dev/null ||
49624 echo X/"$0" |
49625     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49626           /^X\/\(\/\/\)$/{ s//\1/; q; }
49627           /^X\/\(\/\).*/{ s//\1/; q; }
49628           s/.*/./; q'`
49629
49630
49631 # PATH needs CR, and LINENO needs CR and PATH.
49632 # Avoid depending upon Character Ranges.
49633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49636 as_cr_digits='0123456789'
49637 as_cr_alnum=$as_cr_Letters$as_cr_digits
49638
49639 # The user is always right.
49640 if test "${PATH_SEPARATOR+set}" != set; then
49641   echo "#! /bin/sh" >conf$$.sh
49642   echo  "exit 0"   >>conf$$.sh
49643   chmod +x conf$$.sh
49644   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49645     PATH_SEPARATOR=';'
49646   else
49647     PATH_SEPARATOR=:
49648   fi
49649   rm -f conf$$.sh
49650 fi
49651
49652
49653   as_lineno_1=$LINENO
49654   as_lineno_2=$LINENO
49655   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49656   test "x$as_lineno_1" != "x$as_lineno_2" &&
49657   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49658   # Find who we are.  Look in the path if we contain no path at all
49659   # relative or not.
49660   case $0 in
49661     *[\\/]* ) as_myself=$0 ;;
49662     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49663 for as_dir in $PATH
49664 do
49665   IFS=$as_save_IFS
49666   test -z "$as_dir" && as_dir=.
49667   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49668 done
49669
49670        ;;
49671   esac
49672   # We did not find ourselves, most probably we were run as `sh COMMAND'
49673   # in which case we are not to be found in the path.
49674   if test "x$as_myself" = x; then
49675     as_myself=$0
49676   fi
49677   if test ! -f "$as_myself"; then
49678     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49680    { (exit 1); exit 1; }; }
49681   fi
49682   case $CONFIG_SHELL in
49683   '')
49684     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49686 do
49687   IFS=$as_save_IFS
49688   test -z "$as_dir" && as_dir=.
49689   for as_base in sh bash ksh sh5; do
49690          case $as_dir in
49691          /*)
49692            if ("$as_dir/$as_base" -c '
49693   as_lineno_1=$LINENO
49694   as_lineno_2=$LINENO
49695   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49696   test "x$as_lineno_1" != "x$as_lineno_2" &&
49697   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49698              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49699              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49700              CONFIG_SHELL=$as_dir/$as_base
49701              export CONFIG_SHELL
49702              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49703            fi;;
49704          esac
49705        done
49706 done
49707 ;;
49708   esac
49709
49710   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49711   # uniformly replaced by the line number.  The first 'sed' inserts a
49712   # line-number line before each line; the second 'sed' does the real
49713   # work.  The second script uses 'N' to pair each line-number line
49714   # with the numbered line, and appends trailing '-' during
49715   # substitution so that $LINENO is not a special case at line end.
49716   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49717   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49718   sed '=' <$as_myself |
49719     sed '
49720       N
49721       s,$,-,
49722       : loop
49723       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49724       t loop
49725       s,-$,,
49726       s,^['$as_cr_digits']*\n,,
49727     ' >$as_me.lineno &&
49728   chmod +x $as_me.lineno ||
49729     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49731    { (exit 1); exit 1; }; }
49732
49733   # Don't try to exec as it changes $[0], causing all sort of problems
49734   # (the dirname of $[0] is not the place where we might find the
49735   # original and so on.  Autoconf is especially sensible to this).
49736   . ./$as_me.lineno
49737   # Exit status is that of the last command.
49738   exit
49739 }
49740
49741
49742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49743   *c*,-n*) ECHO_N= ECHO_C='
49744 ' ECHO_T='      ' ;;
49745   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49746   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49747 esac
49748
49749 if expr a : '\(a\)' >/dev/null 2>&1; then
49750   as_expr=expr
49751 else
49752   as_expr=false
49753 fi
49754
49755 rm -f conf$$ conf$$.exe conf$$.file
49756 echo >conf$$.file
49757 if ln -s conf$$.file conf$$ 2>/dev/null; then
49758   # We could just check for DJGPP; but this test a) works b) is more generic
49759   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49760   if test -f conf$$.exe; then
49761     # Don't use ln at all; we don't have any links
49762     as_ln_s='cp -p'
49763   else
49764     as_ln_s='ln -s'
49765   fi
49766 elif ln conf$$.file conf$$ 2>/dev/null; then
49767   as_ln_s=ln
49768 else
49769   as_ln_s='cp -p'
49770 fi
49771 rm -f conf$$ conf$$.exe conf$$.file
49772
49773 if mkdir -p . 2>/dev/null; then
49774   as_mkdir_p=:
49775 else
49776   test -d ./-p && rmdir ./-p
49777   as_mkdir_p=false
49778 fi
49779
49780 as_executable_p="test -f"
49781
49782 # Sed expression to map a string onto a valid CPP name.
49783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49784
49785 # Sed expression to map a string onto a valid variable name.
49786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49787
49788
49789 # IFS
49790 # We need space, tab and new line, in precisely that order.
49791 as_nl='
49792 '
49793 IFS="   $as_nl"
49794
49795 # CDPATH.
49796 $as_unset CDPATH
49797
49798 exec 6>&1
49799
49800 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49801 # report actual input values of CONFIG_FILES etc. instead of their
49802 # values after options handling.  Logging --version etc. is OK.
49803 exec 5>>config.log
49804 {
49805   echo
49806   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49807 ## Running $as_me. ##
49808 _ASBOX
49809 } >&5
49810 cat >&5 <<_CSEOF
49811
49812 This file was extended by wxWidgets $as_me 2.7.0, which was
49813 generated by GNU Autoconf 2.59.  Invocation command line was
49814
49815   CONFIG_FILES    = $CONFIG_FILES
49816   CONFIG_HEADERS  = $CONFIG_HEADERS
49817   CONFIG_LINKS    = $CONFIG_LINKS
49818   CONFIG_COMMANDS = $CONFIG_COMMANDS
49819   $ $0 $@
49820
49821 _CSEOF
49822 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49823 echo >&5
49824 _ACEOF
49825
49826 # Files that config.status was made for.
49827 if test -n "$ac_config_files"; then
49828   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49829 fi
49830
49831 if test -n "$ac_config_headers"; then
49832   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49833 fi
49834
49835 if test -n "$ac_config_links"; then
49836   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49837 fi
49838
49839 if test -n "$ac_config_commands"; then
49840   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49841 fi
49842
49843 cat >>$CONFIG_STATUS <<\_ACEOF
49844
49845 ac_cs_usage="\
49846 \`$as_me' instantiates files from templates according to the
49847 current configuration.
49848
49849 Usage: $0 [OPTIONS] [FILE]...
49850
49851   -h, --help       print this help, then exit
49852   -V, --version    print version number, then exit
49853   -q, --quiet      do not print progress messages
49854   -d, --debug      don't remove temporary files
49855       --recheck    update $as_me by reconfiguring in the same conditions
49856   --file=FILE[:TEMPLATE]
49857                    instantiate the configuration file FILE
49858   --header=FILE[:TEMPLATE]
49859                    instantiate the configuration header FILE
49860
49861 Configuration files:
49862 $config_files
49863
49864 Configuration headers:
49865 $config_headers
49866
49867 Configuration commands:
49868 $config_commands
49869
49870 Report bugs to <bug-autoconf@gnu.org>."
49871 _ACEOF
49872
49873 cat >>$CONFIG_STATUS <<_ACEOF
49874 ac_cs_version="\\
49875 wxWidgets config.status 2.7.0
49876 configured by $0, generated by GNU Autoconf 2.59,
49877   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49878
49879 Copyright (C) 2003 Free Software Foundation, Inc.
49880 This config.status script is free software; the Free Software Foundation
49881 gives unlimited permission to copy, distribute and modify it."
49882 srcdir=$srcdir
49883 INSTALL="$INSTALL"
49884 _ACEOF
49885
49886 cat >>$CONFIG_STATUS <<\_ACEOF
49887 # If no file are specified by the user, then we need to provide default
49888 # value.  By we need to know if files were specified by the user.
49889 ac_need_defaults=:
49890 while test $# != 0
49891 do
49892   case $1 in
49893   --*=*)
49894     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49895     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49896     ac_shift=:
49897     ;;
49898   -*)
49899     ac_option=$1
49900     ac_optarg=$2
49901     ac_shift=shift
49902     ;;
49903   *) # This is not an option, so the user has probably given explicit
49904      # arguments.
49905      ac_option=$1
49906      ac_need_defaults=false;;
49907   esac
49908
49909   case $ac_option in
49910   # Handling of the options.
49911 _ACEOF
49912 cat >>$CONFIG_STATUS <<\_ACEOF
49913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49914     ac_cs_recheck=: ;;
49915   --version | --vers* | -V )
49916     echo "$ac_cs_version"; exit 0 ;;
49917   --he | --h)
49918     # Conflict between --help and --header
49919     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49920 Try \`$0 --help' for more information." >&5
49921 echo "$as_me: error: ambiguous option: $1
49922 Try \`$0 --help' for more information." >&2;}
49923    { (exit 1); exit 1; }; };;
49924   --help | --hel | -h )
49925     echo "$ac_cs_usage"; exit 0 ;;
49926   --debug | --d* | -d )
49927     debug=: ;;
49928   --file | --fil | --fi | --f )
49929     $ac_shift
49930     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49931     ac_need_defaults=false;;
49932   --header | --heade | --head | --hea )
49933     $ac_shift
49934     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49935     ac_need_defaults=false;;
49936   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49937   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49938     ac_cs_silent=: ;;
49939
49940   # This is an error.
49941   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49942 Try \`$0 --help' for more information." >&5
49943 echo "$as_me: error: unrecognized option: $1
49944 Try \`$0 --help' for more information." >&2;}
49945    { (exit 1); exit 1; }; } ;;
49946
49947   *) ac_config_targets="$ac_config_targets $1" ;;
49948
49949   esac
49950   shift
49951 done
49952
49953 ac_configure_extra_args=
49954
49955 if $ac_cs_silent; then
49956   exec 6>/dev/null
49957   ac_configure_extra_args="$ac_configure_extra_args --silent"
49958 fi
49959
49960 _ACEOF
49961 cat >>$CONFIG_STATUS <<_ACEOF
49962 if \$ac_cs_recheck; then
49963   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49964   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49965 fi
49966
49967 _ACEOF
49968
49969 cat >>$CONFIG_STATUS <<_ACEOF
49970 #
49971 # INIT-COMMANDS section.
49972 #
49973
49974
49975             CPP="$CPP"
49976             infile="$srcdir/include/wx/msw/genrcdefs.h"
49977             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49978
49979
49980  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49981  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49982  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49983                      LN_S="${LN_S}"
49984
49985
49986 _ACEOF
49987
49988
49989
49990 cat >>$CONFIG_STATUS <<\_ACEOF
49991 for ac_config_target in $ac_config_targets
49992 do
49993   case "$ac_config_target" in
49994   # Handling of arguments.
49995   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49996   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
49997   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49998   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49999   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
50000   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50001   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50002   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50003   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50005    { (exit 1); exit 1; }; };;
50006   esac
50007 done
50008
50009 # If the user did not use the arguments to specify the items to instantiate,
50010 # then the envvar interface is used.  Set only those that are not.
50011 # We use the long form for the default assignment because of an extremely
50012 # bizarre bug on SunOS 4.1.3.
50013 if $ac_need_defaults; then
50014   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50015   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50016   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50017 fi
50018
50019 # Have a temporary directory for convenience.  Make it in the build tree
50020 # simply because there is no reason to put it here, and in addition,
50021 # creating and moving files from /tmp can sometimes cause problems.
50022 # Create a temporary directory, and hook for its removal unless debugging.
50023 $debug ||
50024 {
50025   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50026   trap '{ (exit 1); exit 1; }' 1 2 13 15
50027 }
50028
50029 # Create a (secure) tmp directory for tmp files.
50030
50031 {
50032   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50033   test -n "$tmp" && test -d "$tmp"
50034 }  ||
50035 {
50036   tmp=./confstat$$-$RANDOM
50037   (umask 077 && mkdir $tmp)
50038 } ||
50039 {
50040    echo "$me: cannot create a temporary directory in ." >&2
50041    { (exit 1); exit 1; }
50042 }
50043
50044 _ACEOF
50045
50046 cat >>$CONFIG_STATUS <<_ACEOF
50047
50048 #
50049 # CONFIG_FILES section.
50050 #
50051
50052 # No need to generate the scripts if there are no CONFIG_FILES.
50053 # This happens for instance when ./config.status config.h
50054 if test -n "\$CONFIG_FILES"; then
50055   # Protect against being on the right side of a sed subst in config.status.
50056   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50057    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50058 s,@SHELL@,$SHELL,;t t
50059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50065 s,@exec_prefix@,$exec_prefix,;t t
50066 s,@prefix@,$prefix,;t t
50067 s,@program_transform_name@,$program_transform_name,;t t
50068 s,@bindir@,$bindir,;t t
50069 s,@sbindir@,$sbindir,;t t
50070 s,@libexecdir@,$libexecdir,;t t
50071 s,@datadir@,$datadir,;t t
50072 s,@sysconfdir@,$sysconfdir,;t t
50073 s,@sharedstatedir@,$sharedstatedir,;t t
50074 s,@localstatedir@,$localstatedir,;t t
50075 s,@libdir@,$libdir,;t t
50076 s,@includedir@,$includedir,;t t
50077 s,@oldincludedir@,$oldincludedir,;t t
50078 s,@infodir@,$infodir,;t t
50079 s,@mandir@,$mandir,;t t
50080 s,@build_alias@,$build_alias,;t t
50081 s,@host_alias@,$host_alias,;t t
50082 s,@target_alias@,$target_alias,;t t
50083 s,@DEFS@,$DEFS,;t t
50084 s,@ECHO_C@,$ECHO_C,;t t
50085 s,@ECHO_N@,$ECHO_N,;t t
50086 s,@ECHO_T@,$ECHO_T,;t t
50087 s,@LIBS@,$LIBS,;t t
50088 s,@build@,$build,;t t
50089 s,@build_cpu@,$build_cpu,;t t
50090 s,@build_vendor@,$build_vendor,;t t
50091 s,@build_os@,$build_os,;t t
50092 s,@host@,$host,;t t
50093 s,@host_cpu@,$host_cpu,;t t
50094 s,@host_vendor@,$host_vendor,;t t
50095 s,@host_os@,$host_os,;t t
50096 s,@target@,$target,;t t
50097 s,@target_cpu@,$target_cpu,;t t
50098 s,@target_vendor@,$target_vendor,;t t
50099 s,@target_os@,$target_os,;t t
50100 s,@CC@,$CC,;t t
50101 s,@CFLAGS@,$CFLAGS,;t t
50102 s,@LDFLAGS@,$LDFLAGS,;t t
50103 s,@CPPFLAGS@,$CPPFLAGS,;t t
50104 s,@ac_ct_CC@,$ac_ct_CC,;t t
50105 s,@EXEEXT@,$EXEEXT,;t t
50106 s,@OBJEXT@,$OBJEXT,;t t
50107 s,@CPP@,$CPP,;t t
50108 s,@EGREP@,$EGREP,;t t
50109 s,@CXX@,$CXX,;t t
50110 s,@CXXFLAGS@,$CXXFLAGS,;t t
50111 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50112 s,@RANLIB@,$RANLIB,;t t
50113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50114 s,@AR@,$AR,;t t
50115 s,@ac_ct_AR@,$ac_ct_AR,;t t
50116 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50117 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50118 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50119 s,@STRIP@,$STRIP,;t t
50120 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50121 s,@WINDRES@,$WINDRES,;t t
50122 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
50123 s,@DLLTOOL@,$DLLTOOL,;t t
50124 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
50125 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50126 s,@LN_S@,$LN_S,;t t
50127 s,@CXXCPP@,$CXXCPP,;t t
50128 s,@subdirs@,$subdirs,;t t
50129 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50130 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50131 s,@GTK_LIBS@,$GTK_LIBS,;t t
50132 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
50133 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50134 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50135 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
50136 s,@X_CFLAGS@,$X_CFLAGS,;t t
50137 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50138 s,@X_LIBS@,$X_LIBS,;t t
50139 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50140 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50141 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
50142 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50143 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
50144 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50145 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
50146 s,@REZ@,$REZ,;t t
50147 s,@DEREZ@,$DEREZ,;t t
50148 s,@SETFILE@,$SETFILE,;t t
50149 s,@LIBICONV@,$LIBICONV,;t t
50150 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50151 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50152 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50153 s,@SDL_LIBS@,$SDL_LIBS,;t t
50154 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50155 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
50156 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50157 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
50158 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50159 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
50160 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50161 s,@GST_LIBS@,$GST_LIBS,;t t
50162 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50163 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50164 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50165 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50166 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50167 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50168 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50169 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50170 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50171 s,@VENDOR@,$VENDOR,;t t
50172 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
50173 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50174 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
50175 s,@WXUNIV@,$WXUNIV,;t t
50176 s,@MONOLITHIC@,$MONOLITHIC,;t t
50177 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50178 s,@EXTRALIBS@,$EXTRALIBS,;t t
50179 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50180 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50181 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50182 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50183 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50184 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50185 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
50186 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
50187 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
50188 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
50189 s,@UNICODE@,$UNICODE,;t t
50190 s,@BUILD@,$BUILD,;t t
50191 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50192 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
50193 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50194 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50195 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50196 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50197 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50198 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50199 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50200 s,@SET_MAKE@,$SET_MAKE,;t t
50201 s,@MAKE_SET@,$MAKE_SET,;t t
50202 s,@NM@,$NM,;t t
50203 s,@ac_ct_NM@,$ac_ct_NM,;t t
50204 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50205 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50206 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50207 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50208 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50209 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
50210 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
50211 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50212 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
50213 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
50214 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50215 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50216 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50217 s,@LIBPREFIX@,$LIBPREFIX,;t t
50218 s,@LIBEXT@,$LIBEXT,;t t
50219 s,@DLLPREFIX@,$DLLPREFIX,;t t
50220 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
50221 s,@dlldir@,$dlldir,;t t
50222 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50223 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50224 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50225 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50226 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50227 s,@PIC_FLAG@,$PIC_FLAG,;t t
50228 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
50229 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50230 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50231 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
50232 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
50233 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50234 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50235 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50236 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50237 s,@GCC_PCH@,$GCC_PCH,;t t
50238 s,@ICC_PCH@,$ICC_PCH,;t t
50239 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50240 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50241 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50242 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50243 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50244 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50245 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50246 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50247 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50248 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50249 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50250 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50251 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50252 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50253 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
50254 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
50255 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50256 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
50257 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
50258 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
50259 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
50260 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
50261 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
50262 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
50263 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
50264 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
50265 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
50266 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
50267 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
50268 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
50269 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
50270 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
50271 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
50272 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
50273 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
50274 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
50275 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
50276 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
50277 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50278 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50279 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50280 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50281 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50282 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
50283 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
50284 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50285 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
50286 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
50287 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50288 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50289 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
50290 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
50291 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
50292 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50293 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
50294 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50295 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
50296 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
50297 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
50298 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
50299 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
50300 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50301 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50302 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50303 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50304 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50305 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50306 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50307 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
50308 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50309 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50310 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
50311 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50312 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50313 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50314 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50315 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
50316 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50317 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50318 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50319 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50320 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50321 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
50322 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
50323 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
50324 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
50325 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
50326 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50327 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50328 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
50329 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
50330 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50331 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50332 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50333 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
50334 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50335 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
50336 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
50337 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50338 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50339 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50340 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50341 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50342 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50343 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50344 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50345 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50346 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50347 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
50348 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
50349 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50350 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50351 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
50352 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50353 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50354 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
50355 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
50356 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50357 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50358 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50359 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50360 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50361 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50362 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50363 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50364 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50365 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50366 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50367 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50368 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50369 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
50370 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
50371 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
50372 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50373 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
50374 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
50375 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
50376 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50377 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50378 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
50379 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50380 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
50381 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
50382 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
50383 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
50384 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
50385 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50386 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50387 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50388 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50389 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50390 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50391 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50392 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
50393 s,@SHARED@,$SHARED,;t t
50394 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50395 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
50396 s,@USE_GUI@,$USE_GUI,;t t
50397 s,@AFMINSTALL@,$AFMINSTALL,;t t
50398 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50399 s,@TOOLKIT@,$TOOLKIT,;t t
50400 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
50401 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
50402 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
50403 s,@cross_compiling@,$cross_compiling,;t t
50404 s,@WIDGET_SET@,$WIDGET_SET,;t t
50405 s,@WX_RELEASE@,$WX_RELEASE,;t t
50406 s,@WX_VERSION@,$WX_VERSION,;t t
50407 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50408 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50409 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
50410 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50411 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50412 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50413 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
50414 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50415 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
50416 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
50417 s,@EXE_LINKER@,$EXE_LINKER,;t t
50418 s,@GUIDIST@,$GUIDIST,;t t
50419 s,@DISTDIR@,$DISTDIR,;t t
50420 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50421 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
50422 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50423 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50424 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
50425 s,@RESCOMP@,$RESCOMP,;t t
50426 s,@RESFLAGS@,$RESFLAGS,;t t
50427 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50428 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50429 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50430 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
50431 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
50432 s,@MACSETFILE@,$MACSETFILE,;t t
50433 s,@GCC@,$GCC,;t t
50434 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50435 s,@LIBOBJS@,$LIBOBJS,;t t
50436 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50437 CEOF
50438
50439 _ACEOF
50440
50441   cat >>$CONFIG_STATUS <<\_ACEOF
50442   # Split the substitutions into bite-sized pieces for seds with
50443   # small command number limits, like on Digital OSF/1 and HP-UX.
50444   ac_max_sed_lines=48
50445   ac_sed_frag=1 # Number of current file.
50446   ac_beg=1 # First line for current file.
50447   ac_end=$ac_max_sed_lines # Line after last line for current file.
50448   ac_more_lines=:
50449   ac_sed_cmds=
50450   while $ac_more_lines; do
50451     if test $ac_beg -gt 1; then
50452       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50453     else
50454       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50455     fi
50456     if test ! -s $tmp/subs.frag; then
50457       ac_more_lines=false
50458     else
50459       # The purpose of the label and of the branching condition is to
50460       # speed up the sed processing (if there are no `@' at all, there
50461       # is no need to browse any of the substitutions).
50462       # These are the two extra sed commands mentioned above.
50463       (echo ':t
50464   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50465       if test -z "$ac_sed_cmds"; then
50466         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50467       else
50468         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50469       fi
50470       ac_sed_frag=`expr $ac_sed_frag + 1`
50471       ac_beg=$ac_end
50472       ac_end=`expr $ac_end + $ac_max_sed_lines`
50473     fi
50474   done
50475   if test -z "$ac_sed_cmds"; then
50476     ac_sed_cmds=cat
50477   fi
50478 fi # test -n "$CONFIG_FILES"
50479
50480 _ACEOF
50481 cat >>$CONFIG_STATUS <<\_ACEOF
50482 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50483   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50484   case $ac_file in
50485   - | *:- | *:-:* ) # input from stdin
50486         cat >$tmp/stdin
50487         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50488         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50489   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50490         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50491   * )   ac_file_in=$ac_file.in ;;
50492   esac
50493
50494   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50495   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50497          X"$ac_file" : 'X\(//\)[^/]' \| \
50498          X"$ac_file" : 'X\(//\)$' \| \
50499          X"$ac_file" : 'X\(/\)' \| \
50500          .     : '\(.\)' 2>/dev/null ||
50501 echo X"$ac_file" |
50502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50504           /^X\(\/\/\)$/{ s//\1/; q; }
50505           /^X\(\/\).*/{ s//\1/; q; }
50506           s/.*/./; q'`
50507   { if $as_mkdir_p; then
50508     mkdir -p "$ac_dir"
50509   else
50510     as_dir="$ac_dir"
50511     as_dirs=
50512     while test ! -d "$as_dir"; do
50513       as_dirs="$as_dir $as_dirs"
50514       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50516          X"$as_dir" : 'X\(//\)[^/]' \| \
50517          X"$as_dir" : 'X\(//\)$' \| \
50518          X"$as_dir" : 'X\(/\)' \| \
50519          .     : '\(.\)' 2>/dev/null ||
50520 echo X"$as_dir" |
50521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50523           /^X\(\/\/\)$/{ s//\1/; q; }
50524           /^X\(\/\).*/{ s//\1/; q; }
50525           s/.*/./; q'`
50526     done
50527     test ! -n "$as_dirs" || mkdir $as_dirs
50528   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50530    { (exit 1); exit 1; }; }; }
50531
50532   ac_builddir=.
50533
50534 if test "$ac_dir" != .; then
50535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50536   # A "../" for each directory in $ac_dir_suffix.
50537   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50538 else
50539   ac_dir_suffix= ac_top_builddir=
50540 fi
50541
50542 case $srcdir in
50543   .)  # No --srcdir option.  We are building in place.
50544     ac_srcdir=.
50545     if test -z "$ac_top_builddir"; then
50546        ac_top_srcdir=.
50547     else
50548        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50549     fi ;;
50550   [\\/]* | ?:[\\/]* )  # Absolute path.
50551     ac_srcdir=$srcdir$ac_dir_suffix;
50552     ac_top_srcdir=$srcdir ;;
50553   *) # Relative path.
50554     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50555     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50556 esac
50557
50558 # Do not use `cd foo && pwd` to compute absolute paths, because
50559 # the directories may not exist.
50560 case `pwd` in
50561 .) ac_abs_builddir="$ac_dir";;
50562 *)
50563   case "$ac_dir" in
50564   .) ac_abs_builddir=`pwd`;;
50565   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50566   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50567   esac;;
50568 esac
50569 case $ac_abs_builddir in
50570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50571 *)
50572   case ${ac_top_builddir}. in
50573   .) ac_abs_top_builddir=$ac_abs_builddir;;
50574   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50575   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50576   esac;;
50577 esac
50578 case $ac_abs_builddir in
50579 .) ac_abs_srcdir=$ac_srcdir;;
50580 *)
50581   case $ac_srcdir in
50582   .) ac_abs_srcdir=$ac_abs_builddir;;
50583   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50584   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50585   esac;;
50586 esac
50587 case $ac_abs_builddir in
50588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50589 *)
50590   case $ac_top_srcdir in
50591   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50592   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50593   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50594   esac;;
50595 esac
50596
50597
50598   case $INSTALL in
50599   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50600   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50601   esac
50602
50603   # Let's still pretend it is `configure' which instantiates (i.e., don't
50604   # use $as_me), people would be surprised to read:
50605   #    /* config.h.  Generated by config.status.  */
50606   if test x"$ac_file" = x-; then
50607     configure_input=
50608   else
50609     configure_input="$ac_file.  "
50610   fi
50611   configure_input=$configure_input"Generated from `echo $ac_file_in |
50612                                      sed 's,.*/,,'` by configure."
50613
50614   # First look for the input files in the build tree, otherwise in the
50615   # src tree.
50616   ac_file_inputs=`IFS=:
50617     for f in $ac_file_in; do
50618       case $f in
50619       -) echo $tmp/stdin ;;
50620       [\\/$]*)
50621          # Absolute (can't be DOS-style, as IFS=:)
50622          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50623 echo "$as_me: error: cannot find input file: $f" >&2;}
50624    { (exit 1); exit 1; }; }
50625          echo "$f";;
50626       *) # Relative
50627          if test -f "$f"; then
50628            # Build tree
50629            echo "$f"
50630          elif test -f "$srcdir/$f"; then
50631            # Source tree
50632            echo "$srcdir/$f"
50633          else
50634            # /dev/null tree
50635            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50636 echo "$as_me: error: cannot find input file: $f" >&2;}
50637    { (exit 1); exit 1; }; }
50638          fi;;
50639       esac
50640     done` || { (exit 1); exit 1; }
50641
50642   if test x"$ac_file" != x-; then
50643     { echo "$as_me:$LINENO: creating $ac_file" >&5
50644 echo "$as_me: creating $ac_file" >&6;}
50645     rm -f "$ac_file"
50646   fi
50647 _ACEOF
50648 cat >>$CONFIG_STATUS <<_ACEOF
50649   sed "$ac_vpsub
50650 $extrasub
50651 _ACEOF
50652 cat >>$CONFIG_STATUS <<\_ACEOF
50653 :t
50654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50655 s,@configure_input@,$configure_input,;t t
50656 s,@srcdir@,$ac_srcdir,;t t
50657 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50658 s,@top_srcdir@,$ac_top_srcdir,;t t
50659 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50660 s,@builddir@,$ac_builddir,;t t
50661 s,@abs_builddir@,$ac_abs_builddir,;t t
50662 s,@top_builddir@,$ac_top_builddir,;t t
50663 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50664 s,@INSTALL@,$ac_INSTALL,;t t
50665 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50666   rm -f $tmp/stdin
50667   if test x"$ac_file" != x-; then
50668     mv $tmp/out $ac_file
50669   else
50670     cat $tmp/out
50671     rm -f $tmp/out
50672   fi
50673
50674   # Run the commands associated with the file.
50675   case $ac_file in
50676     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
50677     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
50678   esac
50679 done
50680 _ACEOF
50681 cat >>$CONFIG_STATUS <<\_ACEOF
50682
50683 #
50684 # CONFIG_HEADER section.
50685 #
50686
50687 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50688 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50689 #
50690 # ac_d sets the value in "#define NAME VALUE" lines.
50691 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50692 ac_dB='[         ].*$,\1#\2'
50693 ac_dC=' '
50694 ac_dD=',;t'
50695 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50696 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50697 ac_uB='$,\1#\2define\3'
50698 ac_uC=' '
50699 ac_uD=',;t'
50700
50701 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50703   case $ac_file in
50704   - | *:- | *:-:* ) # input from stdin
50705         cat >$tmp/stdin
50706         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50708   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50709         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50710   * )   ac_file_in=$ac_file.in ;;
50711   esac
50712
50713   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50714 echo "$as_me: creating $ac_file" >&6;}
50715
50716   # First look for the input files in the build tree, otherwise in the
50717   # src tree.
50718   ac_file_inputs=`IFS=:
50719     for f in $ac_file_in; do
50720       case $f in
50721       -) echo $tmp/stdin ;;
50722       [\\/$]*)
50723          # Absolute (can't be DOS-style, as IFS=:)
50724          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50725 echo "$as_me: error: cannot find input file: $f" >&2;}
50726    { (exit 1); exit 1; }; }
50727          # Do quote $f, to prevent DOS paths from being IFS'd.
50728          echo "$f";;
50729       *) # Relative
50730          if test -f "$f"; then
50731            # Build tree
50732            echo "$f"
50733          elif test -f "$srcdir/$f"; then
50734            # Source tree
50735            echo "$srcdir/$f"
50736          else
50737            # /dev/null tree
50738            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50739 echo "$as_me: error: cannot find input file: $f" >&2;}
50740    { (exit 1); exit 1; }; }
50741          fi;;
50742       esac
50743     done` || { (exit 1); exit 1; }
50744   # Remove the trailing spaces.
50745   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50746
50747 _ACEOF
50748
50749 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50750 # `conftest.undefs', that substitutes the proper values into
50751 # config.h.in to produce config.h.  The first handles `#define'
50752 # templates, and the second `#undef' templates.
50753 # And first: Protect against being on the right side of a sed subst in
50754 # config.status.  Protect against being in an unquoted here document
50755 # in config.status.
50756 rm -f conftest.defines conftest.undefs
50757 # Using a here document instead of a string reduces the quoting nightmare.
50758 # Putting comments in sed scripts is not portable.
50759 #
50760 # `end' is used to avoid that the second main sed command (meant for
50761 # 0-ary CPP macros) applies to n-ary macro definitions.
50762 # See the Autoconf documentation for `clear'.
50763 cat >confdef2sed.sed <<\_ACEOF
50764 s/[\\&,]/\\&/g
50765 s,[\\$`],\\&,g
50766 t clear
50767 : clear
50768 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50769 t end
50770 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50771 : end
50772 _ACEOF
50773 # If some macros were called several times there might be several times
50774 # the same #defines, which is useless.  Nevertheless, we may not want to
50775 # sort them, since we want the *last* AC-DEFINE to be honored.
50776 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50777 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50778 rm -f confdef2sed.sed
50779
50780 # This sed command replaces #undef with comments.  This is necessary, for
50781 # example, in the case of _POSIX_SOURCE, which is predefined and required
50782 # on some systems where configure will not decide to define it.
50783 cat >>conftest.undefs <<\_ACEOF
50784 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50785 _ACEOF
50786
50787 # Break up conftest.defines because some shells have a limit on the size
50788 # of here documents, and old seds have small limits too (100 cmds).
50789 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50790 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50791 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50792 echo '  :' >>$CONFIG_STATUS
50793 rm -f conftest.tail
50794 while grep . conftest.defines >/dev/null
50795 do
50796   # Write a limited-size here document to $tmp/defines.sed.
50797   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50798   # Speed up: don't consider the non `#define' lines.
50799   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50800   # Work around the forget-to-reset-the-flag bug.
50801   echo 't clr' >>$CONFIG_STATUS
50802   echo ': clr' >>$CONFIG_STATUS
50803   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50804   echo 'CEOF
50805   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50806   rm -f $tmp/in
50807   mv $tmp/out $tmp/in
50808 ' >>$CONFIG_STATUS
50809   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50810   rm -f conftest.defines
50811   mv conftest.tail conftest.defines
50812 done
50813 rm -f conftest.defines
50814 echo '  fi # grep' >>$CONFIG_STATUS
50815 echo >>$CONFIG_STATUS
50816
50817 # Break up conftest.undefs because some shells have a limit on the size
50818 # of here documents, and old seds have small limits too (100 cmds).
50819 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50820 rm -f conftest.tail
50821 while grep . conftest.undefs >/dev/null
50822 do
50823   # Write a limited-size here document to $tmp/undefs.sed.
50824   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50825   # Speed up: don't consider the non `#undef'
50826   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50827   # Work around the forget-to-reset-the-flag bug.
50828   echo 't clr' >>$CONFIG_STATUS
50829   echo ': clr' >>$CONFIG_STATUS
50830   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50831   echo 'CEOF
50832   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50833   rm -f $tmp/in
50834   mv $tmp/out $tmp/in
50835 ' >>$CONFIG_STATUS
50836   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50837   rm -f conftest.undefs
50838   mv conftest.tail conftest.undefs
50839 done
50840 rm -f conftest.undefs
50841
50842 cat >>$CONFIG_STATUS <<\_ACEOF
50843   # Let's still pretend it is `configure' which instantiates (i.e., don't
50844   # use $as_me), people would be surprised to read:
50845   #    /* config.h.  Generated by config.status.  */
50846   if test x"$ac_file" = x-; then
50847     echo "/* Generated by configure.  */" >$tmp/config.h
50848   else
50849     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50850   fi
50851   cat $tmp/in >>$tmp/config.h
50852   rm -f $tmp/in
50853   if test x"$ac_file" != x-; then
50854     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50855       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50856 echo "$as_me: $ac_file is unchanged" >&6;}
50857     else
50858       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50860          X"$ac_file" : 'X\(//\)[^/]' \| \
50861          X"$ac_file" : 'X\(//\)$' \| \
50862          X"$ac_file" : 'X\(/\)' \| \
50863          .     : '\(.\)' 2>/dev/null ||
50864 echo X"$ac_file" |
50865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50867           /^X\(\/\/\)$/{ s//\1/; q; }
50868           /^X\(\/\).*/{ s//\1/; q; }
50869           s/.*/./; q'`
50870       { if $as_mkdir_p; then
50871     mkdir -p "$ac_dir"
50872   else
50873     as_dir="$ac_dir"
50874     as_dirs=
50875     while test ! -d "$as_dir"; do
50876       as_dirs="$as_dir $as_dirs"
50877       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50879          X"$as_dir" : 'X\(//\)[^/]' \| \
50880          X"$as_dir" : 'X\(//\)$' \| \
50881          X"$as_dir" : 'X\(/\)' \| \
50882          .     : '\(.\)' 2>/dev/null ||
50883 echo X"$as_dir" |
50884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50886           /^X\(\/\/\)$/{ s//\1/; q; }
50887           /^X\(\/\).*/{ s//\1/; q; }
50888           s/.*/./; q'`
50889     done
50890     test ! -n "$as_dirs" || mkdir $as_dirs
50891   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50893    { (exit 1); exit 1; }; }; }
50894
50895       rm -f $ac_file
50896       mv $tmp/config.h $ac_file
50897     fi
50898   else
50899     cat $tmp/config.h
50900     rm -f $tmp/config.h
50901   fi
50902 done
50903 _ACEOF
50904 cat >>$CONFIG_STATUS <<\_ACEOF
50905
50906 #
50907 # CONFIG_COMMANDS section.
50908 #
50909 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50910   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50911   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50912   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50913 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50914          X"$ac_dest" : 'X\(//\)[^/]' \| \
50915          X"$ac_dest" : 'X\(//\)$' \| \
50916          X"$ac_dest" : 'X\(/\)' \| \
50917          .     : '\(.\)' 2>/dev/null ||
50918 echo X"$ac_dest" |
50919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50921           /^X\(\/\/\)$/{ s//\1/; q; }
50922           /^X\(\/\).*/{ s//\1/; q; }
50923           s/.*/./; q'`
50924   { if $as_mkdir_p; then
50925     mkdir -p "$ac_dir"
50926   else
50927     as_dir="$ac_dir"
50928     as_dirs=
50929     while test ! -d "$as_dir"; do
50930       as_dirs="$as_dir $as_dirs"
50931       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50933          X"$as_dir" : 'X\(//\)[^/]' \| \
50934          X"$as_dir" : 'X\(//\)$' \| \
50935          X"$as_dir" : 'X\(/\)' \| \
50936          .     : '\(.\)' 2>/dev/null ||
50937 echo X"$as_dir" |
50938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50940           /^X\(\/\/\)$/{ s//\1/; q; }
50941           /^X\(\/\).*/{ s//\1/; q; }
50942           s/.*/./; q'`
50943     done
50944     test ! -n "$as_dirs" || mkdir $as_dirs
50945   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50947    { (exit 1); exit 1; }; }; }
50948
50949   ac_builddir=.
50950
50951 if test "$ac_dir" != .; then
50952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50953   # A "../" for each directory in $ac_dir_suffix.
50954   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50955 else
50956   ac_dir_suffix= ac_top_builddir=
50957 fi
50958
50959 case $srcdir in
50960   .)  # No --srcdir option.  We are building in place.
50961     ac_srcdir=.
50962     if test -z "$ac_top_builddir"; then
50963        ac_top_srcdir=.
50964     else
50965        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50966     fi ;;
50967   [\\/]* | ?:[\\/]* )  # Absolute path.
50968     ac_srcdir=$srcdir$ac_dir_suffix;
50969     ac_top_srcdir=$srcdir ;;
50970   *) # Relative path.
50971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50973 esac
50974
50975 # Do not use `cd foo && pwd` to compute absolute paths, because
50976 # the directories may not exist.
50977 case `pwd` in
50978 .) ac_abs_builddir="$ac_dir";;
50979 *)
50980   case "$ac_dir" in
50981   .) ac_abs_builddir=`pwd`;;
50982   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50983   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50984   esac;;
50985 esac
50986 case $ac_abs_builddir in
50987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50988 *)
50989   case ${ac_top_builddir}. in
50990   .) ac_abs_top_builddir=$ac_abs_builddir;;
50991   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50992   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50993   esac;;
50994 esac
50995 case $ac_abs_builddir in
50996 .) ac_abs_srcdir=$ac_srcdir;;
50997 *)
50998   case $ac_srcdir in
50999   .) ac_abs_srcdir=$ac_abs_builddir;;
51000   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51001   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51002   esac;;
51003 esac
51004 case $ac_abs_builddir in
51005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51006 *)
51007   case $ac_top_srcdir in
51008   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51009   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51010   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51011   esac;;
51012 esac
51013
51014
51015   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51016 echo "$as_me: executing $ac_dest commands" >&6;}
51017   case $ac_dest in
51018     rcdefs.h )
51019             mkdir -p $outdir &&
51020             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51021          ;;
51022     wx-config )  rm -f wx-config
51023                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51024                     ;;
51025   esac
51026 done
51027 _ACEOF
51028
51029 cat >>$CONFIG_STATUS <<\_ACEOF
51030
51031 { (exit 0); exit 0; }
51032 _ACEOF
51033 chmod +x $CONFIG_STATUS
51034 ac_clean_files=$ac_clean_files_save
51035
51036
51037 # configure is writing to config.log, and then calls config.status.
51038 # config.status does its own redirection, appending to config.log.
51039 # Unfortunately, on DOS this fails, as config.log is still kept open
51040 # by configure, so config.status won't be able to write to it; its
51041 # output is simply discarded.  So we exec the FD to /dev/null,
51042 # effectively closing config.log, so it can be properly (re)opened and
51043 # appended to by config.status.  When coming back to configure, we
51044 # need to make the FD available again.
51045 if test "$no_create" != yes; then
51046   ac_cs_success=:
51047   ac_config_status_args=
51048   test "$silent" = yes &&
51049     ac_config_status_args="$ac_config_status_args --quiet"
51050   exec 5>/dev/null
51051   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51052   exec 5>>config.log
51053   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51054   # would make configure fail if this is the last instruction.
51055   $ac_cs_success || { (exit 1); exit 1; }
51056 fi
51057
51058 #
51059 # CONFIG_SUBDIRS section.
51060 #
51061 if test "$no_recursion" != yes; then
51062
51063   # Remove --cache-file and --srcdir arguments so they do not pile up.
51064   ac_sub_configure_args=
51065   ac_prev=
51066   for ac_arg in $ac_configure_args; do
51067     if test -n "$ac_prev"; then
51068       ac_prev=
51069       continue
51070     fi
51071     case $ac_arg in
51072     -cache-file | --cache-file | --cache-fil | --cache-fi \
51073     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51074       ac_prev=cache_file ;;
51075     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51076     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51077     | --c=*)
51078       ;;
51079     --config-cache | -C)
51080       ;;
51081     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51082       ac_prev=srcdir ;;
51083     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51084       ;;
51085     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51086       ac_prev=prefix ;;
51087     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51088       ;;
51089     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51090     esac
51091   done
51092
51093   # Always prepend --prefix to ensure using the same prefix
51094   # in subdir configurations.
51095   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51096
51097   ac_popdir=`pwd`
51098   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51099
51100     # Do not complain, so a configure script can configure whichever
51101     # parts of a large source tree are present.
51102     test -d $srcdir/$ac_dir || continue
51103
51104     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51105 echo "$as_me: configuring in $ac_dir" >&6;}
51106     { if $as_mkdir_p; then
51107     mkdir -p "$ac_dir"
51108   else
51109     as_dir="$ac_dir"
51110     as_dirs=
51111     while test ! -d "$as_dir"; do
51112       as_dirs="$as_dir $as_dirs"
51113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51115          X"$as_dir" : 'X\(//\)[^/]' \| \
51116          X"$as_dir" : 'X\(//\)$' \| \
51117          X"$as_dir" : 'X\(/\)' \| \
51118          .     : '\(.\)' 2>/dev/null ||
51119 echo X"$as_dir" |
51120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51122           /^X\(\/\/\)$/{ s//\1/; q; }
51123           /^X\(\/\).*/{ s//\1/; q; }
51124           s/.*/./; q'`
51125     done
51126     test ! -n "$as_dirs" || mkdir $as_dirs
51127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51129    { (exit 1); exit 1; }; }; }
51130
51131     ac_builddir=.
51132
51133 if test "$ac_dir" != .; then
51134   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51135   # A "../" for each directory in $ac_dir_suffix.
51136   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51137 else
51138   ac_dir_suffix= ac_top_builddir=
51139 fi
51140
51141 case $srcdir in
51142   .)  # No --srcdir option.  We are building in place.
51143     ac_srcdir=.
51144     if test -z "$ac_top_builddir"; then
51145        ac_top_srcdir=.
51146     else
51147        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51148     fi ;;
51149   [\\/]* | ?:[\\/]* )  # Absolute path.
51150     ac_srcdir=$srcdir$ac_dir_suffix;
51151     ac_top_srcdir=$srcdir ;;
51152   *) # Relative path.
51153     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51154     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51155 esac
51156
51157 # Do not use `cd foo && pwd` to compute absolute paths, because
51158 # the directories may not exist.
51159 case `pwd` in
51160 .) ac_abs_builddir="$ac_dir";;
51161 *)
51162   case "$ac_dir" in
51163   .) ac_abs_builddir=`pwd`;;
51164   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51165   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51166   esac;;
51167 esac
51168 case $ac_abs_builddir in
51169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51170 *)
51171   case ${ac_top_builddir}. in
51172   .) ac_abs_top_builddir=$ac_abs_builddir;;
51173   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51174   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51175   esac;;
51176 esac
51177 case $ac_abs_builddir in
51178 .) ac_abs_srcdir=$ac_srcdir;;
51179 *)
51180   case $ac_srcdir in
51181   .) ac_abs_srcdir=$ac_abs_builddir;;
51182   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51183   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51184   esac;;
51185 esac
51186 case $ac_abs_builddir in
51187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51188 *)
51189   case $ac_top_srcdir in
51190   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51191   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51192   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51193   esac;;
51194 esac
51195
51196
51197     cd $ac_dir
51198
51199     # Check for guested configure; otherwise get Cygnus style configure.
51200     if test -f $ac_srcdir/configure.gnu; then
51201       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51202     elif test -f $ac_srcdir/configure; then
51203       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51204     elif test -f $ac_srcdir/configure.in; then
51205       ac_sub_configure=$ac_configure
51206     else
51207       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51209       ac_sub_configure=
51210     fi
51211
51212     # The recursion is here.
51213     if test -n "$ac_sub_configure"; then
51214       # Make the cache file name correct relative to the subdirectory.
51215       case $cache_file in
51216       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51217       *) # Relative path.
51218         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
51219       esac
51220
51221       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51222 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51223       # The eval makes quoting arguments work.
51224       eval $ac_sub_configure $ac_sub_configure_args \
51225            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51226         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51227 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51228    { (exit 1); exit 1; }; }
51229     fi
51230
51231     cd "$ac_popdir"
51232   done
51233 fi
51234
51235
51236 echo
51237 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
51238 echo ""
51239 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
51240 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
51241
51242 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
51243 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
51244 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
51245
51246 echo "  What level of wxWidgets compatibility should be enabled?"
51247 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
51248 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
51249
51250 echo "  Which libraries should wxWidgets use?"
51251 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
51252 echo "                                       png                ${wxUSE_LIBPNG-none}"
51253 echo "                                       regex              ${wxUSE_REGEX}"
51254 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
51255 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51256 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
51257 fi
51258 echo "                                       zlib               ${wxUSE_ZLIB}"
51259 echo "                                       odbc               ${wxUSE_ODBC}"
51260 echo "                                       expat              ${wxUSE_EXPAT}"
51261 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
51262 echo "                                       sdl                ${wxUSE_LIBSDL}"
51263
51264 echo ""
51265