regenerated after wxColour/File/Dir/FontPickerCtrl changes
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS 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_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_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_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_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --enable-monolithic     build wxWidgets as single library
872   --enable-plugins        build parts of wxWidgets as loadable components
873   --enable-universal      use wxWidgets GUI controls instead of native ones
874   --enable-nanox          use NanoX
875   --disable-gtk2          use GTK+ 1.2 instead of 2.0
876   --enable-gpe            use GNOME PDA Environment features if possible
877   --enable-shared         create shared library code
878   --enable-optimise       create optimised code
879   --enable-debug          same as debug_flag and debug_info
880   --enable-stl            use STL for containers
881   --enable-omf            use OMF object format
882   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
883   --enable-debug_info     create code with debugging information
884   --enable-debug_gdb      create code with extra GDB debugging information
885   --enable-debug_cntxt    use wxDebugContext
886   --enable-mem_tracing    create code with memory tracing
887   --enable-profile        create code with profiling information
888   --enable-no_rtti        create code without RTTI information
889   --enable-no_exceptions  create code without C++ exceptions handling
890   --enable-permissive     compile code disregarding strict ANSI
891   --enable-no_deps        create code without dependency information
892   --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
893   --enable-compat24       enable wxWidgets 2.4 compatibility
894   --disable-compat26      disable wxWidgets 2.6 compatibility
895   --disable-rpath         disable use of rpath for uninstalled builds
896   --enable-intl           use internationalization system
897   --enable-config         use wxConfig (and derived) classes
898   --enable-protocols      use wxProtocol and derived classes
899   --enable-ftp            use wxFTP (requires wxProtocol
900   --enable-http           use wxHTTP (requires wxProtocol
901   --enable-fileproto      use wxFileProto class (requires wxProtocol
902   --enable-sockets        use socket/network classes
903   --enable-ole            use OLE classes (Win32 only)
904   --enable-dataobj        use data object classes
905   --enable-ipc            use interprocess communication (wxSocket etc.)
906   --enable-apple_ieee     use the Apple IEEE codec
907   --enable-arcstream      use wxArchive streams
908   --enable-backtrace      use wxStackWalker class for getting backtraces
909   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
910   --enable-cmdline        use wxCmdLineParser class
911   --enable-datetime       use wxDateTime class
912   --enable-debugreport    use wxDebugReport class
913   --enable-dialupman      use dialup network classes
914   --enable-dynlib         use wxLibrary class for DLL loading
915   --enable-dynamicloader  use (new) wxDynamicLibrary class
916   --enable-exceptions     build exception-safe library
917   --enable-ffile          use wxFFile class
918   --enable-file           use wxFile class
919   --enable-filesystem     use virtual file systems classes
920   --enable-fontmap        use font encodings conversion classes
921   --enable-fs_inet        use virtual HTTP/FTP filesystems
922   --enable-fs_zip         use virtual ZIP filesystems
923   --enable-geometry       use geometry class
924   --enable-log            use logging system
925   --enable-longlong       use wxLongLong class
926   --enable-mimetype       use wxMimeTypesManager
927   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
928   --enable-snglinst       use wxSingleInstanceChecker class
929   --enable-std_iostreams  use standard C++ stream classes
930   --enable-std_string     use standard C++ string classes
931   --enable-stdpaths       use wxStandardPaths class
932   --enable-stopwatch      use wxStopWatch class
933   --enable-streams        use wxStream etc classes
934   --enable-sysoptions     use wxSystemOptions
935   --enable-textbuf        use wxTextBuffer class
936   --enable-textfile       use wxTextFile class
937   --enable-timer          use wxTimer class
938   --enable-unicode        compile wxString with Unicode support
939   --enable-sound          use wxSound class
940   --enable-mediactrl      use wxMediaCtrl class
941   --enable-gstreamer8      force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
942   --enable-wxprintfv      use wxWidgets implementation of vprintf()
943   --enable-zipstream      use wxZip streams
944   --enable-url            use wxURL class
945   --enable-protocol       use wxProtocol class
946   --enable-protocol-http  HTTP support in wxProtocol
947   --enable-protocol-ftp   FTP support in wxProtocol
948   --enable-protocol-file  FILE support in wxProtocol
949   --enable-threads        use threads
950   --enable-docview        use document view architecture
951   --enable-help           use help subsystem
952   --enable-mshtmlhelp     use MS HTML Help (win32)
953   --enable-html           use wxHTML sub-library
954   --enable-htmlhelp       use wxHTML-based help
955   --enable-xrc            use XRC resources sub-library
956   --enable-constraints    use layout-constraints system
957   --enable-printarch      use printing architecture
958   --enable-mdi            use multiple document interface architecture
959   --enable-mdidoc         use docview architecture with MDI
960   --enable-loggui         use standard GUI logger
961   --enable-logwin         use wxLogWindow
962   --enable-logdialog      use wxLogDialog
963   --enable-webkit         use wxWebKitCtrl (Mac)
964   --enable-richtext       use wxRichTextCtrl
965   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
966   --enable-prologio       not available; see contrib
967   --enable-resources      not available; see contrib
968   --enable-clipboard      use wxClipboard class
969   --enable-dnd            use Drag'n'Drop classes
970   --enable-metafile       use win32 metafiles
971   --enable-controls       use all usual controls
972   --enable-accel          use accelerators
973   --enable-button         use wxButton class
974   --enable-bmpbutton      use wxBitmapButton class
975   --enable-calendar       use wxCalendarCtrl class
976   --enable-caret          use wxCaret class
977   --enable-checkbox       use wxCheckBox class
978   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
979   --enable-choice         use wxChoice class
980   --enable-choicebook     use wxChoicebook class
981   --enable-colourpicker   use wxColourPickerCtrl class
982   --enable-combobox       use wxComboBox class
983   --enable-comboctrl      use wxComboCtrl class
984   --enable-datepick       use wxDatePickerCtrl class
985   --enable-dirpicker      use wxDirPickerCtrl class
986   --enable-display        use wxDisplay class
987   --enable-filepicker     use wxFilePickerCtrl class
988   --enable-fontpicker     use wxFontPickerCtrl class
989   --enable-gauge          use wxGauge class
990   --enable-grid           use wxGrid class
991   --enable-dataviewctrl,  use wxDataViewCtrl class
992   --enable-hyperlink      use wxHyperlinkCtrl class
993   --enable-imaglist       use wxImageList class
994   --enable-listbook       use wxListbook class
995   --enable-listbox        use wxListBox class
996   --enable-listctrl       use wxListCtrl class
997   --enable-notebook       use wxNotebook class
998   --enable-odcombobox     use wxOwnerDrawnComboBox class
999   --enable-radiobox       use wxRadioBox class
1000   --enable-radiobtn       use wxRadioButton class
1001   --enable-sash           use wxSashWindow class
1002   --enable-scrollbar      use wxScrollBar class and scrollable windows
1003   --enable-slider         use wxSlider class
1004   --enable-spinbtn        use wxSpinButton class
1005   --enable-spinctrl       use wxSpinCtrl class
1006   --enable-splitter       use wxSplitterWindow class
1007   --enable-statbmp        use wxStaticBitmap class
1008   --enable-statbox        use wxStaticBox class
1009   --enable-statline       use wxStaticLine class
1010   --enable-stattext       use wxStaticText class
1011   --enable-statusbar      use wxStatusBar class
1012   --enable-tabdialog      use wxTabControl class
1013   --enable-textctrl       use wxTextCtrl class
1014   --enable-togglebtn      use wxToggleButton class
1015   --enable-toolbar        use wxToolBar class
1016   --enable-tbarnative     use native wxToolBar class
1017   --enable-tbarsmpl       use wxToolBarSimple class
1018   --enable-treebook       use wxTreebook class
1019   --enable-toolbook       use wxToolbook class
1020   --enable-treectrl       use wxTreeCtrl class
1021   --enable-tipwindow      use wxTipWindow class
1022   --enable-popupwin       use wxPopUpWindow class
1023   --enable-commondlg      use all common dialogs
1024   --enable-choicedlg      use wxChoiceDialog
1025   --enable-coldlg         use wxColourDialog
1026   --enable-filedlg        use wxFileDialog
1027   --enable-finddlg        use wxFindReplaceDialog
1028   --enable-fontdlg        use wxFontDialog
1029   --enable-dirdlg         use wxDirDialog
1030   --enable-msgdlg         use wxMessageDialog
1031   --enable-numberdlg      use wxNumberEntryDialog
1032   --enable-splash         use wxSplashScreen
1033   --enable-textdlg        use wxTextDialog
1034   --enable-tipdlg         use startup tips
1035   --enable-progressdlg    use wxProgressDialog
1036   --enable-wizarddlg      use wxWizard
1037   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1038   --enable-miniframe      use wxMiniFrame class
1039   --enable-tooltips       use wxToolTip class
1040   --enable-splines        use spline drawing code
1041   --enable-mousewheel     use mousewheel
1042   --enable-validators     use wxValidator and derived classes
1043   --enable-busyinfo       use wxBusyInfo
1044   --enable-joystick       use wxJoystick
1045   --enable-metafiles      use wxMetaFile (Win32 only)
1046   --enable-dragimage      use wxDragImage
1047   --enable-accessibility  enable accessibility support
1048   --enable-dccache        cache temporary wxDC objects (Win32 only)
1049   --enable-palette        use wxPalette class
1050   --enable-image          use wxImage class
1051   --enable-gif            use gif images (GIF file format)
1052   --enable-pcx            use pcx images (PCX file format)
1053   --enable-iff            use iff images (IFF file format)
1054   --enable-pnm            use pnm images (PNM file format)
1055   --enable-xpm            use xpm images (XPM file format)
1056   --enable-icocur         use Windows ICO and CUR formats
1057   --enable-official_build official build of wxWidgets (win32 DLL only)
1058   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1059   --disable-largefile     omit support for large files
1060   --disable-gtktest       do not try to compile and run a test GTK+ program
1061   --disable-gtktest       Do not try to compile and run a test GTK program
1062   --disable-sdltest       Do not try to compile and run a test SDL program
1063   --enable-omf            use OMF object format (OS/2)
1064   --disable-dependency-tracking
1065                           don't use dependency tracking even if the compiler
1066                           can
1067   --disable-precomp-headers
1068                           don't use precompiled headers even if compiler can
1069
1070 Optional Packages:
1071   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1072   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1073   --without-subdirs       don't generate makefiles for samples/demos/...
1074   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1075   --with-motif            use Motif/Lesstif
1076   --with-mac              use Mac OS X
1077   --with-cocoa            use Cocoa
1078   --with-wine             use Wine
1079   --with-msw              use MS-Windows
1080   --with-pm               use OS/2 Presentation Manager
1081   --with-mgl              use SciTech MGL
1082   --with-microwin         use MicroWindows
1083   --with-x11              use X11
1084   --with-libpng           use libpng (PNG image format)
1085   --with-libjpeg          use libjpeg (JPEG file format)
1086   --with-libtiff          use libtiff (TIFF file format)
1087   --with-libxpm           use libxpm (XPM file format)
1088   --with-libmspack        use libmspack (CHM help files loading)
1089   --with-sdl              use SDL for audio on Unix
1090   --with-gnomeprint       use GNOME print for printing under GNOME
1091   --with-gnomevfs         use GNOME VFS for associating MIME types
1092   --with-hildon           use Hildon framework for Nokia 770
1093   --with-opengl           use OpenGL (or Mesa)
1094   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1095   --with-regex            enable support for wxRegEx class
1096   --with-zlib             use zlib for LZW compression
1097   --with-odbc             use the IODBC and wxODBC classes
1098   --with-expat            enable XML support using expat parser
1099   --with-flavour=NAME     specify a name to identify this build
1100   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1101   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1102   --with-x                use the X Window System
1103   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1104   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1105   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1106   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1107   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1108
1109 Some influential environment variables:
1110   CC          C compiler command
1111   CFLAGS      C compiler flags
1112   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1113               nonstandard directory <lib dir>
1114   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115               headers in a nonstandard directory <include dir>
1116   CPP         C preprocessor
1117   CXX         C++ compiler command
1118   CXXFLAGS    C++ compiler flags
1119   CXXCPP      C++ preprocessor
1120
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1123
1124 Report bugs to <wx-dev@lists.wxwidgets.org>.
1125 _ACEOF
1126 fi
1127
1128 if test "$ac_init_help" = "recursive"; then
1129   # If there are subdirs, report their specific --help.
1130   ac_popdir=`pwd`
1131   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1132     test -d $ac_dir || continue
1133     ac_builddir=.
1134
1135 if test "$ac_dir" != .; then
1136   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1137   # A "../" for each directory in $ac_dir_suffix.
1138   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1139 else
1140   ac_dir_suffix= ac_top_builddir=
1141 fi
1142
1143 case $srcdir in
1144   .)  # No --srcdir option.  We are building in place.
1145     ac_srcdir=.
1146     if test -z "$ac_top_builddir"; then
1147        ac_top_srcdir=.
1148     else
1149        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1150     fi ;;
1151   [\\/]* | ?:[\\/]* )  # Absolute path.
1152     ac_srcdir=$srcdir$ac_dir_suffix;
1153     ac_top_srcdir=$srcdir ;;
1154   *) # Relative path.
1155     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1156     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1157 esac
1158
1159 # Do not use `cd foo && pwd` to compute absolute paths, because
1160 # the directories may not exist.
1161 case `pwd` in
1162 .) ac_abs_builddir="$ac_dir";;
1163 *)
1164   case "$ac_dir" in
1165   .) ac_abs_builddir=`pwd`;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1167   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 *)
1173   case ${ac_top_builddir}. in
1174   .) ac_abs_top_builddir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1176   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1177   esac;;
1178 esac
1179 case $ac_abs_builddir in
1180 .) ac_abs_srcdir=$ac_srcdir;;
1181 *)
1182   case $ac_srcdir in
1183   .) ac_abs_srcdir=$ac_abs_builddir;;
1184   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1185   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1186   esac;;
1187 esac
1188 case $ac_abs_builddir in
1189 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 *)
1191   case $ac_top_srcdir in
1192   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1193   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1194   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1195   esac;;
1196 esac
1197
1198     cd $ac_dir
1199     # Check for guested configure; otherwise get Cygnus style configure.
1200     if test -f $ac_srcdir/configure.gnu; then
1201       echo
1202       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1203     elif test -f $ac_srcdir/configure; then
1204       echo
1205       $SHELL $ac_srcdir/configure  --help=recursive
1206     elif test -f $ac_srcdir/configure.ac ||
1207            test -f $ac_srcdir/configure.in; then
1208       echo
1209       $ac_configure --help
1210     else
1211       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212     fi
1213     cd "$ac_popdir"
1214   done
1215 fi
1216
1217 test -n "$ac_init_help" && exit 0
1218 if $ac_init_version; then
1219   cat <<\_ACEOF
1220 wxWidgets configure 2.7.0
1221 generated by GNU Autoconf 2.59
1222
1223 Copyright (C) 2003 Free Software Foundation, Inc.
1224 This configure script is free software; the Free Software Foundation
1225 gives unlimited permission to copy, distribute and modify it.
1226 _ACEOF
1227   exit 0
1228 fi
1229 exec 5>config.log
1230 cat >&5 <<_ACEOF
1231 This file contains any messages produced by compilers while
1232 running configure, to aid debugging if configure makes a mistake.
1233
1234 It was created by wxWidgets $as_me 2.7.0, which was
1235 generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237   $ $0 $@
1238
1239 _ACEOF
1240 {
1241 cat <<_ASUNAME
1242 ## --------- ##
1243 ## Platform. ##
1244 ## --------- ##
1245
1246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263 _ASUNAME
1264
1265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266 for as_dir in $PATH
1267 do
1268   IFS=$as_save_IFS
1269   test -z "$as_dir" && as_dir=.
1270   echo "PATH: $as_dir"
1271 done
1272
1273 } >&5
1274
1275 cat >&5 <<_ACEOF
1276
1277
1278 ## ----------- ##
1279 ## Core tests. ##
1280 ## ----------- ##
1281
1282 _ACEOF
1283
1284
1285 # Keep a trace of the command line.
1286 # Strip out --no-create and --no-recursion so they do not pile up.
1287 # Strip out --silent because we don't want to record it for future runs.
1288 # Also quote any args containing shell meta-characters.
1289 # Make two passes to allow for proper duplicate-argument suppression.
1290 ac_configure_args=
1291 ac_configure_args0=
1292 ac_configure_args1=
1293 ac_sep=
1294 ac_must_keep_next=false
1295 for ac_pass in 1 2
1296 do
1297   for ac_arg
1298   do
1299     case $ac_arg in
1300     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302     | -silent | --silent | --silen | --sile | --sil)
1303       continue ;;
1304     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306     esac
1307     case $ac_pass in
1308     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309     2)
1310       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311       if test $ac_must_keep_next = true; then
1312         ac_must_keep_next=false # Got value, back to normal.
1313       else
1314         case $ac_arg in
1315           *=* | --config-cache | -C | -disable-* | --disable-* \
1316           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318           | -with-* | --with-* | -without-* | --without-* | --x)
1319             case "$ac_configure_args0 " in
1320               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321             esac
1322             ;;
1323           -* ) ac_must_keep_next=true ;;
1324         esac
1325       fi
1326       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327       # Get rid of the leading space.
1328       ac_sep=" "
1329       ;;
1330     esac
1331   done
1332 done
1333 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336 # When interrupted or exit'd, cleanup temporary files, and complete
1337 # config.log.  We remove comments because anyway the quotes in there
1338 # would cause problems or look ugly.
1339 # WARNING: Be sure not to use single quotes in there, as some shells,
1340 # such as our DU 5.0 friend, will then `close' the trap.
1341 trap 'exit_status=$?
1342   # Save into config.log some information that might help in debugging.
1343   {
1344     echo
1345
1346     cat <<\_ASBOX
1347 ## ---------------- ##
1348 ## Cache variables. ##
1349 ## ---------------- ##
1350 _ASBOX
1351     echo
1352     # The following way of writing the cache mishandles newlines in values,
1353 {
1354   (set) 2>&1 |
1355     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356     *ac_space=\ *)
1357       sed -n \
1358         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360       ;;
1361     *)
1362       sed -n \
1363         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364       ;;
1365     esac;
1366 }
1367     echo
1368
1369     cat <<\_ASBOX
1370 ## ----------------- ##
1371 ## Output variables. ##
1372 ## ----------------- ##
1373 _ASBOX
1374     echo
1375     for ac_var in $ac_subst_vars
1376     do
1377       eval ac_val=$`echo $ac_var`
1378       echo "$ac_var='"'"'$ac_val'"'"'"
1379     done | sort
1380     echo
1381
1382     if test -n "$ac_subst_files"; then
1383       cat <<\_ASBOX
1384 ## ------------- ##
1385 ## Output files. ##
1386 ## ------------- ##
1387 _ASBOX
1388       echo
1389       for ac_var in $ac_subst_files
1390       do
1391         eval ac_val=$`echo $ac_var`
1392         echo "$ac_var='"'"'$ac_val'"'"'"
1393       done | sort
1394       echo
1395     fi
1396
1397     if test -s confdefs.h; then
1398       cat <<\_ASBOX
1399 ## ----------- ##
1400 ## confdefs.h. ##
1401 ## ----------- ##
1402 _ASBOX
1403       echo
1404       sed "/^$/d" confdefs.h | sort
1405       echo
1406     fi
1407     test "$ac_signal" != 0 &&
1408       echo "$as_me: caught signal $ac_signal"
1409     echo "$as_me: exit $exit_status"
1410   } >&5
1411   rm -f core *.core &&
1412   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413     exit $exit_status
1414      ' 0
1415 for ac_signal in 1 2 13 15; do
1416   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417 done
1418 ac_signal=0
1419
1420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1421 rm -rf conftest* confdefs.h
1422 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423 echo >confdefs.h
1424
1425 # Predefined preprocessor variables.
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_NAME "$PACKAGE_NAME"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1439 _ACEOF
1440
1441
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_STRING "$PACKAGE_STRING"
1444 _ACEOF
1445
1446
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449 _ACEOF
1450
1451
1452 # Let the site file select an alternate cache file if it wants to.
1453 # Prefer explicitly selected file to automatically selected ones.
1454 if test -z "$CONFIG_SITE"; then
1455   if test "x$prefix" != xNONE; then
1456     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457   else
1458     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459   fi
1460 fi
1461 for ac_site_file in $CONFIG_SITE; do
1462   if test -r "$ac_site_file"; then
1463     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464 echo "$as_me: loading site script $ac_site_file" >&6;}
1465     sed 's/^/| /' "$ac_site_file" >&5
1466     . "$ac_site_file"
1467   fi
1468 done
1469
1470 if test -r "$cache_file"; then
1471   # Some versions of bash will fail to source /dev/null (special
1472   # files actually), so we avoid doing that.
1473   if test -f "$cache_file"; then
1474     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475 echo "$as_me: loading cache $cache_file" >&6;}
1476     case $cache_file in
1477       [\\/]* | ?:[\\/]* ) . $cache_file;;
1478       *)                      . ./$cache_file;;
1479     esac
1480   fi
1481 else
1482   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483 echo "$as_me: creating cache $cache_file" >&6;}
1484   >$cache_file
1485 fi
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573 ac_aux_dir=
1574 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575   if test -f $ac_dir/install-sh; then
1576     ac_aux_dir=$ac_dir
1577     ac_install_sh="$ac_aux_dir/install-sh -c"
1578     break
1579   elif test -f $ac_dir/install.sh; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/install.sh -c"
1582     break
1583   elif test -f $ac_dir/shtool; then
1584     ac_aux_dir=$ac_dir
1585     ac_install_sh="$ac_aux_dir/shtool install -c"
1586     break
1587   fi
1588 done
1589 if test -z "$ac_aux_dir"; then
1590   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592    { (exit 1); exit 1; }; }
1593 fi
1594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597
1598 # Make sure we can run config.sub.
1599 $ac_config_sub sun4 >/dev/null 2>&1 ||
1600   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 echo "$as_me:$LINENO: checking build system type" >&5
1605 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606 if test "${ac_cv_build+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   ac_cv_build_alias=$build_alias
1610 test -z "$ac_cv_build_alias" &&
1611   ac_cv_build_alias=`$ac_config_guess`
1612 test -z "$ac_cv_build_alias" &&
1613   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615    { (exit 1); exit 1; }; }
1616 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623 echo "${ECHO_T}$ac_cv_build" >&6
1624 build=$ac_cv_build
1625 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 echo "$as_me:$LINENO: checking host system type" >&5
1631 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632 if test "${ac_cv_host+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_host_alias=$host_alias
1636 test -z "$ac_cv_host_alias" &&
1637   ac_cv_host_alias=$ac_cv_build_alias
1638 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641    { (exit 1); exit 1; }; }
1642
1643 fi
1644 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645 echo "${ECHO_T}$ac_cv_host" >&6
1646 host=$ac_cv_host
1647 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652 echo "$as_me:$LINENO: checking target system type" >&5
1653 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654 if test "${ac_cv_target+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   ac_cv_target_alias=$target_alias
1658 test "x$ac_cv_target_alias" = "x" &&
1659   ac_cv_target_alias=$ac_cv_host_alias
1660 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663    { (exit 1); exit 1; }; }
1664
1665 fi
1666 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667 echo "${ECHO_T}$ac_cv_target" >&6
1668 target=$ac_cv_target
1669 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672
1673
1674 # The aliases save the names the user supplied, while $host etc.
1675 # will get canonicalized.
1676 test -n "$target_alias" &&
1677   test "$program_prefix$program_suffix$program_transform_name" = \
1678     NONENONEs,x,x, &&
1679   program_prefix=${target_alias}-
1680
1681
1682
1683 wx_major_version_number=2
1684 wx_minor_version_number=7
1685 wx_release_number=0
1686 wx_subrelease_number=0
1687
1688 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1689 WX_VERSION=$WX_RELEASE.$wx_release_number
1690 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1691
1692 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1693
1694
1695
1696
1697 USE_UNIX=1
1698 USE_OS2=0
1699 USE_WIN32=0
1700 USE_DOS=0
1701 USE_BEOS=0
1702 USE_MAC=0
1703
1704 USE_AIX=
1705 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1706 USE_GNU=                            USE_HPUX=
1707 USE_LINUX=
1708 USE_NETBSD=
1709 USE_OPENBSD=
1710 USE_OSF=                            USE_SGI=
1711 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1712 USE_ULTRIX=
1713 USE_UNIXWARE=
1714
1715 USE_ALPHA=
1716
1717 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1718
1719 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1720
1721 DEFAULT_wxUSE_COCOA=0
1722 DEFAULT_wxUSE_GTK=0
1723 DEFAULT_wxUSE_MAC=0
1724 DEFAULT_wxUSE_MGL=0
1725 DEFAULT_wxUSE_MICROWIN=0
1726 DEFAULT_wxUSE_MOTIF=0
1727 DEFAULT_wxUSE_MSW=0
1728 DEFAULT_wxUSE_PM=0
1729 DEFAULT_wxUSE_X11=0
1730
1731 DEFAULT_DEFAULT_wxUSE_COCOA=0
1732 DEFAULT_DEFAULT_wxUSE_GTK=0
1733 DEFAULT_DEFAULT_wxUSE_MAC=0
1734 DEFAULT_DEFAULT_wxUSE_MGL=0
1735 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1736 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1737 DEFAULT_DEFAULT_wxUSE_MSW=0
1738 DEFAULT_DEFAULT_wxUSE_PM=0
1739 DEFAULT_DEFAULT_wxUSE_X11=0
1740
1741 PROGRAM_EXT=
1742 SO_SUFFIX=so
1743 SAMPLES_RPATH_FLAG=
1744 SAMPLES_RPATH_POSTLINK=
1745
1746 DEFAULT_STD_FLAG=yes
1747
1748 case "${host}" in
1749   *-hp-hpux* )
1750     USE_HPUX=1
1751     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1753     SO_SUFFIX=sl
1754     cat >>confdefs.h <<\_ACEOF
1755 #define __HPUX__ 1
1756 _ACEOF
1757
1758
1759             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1760   ;;
1761   *-*-linux* )
1762     USE_LINUX=1
1763     cat >>confdefs.h <<\_ACEOF
1764 #define __LINUX__ 1
1765 _ACEOF
1766
1767     TMP=`uname -m`
1768     if test "x$TMP" = "xalpha"; then
1769       USE_ALPHA=1
1770       cat >>confdefs.h <<\_ACEOF
1771 #define __ALPHA__ 1
1772 _ACEOF
1773
1774     fi
1775     DEFAULT_DEFAULT_wxUSE_GTK=1
1776   ;;
1777   *-*-gnu* | *-*-k*bsd*-gnu )
1778     USE_GNU=1
1779     TMP=`uname -m`
1780     if test "x$TMP" = "xalpha"; then
1781       USE_ALPHA=1
1782       cat >>confdefs.h <<\_ACEOF
1783 #define __ALPHA__ 1
1784 _ACEOF
1785
1786     fi
1787     DEFAULT_DEFAULT_wxUSE_GTK=1
1788   ;;
1789   *-*-irix5* | *-*-irix6* )
1790     USE_SGI=1
1791     USE_SVR4=1
1792     cat >>confdefs.h <<\_ACEOF
1793 #define __SGI__ 1
1794 _ACEOF
1795
1796     cat >>confdefs.h <<\_ACEOF
1797 #define __SVR4__ 1
1798 _ACEOF
1799
1800     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801   ;;
1802   *-*-solaris2* )
1803     USE_SUN=1
1804     USE_SOLARIS=1
1805     USE_SVR4=1
1806     cat >>confdefs.h <<\_ACEOF
1807 #define __SUN__ 1
1808 _ACEOF
1809
1810     cat >>confdefs.h <<\_ACEOF
1811 #define __SOLARIS__ 1
1812 _ACEOF
1813
1814     cat >>confdefs.h <<\_ACEOF
1815 #define __SVR4__ 1
1816 _ACEOF
1817
1818     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1820   ;;
1821   *-*-sunos4* )
1822     USE_SUN=1
1823     USE_SUNOS=1
1824     USE_BSD=1
1825     cat >>confdefs.h <<\_ACEOF
1826 #define __SUN__ 1
1827 _ACEOF
1828
1829     cat >>confdefs.h <<\_ACEOF
1830 #define __SUNOS__ 1
1831 _ACEOF
1832
1833     cat >>confdefs.h <<\_ACEOF
1834 #define __BSD__ 1
1835 _ACEOF
1836
1837     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838   ;;
1839   *-*-freebsd*)
1840     USE_BSD=1
1841     USE_FREEBSD=1
1842     cat >>confdefs.h <<\_ACEOF
1843 #define __FREEBSD__ 1
1844 _ACEOF
1845
1846     cat >>confdefs.h <<\_ACEOF
1847 #define __BSD__ 1
1848 _ACEOF
1849
1850     DEFAULT_DEFAULT_wxUSE_GTK=1
1851   ;;
1852   *-*-openbsd*)
1853     USE_BSD=1
1854     USE_OPENBSD=1
1855     cat >>confdefs.h <<\_ACEOF
1856 #define __OPENBSD__ 1
1857 _ACEOF
1858
1859     cat >>confdefs.h <<\_ACEOF
1860 #define __BSD__ 1
1861 _ACEOF
1862
1863     DEFAULT_DEFAULT_wxUSE_GTK=1
1864   ;;
1865   *-*-netbsd*)
1866     USE_BSD=1
1867     USE_NETBSD=1
1868     cat >>confdefs.h <<\_ACEOF
1869 #define __NETBSD__ 1
1870 _ACEOF
1871
1872     cat >>confdefs.h <<\_ACEOF
1873 #define __BSD__ 1
1874 _ACEOF
1875
1876     DEFAULT_DEFAULT_wxUSE_GTK=1
1877     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1878
1879             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1880   ;;
1881   *-*-osf* )
1882     USE_ALPHA=1
1883     USE_OSF=1
1884     cat >>confdefs.h <<\_ACEOF
1885 #define __ALPHA__ 1
1886 _ACEOF
1887
1888     cat >>confdefs.h <<\_ACEOF
1889 #define __OSF__ 1
1890 _ACEOF
1891
1892     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1893     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1894   ;;
1895   *-*-dgux5* )
1896     USE_ALPHA=1
1897     USE_SVR4=1
1898     cat >>confdefs.h <<\_ACEOF
1899 #define __ALPHA__ 1
1900 _ACEOF
1901
1902     cat >>confdefs.h <<\_ACEOF
1903 #define __SVR4__ 1
1904 _ACEOF
1905
1906     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907   ;;
1908   *-*-sysv5* )
1909     USE_SYSV=1
1910     USE_SVR4=1
1911     cat >>confdefs.h <<\_ACEOF
1912 #define __SYSV__ 1
1913 _ACEOF
1914
1915     cat >>confdefs.h <<\_ACEOF
1916 #define __SVR4__ 1
1917 _ACEOF
1918
1919     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1920   ;;
1921   *-*-aix* )
1922     USE_AIX=1
1923     USE_SYSV=1
1924     USE_SVR4=1
1925                         SO_SUFFIX=a
1926     cat >>confdefs.h <<\_ACEOF
1927 #define __AIX__ 1
1928 _ACEOF
1929
1930     cat >>confdefs.h <<\_ACEOF
1931 #define __SYSV__ 1
1932 _ACEOF
1933
1934     cat >>confdefs.h <<\_ACEOF
1935 #define __SVR4__ 1
1936 _ACEOF
1937
1938     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1939   ;;
1940
1941   *-*-*UnixWare*)
1942     USE_SYSV=1
1943     USE_SVR4=1
1944     USE_UNIXWARE=1
1945     cat >>confdefs.h <<\_ACEOF
1946 #define __UNIXWARE__ 1
1947 _ACEOF
1948
1949   ;;
1950
1951   *-*-cygwin* | *-*-mingw32* )
1952                 SO_SUFFIX=dll
1953     PROGRAM_EXT=".exe"
1954     DEFAULT_DEFAULT_wxUSE_MSW=1
1955     DEFAULT_STD_FLAG=no
1956   ;;
1957
1958   *-pc-msdosdjgpp )
1959     USE_UNIX=0
1960     USE_DOS=1
1961     cat >>confdefs.h <<\_ACEOF
1962 #define __DOS__ 1
1963 _ACEOF
1964
1965     PROGRAM_EXT=".exe"
1966     DEFAULT_DEFAULT_wxUSE_MGL=1
1967   ;;
1968
1969   *-pc-os2_emx | *-pc-os2-emx )
1970     cat >>confdefs.h <<\_ACEOF
1971 #define __EMX__ 1
1972 _ACEOF
1973
1974     USE_OS2=1
1975     cat >>confdefs.h <<\_ACEOF
1976 #define __OS2__ 1
1977 _ACEOF
1978
1979     PROGRAM_EXT=".exe"
1980     DEFAULT_DEFAULT_wxUSE_PM=1
1981         CXX=gcc
1982     LDFLAGS="$LDFLAGS -Zcrtdll"
1983                         ac_executable_extensions=".exe"
1984     export ac_executable_extensions
1985             ac_save_IFS="$IFS"
1986     IFS='\\'
1987     ac_TEMP_PATH=
1988     for ac_dir in $PATH; do
1989       IFS=$ac_save_IFS
1990       if test -z "$ac_TEMP_PATH"; then
1991         ac_TEMP_PATH="$ac_dir"
1992       else
1993         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1994       fi
1995     done
1996     export PATH="$ac_TEMP_PATH"
1997     unset ac_TEMP_PATH
1998     DEFAULT_STD_FLAG=no
1999   ;;
2000
2001   *-*-darwin* )
2002         USE_BSD=1
2003     USE_DARWIN=1
2004     SO_SUFFIX=dylib
2005     cat >>confdefs.h <<\_ACEOF
2006 #define __BSD__ 1
2007 _ACEOF
2008
2009     cat >>confdefs.h <<\_ACEOF
2010 #define __DARWIN__ 1
2011 _ACEOF
2012
2013     cat >>confdefs.h <<\_ACEOF
2014 #define TARGET_CARBON 1
2015 _ACEOF
2016
2017     DEFAULT_DEFAULT_wxUSE_MAC=1
2018     DEFAULT_STD_FLAG=no
2019   ;;
2020   powerpc-apple-macos* )
2021         USE_UNIX=0
2022             ac_cv_c_bigendian=yes
2023     SO_SUFFIX=shlib
2024             DEFAULT_DEFAULT_wxUSE_MAC=1
2025     DEFAULT_STD_FLAG=no
2026   ;;
2027
2028   *-*-beos* )
2029         USE_BEOS=1
2030     cat >>confdefs.h <<\_ACEOF
2031 #define __BEOS__ 1
2032 _ACEOF
2033
2034   ;;
2035
2036   *)
2037     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2038 echo "$as_me: error: unknown system type ${host}." >&2;}
2039    { (exit 1); exit 1; }; }
2040 esac
2041
2042
2043
2044
2045           wx_arg_cache_file="configarg.cache"
2046           echo "loading argument cache $wx_arg_cache_file"
2047           rm -f ${wx_arg_cache_file}.tmp
2048           touch ${wx_arg_cache_file}.tmp
2049           touch ${wx_arg_cache_file}
2050
2051
2052 DEBUG_CONFIGURE=0
2053 if test $DEBUG_CONFIGURE = 1; then
2054   DEFAULT_wxUSE_UNIVERSAL=no
2055   DEFAULT_wxUSE_STL=no
2056
2057   DEFAULT_wxUSE_NANOX=no
2058
2059   DEFAULT_wxUSE_THREADS=yes
2060
2061   DEFAULT_wxUSE_SHARED=yes
2062   DEFAULT_wxUSE_OPTIMISE=no
2063   DEFAULT_wxUSE_PROFILE=no
2064   DEFAULT_wxUSE_NO_DEPS=no
2065   DEFAULT_wxUSE_NO_RTTI=no
2066   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2067   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2068   DEFAULT_wxUSE_RPATH=yes
2069   DEFAULT_wxUSE_PERMISSIVE=no
2070   DEFAULT_wxUSE_DEBUG_FLAG=yes
2071   DEFAULT_wxUSE_DEBUG_INFO=yes
2072   DEFAULT_wxUSE_DEBUG_GDB=yes
2073   DEFAULT_wxUSE_MEM_TRACING=no
2074   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2075   DEFAULT_wxUSE_DMALLOC=no
2076   DEFAULT_wxUSE_APPLE_IEEE=no
2077
2078   DEFAULT_wxUSE_EXCEPTIONS=no
2079   DEFAULT_wxUSE_LOG=yes
2080   DEFAULT_wxUSE_LOGWINDOW=no
2081   DEFAULT_wxUSE_LOGGUI=no
2082   DEFAULT_wxUSE_LOGDIALOG=no
2083
2084   DEFAULT_wxUSE_GUI=yes
2085   DEFAULT_wxUSE_CONTROLS=no
2086
2087   DEFAULT_wxUSE_REGEX=no
2088   DEFAULT_wxUSE_XML=no
2089   DEFAULT_wxUSE_EXPAT=no
2090   DEFAULT_wxUSE_ZLIB=no
2091   DEFAULT_wxUSE_LIBPNG=no
2092   DEFAULT_wxUSE_LIBJPEG=no
2093   DEFAULT_wxUSE_LIBTIFF=no
2094   DEFAULT_wxUSE_LIBXPM=no
2095   DEFAULT_wxUSE_LIBMSPACK=no
2096   DEFAULT_wxUSE_LIBSDL=no
2097   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2098   DEFAULT_wxUSE_LIBGNOMEVFS=no
2099   DEFAULT_wxUSE_LIBHILDON=no
2100   DEFAULT_wxUSE_ODBC=no
2101   DEFAULT_wxUSE_OPENGL=no
2102
2103   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2104   DEFAULT_wxUSE_STACKWALKER=no
2105   DEFAULT_wxUSE_DEBUGREPORT=no
2106   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2107   DEFAULT_wxUSE_STD_IOSTREAM=no
2108   DEFAULT_wxUSE_STD_STRING=no
2109   DEFAULT_wxUSE_CMDLINE_PARSER=no
2110   DEFAULT_wxUSE_DATETIME=no
2111   DEFAULT_wxUSE_TIMER=no
2112   DEFAULT_wxUSE_STOPWATCH=no
2113   DEFAULT_wxUSE_FILE=no
2114   DEFAULT_wxUSE_FFILE=no
2115   DEFAULT_wxUSE_STDPATHS=no
2116   DEFAULT_wxUSE_TEXTBUFFER=no
2117   DEFAULT_wxUSE_TEXTFILE=no
2118   DEFAULT_wxUSE_SOUND=no
2119   DEFAULT_wxUSE_MEDIACTRL=no
2120   DEFAULT_wxUSE_GSTREAMER8=no
2121   DEFAULT_wxUSE_INTL=no
2122   DEFAULT_wxUSE_CONFIG=no
2123   DEFAULT_wxUSE_FONTMAP=no
2124   DEFAULT_wxUSE_STREAMS=no
2125   DEFAULT_wxUSE_SOCKETS=no
2126   DEFAULT_wxUSE_OLE=no
2127   DEFAULT_wxUSE_DATAOBJ=no
2128   DEFAULT_wxUSE_DIALUP_MANAGER=no
2129   DEFAULT_wxUSE_JOYSTICK=no
2130   DEFAULT_wxUSE_DYNLIB_CLASS=no
2131   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2132   DEFAULT_wxUSE_LONGLONG=no
2133   DEFAULT_wxUSE_GEOMETRY=no
2134
2135   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2136   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2137   DEFAULT_wxUSE_POSTSCRIPT=no
2138
2139   DEFAULT_wxUSE_CLIPBOARD=no
2140   DEFAULT_wxUSE_TOOLTIPS=no
2141   DEFAULT_wxUSE_DRAG_AND_DROP=no
2142   DEFAULT_wxUSE_DRAGIMAGE=no
2143   DEFAULT_wxUSE_SPLINES=no
2144   DEFAULT_wxUSE_MOUSEWHEEL=no
2145
2146   DEFAULT_wxUSE_MDI=no
2147   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2148   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2149   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2150
2151   DEFAULT_wxUSE_RESOURCES=no
2152   DEFAULT_wxUSE_CONSTRAINTS=no
2153   DEFAULT_wxUSE_IPC=no
2154   DEFAULT_wxUSE_HELP=no
2155   DEFAULT_wxUSE_MS_HTML_HELP=no
2156   DEFAULT_wxUSE_WXHTML_HELP=no
2157   DEFAULT_wxUSE_TREELAYOUT=no
2158   DEFAULT_wxUSE_METAFILE=no
2159   DEFAULT_wxUSE_MIMETYPE=no
2160   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2161   DEFAULT_wxUSE_PROTOCOL=no
2162   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2163   DEFAULT_wxUSE_PROTOCOL_FTP=no
2164   DEFAULT_wxUSE_PROTOCOL_FILE=no
2165   DEFAULT_wxUSE_URL=no
2166
2167   DEFAULT_wxUSE_COMMONDLGS=no
2168   DEFAULT_wxUSE_CHOICEDLG=no
2169   DEFAULT_wxUSE_COLOURDLG=no
2170   DEFAULT_wxUSE_DIRDLG=no
2171   DEFAULT_wxUSE_FILEDLG=no
2172   DEFAULT_wxUSE_FINDREPLDLG=no
2173   DEFAULT_wxUSE_FONTDLG=no
2174   DEFAULT_wxUSE_MSGDLG=no
2175   DEFAULT_wxUSE_NUMBERDLG=no
2176   DEFAULT_wxUSE_TEXTDLG=no
2177   DEFAULT_wxUSE_SPLASH=no
2178   DEFAULT_wxUSE_STARTUP_TIPS=no
2179   DEFAULT_wxUSE_PROGRESSDLG=no
2180   DEFAULT_wxUSE_WIZARDDLG=no
2181
2182   DEFAULT_wxUSE_MENUS=no
2183   DEFAULT_wxUSE_MINIFRAME=no
2184   DEFAULT_wxUSE_HTML=no
2185   DEFAULT_wxUSE_RICHTEXT=no
2186   DEFAULT_wxUSE_XRC=no
2187   DEFAULT_wxUSE_WEBKIT=no
2188   DEFAULT_wxUSE_FILESYSTEM=no
2189   DEFAULT_wxUSE_FS_INET=no
2190   DEFAULT_wxUSE_FS_ZIP=no
2191   DEFAULT_wxUSE_BUSYINFO=no
2192   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2193   DEFAULT_wxUSE_ZIPSTREAM=no
2194   DEFAULT_wxUSE_VALIDATORS=no
2195
2196   DEFAULT_wxUSE_ACCEL=no
2197   DEFAULT_wxUSE_BUTTON=no
2198   DEFAULT_wxUSE_BMPBUTTON=no
2199   DEFAULT_wxUSE_CALCTRL=no
2200   DEFAULT_wxUSE_CARET=no
2201   DEFAULT_wxUSE_CHECKBOX=no
2202   DEFAULT_wxUSE_CHECKLST=no
2203   DEFAULT_wxUSE_CHOICE=no
2204   DEFAULT_wxUSE_CHOICEBOOK=no
2205   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2206   DEFAULT_wxUSE_COMBOBOX=no
2207   DEFAULT_wxUSE_COMBOCTRL=no
2208   DEFAULT_wxUSE_DATEPICKCTRL=no
2209   DEFAULT_wxUSE_DISPLAY=no
2210   DEFAULT_wxUSE_DIRPICKERCTRL=no
2211   DEFAULT_wxUSE_FILEPICKERCTRL=no
2212   DEFAULT_wxUSE_FONTPICKERCTRL=no
2213   DEFAULT_wxUSE_GAUGE=no
2214   DEFAULT_wxUSE_GRID=no
2215   DEFAULT_wxUSE_HYPERLINKCTRL=no
2216   DEFAULT_wxUSE_DATAVIEWCTRL=no
2217   DEFAULT_wxUSE_IMAGLIST=no
2218   DEFAULT_wxUSE_LISTBOOK=no
2219   DEFAULT_wxUSE_LISTBOX=no
2220   DEFAULT_wxUSE_LISTCTRL=no
2221   DEFAULT_wxUSE_NOTEBOOK=no
2222   DEFAULT_wxUSE_ODCOMBOBOX=no
2223   DEFAULT_wxUSE_RADIOBOX=no
2224   DEFAULT_wxUSE_RADIOBTN=no
2225   DEFAULT_wxUSE_SASH=no
2226   DEFAULT_wxUSE_SCROLLBAR=no
2227   DEFAULT_wxUSE_SLIDER=no
2228   DEFAULT_wxUSE_SPINBTN=no
2229   DEFAULT_wxUSE_SPINCTRL=no
2230   DEFAULT_wxUSE_SPLITTER=no
2231   DEFAULT_wxUSE_STATBMP=no
2232   DEFAULT_wxUSE_STATBOX=no
2233   DEFAULT_wxUSE_STATLINE=no
2234   DEFAULT_wxUSE_STATTEXT=no
2235   DEFAULT_wxUSE_STATUSBAR=yes
2236   DEFAULT_wxUSE_TAB_DIALOG=no
2237   DEFAULT_wxUSE_TEXTCTRL=no
2238   DEFAULT_wxUSE_TOGGLEBTN=no
2239   DEFAULT_wxUSE_TOOLBAR=no
2240   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2241   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2242   DEFAULT_wxUSE_TREEBOOK=no
2243   DEFAULT_wxUSE_TOOLBOOK=no
2244   DEFAULT_wxUSE_TREECTRL=no
2245   DEFAULT_wxUSE_POPUPWIN=no
2246   DEFAULT_wxUSE_TIPWINDOW=no
2247
2248   DEFAULT_wxUSE_UNICODE=no
2249   DEFAULT_wxUSE_UNICODE_MSLU=no
2250   DEFAULT_wxUSE_WCSRTOMBS=no
2251
2252   DEFAULT_wxUSE_PALETTE=no
2253   DEFAULT_wxUSE_IMAGE=no
2254   DEFAULT_wxUSE_GIF=no
2255   DEFAULT_wxUSE_PCX=no
2256   DEFAULT_wxUSE_PNM=no
2257   DEFAULT_wxUSE_IFF=no
2258   DEFAULT_wxUSE_XPM=no
2259   DEFAULT_wxUSE_ICO_CUR=no
2260   DEFAULT_wxUSE_ACCESSIBILITY=no
2261
2262   DEFAULT_wxUSE_MONOLITHIC=no
2263   DEFAULT_wxUSE_PLUGINS=no
2264   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2265 else
2266   DEFAULT_wxUSE_UNIVERSAL=no
2267   DEFAULT_wxUSE_STL=no
2268
2269   DEFAULT_wxUSE_NANOX=no
2270
2271   DEFAULT_wxUSE_THREADS=yes
2272
2273   DEFAULT_wxUSE_SHARED=yes
2274   DEFAULT_wxUSE_OPTIMISE=yes
2275   DEFAULT_wxUSE_PROFILE=no
2276   DEFAULT_wxUSE_NO_DEPS=no
2277   DEFAULT_wxUSE_NO_RTTI=no
2278   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2279   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2280   DEFAULT_wxUSE_RPATH=yes
2281   DEFAULT_wxUSE_PERMISSIVE=no
2282   DEFAULT_wxUSE_DEBUG_FLAG=no
2283   DEFAULT_wxUSE_DEBUG_INFO=no
2284   DEFAULT_wxUSE_DEBUG_GDB=no
2285   DEFAULT_wxUSE_MEM_TRACING=no
2286   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2287   DEFAULT_wxUSE_DMALLOC=no
2288   DEFAULT_wxUSE_APPLE_IEEE=yes
2289
2290   DEFAULT_wxUSE_EXCEPTIONS=yes
2291   DEFAULT_wxUSE_LOG=yes
2292   DEFAULT_wxUSE_LOGWINDOW=yes
2293   DEFAULT_wxUSE_LOGGUI=yes
2294   DEFAULT_wxUSE_LOGDIALOG=yes
2295
2296   DEFAULT_wxUSE_GUI=yes
2297
2298   DEFAULT_wxUSE_REGEX=yes
2299   DEFAULT_wxUSE_XML=yes
2300   DEFAULT_wxUSE_EXPAT=yes
2301   DEFAULT_wxUSE_ZLIB=yes
2302   DEFAULT_wxUSE_LIBPNG=yes
2303   DEFAULT_wxUSE_LIBJPEG=yes
2304   DEFAULT_wxUSE_LIBTIFF=yes
2305   DEFAULT_wxUSE_LIBXPM=yes
2306   DEFAULT_wxUSE_LIBMSPACK=yes
2307   DEFAULT_wxUSE_LIBSDL=no
2308   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2309   DEFAULT_wxUSE_LIBGNOMEVFS=no
2310   DEFAULT_wxUSE_LIBHILDON=no
2311   DEFAULT_wxUSE_ODBC=no
2312   DEFAULT_wxUSE_OPENGL=no
2313
2314   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2315   DEFAULT_wxUSE_STACKWALKER=yes
2316   DEFAULT_wxUSE_DEBUGREPORT=yes
2317   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2318   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2319   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2320   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2321   DEFAULT_wxUSE_DATETIME=yes
2322   DEFAULT_wxUSE_TIMER=yes
2323   DEFAULT_wxUSE_STOPWATCH=yes
2324   DEFAULT_wxUSE_FILE=yes
2325   DEFAULT_wxUSE_FFILE=yes
2326   DEFAULT_wxUSE_STDPATHS=yes
2327   DEFAULT_wxUSE_TEXTBUFFER=yes
2328   DEFAULT_wxUSE_TEXTFILE=yes
2329   DEFAULT_wxUSE_SOUND=yes
2330   DEFAULT_wxUSE_MEDIACTRL=no
2331   DEFAULT_wxUSE_GSTREAMER8=no
2332   DEFAULT_wxUSE_INTL=yes
2333   DEFAULT_wxUSE_CONFIG=yes
2334   DEFAULT_wxUSE_FONTMAP=yes
2335   DEFAULT_wxUSE_STREAMS=yes
2336   DEFAULT_wxUSE_SOCKETS=yes
2337   DEFAULT_wxUSE_OLE=yes
2338   DEFAULT_wxUSE_DATAOBJ=yes
2339   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2340   DEFAULT_wxUSE_JOYSTICK=yes
2341   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2342   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2343   DEFAULT_wxUSE_LONGLONG=yes
2344   DEFAULT_wxUSE_GEOMETRY=yes
2345
2346   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2347   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2348   DEFAULT_wxUSE_POSTSCRIPT=yes
2349
2350   DEFAULT_wxUSE_CLIPBOARD=yes
2351   DEFAULT_wxUSE_TOOLTIPS=yes
2352   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2353   DEFAULT_wxUSE_DRAGIMAGE=yes
2354   DEFAULT_wxUSE_SPLINES=yes
2355   DEFAULT_wxUSE_MOUSEWHEEL=yes
2356
2357   DEFAULT_wxUSE_MDI=yes
2358   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2359   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2360   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2361
2362   DEFAULT_wxUSE_RESOURCES=no
2363   DEFAULT_wxUSE_CONSTRAINTS=yes
2364   DEFAULT_wxUSE_IPC=yes
2365   DEFAULT_wxUSE_HELP=yes
2366   DEFAULT_wxUSE_MS_HTML_HELP=yes
2367   DEFAULT_wxUSE_WXHTML_HELP=yes
2368   DEFAULT_wxUSE_TREELAYOUT=yes
2369   DEFAULT_wxUSE_METAFILE=yes
2370   DEFAULT_wxUSE_MIMETYPE=yes
2371   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2372   DEFAULT_wxUSE_PROTOCOL=yes
2373   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2374   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2375   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2376   DEFAULT_wxUSE_URL=yes
2377
2378   DEFAULT_wxUSE_COMMONDLGS=yes
2379   DEFAULT_wxUSE_CHOICEDLG=yes
2380   DEFAULT_wxUSE_COLOURDLG=yes
2381   DEFAULT_wxUSE_DIRDLG=yes
2382   DEFAULT_wxUSE_FILEDLG=yes
2383   DEFAULT_wxUSE_FINDREPLDLG=yes
2384   DEFAULT_wxUSE_FONTDLG=yes
2385   DEFAULT_wxUSE_MSGDLG=yes
2386   DEFAULT_wxUSE_NUMBERDLG=yes
2387   DEFAULT_wxUSE_TEXTDLG=yes
2388   DEFAULT_wxUSE_SPLASH=yes
2389   DEFAULT_wxUSE_STARTUP_TIPS=yes
2390   DEFAULT_wxUSE_PROGRESSDLG=yes
2391   DEFAULT_wxUSE_WIZARDDLG=yes
2392
2393   DEFAULT_wxUSE_MENUS=yes
2394   DEFAULT_wxUSE_MINIFRAME=yes
2395   DEFAULT_wxUSE_HTML=yes
2396   DEFAULT_wxUSE_RICHTEXT=yes
2397   DEFAULT_wxUSE_XRC=yes
2398   DEFAULT_wxUSE_WEBKIT=yes
2399   DEFAULT_wxUSE_FILESYSTEM=yes
2400   DEFAULT_wxUSE_FS_INET=yes
2401   DEFAULT_wxUSE_FS_ZIP=yes
2402   DEFAULT_wxUSE_BUSYINFO=yes
2403   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2404   DEFAULT_wxUSE_ZIPSTREAM=yes
2405   DEFAULT_wxUSE_VALIDATORS=yes
2406
2407   DEFAULT_wxUSE_ACCEL=yes
2408   DEFAULT_wxUSE_BUTTON=yes
2409   DEFAULT_wxUSE_BMPBUTTON=yes
2410   DEFAULT_wxUSE_CALCTRL=yes
2411   DEFAULT_wxUSE_CARET=yes
2412   DEFAULT_wxUSE_CHECKBOX=yes
2413   DEFAULT_wxUSE_CHECKLST=yes
2414   DEFAULT_wxUSE_CHOICE=yes
2415   DEFAULT_wxUSE_CHOICEBOOK=yes
2416   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2417   DEFAULT_wxUSE_COMBOBOX=yes
2418   DEFAULT_wxUSE_COMBOCTRL=yes
2419   DEFAULT_wxUSE_DATEPICKCTRL=yes
2420   DEFAULT_wxUSE_DISPLAY=yes
2421   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2422   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2423   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2424   DEFAULT_wxUSE_GAUGE=yes
2425   DEFAULT_wxUSE_GRID=yes
2426   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2427   DEFAULT_wxUSE_DATAVIEWCTRL=no
2428   DEFAULT_wxUSE_IMAGLIST=yes
2429   DEFAULT_wxUSE_LISTBOOK=yes
2430   DEFAULT_wxUSE_LISTBOX=yes
2431   DEFAULT_wxUSE_LISTCTRL=yes
2432   DEFAULT_wxUSE_NOTEBOOK=yes
2433   DEFAULT_wxUSE_ODCOMBOBOX=yes
2434   DEFAULT_wxUSE_RADIOBOX=yes
2435   DEFAULT_wxUSE_RADIOBTN=yes
2436   DEFAULT_wxUSE_SASH=yes
2437   DEFAULT_wxUSE_SCROLLBAR=yes
2438   DEFAULT_wxUSE_SLIDER=yes
2439   DEFAULT_wxUSE_SPINBTN=yes
2440   DEFAULT_wxUSE_SPINCTRL=yes
2441   DEFAULT_wxUSE_SPLITTER=yes
2442   DEFAULT_wxUSE_STATBMP=yes
2443   DEFAULT_wxUSE_STATBOX=yes
2444   DEFAULT_wxUSE_STATLINE=yes
2445   DEFAULT_wxUSE_STATTEXT=yes
2446   DEFAULT_wxUSE_STATUSBAR=yes
2447   DEFAULT_wxUSE_TAB_DIALOG=no
2448   DEFAULT_wxUSE_TEXTCTRL=yes
2449   DEFAULT_wxUSE_TOGGLEBTN=yes
2450   DEFAULT_wxUSE_TOOLBAR=yes
2451   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2452   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2453   DEFAULT_wxUSE_TREEBOOK=yes
2454   DEFAULT_wxUSE_TOOLBOOK=yes
2455   DEFAULT_wxUSE_TREECTRL=yes
2456   DEFAULT_wxUSE_POPUPWIN=yes
2457   DEFAULT_wxUSE_TIPWINDOW=yes
2458
2459   DEFAULT_wxUSE_UNICODE=no
2460   DEFAULT_wxUSE_UNICODE_MSLU=yes
2461   DEFAULT_wxUSE_WCSRTOMBS=no
2462
2463   DEFAULT_wxUSE_PALETTE=yes
2464   DEFAULT_wxUSE_IMAGE=yes
2465   DEFAULT_wxUSE_GIF=yes
2466   DEFAULT_wxUSE_PCX=yes
2467   DEFAULT_wxUSE_IFF=no
2468   DEFAULT_wxUSE_PNM=yes
2469   DEFAULT_wxUSE_XPM=yes
2470   DEFAULT_wxUSE_ICO_CUR=yes
2471   DEFAULT_wxUSE_ACCESSIBILITY=no
2472
2473   DEFAULT_wxUSE_MONOLITHIC=no
2474   DEFAULT_wxUSE_PLUGINS=no
2475   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2476
2477     DEFAULT_wxUSE_GTK2=yes
2478 fi
2479
2480
2481
2482
2483 for toolkit in `echo $ALL_TOOLKITS`; do
2484   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2485   if test "x$LINE" != "x" ; then
2486     has_toolkit_in_cache=1
2487     eval "DEFAULT_$LINE"
2488     eval "CACHE_$toolkit=1"
2489
2490     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2491     if test "x$LINE" != "x" ; then
2492         eval "DEFAULT_$LINE"
2493     fi
2494   fi
2495 done
2496
2497
2498
2499           enablestring=
2500           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2501 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2502           no_cache=0
2503           # Check whether --enable-gui or --disable-gui was given.
2504 if test "${enable_gui+set}" = set; then
2505   enableval="$enable_gui"
2506
2507                           if test "$enableval" = yes; then
2508                             ac_cv_use_gui='wxUSE_GUI=yes'
2509                           else
2510                             ac_cv_use_gui='wxUSE_GUI=no'
2511                           fi
2512
2513 else
2514
2515                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2516                           if test "x$LINE" != x ; then
2517                             eval "DEFAULT_$LINE"
2518                           else
2519                             no_cache=1
2520                           fi
2521
2522                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2523
2524 fi;
2525
2526           eval "$ac_cv_use_gui"
2527           if test "$no_cache" != 1; then
2528             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2529           fi
2530
2531           if test "$wxUSE_GUI" = yes; then
2532             echo "$as_me:$LINENO: result: yes" >&5
2533 echo "${ECHO_T}yes" >&6
2534           else
2535             echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6
2537           fi
2538
2539
2540           enablestring=
2541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2542 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2543           no_cache=0
2544           # Check whether --enable-monolithic or --disable-monolithic was given.
2545 if test "${enable_monolithic+set}" = set; then
2546   enableval="$enable_monolithic"
2547
2548                           if test "$enableval" = yes; then
2549                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2550                           else
2551                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2552                           fi
2553
2554 else
2555
2556                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2557                           if test "x$LINE" != x ; then
2558                             eval "DEFAULT_$LINE"
2559                           else
2560                             no_cache=1
2561                           fi
2562
2563                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2564
2565 fi;
2566
2567           eval "$ac_cv_use_monolithic"
2568           if test "$no_cache" != 1; then
2569             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2570           fi
2571
2572           if test "$wxUSE_MONOLITHIC" = yes; then
2573             echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575           else
2576             echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578           fi
2579
2580
2581           enablestring=
2582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2583 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2584           no_cache=0
2585           # Check whether --enable-plugins or --disable-plugins was given.
2586 if test "${enable_plugins+set}" = set; then
2587   enableval="$enable_plugins"
2588
2589                           if test "$enableval" = yes; then
2590                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2591                           else
2592                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2593                           fi
2594
2595 else
2596
2597                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2598                           if test "x$LINE" != x ; then
2599                             eval "DEFAULT_$LINE"
2600                           else
2601                             no_cache=1
2602                           fi
2603
2604                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2605
2606 fi;
2607
2608           eval "$ac_cv_use_plugins"
2609           if test "$no_cache" != 1; then
2610             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2611           fi
2612
2613           if test "$wxUSE_PLUGINS" = yes; then
2614             echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616           else
2617             echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619           fi
2620
2621
2622           withstring=without
2623           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2624 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2625           no_cache=0
2626
2627 # Check whether --with-subdirs or --without-subdirs was given.
2628 if test "${with_subdirs+set}" = set; then
2629   withval="$with_subdirs"
2630
2631                         if test "$withval" = yes; then
2632                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2633                         else
2634                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2635                         fi
2636
2637 else
2638
2639                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2640                         if test "x$LINE" != x ; then
2641                           eval "DEFAULT_$LINE"
2642                         else
2643                           no_cache=1
2644                         fi
2645
2646                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2647
2648 fi;
2649
2650           eval "$ac_cv_use_subdirs"
2651           if test "$no_cache" != 1; then
2652             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2653           fi
2654
2655           if test "$wxWITH_SUBDIRS" = yes; then
2656             echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2658           else
2659             echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6
2661           fi
2662
2663
2664 if test "$wxUSE_GUI" = "yes"; then
2665
2666
2667           enablestring=
2668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2669 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2670           no_cache=0
2671           # Check whether --enable-universal or --disable-universal was given.
2672 if test "${enable_universal+set}" = set; then
2673   enableval="$enable_universal"
2674
2675                           if test "$enableval" = yes; then
2676                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2677                           else
2678                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2679                           fi
2680
2681 else
2682
2683                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2684                           if test "x$LINE" != x ; then
2685                             eval "DEFAULT_$LINE"
2686                           else
2687                             no_cache=1
2688                           fi
2689
2690                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2691
2692 fi;
2693
2694           eval "$ac_cv_use_universal"
2695           if test "$no_cache" != 1; then
2696             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2697           fi
2698
2699           if test "$wxUSE_UNIVERSAL" = yes; then
2700             echo "$as_me:$LINENO: result: yes" >&5
2701 echo "${ECHO_T}yes" >&6
2702           else
2703             echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6
2705           fi
2706
2707
2708 # Check whether --with-gtk or --without-gtk was given.
2709 if test "${with_gtk+set}" = set; then
2710   withval="$with_gtk"
2711   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2712 fi;
2713
2714 # Check whether --with-motif or --without-motif was given.
2715 if test "${with_motif+set}" = set; then
2716   withval="$with_motif"
2717   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2718 fi;
2719
2720 # Check whether --with-mac or --without-mac was given.
2721 if test "${with_mac+set}" = set; then
2722   withval="$with_mac"
2723   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2724 fi;
2725
2726 # Check whether --with-cocoa or --without-cocoa was given.
2727 if test "${with_cocoa+set}" = set; then
2728   withval="$with_cocoa"
2729   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2730 fi;
2731
2732 # Check whether --with-wine or --without-wine was given.
2733 if test "${with_wine+set}" = set; then
2734   withval="$with_wine"
2735   wxUSE_WINE="$withval" CACHE_WINE=1
2736 fi;
2737
2738 # Check whether --with-msw or --without-msw was given.
2739 if test "${with_msw+set}" = set; then
2740   withval="$with_msw"
2741   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2742 fi;
2743
2744 # Check whether --with-pm or --without-pm was given.
2745 if test "${with_pm+set}" = set; then
2746   withval="$with_pm"
2747   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2748 fi;
2749
2750 # Check whether --with-mgl or --without-mgl was given.
2751 if test "${with_mgl+set}" = set; then
2752   withval="$with_mgl"
2753   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2754 fi;
2755
2756 # Check whether --with-microwin or --without-microwin was given.
2757 if test "${with_microwin+set}" = set; then
2758   withval="$with_microwin"
2759   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2760 fi;
2761
2762 # Check whether --with-x11 or --without-x11 was given.
2763 if test "${with_x11+set}" = set; then
2764   withval="$with_x11"
2765   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2766 fi;
2767
2768           enablestring=
2769           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2770 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2771           no_cache=0
2772           # Check whether --enable-nanox or --disable-nanox was given.
2773 if test "${enable_nanox+set}" = set; then
2774   enableval="$enable_nanox"
2775
2776                           if test "$enableval" = yes; then
2777                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2778                           else
2779                             ac_cv_use_nanox='wxUSE_NANOX=no'
2780                           fi
2781
2782 else
2783
2784                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2785                           if test "x$LINE" != x ; then
2786                             eval "DEFAULT_$LINE"
2787                           else
2788                             no_cache=1
2789                           fi
2790
2791                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2792
2793 fi;
2794
2795           eval "$ac_cv_use_nanox"
2796           if test "$no_cache" != 1; then
2797             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2798           fi
2799
2800           if test "$wxUSE_NANOX" = yes; then
2801             echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803           else
2804             echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806           fi
2807
2808
2809 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2810 if test "${enable_gtk2+set}" = set; then
2811   enableval="$enable_gtk2"
2812   wxUSE_GTK2="$enableval"
2813 fi;
2814
2815           enablestring=
2816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2817 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2818           no_cache=0
2819           # Check whether --enable-gpe or --disable-gpe was given.
2820 if test "${enable_gpe+set}" = set; then
2821   enableval="$enable_gpe"
2822
2823                           if test "$enableval" = yes; then
2824                             ac_cv_use_gpe='wxUSE_GPE=yes'
2825                           else
2826                             ac_cv_use_gpe='wxUSE_GPE=no'
2827                           fi
2828
2829 else
2830
2831                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2832                           if test "x$LINE" != x ; then
2833                             eval "DEFAULT_$LINE"
2834                           else
2835                             no_cache=1
2836                           fi
2837
2838                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2839
2840 fi;
2841
2842           eval "$ac_cv_use_gpe"
2843           if test "$no_cache" != 1; then
2844             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2845           fi
2846
2847           if test "$wxUSE_GPE" = yes; then
2848             echo "$as_me:$LINENO: result: yes" >&5
2849 echo "${ECHO_T}yes" >&6
2850           else
2851             echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2853           fi
2854
2855
2856
2857           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2858 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2859           no_cache=0
2860
2861 # Check whether --with-libpng or --without-libpng was given.
2862 if test "${with_libpng+set}" = set; then
2863   withval="$with_libpng"
2864
2865                         if test "$withval" = yes; then
2866                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2867                         elif test "$withval" = no; then
2868                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2869                         elif test "$withval" = sys; then
2870                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2871                         elif test "$withval" = builtin; then
2872                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2873                         else
2874                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2875 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2876    { (exit 1); exit 1; }; }
2877                         fi
2878
2879 else
2880
2881                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2882                         if test "x$LINE" != x ; then
2883                           eval "DEFAULT_$LINE"
2884                         else
2885                           no_cache=1
2886                         fi
2887
2888                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2889
2890 fi;
2891
2892           eval "$ac_cv_use_libpng"
2893           if test "$no_cache" != 1; then
2894             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2895           fi
2896
2897           if test "$wxUSE_LIBPNG" = yes; then
2898             echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6
2900           elif test "$wxUSE_LIBPNG" = no; then
2901             echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2903           elif test "$wxUSE_LIBPNG" = sys; then
2904             echo "$as_me:$LINENO: result: system version" >&5
2905 echo "${ECHO_T}system version" >&6
2906           elif test "$wxUSE_LIBPNG" = builtin; then
2907             echo "$as_me:$LINENO: result: builtin version" >&5
2908 echo "${ECHO_T}builtin version" >&6
2909           else
2910             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2911 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2912    { (exit 1); exit 1; }; }
2913           fi
2914
2915
2916           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2917 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2918           no_cache=0
2919
2920 # Check whether --with-libjpeg or --without-libjpeg was given.
2921 if test "${with_libjpeg+set}" = set; then
2922   withval="$with_libjpeg"
2923
2924                         if test "$withval" = yes; then
2925                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2926                         elif test "$withval" = no; then
2927                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2928                         elif test "$withval" = sys; then
2929                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2930                         elif test "$withval" = builtin; then
2931                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2932                         else
2933                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2934 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2935    { (exit 1); exit 1; }; }
2936                         fi
2937
2938 else
2939
2940                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2941                         if test "x$LINE" != x ; then
2942                           eval "DEFAULT_$LINE"
2943                         else
2944                           no_cache=1
2945                         fi
2946
2947                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2948
2949 fi;
2950
2951           eval "$ac_cv_use_libjpeg"
2952           if test "$no_cache" != 1; then
2953             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2954           fi
2955
2956           if test "$wxUSE_LIBJPEG" = yes; then
2957             echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6
2959           elif test "$wxUSE_LIBJPEG" = no; then
2960             echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2962           elif test "$wxUSE_LIBJPEG" = sys; then
2963             echo "$as_me:$LINENO: result: system version" >&5
2964 echo "${ECHO_T}system version" >&6
2965           elif test "$wxUSE_LIBJPEG" = builtin; then
2966             echo "$as_me:$LINENO: result: builtin version" >&5
2967 echo "${ECHO_T}builtin version" >&6
2968           else
2969             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2970 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2971    { (exit 1); exit 1; }; }
2972           fi
2973
2974
2975           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2976 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2977           no_cache=0
2978
2979 # Check whether --with-libtiff or --without-libtiff was given.
2980 if test "${with_libtiff+set}" = set; then
2981   withval="$with_libtiff"
2982
2983                         if test "$withval" = yes; then
2984                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2985                         elif test "$withval" = no; then
2986                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2987                         elif test "$withval" = sys; then
2988                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2989                         elif test "$withval" = builtin; then
2990                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2991                         else
2992                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2993 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2994    { (exit 1); exit 1; }; }
2995                         fi
2996
2997 else
2998
2999                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3000                         if test "x$LINE" != x ; then
3001                           eval "DEFAULT_$LINE"
3002                         else
3003                           no_cache=1
3004                         fi
3005
3006                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3007
3008 fi;
3009
3010           eval "$ac_cv_use_libtiff"
3011           if test "$no_cache" != 1; then
3012             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3013           fi
3014
3015           if test "$wxUSE_LIBTIFF" = yes; then
3016             echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6
3018           elif test "$wxUSE_LIBTIFF" = no; then
3019             echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3021           elif test "$wxUSE_LIBTIFF" = sys; then
3022             echo "$as_me:$LINENO: result: system version" >&5
3023 echo "${ECHO_T}system version" >&6
3024           elif test "$wxUSE_LIBTIFF" = builtin; then
3025             echo "$as_me:$LINENO: result: builtin version" >&5
3026 echo "${ECHO_T}builtin version" >&6
3027           else
3028             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3029 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3030    { (exit 1); exit 1; }; }
3031           fi
3032
3033
3034           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3035 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3036           no_cache=0
3037
3038 # Check whether --with-libxpm or --without-libxpm was given.
3039 if test "${with_libxpm+set}" = set; then
3040   withval="$with_libxpm"
3041
3042                         if test "$withval" = yes; then
3043                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3044                         elif test "$withval" = no; then
3045                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3046                         elif test "$withval" = sys; then
3047                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3048                         elif test "$withval" = builtin; then
3049                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3050                         else
3051                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3052 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3053    { (exit 1); exit 1; }; }
3054                         fi
3055
3056 else
3057
3058                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3059                         if test "x$LINE" != x ; then
3060                           eval "DEFAULT_$LINE"
3061                         else
3062                           no_cache=1
3063                         fi
3064
3065                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3066
3067 fi;
3068
3069           eval "$ac_cv_use_libxpm"
3070           if test "$no_cache" != 1; then
3071             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3072           fi
3073
3074           if test "$wxUSE_LIBXPM" = yes; then
3075             echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077           elif test "$wxUSE_LIBXPM" = no; then
3078             echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3080           elif test "$wxUSE_LIBXPM" = sys; then
3081             echo "$as_me:$LINENO: result: system version" >&5
3082 echo "${ECHO_T}system version" >&6
3083           elif test "$wxUSE_LIBXPM" = builtin; then
3084             echo "$as_me:$LINENO: result: builtin version" >&5
3085 echo "${ECHO_T}builtin version" >&6
3086           else
3087             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3088 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3089    { (exit 1); exit 1; }; }
3090           fi
3091
3092
3093           withstring=
3094           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3095 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3096           no_cache=0
3097
3098 # Check whether --with-libmspack or --without-libmspack was given.
3099 if test "${with_libmspack+set}" = set; then
3100   withval="$with_libmspack"
3101
3102                         if test "$withval" = yes; then
3103                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3104                         else
3105                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3106                         fi
3107
3108 else
3109
3110                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3111                         if test "x$LINE" != x ; then
3112                           eval "DEFAULT_$LINE"
3113                         else
3114                           no_cache=1
3115                         fi
3116
3117                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3118
3119 fi;
3120
3121           eval "$ac_cv_use_libmspack"
3122           if test "$no_cache" != 1; then
3123             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3124           fi
3125
3126           if test "$wxUSE_LIBMSPACK" = yes; then
3127             echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129           else
3130             echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3132           fi
3133
3134
3135           withstring=
3136           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3137 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3138           no_cache=0
3139
3140 # Check whether --with-sdl or --without-sdl was given.
3141 if test "${with_sdl+set}" = set; then
3142   withval="$with_sdl"
3143
3144                         if test "$withval" = yes; then
3145                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3146                         else
3147                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3148                         fi
3149
3150 else
3151
3152                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3153                         if test "x$LINE" != x ; then
3154                           eval "DEFAULT_$LINE"
3155                         else
3156                           no_cache=1
3157                         fi
3158
3159                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3160
3161 fi;
3162
3163           eval "$ac_cv_use_sdl"
3164           if test "$no_cache" != 1; then
3165             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3166           fi
3167
3168           if test "$wxUSE_LIBSDL" = yes; then
3169             echo "$as_me:$LINENO: result: yes" >&5
3170 echo "${ECHO_T}yes" >&6
3171           else
3172             echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174           fi
3175
3176
3177           withstring=
3178           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3179 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3180           no_cache=0
3181
3182 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3183 if test "${with_gnomeprint+set}" = set; then
3184   withval="$with_gnomeprint"
3185
3186                         if test "$withval" = yes; then
3187                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3188                         else
3189                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3190                         fi
3191
3192 else
3193
3194                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3195                         if test "x$LINE" != x ; then
3196                           eval "DEFAULT_$LINE"
3197                         else
3198                           no_cache=1
3199                         fi
3200
3201                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3202
3203 fi;
3204
3205           eval "$ac_cv_use_gnomeprint"
3206           if test "$no_cache" != 1; then
3207             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3208           fi
3209
3210           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3211             echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6
3213           else
3214             echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3216           fi
3217
3218
3219           withstring=
3220           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3221 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3222           no_cache=0
3223
3224 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3225 if test "${with_gnomevfs+set}" = set; then
3226   withval="$with_gnomevfs"
3227
3228                         if test "$withval" = yes; then
3229                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3230                         else
3231                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3232                         fi
3233
3234 else
3235
3236                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3237                         if test "x$LINE" != x ; then
3238                           eval "DEFAULT_$LINE"
3239                         else
3240                           no_cache=1
3241                         fi
3242
3243                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3244
3245 fi;
3246
3247           eval "$ac_cv_use_gnomevfs"
3248           if test "$no_cache" != 1; then
3249             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3250           fi
3251
3252           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3253             echo "$as_me:$LINENO: result: yes" >&5
3254 echo "${ECHO_T}yes" >&6
3255           else
3256             echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258           fi
3259
3260
3261           withstring=
3262           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3263 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3264           no_cache=0
3265
3266 # Check whether --with-hildon or --without-hildon was given.
3267 if test "${with_hildon+set}" = set; then
3268   withval="$with_hildon"
3269
3270                         if test "$withval" = yes; then
3271                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3272                         else
3273                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3274                         fi
3275
3276 else
3277
3278                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3279                         if test "x$LINE" != x ; then
3280                           eval "DEFAULT_$LINE"
3281                         else
3282                           no_cache=1
3283                         fi
3284
3285                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3286
3287 fi;
3288
3289           eval "$ac_cv_use_hildon"
3290           if test "$no_cache" != 1; then
3291             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3292           fi
3293
3294           if test "$wxUSE_LIBHILDON" = yes; then
3295             echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6
3297           else
3298             echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3300           fi
3301
3302
3303           withstring=
3304           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3305 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3306           no_cache=0
3307
3308 # Check whether --with-opengl or --without-opengl was given.
3309 if test "${with_opengl+set}" = set; then
3310   withval="$with_opengl"
3311
3312                         if test "$withval" = yes; then
3313                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3314                         else
3315                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3316                         fi
3317
3318 else
3319
3320                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3321                         if test "x$LINE" != x ; then
3322                           eval "DEFAULT_$LINE"
3323                         else
3324                           no_cache=1
3325                         fi
3326
3327                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3328
3329 fi;
3330
3331           eval "$ac_cv_use_opengl"
3332           if test "$no_cache" != 1; then
3333             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3334           fi
3335
3336           if test "$wxUSE_OPENGL" = yes; then
3337             echo "$as_me:$LINENO: result: yes" >&5
3338 echo "${ECHO_T}yes" >&6
3339           else
3340             echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342           fi
3343
3344
3345 fi
3346
3347
3348           withstring=
3349           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3350 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3351           no_cache=0
3352
3353 # Check whether --with-dmalloc or --without-dmalloc was given.
3354 if test "${with_dmalloc+set}" = set; then
3355   withval="$with_dmalloc"
3356
3357                         if test "$withval" = yes; then
3358                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3359                         else
3360                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3361                         fi
3362
3363 else
3364
3365                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3366                         if test "x$LINE" != x ; then
3367                           eval "DEFAULT_$LINE"
3368                         else
3369                           no_cache=1
3370                         fi
3371
3372                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3373
3374 fi;
3375
3376           eval "$ac_cv_use_dmalloc"
3377           if test "$no_cache" != 1; then
3378             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3379           fi
3380
3381           if test "$wxUSE_DMALLOC" = yes; then
3382             echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3384           else
3385             echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387           fi
3388
3389
3390           echo "$as_me:$LINENO: checking for --with-regex" >&5
3391 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3392           no_cache=0
3393
3394 # Check whether --with-regex or --without-regex was given.
3395 if test "${with_regex+set}" = set; then
3396   withval="$with_regex"
3397
3398                         if test "$withval" = yes; then
3399                           ac_cv_use_regex='wxUSE_REGEX=yes'
3400                         elif test "$withval" = no; then
3401                           ac_cv_use_regex='wxUSE_REGEX=no'
3402                         elif test "$withval" = sys; then
3403                           ac_cv_use_regex='wxUSE_REGEX=sys'
3404                         elif test "$withval" = builtin; then
3405                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3406                         else
3407                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3408 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3409    { (exit 1); exit 1; }; }
3410                         fi
3411
3412 else
3413
3414                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3415                         if test "x$LINE" != x ; then
3416                           eval "DEFAULT_$LINE"
3417                         else
3418                           no_cache=1
3419                         fi
3420
3421                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3422
3423 fi;
3424
3425           eval "$ac_cv_use_regex"
3426           if test "$no_cache" != 1; then
3427             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3428           fi
3429
3430           if test "$wxUSE_REGEX" = yes; then
3431             echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6
3433           elif test "$wxUSE_REGEX" = no; then
3434             echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436           elif test "$wxUSE_REGEX" = sys; then
3437             echo "$as_me:$LINENO: result: system version" >&5
3438 echo "${ECHO_T}system version" >&6
3439           elif test "$wxUSE_REGEX" = builtin; then
3440             echo "$as_me:$LINENO: result: builtin version" >&5
3441 echo "${ECHO_T}builtin version" >&6
3442           else
3443             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3444 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3445    { (exit 1); exit 1; }; }
3446           fi
3447
3448
3449           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3450 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3451           no_cache=0
3452
3453 # Check whether --with-zlib or --without-zlib was given.
3454 if test "${with_zlib+set}" = set; then
3455   withval="$with_zlib"
3456
3457                         if test "$withval" = yes; then
3458                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3459                         elif test "$withval" = no; then
3460                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3461                         elif test "$withval" = sys; then
3462                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3463                         elif test "$withval" = builtin; then
3464                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3465                         else
3466                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3467 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3468    { (exit 1); exit 1; }; }
3469                         fi
3470
3471 else
3472
3473                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3474                         if test "x$LINE" != x ; then
3475                           eval "DEFAULT_$LINE"
3476                         else
3477                           no_cache=1
3478                         fi
3479
3480                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3481
3482 fi;
3483
3484           eval "$ac_cv_use_zlib"
3485           if test "$no_cache" != 1; then
3486             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3487           fi
3488
3489           if test "$wxUSE_ZLIB" = yes; then
3490             echo "$as_me:$LINENO: result: yes" >&5
3491 echo "${ECHO_T}yes" >&6
3492           elif test "$wxUSE_ZLIB" = no; then
3493             echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3495           elif test "$wxUSE_ZLIB" = sys; then
3496             echo "$as_me:$LINENO: result: system version" >&5
3497 echo "${ECHO_T}system version" >&6
3498           elif test "$wxUSE_ZLIB" = builtin; then
3499             echo "$as_me:$LINENO: result: builtin version" >&5
3500 echo "${ECHO_T}builtin version" >&6
3501           else
3502             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3503 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3504    { (exit 1); exit 1; }; }
3505           fi
3506
3507
3508           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3509 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3510           no_cache=0
3511
3512 # Check whether --with-odbc or --without-odbc was given.
3513 if test "${with_odbc+set}" = set; then
3514   withval="$with_odbc"
3515
3516                         if test "$withval" = yes; then
3517                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3518                         elif test "$withval" = no; then
3519                           ac_cv_use_odbc='wxUSE_ODBC=no'
3520                         elif test "$withval" = sys; then
3521                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3522                         elif test "$withval" = builtin; then
3523                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3524                         else
3525                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3526 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3527    { (exit 1); exit 1; }; }
3528                         fi
3529
3530 else
3531
3532                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3533                         if test "x$LINE" != x ; then
3534                           eval "DEFAULT_$LINE"
3535                         else
3536                           no_cache=1
3537                         fi
3538
3539                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3540
3541 fi;
3542
3543           eval "$ac_cv_use_odbc"
3544           if test "$no_cache" != 1; then
3545             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3546           fi
3547
3548           if test "$wxUSE_ODBC" = yes; then
3549             echo "$as_me:$LINENO: result: yes" >&5
3550 echo "${ECHO_T}yes" >&6
3551           elif test "$wxUSE_ODBC" = no; then
3552             echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3554           elif test "$wxUSE_ODBC" = sys; then
3555             echo "$as_me:$LINENO: result: system version" >&5
3556 echo "${ECHO_T}system version" >&6
3557           elif test "$wxUSE_ODBC" = builtin; then
3558             echo "$as_me:$LINENO: result: builtin version" >&5
3559 echo "${ECHO_T}builtin version" >&6
3560           else
3561             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3562 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3563    { (exit 1); exit 1; }; }
3564           fi
3565
3566
3567           echo "$as_me:$LINENO: checking for --with-expat" >&5
3568 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3569           no_cache=0
3570
3571 # Check whether --with-expat or --without-expat was given.
3572 if test "${with_expat+set}" = set; then
3573   withval="$with_expat"
3574
3575                         if test "$withval" = yes; then
3576                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3577                         elif test "$withval" = no; then
3578                           ac_cv_use_expat='wxUSE_EXPAT=no'
3579                         elif test "$withval" = sys; then
3580                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3581                         elif test "$withval" = builtin; then
3582                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3583                         else
3584                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3585 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3586    { (exit 1); exit 1; }; }
3587                         fi
3588
3589 else
3590
3591                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3592                         if test "x$LINE" != x ; then
3593                           eval "DEFAULT_$LINE"
3594                         else
3595                           no_cache=1
3596                         fi
3597
3598                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3599
3600 fi;
3601
3602           eval "$ac_cv_use_expat"
3603           if test "$no_cache" != 1; then
3604             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3605           fi
3606
3607           if test "$wxUSE_EXPAT" = yes; then
3608             echo "$as_me:$LINENO: result: yes" >&5
3609 echo "${ECHO_T}yes" >&6
3610           elif test "$wxUSE_EXPAT" = no; then
3611             echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613           elif test "$wxUSE_EXPAT" = sys; then
3614             echo "$as_me:$LINENO: result: system version" >&5
3615 echo "${ECHO_T}system version" >&6
3616           elif test "$wxUSE_EXPAT" = builtin; then
3617             echo "$as_me:$LINENO: result: builtin version" >&5
3618 echo "${ECHO_T}builtin version" >&6
3619           else
3620             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3621 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3622    { (exit 1); exit 1; }; }
3623           fi
3624
3625
3626
3627
3628           enablestring=
3629           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3630 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3631           no_cache=0
3632           # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634   enableval="$enable_shared"
3635
3636                           if test "$enableval" = yes; then
3637                             ac_cv_use_shared='wxUSE_SHARED=yes'
3638                           else
3639                             ac_cv_use_shared='wxUSE_SHARED=no'
3640                           fi
3641
3642 else
3643
3644                           LINE=`grep "wxUSE_SHARED" ${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_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3652
3653 fi;
3654
3655           eval "$ac_cv_use_shared"
3656           if test "$no_cache" != 1; then
3657             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_SHARED" = yes; then
3661             echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6
3663           else
3664             echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666           fi
3667
3668
3669           enablestring=
3670           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3671 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3672           no_cache=0
3673           # Check whether --enable-optimise or --disable-optimise was given.
3674 if test "${enable_optimise+set}" = set; then
3675   enableval="$enable_optimise"
3676
3677                           if test "$enableval" = yes; then
3678                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3679                           else
3680                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3681                           fi
3682
3683 else
3684
3685                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3686                           if test "x$LINE" != x ; then
3687                             eval "DEFAULT_$LINE"
3688                           else
3689                             no_cache=1
3690                           fi
3691
3692                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3693
3694 fi;
3695
3696           eval "$ac_cv_use_optimise"
3697           if test "$no_cache" != 1; then
3698             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3699           fi
3700
3701           if test "$wxUSE_OPTIMISE" = yes; then
3702             echo "$as_me:$LINENO: result: yes" >&5
3703 echo "${ECHO_T}yes" >&6
3704           else
3705             echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707           fi
3708
3709
3710           enablestring=
3711           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3712 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3713           no_cache=0
3714           # Check whether --enable-debug or --disable-debug was given.
3715 if test "${enable_debug+set}" = set; then
3716   enableval="$enable_debug"
3717
3718                           if test "$enableval" = yes; then
3719                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3720                           else
3721                             ac_cv_use_debug='wxUSE_DEBUG=no'
3722                           fi
3723
3724 else
3725
3726                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3727                           if test "x$LINE" != x ; then
3728                             eval "DEFAULT_$LINE"
3729                           else
3730                             no_cache=1
3731                           fi
3732
3733                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3734
3735 fi;
3736
3737           eval "$ac_cv_use_debug"
3738           if test "$no_cache" != 1; then
3739             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3740           fi
3741
3742           if test "$wxUSE_DEBUG" = yes; then
3743             echo "$as_me:$LINENO: result: yes" >&5
3744 echo "${ECHO_T}yes" >&6
3745           else
3746             echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748           fi
3749
3750
3751           enablestring=
3752           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3753 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3754           no_cache=0
3755           # Check whether --enable-stl or --disable-stl was given.
3756 if test "${enable_stl+set}" = set; then
3757   enableval="$enable_stl"
3758
3759                           if test "$enableval" = yes; then
3760                             ac_cv_use_stl='wxUSE_STL=yes'
3761                           else
3762                             ac_cv_use_stl='wxUSE_STL=no'
3763                           fi
3764
3765 else
3766
3767                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3768                           if test "x$LINE" != x ; then
3769                             eval "DEFAULT_$LINE"
3770                           else
3771                             no_cache=1
3772                           fi
3773
3774                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3775
3776 fi;
3777
3778           eval "$ac_cv_use_stl"
3779           if test "$no_cache" != 1; then
3780             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3781           fi
3782
3783           if test "$wxUSE_STL" = yes; then
3784             echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6
3786           else
3787             echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789           fi
3790
3791 if test "$USE_OS2" = "1"; then
3792     DEFAULT_wxUSE_OMF=no
3793
3794           enablestring=
3795           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3796 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3797           no_cache=0
3798           # Check whether --enable-omf or --disable-omf was given.
3799 if test "${enable_omf+set}" = set; then
3800   enableval="$enable_omf"
3801
3802                           if test "$enableval" = yes; then
3803                             ac_cv_use_omf='wxUSE_OMF=yes'
3804                           else
3805                             ac_cv_use_omf='wxUSE_OMF=no'
3806                           fi
3807
3808 else
3809
3810                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3811                           if test "x$LINE" != x ; then
3812                             eval "DEFAULT_$LINE"
3813                           else
3814                             no_cache=1
3815                           fi
3816
3817                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3818
3819 fi;
3820
3821           eval "$ac_cv_use_omf"
3822           if test "$no_cache" != 1; then
3823             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3824           fi
3825
3826           if test "$wxUSE_OMF" = yes; then
3827             echo "$as_me:$LINENO: result: yes" >&5
3828 echo "${ECHO_T}yes" >&6
3829           else
3830             echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832           fi
3833
3834 fi
3835
3836 if test "$wxUSE_DEBUG" = "yes"; then
3837   DEFAULT_wxUSE_DEBUG_FLAG=yes
3838   DEFAULT_wxUSE_DEBUG_INFO=yes
3839   BUILD=debug
3840 elif test "$wxUSE_DEBUG" = "no"; then
3841   DEFAULT_wxUSE_DEBUG_FLAG=no
3842   DEFAULT_wxUSE_DEBUG_INFO=no
3843   BUILD=release
3844 fi
3845
3846
3847           enablestring=
3848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3849 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3850           no_cache=0
3851           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3852 if test "${enable_debug_flag+set}" = set; then
3853   enableval="$enable_debug_flag"
3854
3855                           if test "$enableval" = yes; then
3856                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3857                           else
3858                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3859                           fi
3860
3861 else
3862
3863                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3864                           if test "x$LINE" != x ; then
3865                             eval "DEFAULT_$LINE"
3866                           else
3867                             no_cache=1
3868                           fi
3869
3870                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3871
3872 fi;
3873
3874           eval "$ac_cv_use_debug_flag"
3875           if test "$no_cache" != 1; then
3876             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3877           fi
3878
3879           if test "$wxUSE_DEBUG_FLAG" = yes; then
3880             echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6
3882           else
3883             echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885           fi
3886
3887
3888           enablestring=
3889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3890 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3891           no_cache=0
3892           # Check whether --enable-debug_info or --disable-debug_info was given.
3893 if test "${enable_debug_info+set}" = set; then
3894   enableval="$enable_debug_info"
3895
3896                           if test "$enableval" = yes; then
3897                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3898                           else
3899                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3900                           fi
3901
3902 else
3903
3904                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3905                           if test "x$LINE" != x ; then
3906                             eval "DEFAULT_$LINE"
3907                           else
3908                             no_cache=1
3909                           fi
3910
3911                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3912
3913 fi;
3914
3915           eval "$ac_cv_use_debug_info"
3916           if test "$no_cache" != 1; then
3917             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3918           fi
3919
3920           if test "$wxUSE_DEBUG_INFO" = yes; then
3921             echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6
3923           else
3924             echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926           fi
3927
3928
3929           enablestring=
3930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3931 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3932           no_cache=0
3933           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3934 if test "${enable_debug_gdb+set}" = set; then
3935   enableval="$enable_debug_gdb"
3936
3937                           if test "$enableval" = yes; then
3938                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3939                           else
3940                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3941                           fi
3942
3943 else
3944
3945                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3946                           if test "x$LINE" != x ; then
3947                             eval "DEFAULT_$LINE"
3948                           else
3949                             no_cache=1
3950                           fi
3951
3952                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3953
3954 fi;
3955
3956           eval "$ac_cv_use_debug_gdb"
3957           if test "$no_cache" != 1; then
3958             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3959           fi
3960
3961           if test "$wxUSE_DEBUG_GDB" = yes; then
3962             echo "$as_me:$LINENO: result: yes" >&5
3963 echo "${ECHO_T}yes" >&6
3964           else
3965             echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967           fi
3968
3969
3970           enablestring=
3971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3972 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3973           no_cache=0
3974           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3975 if test "${enable_debug_cntxt+set}" = set; then
3976   enableval="$enable_debug_cntxt"
3977
3978                           if test "$enableval" = yes; then
3979                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3980                           else
3981                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3982                           fi
3983
3984 else
3985
3986                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3987                           if test "x$LINE" != x ; then
3988                             eval "DEFAULT_$LINE"
3989                           else
3990                             no_cache=1
3991                           fi
3992
3993                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3994
3995 fi;
3996
3997           eval "$ac_cv_use_debug_cntxt"
3998           if test "$no_cache" != 1; then
3999             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4000           fi
4001
4002           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4003             echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6
4005           else
4006             echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4008           fi
4009
4010
4011           enablestring=
4012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4013 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4014           no_cache=0
4015           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4016 if test "${enable_mem_tracing+set}" = set; then
4017   enableval="$enable_mem_tracing"
4018
4019                           if test "$enableval" = yes; then
4020                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4021                           else
4022                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4023                           fi
4024
4025 else
4026
4027                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4028                           if test "x$LINE" != x ; then
4029                             eval "DEFAULT_$LINE"
4030                           else
4031                             no_cache=1
4032                           fi
4033
4034                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4035
4036 fi;
4037
4038           eval "$ac_cv_use_mem_tracing"
4039           if test "$no_cache" != 1; then
4040             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4041           fi
4042
4043           if test "$wxUSE_MEM_TRACING" = yes; then
4044             echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6
4046           else
4047             echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049           fi
4050
4051
4052           enablestring=
4053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4054 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4055           no_cache=0
4056           # Check whether --enable-profile or --disable-profile was given.
4057 if test "${enable_profile+set}" = set; then
4058   enableval="$enable_profile"
4059
4060                           if test "$enableval" = yes; then
4061                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4062                           else
4063                             ac_cv_use_profile='wxUSE_PROFILE=no'
4064                           fi
4065
4066 else
4067
4068                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4069                           if test "x$LINE" != x ; then
4070                             eval "DEFAULT_$LINE"
4071                           else
4072                             no_cache=1
4073                           fi
4074
4075                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4076
4077 fi;
4078
4079           eval "$ac_cv_use_profile"
4080           if test "$no_cache" != 1; then
4081             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4082           fi
4083
4084           if test "$wxUSE_PROFILE" = yes; then
4085             echo "$as_me:$LINENO: result: yes" >&5
4086 echo "${ECHO_T}yes" >&6
4087           else
4088             echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090           fi
4091
4092
4093           enablestring=
4094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4095 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4096           no_cache=0
4097           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4098 if test "${enable_no_rtti+set}" = set; then
4099   enableval="$enable_no_rtti"
4100
4101                           if test "$enableval" = yes; then
4102                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4103                           else
4104                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4105                           fi
4106
4107 else
4108
4109                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4110                           if test "x$LINE" != x ; then
4111                             eval "DEFAULT_$LINE"
4112                           else
4113                             no_cache=1
4114                           fi
4115
4116                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4117
4118 fi;
4119
4120           eval "$ac_cv_use_no_rtti"
4121           if test "$no_cache" != 1; then
4122             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4123           fi
4124
4125           if test "$wxUSE_NO_RTTI" = yes; then
4126             echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128           else
4129             echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4131           fi
4132
4133
4134           enablestring=
4135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4136 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4137           no_cache=0
4138           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4139 if test "${enable_no_exceptions+set}" = set; then
4140   enableval="$enable_no_exceptions"
4141
4142                           if test "$enableval" = yes; then
4143                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4144                           else
4145                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4146                           fi
4147
4148 else
4149
4150                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4151                           if test "x$LINE" != x ; then
4152                             eval "DEFAULT_$LINE"
4153                           else
4154                             no_cache=1
4155                           fi
4156
4157                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4158
4159 fi;
4160
4161           eval "$ac_cv_use_no_exceptions"
4162           if test "$no_cache" != 1; then
4163             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4164           fi
4165
4166           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4167             echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6
4169           else
4170             echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172           fi
4173
4174
4175           enablestring=
4176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4177 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4178           no_cache=0
4179           # Check whether --enable-permissive or --disable-permissive was given.
4180 if test "${enable_permissive+set}" = set; then
4181   enableval="$enable_permissive"
4182
4183                           if test "$enableval" = yes; then
4184                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4185                           else
4186                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4187                           fi
4188
4189 else
4190
4191                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4192                           if test "x$LINE" != x ; then
4193                             eval "DEFAULT_$LINE"
4194                           else
4195                             no_cache=1
4196                           fi
4197
4198                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4199
4200 fi;
4201
4202           eval "$ac_cv_use_permissive"
4203           if test "$no_cache" != 1; then
4204             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4205           fi
4206
4207           if test "$wxUSE_PERMISSIVE" = yes; then
4208             echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6
4210           else
4211             echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213           fi
4214
4215
4216           enablestring=
4217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4218 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4219           no_cache=0
4220           # Check whether --enable-no_deps or --disable-no_deps was given.
4221 if test "${enable_no_deps+set}" = set; then
4222   enableval="$enable_no_deps"
4223
4224                           if test "$enableval" = yes; then
4225                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4226                           else
4227                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4228                           fi
4229
4230 else
4231
4232                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4233                           if test "x$LINE" != x ; then
4234                             eval "DEFAULT_$LINE"
4235                           else
4236                             no_cache=1
4237                           fi
4238
4239                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4240
4241 fi;
4242
4243           eval "$ac_cv_use_no_deps"
4244           if test "$no_cache" != 1; then
4245             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4246           fi
4247
4248           if test "$wxUSE_NO_DEPS" = yes; then
4249             echo "$as_me:$LINENO: result: yes" >&5
4250 echo "${ECHO_T}yes" >&6
4251           else
4252             echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254           fi
4255
4256
4257           enablestring=
4258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4259 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4260           no_cache=0
4261           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4262 if test "${enable_universal_binary+set}" = set; then
4263   enableval="$enable_universal_binary"
4264
4265                           if test "$enableval" = yes; then
4266                             ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4267                           else
4268                             ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4269                           fi
4270
4271 else
4272
4273                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4274                           if test "x$LINE" != x ; then
4275                             eval "DEFAULT_$LINE"
4276                           else
4277                             no_cache=1
4278                           fi
4279
4280                           ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4281
4282 fi;
4283
4284           eval "$ac_cv_use_universal_binary"
4285           if test "$no_cache" != 1; then
4286             echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4287           fi
4288
4289           if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4290             echo "$as_me:$LINENO: result: yes" >&5
4291 echo "${ECHO_T}yes" >&6
4292           else
4293             echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295           fi
4296
4297
4298
4299           enablestring=enable
4300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4301 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4302           no_cache=0
4303           # Check whether --enable-compat24 or --disable-compat24 was given.
4304 if test "${enable_compat24+set}" = set; then
4305   enableval="$enable_compat24"
4306
4307                           if test "$enableval" = yes; then
4308                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4309                           else
4310                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4311                           fi
4312
4313 else
4314
4315                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4316                           if test "x$LINE" != x ; then
4317                             eval "DEFAULT_$LINE"
4318                           else
4319                             no_cache=1
4320                           fi
4321
4322                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4323
4324 fi;
4325
4326           eval "$ac_cv_use_compat24"
4327           if test "$no_cache" != 1; then
4328             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4329           fi
4330
4331           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4332             echo "$as_me:$LINENO: result: yes" >&5
4333 echo "${ECHO_T}yes" >&6
4334           else
4335             echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4337           fi
4338
4339
4340           enablestring=disable
4341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4342 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4343           no_cache=0
4344           # Check whether --enable-compat26 or --disable-compat26 was given.
4345 if test "${enable_compat26+set}" = set; then
4346   enableval="$enable_compat26"
4347
4348                           if test "$enableval" = yes; then
4349                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4350                           else
4351                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4352                           fi
4353
4354 else
4355
4356                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4357                           if test "x$LINE" != x ; then
4358                             eval "DEFAULT_$LINE"
4359                           else
4360                             no_cache=1
4361                           fi
4362
4363                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4364
4365 fi;
4366
4367           eval "$ac_cv_use_compat26"
4368           if test "$no_cache" != 1; then
4369             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4370           fi
4371
4372           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4373             echo "$as_me:$LINENO: result: yes" >&5
4374 echo "${ECHO_T}yes" >&6
4375           else
4376             echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4378           fi
4379
4380
4381
4382           enablestring=
4383           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4384 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4385           no_cache=0
4386           # Check whether --enable-rpath or --disable-rpath was given.
4387 if test "${enable_rpath+set}" = set; then
4388   enableval="$enable_rpath"
4389
4390                           if test "$enableval" = yes; then
4391                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4392                           else
4393                             ac_cv_use_rpath='wxUSE_RPATH=no'
4394                           fi
4395
4396 else
4397
4398                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4399                           if test "x$LINE" != x ; then
4400                             eval "DEFAULT_$LINE"
4401                           else
4402                             no_cache=1
4403                           fi
4404
4405                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4406
4407 fi;
4408
4409           eval "$ac_cv_use_rpath"
4410           if test "$no_cache" != 1; then
4411             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4412           fi
4413
4414           if test "$wxUSE_RPATH" = yes; then
4415             echo "$as_me:$LINENO: result: yes" >&5
4416 echo "${ECHO_T}yes" >&6
4417           else
4418             echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4420           fi
4421
4422
4423
4424
4425
4426           enablestring=
4427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4428 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4429           no_cache=0
4430           # Check whether --enable-intl or --disable-intl was given.
4431 if test "${enable_intl+set}" = set; then
4432   enableval="$enable_intl"
4433
4434                           if test "$enableval" = yes; then
4435                             ac_cv_use_intl='wxUSE_INTL=yes'
4436                           else
4437                             ac_cv_use_intl='wxUSE_INTL=no'
4438                           fi
4439
4440 else
4441
4442                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4443                           if test "x$LINE" != x ; then
4444                             eval "DEFAULT_$LINE"
4445                           else
4446                             no_cache=1
4447                           fi
4448
4449                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4450
4451 fi;
4452
4453           eval "$ac_cv_use_intl"
4454           if test "$no_cache" != 1; then
4455             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4456           fi
4457
4458           if test "$wxUSE_INTL" = yes; then
4459             echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6
4461           else
4462             echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464           fi
4465
4466
4467           enablestring=
4468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4469 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4470           no_cache=0
4471           # Check whether --enable-config or --disable-config was given.
4472 if test "${enable_config+set}" = set; then
4473   enableval="$enable_config"
4474
4475                           if test "$enableval" = yes; then
4476                             ac_cv_use_config='wxUSE_CONFIG=yes'
4477                           else
4478                             ac_cv_use_config='wxUSE_CONFIG=no'
4479                           fi
4480
4481 else
4482
4483                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4484                           if test "x$LINE" != x ; then
4485                             eval "DEFAULT_$LINE"
4486                           else
4487                             no_cache=1
4488                           fi
4489
4490                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4491
4492 fi;
4493
4494           eval "$ac_cv_use_config"
4495           if test "$no_cache" != 1; then
4496             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4497           fi
4498
4499           if test "$wxUSE_CONFIG" = yes; then
4500             echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6
4502           else
4503             echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505           fi
4506
4507
4508
4509           enablestring=
4510           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4511 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4512           no_cache=0
4513           # Check whether --enable-protocols or --disable-protocols was given.
4514 if test "${enable_protocols+set}" = set; then
4515   enableval="$enable_protocols"
4516
4517                           if test "$enableval" = yes; then
4518                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4519                           else
4520                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4521                           fi
4522
4523 else
4524
4525                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4526                           if test "x$LINE" != x ; then
4527                             eval "DEFAULT_$LINE"
4528                           else
4529                             no_cache=1
4530                           fi
4531
4532                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4533
4534 fi;
4535
4536           eval "$ac_cv_use_protocols"
4537           if test "$no_cache" != 1; then
4538             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4539           fi
4540
4541           if test "$wxUSE_PROTOCOL" = yes; then
4542             echo "$as_me:$LINENO: result: yes" >&5
4543 echo "${ECHO_T}yes" >&6
4544           else
4545             echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547           fi
4548
4549
4550           enablestring=
4551           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4552 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4553           no_cache=0
4554           # Check whether --enable-ftp or --disable-ftp was given.
4555 if test "${enable_ftp+set}" = set; then
4556   enableval="$enable_ftp"
4557
4558                           if test "$enableval" = yes; then
4559                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4560                           else
4561                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4562                           fi
4563
4564 else
4565
4566                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4567                           if test "x$LINE" != x ; then
4568                             eval "DEFAULT_$LINE"
4569                           else
4570                             no_cache=1
4571                           fi
4572
4573                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4574
4575 fi;
4576
4577           eval "$ac_cv_use_ftp"
4578           if test "$no_cache" != 1; then
4579             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4580           fi
4581
4582           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4583             echo "$as_me:$LINENO: result: yes" >&5
4584 echo "${ECHO_T}yes" >&6
4585           else
4586             echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4588           fi
4589
4590
4591           enablestring=
4592           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4593 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4594           no_cache=0
4595           # Check whether --enable-http or --disable-http was given.
4596 if test "${enable_http+set}" = set; then
4597   enableval="$enable_http"
4598
4599                           if test "$enableval" = yes; then
4600                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4601                           else
4602                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4603                           fi
4604
4605 else
4606
4607                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4608                           if test "x$LINE" != x ; then
4609                             eval "DEFAULT_$LINE"
4610                           else
4611                             no_cache=1
4612                           fi
4613
4614                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4615
4616 fi;
4617
4618           eval "$ac_cv_use_http"
4619           if test "$no_cache" != 1; then
4620             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4621           fi
4622
4623           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4624             echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4626           else
4627             echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629           fi
4630
4631
4632           enablestring=
4633           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4634 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4635           no_cache=0
4636           # Check whether --enable-fileproto or --disable-fileproto was given.
4637 if test "${enable_fileproto+set}" = set; then
4638   enableval="$enable_fileproto"
4639
4640                           if test "$enableval" = yes; then
4641                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4642                           else
4643                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4644                           fi
4645
4646 else
4647
4648                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4649                           if test "x$LINE" != x ; then
4650                             eval "DEFAULT_$LINE"
4651                           else
4652                             no_cache=1
4653                           fi
4654
4655                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4656
4657 fi;
4658
4659           eval "$ac_cv_use_fileproto"
4660           if test "$no_cache" != 1; then
4661             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4662           fi
4663
4664           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4665             echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6
4667           else
4668             echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670           fi
4671
4672
4673           enablestring=
4674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4675 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4676           no_cache=0
4677           # Check whether --enable-sockets or --disable-sockets was given.
4678 if test "${enable_sockets+set}" = set; then
4679   enableval="$enable_sockets"
4680
4681                           if test "$enableval" = yes; then
4682                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4683                           else
4684                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4685                           fi
4686
4687 else
4688
4689                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4690                           if test "x$LINE" != x ; then
4691                             eval "DEFAULT_$LINE"
4692                           else
4693                             no_cache=1
4694                           fi
4695
4696                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4697
4698 fi;
4699
4700           eval "$ac_cv_use_sockets"
4701           if test "$no_cache" != 1; then
4702             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4703           fi
4704
4705           if test "$wxUSE_SOCKETS" = yes; then
4706             echo "$as_me:$LINENO: result: yes" >&5
4707 echo "${ECHO_T}yes" >&6
4708           else
4709             echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4711           fi
4712
4713
4714           enablestring=
4715           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4716 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4717           no_cache=0
4718           # Check whether --enable-ole or --disable-ole was given.
4719 if test "${enable_ole+set}" = set; then
4720   enableval="$enable_ole"
4721
4722                           if test "$enableval" = yes; then
4723                             ac_cv_use_ole='wxUSE_OLE=yes'
4724                           else
4725                             ac_cv_use_ole='wxUSE_OLE=no'
4726                           fi
4727
4728 else
4729
4730                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4731                           if test "x$LINE" != x ; then
4732                             eval "DEFAULT_$LINE"
4733                           else
4734                             no_cache=1
4735                           fi
4736
4737                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4738
4739 fi;
4740
4741           eval "$ac_cv_use_ole"
4742           if test "$no_cache" != 1; then
4743             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4744           fi
4745
4746           if test "$wxUSE_OLE" = yes; then
4747             echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4749           else
4750             echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752           fi
4753
4754
4755           enablestring=
4756           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4758           no_cache=0
4759           # Check whether --enable-dataobj or --disable-dataobj was given.
4760 if test "${enable_dataobj+set}" = set; then
4761   enableval="$enable_dataobj"
4762
4763                           if test "$enableval" = yes; then
4764                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4765                           else
4766                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4767                           fi
4768
4769 else
4770
4771                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4772                           if test "x$LINE" != x ; then
4773                             eval "DEFAULT_$LINE"
4774                           else
4775                             no_cache=1
4776                           fi
4777
4778                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4779
4780 fi;
4781
4782           eval "$ac_cv_use_dataobj"
4783           if test "$no_cache" != 1; then
4784             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4785           fi
4786
4787           if test "$wxUSE_DATAOBJ" = yes; then
4788             echo "$as_me:$LINENO: result: yes" >&5
4789 echo "${ECHO_T}yes" >&6
4790           else
4791             echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793           fi
4794
4795
4796
4797           enablestring=
4798           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4799 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4800           no_cache=0
4801           # Check whether --enable-ipc or --disable-ipc was given.
4802 if test "${enable_ipc+set}" = set; then
4803   enableval="$enable_ipc"
4804
4805                           if test "$enableval" = yes; then
4806                             ac_cv_use_ipc='wxUSE_IPC=yes'
4807                           else
4808                             ac_cv_use_ipc='wxUSE_IPC=no'
4809                           fi
4810
4811 else
4812
4813                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4814                           if test "x$LINE" != x ; then
4815                             eval "DEFAULT_$LINE"
4816                           else
4817                             no_cache=1
4818                           fi
4819
4820                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4821
4822 fi;
4823
4824           eval "$ac_cv_use_ipc"
4825           if test "$no_cache" != 1; then
4826             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4827           fi
4828
4829           if test "$wxUSE_IPC" = yes; then
4830             echo "$as_me:$LINENO: result: yes" >&5
4831 echo "${ECHO_T}yes" >&6
4832           else
4833             echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6
4835           fi
4836
4837
4838
4839           enablestring=
4840           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4841 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4842           no_cache=0
4843           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4844 if test "${enable_apple_ieee+set}" = set; then
4845   enableval="$enable_apple_ieee"
4846
4847                           if test "$enableval" = yes; then
4848                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4849                           else
4850                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4851                           fi
4852
4853 else
4854
4855                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4856                           if test "x$LINE" != x ; then
4857                             eval "DEFAULT_$LINE"
4858                           else
4859                             no_cache=1
4860                           fi
4861
4862                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4863
4864 fi;
4865
4866           eval "$ac_cv_use_apple_ieee"
4867           if test "$no_cache" != 1; then
4868             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4869           fi
4870
4871           if test "$wxUSE_APPLE_IEEE" = yes; then
4872             echo "$as_me:$LINENO: result: yes" >&5
4873 echo "${ECHO_T}yes" >&6
4874           else
4875             echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4877           fi
4878
4879
4880           enablestring=
4881           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4882 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4883           no_cache=0
4884           # Check whether --enable-arcstream or --disable-arcstream was given.
4885 if test "${enable_arcstream+set}" = set; then
4886   enableval="$enable_arcstream"
4887
4888                           if test "$enableval" = yes; then
4889                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4890                           else
4891                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4892                           fi
4893
4894 else
4895
4896                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4897                           if test "x$LINE" != x ; then
4898                             eval "DEFAULT_$LINE"
4899                           else
4900                             no_cache=1
4901                           fi
4902
4903                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4904
4905 fi;
4906
4907           eval "$ac_cv_use_arcstream"
4908           if test "$no_cache" != 1; then
4909             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4910           fi
4911
4912           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4913             echo "$as_me:$LINENO: result: yes" >&5
4914 echo "${ECHO_T}yes" >&6
4915           else
4916             echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4918           fi
4919
4920
4921           enablestring=
4922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4923 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4924           no_cache=0
4925           # Check whether --enable-backtrace or --disable-backtrace was given.
4926 if test "${enable_backtrace+set}" = set; then
4927   enableval="$enable_backtrace"
4928
4929                           if test "$enableval" = yes; then
4930                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4931                           else
4932                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4933                           fi
4934
4935 else
4936
4937                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4938                           if test "x$LINE" != x ; then
4939                             eval "DEFAULT_$LINE"
4940                           else
4941                             no_cache=1
4942                           fi
4943
4944                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4945
4946 fi;
4947
4948           eval "$ac_cv_use_backtrace"
4949           if test "$no_cache" != 1; then
4950             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4951           fi
4952
4953           if test "$wxUSE_STACKWALKER" = yes; then
4954             echo "$as_me:$LINENO: result: yes" >&5
4955 echo "${ECHO_T}yes" >&6
4956           else
4957             echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4959           fi
4960
4961
4962           enablestring=
4963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4964 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4965           no_cache=0
4966           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4967 if test "${enable_catch_segvs+set}" = set; then
4968   enableval="$enable_catch_segvs"
4969
4970                           if test "$enableval" = yes; then
4971                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4972                           else
4973                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4974                           fi
4975
4976 else
4977
4978                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4979                           if test "x$LINE" != x ; then
4980                             eval "DEFAULT_$LINE"
4981                           else
4982                             no_cache=1
4983                           fi
4984
4985                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4986
4987 fi;
4988
4989           eval "$ac_cv_use_catch_segvs"
4990           if test "$no_cache" != 1; then
4991             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4992           fi
4993
4994           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4995             echo "$as_me:$LINENO: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6
4997           else
4998             echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000           fi
5001
5002
5003           enablestring=
5004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5005 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5006           no_cache=0
5007           # Check whether --enable-cmdline or --disable-cmdline was given.
5008 if test "${enable_cmdline+set}" = set; then
5009   enableval="$enable_cmdline"
5010
5011                           if test "$enableval" = yes; then
5012                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5013                           else
5014                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5015                           fi
5016
5017 else
5018
5019                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5020                           if test "x$LINE" != x ; then
5021                             eval "DEFAULT_$LINE"
5022                           else
5023                             no_cache=1
5024                           fi
5025
5026                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5027
5028 fi;
5029
5030           eval "$ac_cv_use_cmdline"
5031           if test "$no_cache" != 1; then
5032             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5033           fi
5034
5035           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5036             echo "$as_me:$LINENO: result: yes" >&5
5037 echo "${ECHO_T}yes" >&6
5038           else
5039             echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5041           fi
5042
5043
5044           enablestring=
5045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5046 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5047           no_cache=0
5048           # Check whether --enable-datetime or --disable-datetime was given.
5049 if test "${enable_datetime+set}" = set; then
5050   enableval="$enable_datetime"
5051
5052                           if test "$enableval" = yes; then
5053                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5054                           else
5055                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5056                           fi
5057
5058 else
5059
5060                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5061                           if test "x$LINE" != x ; then
5062                             eval "DEFAULT_$LINE"
5063                           else
5064                             no_cache=1
5065                           fi
5066
5067                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5068
5069 fi;
5070
5071           eval "$ac_cv_use_datetime"
5072           if test "$no_cache" != 1; then
5073             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test "$wxUSE_DATETIME" = yes; then
5077             echo "$as_me:$LINENO: result: yes" >&5
5078 echo "${ECHO_T}yes" >&6
5079           else
5080             echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5082           fi
5083
5084
5085           enablestring=
5086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5087 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5088           no_cache=0
5089           # Check whether --enable-debugreport or --disable-debugreport was given.
5090 if test "${enable_debugreport+set}" = set; then
5091   enableval="$enable_debugreport"
5092
5093                           if test "$enableval" = yes; then
5094                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5095                           else
5096                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5097                           fi
5098
5099 else
5100
5101                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5102                           if test "x$LINE" != x ; then
5103                             eval "DEFAULT_$LINE"
5104                           else
5105                             no_cache=1
5106                           fi
5107
5108                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5109
5110 fi;
5111
5112           eval "$ac_cv_use_debugreport"
5113           if test "$no_cache" != 1; then
5114             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5115           fi
5116
5117           if test "$wxUSE_DEBUGREPORT" = yes; then
5118             echo "$as_me:$LINENO: result: yes" >&5
5119 echo "${ECHO_T}yes" >&6
5120           else
5121             echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123           fi
5124
5125
5126           enablestring=
5127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5128 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5129           no_cache=0
5130           # Check whether --enable-dialupman or --disable-dialupman was given.
5131 if test "${enable_dialupman+set}" = set; then
5132   enableval="$enable_dialupman"
5133
5134                           if test "$enableval" = yes; then
5135                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5136                           else
5137                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5138                           fi
5139
5140 else
5141
5142                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5143                           if test "x$LINE" != x ; then
5144                             eval "DEFAULT_$LINE"
5145                           else
5146                             no_cache=1
5147                           fi
5148
5149                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5150
5151 fi;
5152
5153           eval "$ac_cv_use_dialupman"
5154           if test "$no_cache" != 1; then
5155             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5156           fi
5157
5158           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5159             echo "$as_me:$LINENO: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5161           else
5162             echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164           fi
5165
5166
5167           enablestring=
5168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5169 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5170           no_cache=0
5171           # Check whether --enable-dynlib or --disable-dynlib was given.
5172 if test "${enable_dynlib+set}" = set; then
5173   enableval="$enable_dynlib"
5174
5175                           if test "$enableval" = yes; then
5176                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5177                           else
5178                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5179                           fi
5180
5181 else
5182
5183                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5184                           if test "x$LINE" != x ; then
5185                             eval "DEFAULT_$LINE"
5186                           else
5187                             no_cache=1
5188                           fi
5189
5190                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5191
5192 fi;
5193
5194           eval "$ac_cv_use_dynlib"
5195           if test "$no_cache" != 1; then
5196             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5197           fi
5198
5199           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5200             echo "$as_me:$LINENO: result: yes" >&5
5201 echo "${ECHO_T}yes" >&6
5202           else
5203             echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5205           fi
5206
5207
5208           enablestring=
5209           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5210 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5211           no_cache=0
5212           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5213 if test "${enable_dynamicloader+set}" = set; then
5214   enableval="$enable_dynamicloader"
5215
5216                           if test "$enableval" = yes; then
5217                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5218                           else
5219                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5220                           fi
5221
5222 else
5223
5224                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5225                           if test "x$LINE" != x ; then
5226                             eval "DEFAULT_$LINE"
5227                           else
5228                             no_cache=1
5229                           fi
5230
5231                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5232
5233 fi;
5234
5235           eval "$ac_cv_use_dynamicloader"
5236           if test "$no_cache" != 1; then
5237             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5238           fi
5239
5240           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5241             echo "$as_me:$LINENO: result: yes" >&5
5242 echo "${ECHO_T}yes" >&6
5243           else
5244             echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246           fi
5247
5248
5249           enablestring=
5250           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5251 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5252           no_cache=0
5253           # Check whether --enable-exceptions or --disable-exceptions was given.
5254 if test "${enable_exceptions+set}" = set; then
5255   enableval="$enable_exceptions"
5256
5257                           if test "$enableval" = yes; then
5258                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5259                           else
5260                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5261                           fi
5262
5263 else
5264
5265                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5266                           if test "x$LINE" != x ; then
5267                             eval "DEFAULT_$LINE"
5268                           else
5269                             no_cache=1
5270                           fi
5271
5272                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5273
5274 fi;
5275
5276           eval "$ac_cv_use_exceptions"
5277           if test "$no_cache" != 1; then
5278             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5279           fi
5280
5281           if test "$wxUSE_EXCEPTIONS" = yes; then
5282             echo "$as_me:$LINENO: result: yes" >&5
5283 echo "${ECHO_T}yes" >&6
5284           else
5285             echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287           fi
5288
5289
5290           enablestring=
5291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5292 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5293           no_cache=0
5294           # Check whether --enable-ffile or --disable-ffile was given.
5295 if test "${enable_ffile+set}" = set; then
5296   enableval="$enable_ffile"
5297
5298                           if test "$enableval" = yes; then
5299                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5300                           else
5301                             ac_cv_use_ffile='wxUSE_FFILE=no'
5302                           fi
5303
5304 else
5305
5306                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5307                           if test "x$LINE" != x ; then
5308                             eval "DEFAULT_$LINE"
5309                           else
5310                             no_cache=1
5311                           fi
5312
5313                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5314
5315 fi;
5316
5317           eval "$ac_cv_use_ffile"
5318           if test "$no_cache" != 1; then
5319             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5320           fi
5321
5322           if test "$wxUSE_FFILE" = yes; then
5323             echo "$as_me:$LINENO: result: yes" >&5
5324 echo "${ECHO_T}yes" >&6
5325           else
5326             echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328           fi
5329
5330
5331           enablestring=
5332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5333 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5334           no_cache=0
5335           # Check whether --enable-file or --disable-file was given.
5336 if test "${enable_file+set}" = set; then
5337   enableval="$enable_file"
5338
5339                           if test "$enableval" = yes; then
5340                             ac_cv_use_file='wxUSE_FILE=yes'
5341                           else
5342                             ac_cv_use_file='wxUSE_FILE=no'
5343                           fi
5344
5345 else
5346
5347                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5348                           if test "x$LINE" != x ; then
5349                             eval "DEFAULT_$LINE"
5350                           else
5351                             no_cache=1
5352                           fi
5353
5354                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5355
5356 fi;
5357
5358           eval "$ac_cv_use_file"
5359           if test "$no_cache" != 1; then
5360             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5361           fi
5362
5363           if test "$wxUSE_FILE" = yes; then
5364             echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6
5366           else
5367             echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369           fi
5370
5371
5372           enablestring=
5373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5374 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5375           no_cache=0
5376           # Check whether --enable-filesystem or --disable-filesystem was given.
5377 if test "${enable_filesystem+set}" = set; then
5378   enableval="$enable_filesystem"
5379
5380                           if test "$enableval" = yes; then
5381                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5382                           else
5383                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5384                           fi
5385
5386 else
5387
5388                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5389                           if test "x$LINE" != x ; then
5390                             eval "DEFAULT_$LINE"
5391                           else
5392                             no_cache=1
5393                           fi
5394
5395                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5396
5397 fi;
5398
5399           eval "$ac_cv_use_filesystem"
5400           if test "$no_cache" != 1; then
5401             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5402           fi
5403
5404           if test "$wxUSE_FILESYSTEM" = yes; then
5405             echo "$as_me:$LINENO: result: yes" >&5
5406 echo "${ECHO_T}yes" >&6
5407           else
5408             echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410           fi
5411
5412
5413           enablestring=
5414           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5415 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5416           no_cache=0
5417           # Check whether --enable-fontmap or --disable-fontmap was given.
5418 if test "${enable_fontmap+set}" = set; then
5419   enableval="$enable_fontmap"
5420
5421                           if test "$enableval" = yes; then
5422                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5423                           else
5424                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5425                           fi
5426
5427 else
5428
5429                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5430                           if test "x$LINE" != x ; then
5431                             eval "DEFAULT_$LINE"
5432                           else
5433                             no_cache=1
5434                           fi
5435
5436                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5437
5438 fi;
5439
5440           eval "$ac_cv_use_fontmap"
5441           if test "$no_cache" != 1; then
5442             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5443           fi
5444
5445           if test "$wxUSE_FONTMAP" = yes; then
5446             echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6
5448           else
5449             echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5451           fi
5452
5453
5454           enablestring=
5455           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5456 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5457           no_cache=0
5458           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5459 if test "${enable_fs_inet+set}" = set; then
5460   enableval="$enable_fs_inet"
5461
5462                           if test "$enableval" = yes; then
5463                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5464                           else
5465                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5466                           fi
5467
5468 else
5469
5470                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5471                           if test "x$LINE" != x ; then
5472                             eval "DEFAULT_$LINE"
5473                           else
5474                             no_cache=1
5475                           fi
5476
5477                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5478
5479 fi;
5480
5481           eval "$ac_cv_use_fs_inet"
5482           if test "$no_cache" != 1; then
5483             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5484           fi
5485
5486           if test "$wxUSE_FS_INET" = yes; then
5487             echo "$as_me:$LINENO: result: yes" >&5
5488 echo "${ECHO_T}yes" >&6
5489           else
5490             echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492           fi
5493
5494
5495           enablestring=
5496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5497 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5498           no_cache=0
5499           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5500 if test "${enable_fs_zip+set}" = set; then
5501   enableval="$enable_fs_zip"
5502
5503                           if test "$enableval" = yes; then
5504                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5505                           else
5506                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5507                           fi
5508
5509 else
5510
5511                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5512                           if test "x$LINE" != x ; then
5513                             eval "DEFAULT_$LINE"
5514                           else
5515                             no_cache=1
5516                           fi
5517
5518                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5519
5520 fi;
5521
5522           eval "$ac_cv_use_fs_zip"
5523           if test "$no_cache" != 1; then
5524             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5525           fi
5526
5527           if test "$wxUSE_FS_ZIP" = yes; then
5528             echo "$as_me:$LINENO: result: yes" >&5
5529 echo "${ECHO_T}yes" >&6
5530           else
5531             echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533           fi
5534
5535
5536           enablestring=
5537           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5538 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5539           no_cache=0
5540           # Check whether --enable-geometry or --disable-geometry was given.
5541 if test "${enable_geometry+set}" = set; then
5542   enableval="$enable_geometry"
5543
5544                           if test "$enableval" = yes; then
5545                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5546                           else
5547                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5548                           fi
5549
5550 else
5551
5552                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5553                           if test "x$LINE" != x ; then
5554                             eval "DEFAULT_$LINE"
5555                           else
5556                             no_cache=1
5557                           fi
5558
5559                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5560
5561 fi;
5562
5563           eval "$ac_cv_use_geometry"
5564           if test "$no_cache" != 1; then
5565             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5566           fi
5567
5568           if test "$wxUSE_GEOMETRY" = yes; then
5569             echo "$as_me:$LINENO: result: yes" >&5
5570 echo "${ECHO_T}yes" >&6
5571           else
5572             echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574           fi
5575
5576
5577           enablestring=
5578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5579 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5580           no_cache=0
5581           # Check whether --enable-log or --disable-log was given.
5582 if test "${enable_log+set}" = set; then
5583   enableval="$enable_log"
5584
5585                           if test "$enableval" = yes; then
5586                             ac_cv_use_log='wxUSE_LOG=yes'
5587                           else
5588                             ac_cv_use_log='wxUSE_LOG=no'
5589                           fi
5590
5591 else
5592
5593                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5594                           if test "x$LINE" != x ; then
5595                             eval "DEFAULT_$LINE"
5596                           else
5597                             no_cache=1
5598                           fi
5599
5600                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5601
5602 fi;
5603
5604           eval "$ac_cv_use_log"
5605           if test "$no_cache" != 1; then
5606             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5607           fi
5608
5609           if test "$wxUSE_LOG" = yes; then
5610             echo "$as_me:$LINENO: result: yes" >&5
5611 echo "${ECHO_T}yes" >&6
5612           else
5613             echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615           fi
5616
5617
5618           enablestring=
5619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5620 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5621           no_cache=0
5622           # Check whether --enable-longlong or --disable-longlong was given.
5623 if test "${enable_longlong+set}" = set; then
5624   enableval="$enable_longlong"
5625
5626                           if test "$enableval" = yes; then
5627                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5628                           else
5629                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5630                           fi
5631
5632 else
5633
5634                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5635                           if test "x$LINE" != x ; then
5636                             eval "DEFAULT_$LINE"
5637                           else
5638                             no_cache=1
5639                           fi
5640
5641                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5642
5643 fi;
5644
5645           eval "$ac_cv_use_longlong"
5646           if test "$no_cache" != 1; then
5647             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5648           fi
5649
5650           if test "$wxUSE_LONGLONG" = yes; then
5651             echo "$as_me:$LINENO: result: yes" >&5
5652 echo "${ECHO_T}yes" >&6
5653           else
5654             echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5656           fi
5657
5658
5659           enablestring=
5660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5661 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5662           no_cache=0
5663           # Check whether --enable-mimetype or --disable-mimetype was given.
5664 if test "${enable_mimetype+set}" = set; then
5665   enableval="$enable_mimetype"
5666
5667                           if test "$enableval" = yes; then
5668                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5669                           else
5670                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5671                           fi
5672
5673 else
5674
5675                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5676                           if test "x$LINE" != x ; then
5677                             eval "DEFAULT_$LINE"
5678                           else
5679                             no_cache=1
5680                           fi
5681
5682                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5683
5684 fi;
5685
5686           eval "$ac_cv_use_mimetype"
5687           if test "$no_cache" != 1; then
5688             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5689           fi
5690
5691           if test "$wxUSE_MIMETYPE" = yes; then
5692             echo "$as_me:$LINENO: result: yes" >&5
5693 echo "${ECHO_T}yes" >&6
5694           else
5695             echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697           fi
5698
5699
5700           enablestring=
5701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5702 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5703           no_cache=0
5704           # Check whether --enable-mslu or --disable-mslu was given.
5705 if test "${enable_mslu+set}" = set; then
5706   enableval="$enable_mslu"
5707
5708                           if test "$enableval" = yes; then
5709                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5710                           else
5711                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5712                           fi
5713
5714 else
5715
5716                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5717                           if test "x$LINE" != x ; then
5718                             eval "DEFAULT_$LINE"
5719                           else
5720                             no_cache=1
5721                           fi
5722
5723                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5724
5725 fi;
5726
5727           eval "$ac_cv_use_mslu"
5728           if test "$no_cache" != 1; then
5729             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5730           fi
5731
5732           if test "$wxUSE_UNICODE_MSLU" = yes; then
5733             echo "$as_me:$LINENO: result: yes" >&5
5734 echo "${ECHO_T}yes" >&6
5735           else
5736             echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738           fi
5739
5740
5741           enablestring=
5742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5743 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5744           no_cache=0
5745           # Check whether --enable-snglinst or --disable-snglinst was given.
5746 if test "${enable_snglinst+set}" = set; then
5747   enableval="$enable_snglinst"
5748
5749                           if test "$enableval" = yes; then
5750                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5751                           else
5752                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5753                           fi
5754
5755 else
5756
5757                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5758                           if test "x$LINE" != x ; then
5759                             eval "DEFAULT_$LINE"
5760                           else
5761                             no_cache=1
5762                           fi
5763
5764                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5765
5766 fi;
5767
5768           eval "$ac_cv_use_snglinst"
5769           if test "$no_cache" != 1; then
5770             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5771           fi
5772
5773           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5774             echo "$as_me:$LINENO: result: yes" >&5
5775 echo "${ECHO_T}yes" >&6
5776           else
5777             echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779           fi
5780
5781
5782           enablestring=
5783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5784 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5785           no_cache=0
5786           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5787 if test "${enable_std_iostreams+set}" = set; then
5788   enableval="$enable_std_iostreams"
5789
5790                           if test "$enableval" = yes; then
5791                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5792                           else
5793                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5794                           fi
5795
5796 else
5797
5798                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5799                           if test "x$LINE" != x ; then
5800                             eval "DEFAULT_$LINE"
5801                           else
5802                             no_cache=1
5803                           fi
5804
5805                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5806
5807 fi;
5808
5809           eval "$ac_cv_use_std_iostreams"
5810           if test "$no_cache" != 1; then
5811             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5812           fi
5813
5814           if test "$wxUSE_STD_IOSTREAM" = yes; then
5815             echo "$as_me:$LINENO: result: yes" >&5
5816 echo "${ECHO_T}yes" >&6
5817           else
5818             echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820           fi
5821
5822
5823           enablestring=
5824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5825 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5826           no_cache=0
5827           # Check whether --enable-std_string or --disable-std_string was given.
5828 if test "${enable_std_string+set}" = set; then
5829   enableval="$enable_std_string"
5830
5831                           if test "$enableval" = yes; then
5832                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5833                           else
5834                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5835                           fi
5836
5837 else
5838
5839                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5840                           if test "x$LINE" != x ; then
5841                             eval "DEFAULT_$LINE"
5842                           else
5843                             no_cache=1
5844                           fi
5845
5846                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5847
5848 fi;
5849
5850           eval "$ac_cv_use_std_string"
5851           if test "$no_cache" != 1; then
5852             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5853           fi
5854
5855           if test "$wxUSE_STD_STRING" = yes; then
5856             echo "$as_me:$LINENO: result: yes" >&5
5857 echo "${ECHO_T}yes" >&6
5858           else
5859             echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861           fi
5862
5863
5864           enablestring=
5865           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5866 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5867           no_cache=0
5868           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5869 if test "${enable_stdpaths+set}" = set; then
5870   enableval="$enable_stdpaths"
5871
5872                           if test "$enableval" = yes; then
5873                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5874                           else
5875                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5876                           fi
5877
5878 else
5879
5880                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5881                           if test "x$LINE" != x ; then
5882                             eval "DEFAULT_$LINE"
5883                           else
5884                             no_cache=1
5885                           fi
5886
5887                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5888
5889 fi;
5890
5891           eval "$ac_cv_use_stdpaths"
5892           if test "$no_cache" != 1; then
5893             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5894           fi
5895
5896           if test "$wxUSE_STDPATHS" = yes; then
5897             echo "$as_me:$LINENO: result: yes" >&5
5898 echo "${ECHO_T}yes" >&6
5899           else
5900             echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902           fi
5903
5904
5905           enablestring=
5906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5907 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5908           no_cache=0
5909           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5910 if test "${enable_stopwatch+set}" = set; then
5911   enableval="$enable_stopwatch"
5912
5913                           if test "$enableval" = yes; then
5914                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5915                           else
5916                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5917                           fi
5918
5919 else
5920
5921                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5922                           if test "x$LINE" != x ; then
5923                             eval "DEFAULT_$LINE"
5924                           else
5925                             no_cache=1
5926                           fi
5927
5928                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5929
5930 fi;
5931
5932           eval "$ac_cv_use_stopwatch"
5933           if test "$no_cache" != 1; then
5934             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5935           fi
5936
5937           if test "$wxUSE_STOPWATCH" = yes; then
5938             echo "$as_me:$LINENO: result: yes" >&5
5939 echo "${ECHO_T}yes" >&6
5940           else
5941             echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6
5943           fi
5944
5945
5946           enablestring=
5947           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5948 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5949           no_cache=0
5950           # Check whether --enable-streams or --disable-streams was given.
5951 if test "${enable_streams+set}" = set; then
5952   enableval="$enable_streams"
5953
5954                           if test "$enableval" = yes; then
5955                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5956                           else
5957                             ac_cv_use_streams='wxUSE_STREAMS=no'
5958                           fi
5959
5960 else
5961
5962                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5963                           if test "x$LINE" != x ; then
5964                             eval "DEFAULT_$LINE"
5965                           else
5966                             no_cache=1
5967                           fi
5968
5969                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5970
5971 fi;
5972
5973           eval "$ac_cv_use_streams"
5974           if test "$no_cache" != 1; then
5975             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5976           fi
5977
5978           if test "$wxUSE_STREAMS" = yes; then
5979             echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5981           else
5982             echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984           fi
5985
5986
5987           enablestring=
5988           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5989 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5990           no_cache=0
5991           # Check whether --enable-system_options or --disable-system_options was given.
5992 if test "${enable_system_options+set}" = set; then
5993   enableval="$enable_system_options"
5994
5995                           if test "$enableval" = yes; then
5996                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5997                           else
5998                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5999                           fi
6000
6001 else
6002
6003                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6004                           if test "x$LINE" != x ; then
6005                             eval "DEFAULT_$LINE"
6006                           else
6007                             no_cache=1
6008                           fi
6009
6010                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6011
6012 fi;
6013
6014           eval "$ac_cv_use_system_options"
6015           if test "$no_cache" != 1; then
6016             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6017           fi
6018
6019           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6020             echo "$as_me:$LINENO: result: yes" >&5
6021 echo "${ECHO_T}yes" >&6
6022           else
6023             echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025           fi
6026
6027
6028           enablestring=
6029           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6030 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6031           no_cache=0
6032           # Check whether --enable-textbuf or --disable-textbuf was given.
6033 if test "${enable_textbuf+set}" = set; then
6034   enableval="$enable_textbuf"
6035
6036                           if test "$enableval" = yes; then
6037                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6038                           else
6039                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6040                           fi
6041
6042 else
6043
6044                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6045                           if test "x$LINE" != x ; then
6046                             eval "DEFAULT_$LINE"
6047                           else
6048                             no_cache=1
6049                           fi
6050
6051                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6052
6053 fi;
6054
6055           eval "$ac_cv_use_textbuf"
6056           if test "$no_cache" != 1; then
6057             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6058           fi
6059
6060           if test "$wxUSE_TEXTBUFFER" = yes; then
6061             echo "$as_me:$LINENO: result: yes" >&5
6062 echo "${ECHO_T}yes" >&6
6063           else
6064             echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066           fi
6067
6068
6069           enablestring=
6070           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6071 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6072           no_cache=0
6073           # Check whether --enable-textfile or --disable-textfile was given.
6074 if test "${enable_textfile+set}" = set; then
6075   enableval="$enable_textfile"
6076
6077                           if test "$enableval" = yes; then
6078                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6079                           else
6080                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6081                           fi
6082
6083 else
6084
6085                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6086                           if test "x$LINE" != x ; then
6087                             eval "DEFAULT_$LINE"
6088                           else
6089                             no_cache=1
6090                           fi
6091
6092                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6093
6094 fi;
6095
6096           eval "$ac_cv_use_textfile"
6097           if test "$no_cache" != 1; then
6098             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6099           fi
6100
6101           if test "$wxUSE_TEXTFILE" = yes; then
6102             echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6
6104           else
6105             echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107           fi
6108
6109
6110           enablestring=
6111           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6112 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6113           no_cache=0
6114           # Check whether --enable-timer or --disable-timer was given.
6115 if test "${enable_timer+set}" = set; then
6116   enableval="$enable_timer"
6117
6118                           if test "$enableval" = yes; then
6119                             ac_cv_use_timer='wxUSE_TIMER=yes'
6120                           else
6121                             ac_cv_use_timer='wxUSE_TIMER=no'
6122                           fi
6123
6124 else
6125
6126                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6127                           if test "x$LINE" != x ; then
6128                             eval "DEFAULT_$LINE"
6129                           else
6130                             no_cache=1
6131                           fi
6132
6133                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6134
6135 fi;
6136
6137           eval "$ac_cv_use_timer"
6138           if test "$no_cache" != 1; then
6139             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6140           fi
6141
6142           if test "$wxUSE_TIMER" = yes; then
6143             echo "$as_me:$LINENO: result: yes" >&5
6144 echo "${ECHO_T}yes" >&6
6145           else
6146             echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148           fi
6149
6150
6151           enablestring=
6152           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6153 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6154           no_cache=0
6155           # Check whether --enable-unicode or --disable-unicode was given.
6156 if test "${enable_unicode+set}" = set; then
6157   enableval="$enable_unicode"
6158
6159                           if test "$enableval" = yes; then
6160                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6161                           else
6162                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6163                           fi
6164
6165 else
6166
6167                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6168                           if test "x$LINE" != x ; then
6169                             eval "DEFAULT_$LINE"
6170                           else
6171                             no_cache=1
6172                           fi
6173
6174                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6175
6176 fi;
6177
6178           eval "$ac_cv_use_unicode"
6179           if test "$no_cache" != 1; then
6180             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6181           fi
6182
6183           if test "$wxUSE_UNICODE" = yes; then
6184             echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6
6186           else
6187             echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189           fi
6190
6191
6192           enablestring=
6193           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6194 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6195           no_cache=0
6196           # Check whether --enable-sound or --disable-sound was given.
6197 if test "${enable_sound+set}" = set; then
6198   enableval="$enable_sound"
6199
6200                           if test "$enableval" = yes; then
6201                             ac_cv_use_sound='wxUSE_SOUND=yes'
6202                           else
6203                             ac_cv_use_sound='wxUSE_SOUND=no'
6204                           fi
6205
6206 else
6207
6208                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6209                           if test "x$LINE" != x ; then
6210                             eval "DEFAULT_$LINE"
6211                           else
6212                             no_cache=1
6213                           fi
6214
6215                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6216
6217 fi;
6218
6219           eval "$ac_cv_use_sound"
6220           if test "$no_cache" != 1; then
6221             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6222           fi
6223
6224           if test "$wxUSE_SOUND" = yes; then
6225             echo "$as_me:$LINENO: result: yes" >&5
6226 echo "${ECHO_T}yes" >&6
6227           else
6228             echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230           fi
6231
6232
6233           enablestring=
6234           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6235 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6236           no_cache=0
6237           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6238 if test "${enable_mediactrl+set}" = set; then
6239   enableval="$enable_mediactrl"
6240
6241                           if test "$enableval" = yes; then
6242                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6243                           else
6244                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6245                           fi
6246
6247 else
6248
6249                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6250                           if test "x$LINE" != x ; then
6251                             eval "DEFAULT_$LINE"
6252                           else
6253                             no_cache=1
6254                           fi
6255
6256                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6257
6258 fi;
6259
6260           eval "$ac_cv_use_mediactrl"
6261           if test "$no_cache" != 1; then
6262             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6263           fi
6264
6265           if test "$wxUSE_MEDIACTRL" = yes; then
6266             echo "$as_me:$LINENO: result: yes" >&5
6267 echo "${ECHO_T}yes" >&6
6268           else
6269             echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271           fi
6272
6273
6274           enablestring=
6275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6276 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6277           no_cache=0
6278           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6279 if test "${enable_gstreamer8+set}" = set; then
6280   enableval="$enable_gstreamer8"
6281
6282                           if test "$enableval" = yes; then
6283                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6284                           else
6285                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6286                           fi
6287
6288 else
6289
6290                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6291                           if test "x$LINE" != x ; then
6292                             eval "DEFAULT_$LINE"
6293                           else
6294                             no_cache=1
6295                           fi
6296
6297                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6298
6299 fi;
6300
6301           eval "$ac_cv_use_gstreamer8"
6302           if test "$no_cache" != 1; then
6303             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6304           fi
6305
6306           if test "$wxUSE_GSTREAMER8" = yes; then
6307             echo "$as_me:$LINENO: result: yes" >&5
6308 echo "${ECHO_T}yes" >&6
6309           else
6310             echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312           fi
6313
6314
6315           enablestring=
6316           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6317 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6318           no_cache=0
6319           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6320 if test "${enable_wxprintfv+set}" = set; then
6321   enableval="$enable_wxprintfv"
6322
6323                           if test "$enableval" = yes; then
6324                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6325                           else
6326                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6327                           fi
6328
6329 else
6330
6331                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6332                           if test "x$LINE" != x ; then
6333                             eval "DEFAULT_$LINE"
6334                           else
6335                             no_cache=1
6336                           fi
6337
6338                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6339
6340 fi;
6341
6342           eval "$ac_cv_use_wxprintfv"
6343           if test "$no_cache" != 1; then
6344             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6345           fi
6346
6347           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6348             echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6350           else
6351             echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6353           fi
6354
6355
6356           enablestring=
6357           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6358 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6359           no_cache=0
6360           # Check whether --enable-zipstream or --disable-zipstream was given.
6361 if test "${enable_zipstream+set}" = set; then
6362   enableval="$enable_zipstream"
6363
6364                           if test "$enableval" = yes; then
6365                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6366                           else
6367                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6368                           fi
6369
6370 else
6371
6372                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6373                           if test "x$LINE" != x ; then
6374                             eval "DEFAULT_$LINE"
6375                           else
6376                             no_cache=1
6377                           fi
6378
6379                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6380
6381 fi;
6382
6383           eval "$ac_cv_use_zipstream"
6384           if test "$no_cache" != 1; then
6385             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6386           fi
6387
6388           if test "$wxUSE_ZIPSTREAM" = yes; then
6389             echo "$as_me:$LINENO: result: yes" >&5
6390 echo "${ECHO_T}yes" >&6
6391           else
6392             echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6
6394           fi
6395
6396
6397
6398           enablestring=
6399           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6400 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6401           no_cache=0
6402           # Check whether --enable-url or --disable-url was given.
6403 if test "${enable_url+set}" = set; then
6404   enableval="$enable_url"
6405
6406                           if test "$enableval" = yes; then
6407                             ac_cv_use_url='wxUSE_URL=yes'
6408                           else
6409                             ac_cv_use_url='wxUSE_URL=no'
6410                           fi
6411
6412 else
6413
6414                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6415                           if test "x$LINE" != x ; then
6416                             eval "DEFAULT_$LINE"
6417                           else
6418                             no_cache=1
6419                           fi
6420
6421                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6422
6423 fi;
6424
6425           eval "$ac_cv_use_url"
6426           if test "$no_cache" != 1; then
6427             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6428           fi
6429
6430           if test "$wxUSE_URL" = yes; then
6431             echo "$as_me:$LINENO: result: yes" >&5
6432 echo "${ECHO_T}yes" >&6
6433           else
6434             echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6
6436           fi
6437
6438
6439           enablestring=
6440           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6441 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6442           no_cache=0
6443           # Check whether --enable-protocol or --disable-protocol was given.
6444 if test "${enable_protocol+set}" = set; then
6445   enableval="$enable_protocol"
6446
6447                           if test "$enableval" = yes; then
6448                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6449                           else
6450                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6451                           fi
6452
6453 else
6454
6455                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6456                           if test "x$LINE" != x ; then
6457                             eval "DEFAULT_$LINE"
6458                           else
6459                             no_cache=1
6460                           fi
6461
6462                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6463
6464 fi;
6465
6466           eval "$ac_cv_use_protocol"
6467           if test "$no_cache" != 1; then
6468             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6469           fi
6470
6471           if test "$wxUSE_PROTOCOL" = yes; then
6472             echo "$as_me:$LINENO: result: yes" >&5
6473 echo "${ECHO_T}yes" >&6
6474           else
6475             echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6
6477           fi
6478
6479
6480           enablestring=
6481           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6482 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6483           no_cache=0
6484           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6485 if test "${enable_protocol_http+set}" = set; then
6486   enableval="$enable_protocol_http"
6487
6488                           if test "$enableval" = yes; then
6489                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6490                           else
6491                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6492                           fi
6493
6494 else
6495
6496                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6497                           if test "x$LINE" != x ; then
6498                             eval "DEFAULT_$LINE"
6499                           else
6500                             no_cache=1
6501                           fi
6502
6503                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6504
6505 fi;
6506
6507           eval "$ac_cv_use_protocol_http"
6508           if test "$no_cache" != 1; then
6509             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6510           fi
6511
6512           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6513             echo "$as_me:$LINENO: result: yes" >&5
6514 echo "${ECHO_T}yes" >&6
6515           else
6516             echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6
6518           fi
6519
6520
6521           enablestring=
6522           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6523 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6524           no_cache=0
6525           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6526 if test "${enable_protocol_ftp+set}" = set; then
6527   enableval="$enable_protocol_ftp"
6528
6529                           if test "$enableval" = yes; then
6530                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6531                           else
6532                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6533                           fi
6534
6535 else
6536
6537                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6538                           if test "x$LINE" != x ; then
6539                             eval "DEFAULT_$LINE"
6540                           else
6541                             no_cache=1
6542                           fi
6543
6544                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6545
6546 fi;
6547
6548           eval "$ac_cv_use_protocol_ftp"
6549           if test "$no_cache" != 1; then
6550             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6551           fi
6552
6553           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6554             echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6
6556           else
6557             echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6
6559           fi
6560
6561
6562           enablestring=
6563           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6564 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6565           no_cache=0
6566           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6567 if test "${enable_protocol_file+set}" = set; then
6568   enableval="$enable_protocol_file"
6569
6570                           if test "$enableval" = yes; then
6571                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6572                           else
6573                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6574                           fi
6575
6576 else
6577
6578                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6579                           if test "x$LINE" != x ; then
6580                             eval "DEFAULT_$LINE"
6581                           else
6582                             no_cache=1
6583                           fi
6584
6585                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6586
6587 fi;
6588
6589           eval "$ac_cv_use_protocol_file"
6590           if test "$no_cache" != 1; then
6591             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6592           fi
6593
6594           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6595             echo "$as_me:$LINENO: result: yes" >&5
6596 echo "${ECHO_T}yes" >&6
6597           else
6598             echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6600           fi
6601
6602
6603
6604
6605
6606           enablestring=
6607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6608 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6609           no_cache=0
6610           # Check whether --enable-threads or --disable-threads was given.
6611 if test "${enable_threads+set}" = set; then
6612   enableval="$enable_threads"
6613
6614                           if test "$enableval" = yes; then
6615                             ac_cv_use_threads='wxUSE_THREADS=yes'
6616                           else
6617                             ac_cv_use_threads='wxUSE_THREADS=no'
6618                           fi
6619
6620 else
6621
6622                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6623                           if test "x$LINE" != x ; then
6624                             eval "DEFAULT_$LINE"
6625                           else
6626                             no_cache=1
6627                           fi
6628
6629                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6630
6631 fi;
6632
6633           eval "$ac_cv_use_threads"
6634           if test "$no_cache" != 1; then
6635             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6636           fi
6637
6638           if test "$wxUSE_THREADS" = yes; then
6639             echo "$as_me:$LINENO: result: yes" >&5
6640 echo "${ECHO_T}yes" >&6
6641           else
6642             echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6
6644           fi
6645
6646
6647 if test "$wxUSE_GUI" = "yes"; then
6648
6649
6650
6651           enablestring=
6652           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6653 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6654           no_cache=0
6655           # Check whether --enable-docview or --disable-docview was given.
6656 if test "${enable_docview+set}" = set; then
6657   enableval="$enable_docview"
6658
6659                           if test "$enableval" = yes; then
6660                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6661                           else
6662                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6663                           fi
6664
6665 else
6666
6667                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6668                           if test "x$LINE" != x ; then
6669                             eval "DEFAULT_$LINE"
6670                           else
6671                             no_cache=1
6672                           fi
6673
6674                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6675
6676 fi;
6677
6678           eval "$ac_cv_use_docview"
6679           if test "$no_cache" != 1; then
6680             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6681           fi
6682
6683           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6684             echo "$as_me:$LINENO: result: yes" >&5
6685 echo "${ECHO_T}yes" >&6
6686           else
6687             echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6
6689           fi
6690
6691
6692           enablestring=
6693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6694 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6695           no_cache=0
6696           # Check whether --enable-help or --disable-help was given.
6697 if test "${enable_help+set}" = set; then
6698   enableval="$enable_help"
6699
6700                           if test "$enableval" = yes; then
6701                             ac_cv_use_help='wxUSE_HELP=yes'
6702                           else
6703                             ac_cv_use_help='wxUSE_HELP=no'
6704                           fi
6705
6706 else
6707
6708                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6709                           if test "x$LINE" != x ; then
6710                             eval "DEFAULT_$LINE"
6711                           else
6712                             no_cache=1
6713                           fi
6714
6715                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6716
6717 fi;
6718
6719           eval "$ac_cv_use_help"
6720           if test "$no_cache" != 1; then
6721             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6722           fi
6723
6724           if test "$wxUSE_HELP" = yes; then
6725             echo "$as_me:$LINENO: result: yes" >&5
6726 echo "${ECHO_T}yes" >&6
6727           else
6728             echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6
6730           fi
6731
6732
6733           enablestring=
6734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6735 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6736           no_cache=0
6737           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6738 if test "${enable_mshtmlhelp+set}" = set; then
6739   enableval="$enable_mshtmlhelp"
6740
6741                           if test "$enableval" = yes; then
6742                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6743                           else
6744                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6745                           fi
6746
6747 else
6748
6749                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6750                           if test "x$LINE" != x ; then
6751                             eval "DEFAULT_$LINE"
6752                           else
6753                             no_cache=1
6754                           fi
6755
6756                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6757
6758 fi;
6759
6760           eval "$ac_cv_use_mshtmlhelp"
6761           if test "$no_cache" != 1; then
6762             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6763           fi
6764
6765           if test "$wxUSE_MS_HTML_HELP" = yes; then
6766             echo "$as_me:$LINENO: result: yes" >&5
6767 echo "${ECHO_T}yes" >&6
6768           else
6769             echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6
6771           fi
6772
6773
6774           enablestring=
6775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6776 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6777           no_cache=0
6778           # Check whether --enable-html or --disable-html was given.
6779 if test "${enable_html+set}" = set; then
6780   enableval="$enable_html"
6781
6782                           if test "$enableval" = yes; then
6783                             ac_cv_use_html='wxUSE_HTML=yes'
6784                           else
6785                             ac_cv_use_html='wxUSE_HTML=no'
6786                           fi
6787
6788 else
6789
6790                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6791                           if test "x$LINE" != x ; then
6792                             eval "DEFAULT_$LINE"
6793                           else
6794                             no_cache=1
6795                           fi
6796
6797                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6798
6799 fi;
6800
6801           eval "$ac_cv_use_html"
6802           if test "$no_cache" != 1; then
6803             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6804           fi
6805
6806           if test "$wxUSE_HTML" = yes; then
6807             echo "$as_me:$LINENO: result: yes" >&5
6808 echo "${ECHO_T}yes" >&6
6809           else
6810             echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812           fi
6813
6814
6815           enablestring=
6816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6817 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6818           no_cache=0
6819           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6820 if test "${enable_htmlhelp+set}" = set; then
6821   enableval="$enable_htmlhelp"
6822
6823                           if test "$enableval" = yes; then
6824                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6825                           else
6826                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6827                           fi
6828
6829 else
6830
6831                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6832                           if test "x$LINE" != x ; then
6833                             eval "DEFAULT_$LINE"
6834                           else
6835                             no_cache=1
6836                           fi
6837
6838                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6839
6840 fi;
6841
6842           eval "$ac_cv_use_htmlhelp"
6843           if test "$no_cache" != 1; then
6844             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6845           fi
6846
6847           if test "$wxUSE_WXHTML_HELP" = yes; then
6848             echo "$as_me:$LINENO: result: yes" >&5
6849 echo "${ECHO_T}yes" >&6
6850           else
6851             echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6
6853           fi
6854
6855
6856           enablestring=
6857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6858 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6859           no_cache=0
6860           # Check whether --enable-xrc or --disable-xrc was given.
6861 if test "${enable_xrc+set}" = set; then
6862   enableval="$enable_xrc"
6863
6864                           if test "$enableval" = yes; then
6865                             ac_cv_use_xrc='wxUSE_XRC=yes'
6866                           else
6867                             ac_cv_use_xrc='wxUSE_XRC=no'
6868                           fi
6869
6870 else
6871
6872                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6873                           if test "x$LINE" != x ; then
6874                             eval "DEFAULT_$LINE"
6875                           else
6876                             no_cache=1
6877                           fi
6878
6879                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6880
6881 fi;
6882
6883           eval "$ac_cv_use_xrc"
6884           if test "$no_cache" != 1; then
6885             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6886           fi
6887
6888           if test "$wxUSE_XRC" = yes; then
6889             echo "$as_me:$LINENO: result: yes" >&5
6890 echo "${ECHO_T}yes" >&6
6891           else
6892             echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6
6894           fi
6895
6896
6897           enablestring=
6898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6899 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6900           no_cache=0
6901           # Check whether --enable-constraints or --disable-constraints was given.
6902 if test "${enable_constraints+set}" = set; then
6903   enableval="$enable_constraints"
6904
6905                           if test "$enableval" = yes; then
6906                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6907                           else
6908                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6909                           fi
6910
6911 else
6912
6913                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6914                           if test "x$LINE" != x ; then
6915                             eval "DEFAULT_$LINE"
6916                           else
6917                             no_cache=1
6918                           fi
6919
6920                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6921
6922 fi;
6923
6924           eval "$ac_cv_use_constraints"
6925           if test "$no_cache" != 1; then
6926             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6927           fi
6928
6929           if test "$wxUSE_CONSTRAINTS" = yes; then
6930             echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6
6932           else
6933             echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6
6935           fi
6936
6937
6938           enablestring=
6939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6940 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6941           no_cache=0
6942           # Check whether --enable-printarch or --disable-printarch was given.
6943 if test "${enable_printarch+set}" = set; then
6944   enableval="$enable_printarch"
6945
6946                           if test "$enableval" = yes; then
6947                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6948                           else
6949                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6950                           fi
6951
6952 else
6953
6954                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6955                           if test "x$LINE" != x ; then
6956                             eval "DEFAULT_$LINE"
6957                           else
6958                             no_cache=1
6959                           fi
6960
6961                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6962
6963 fi;
6964
6965           eval "$ac_cv_use_printarch"
6966           if test "$no_cache" != 1; then
6967             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6968           fi
6969
6970           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6971             echo "$as_me:$LINENO: result: yes" >&5
6972 echo "${ECHO_T}yes" >&6
6973           else
6974             echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6976           fi
6977
6978
6979           enablestring=
6980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6981 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6982           no_cache=0
6983           # Check whether --enable-mdi or --disable-mdi was given.
6984 if test "${enable_mdi+set}" = set; then
6985   enableval="$enable_mdi"
6986
6987                           if test "$enableval" = yes; then
6988                             ac_cv_use_mdi='wxUSE_MDI=yes'
6989                           else
6990                             ac_cv_use_mdi='wxUSE_MDI=no'
6991                           fi
6992
6993 else
6994
6995                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6996                           if test "x$LINE" != x ; then
6997                             eval "DEFAULT_$LINE"
6998                           else
6999                             no_cache=1
7000                           fi
7001
7002                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7003
7004 fi;
7005
7006           eval "$ac_cv_use_mdi"
7007           if test "$no_cache" != 1; then
7008             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7009           fi
7010
7011           if test "$wxUSE_MDI" = yes; then
7012             echo "$as_me:$LINENO: result: yes" >&5
7013 echo "${ECHO_T}yes" >&6
7014           else
7015             echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6
7017           fi
7018
7019
7020           enablestring=
7021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7022 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7023           no_cache=0
7024           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7025 if test "${enable_mdidoc+set}" = set; then
7026   enableval="$enable_mdidoc"
7027
7028                           if test "$enableval" = yes; then
7029                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7030                           else
7031                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7032                           fi
7033
7034 else
7035
7036                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7037                           if test "x$LINE" != x ; then
7038                             eval "DEFAULT_$LINE"
7039                           else
7040                             no_cache=1
7041                           fi
7042
7043                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7044
7045 fi;
7046
7047           eval "$ac_cv_use_mdidoc"
7048           if test "$no_cache" != 1; then
7049             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7050           fi
7051
7052           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7053             echo "$as_me:$LINENO: result: yes" >&5
7054 echo "${ECHO_T}yes" >&6
7055           else
7056             echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6
7058           fi
7059
7060
7061           enablestring=
7062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7063 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7064           no_cache=0
7065           # Check whether --enable-loggui or --disable-loggui was given.
7066 if test "${enable_loggui+set}" = set; then
7067   enableval="$enable_loggui"
7068
7069                           if test "$enableval" = yes; then
7070                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7071                           else
7072                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7073                           fi
7074
7075 else
7076
7077                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7078                           if test "x$LINE" != x ; then
7079                             eval "DEFAULT_$LINE"
7080                           else
7081                             no_cache=1
7082                           fi
7083
7084                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7085
7086 fi;
7087
7088           eval "$ac_cv_use_loggui"
7089           if test "$no_cache" != 1; then
7090             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7091           fi
7092
7093           if test "$wxUSE_LOGGUI" = yes; then
7094             echo "$as_me:$LINENO: result: yes" >&5
7095 echo "${ECHO_T}yes" >&6
7096           else
7097             echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7099           fi
7100
7101
7102           enablestring=
7103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7104 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7105           no_cache=0
7106           # Check whether --enable-logwin or --disable-logwin was given.
7107 if test "${enable_logwin+set}" = set; then
7108   enableval="$enable_logwin"
7109
7110                           if test "$enableval" = yes; then
7111                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7112                           else
7113                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7114                           fi
7115
7116 else
7117
7118                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7119                           if test "x$LINE" != x ; then
7120                             eval "DEFAULT_$LINE"
7121                           else
7122                             no_cache=1
7123                           fi
7124
7125                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7126
7127 fi;
7128
7129           eval "$ac_cv_use_logwin"
7130           if test "$no_cache" != 1; then
7131             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7132           fi
7133
7134           if test "$wxUSE_LOGWINDOW" = yes; then
7135             echo "$as_me:$LINENO: result: yes" >&5
7136 echo "${ECHO_T}yes" >&6
7137           else
7138             echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140           fi
7141
7142
7143           enablestring=
7144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7145 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7146           no_cache=0
7147           # Check whether --enable-logdialog or --disable-logdialog was given.
7148 if test "${enable_logdialog+set}" = set; then
7149   enableval="$enable_logdialog"
7150
7151                           if test "$enableval" = yes; then
7152                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7153                           else
7154                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7155                           fi
7156
7157 else
7158
7159                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7160                           if test "x$LINE" != x ; then
7161                             eval "DEFAULT_$LINE"
7162                           else
7163                             no_cache=1
7164                           fi
7165
7166                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7167
7168 fi;
7169
7170           eval "$ac_cv_use_logdialog"
7171           if test "$no_cache" != 1; then
7172             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7173           fi
7174
7175           if test "$wxUSE_LOGDIALOG" = yes; then
7176             echo "$as_me:$LINENO: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178           else
7179             echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7181           fi
7182
7183
7184           enablestring=
7185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7186 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7187           no_cache=0
7188           # Check whether --enable-webkit or --disable-webkit was given.
7189 if test "${enable_webkit+set}" = set; then
7190   enableval="$enable_webkit"
7191
7192                           if test "$enableval" = yes; then
7193                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7194                           else
7195                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7196                           fi
7197
7198 else
7199
7200                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7201                           if test "x$LINE" != x ; then
7202                             eval "DEFAULT_$LINE"
7203                           else
7204                             no_cache=1
7205                           fi
7206
7207                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7208
7209 fi;
7210
7211           eval "$ac_cv_use_webkit"
7212           if test "$no_cache" != 1; then
7213             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7214           fi
7215
7216           if test "$wxUSE_WEBKIT" = yes; then
7217             echo "$as_me:$LINENO: result: yes" >&5
7218 echo "${ECHO_T}yes" >&6
7219           else
7220             echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222           fi
7223
7224
7225           enablestring=
7226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7227 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7228           no_cache=0
7229           # Check whether --enable-html or --disable-html was given.
7230 if test "${enable_html+set}" = set; then
7231   enableval="$enable_html"
7232
7233                           if test "$enableval" = yes; then
7234                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7235                           else
7236                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7237                           fi
7238
7239 else
7240
7241                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7242                           if test "x$LINE" != x ; then
7243                             eval "DEFAULT_$LINE"
7244                           else
7245                             no_cache=1
7246                           fi
7247
7248                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7249
7250 fi;
7251
7252           eval "$ac_cv_use_html"
7253           if test "$no_cache" != 1; then
7254             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7255           fi
7256
7257           if test "$wxUSE_RICHTEXT" = yes; then
7258             echo "$as_me:$LINENO: result: yes" >&5
7259 echo "${ECHO_T}yes" >&6
7260           else
7261             echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263           fi
7264
7265
7266
7267           enablestring=
7268           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7269 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7270           no_cache=0
7271           # Check whether --enable-postscript or --disable-postscript was given.
7272 if test "${enable_postscript+set}" = set; then
7273   enableval="$enable_postscript"
7274
7275                           if test "$enableval" = yes; then
7276                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7277                           else
7278                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7279                           fi
7280
7281 else
7282
7283                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7284                           if test "x$LINE" != x ; then
7285                             eval "DEFAULT_$LINE"
7286                           else
7287                             no_cache=1
7288                           fi
7289
7290                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7291
7292 fi;
7293
7294           eval "$ac_cv_use_postscript"
7295           if test "$no_cache" != 1; then
7296             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7297           fi
7298
7299           if test "$wxUSE_POSTSCRIPT" = yes; then
7300             echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7302           else
7303             echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7305           fi
7306
7307
7308
7309
7310
7311           enablestring=
7312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7313 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7314           no_cache=0
7315           # Check whether --enable-prologio or --disable-prologio was given.
7316 if test "${enable_prologio+set}" = set; then
7317   enableval="$enable_prologio"
7318
7319                           if test "$enableval" = yes; then
7320                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7321                           else
7322                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7323                           fi
7324
7325 else
7326
7327                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7328                           if test "x$LINE" != x ; then
7329                             eval "DEFAULT_$LINE"
7330                           else
7331                             no_cache=1
7332                           fi
7333
7334                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7335
7336 fi;
7337
7338           eval "$ac_cv_use_prologio"
7339           if test "$no_cache" != 1; then
7340             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7341           fi
7342
7343           if test "$wxUSE_PROLOGIO" = yes; then
7344             echo "$as_me:$LINENO: result: yes" >&5
7345 echo "${ECHO_T}yes" >&6
7346           else
7347             echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7349           fi
7350
7351
7352           enablestring=
7353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7354 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7355           no_cache=0
7356           # Check whether --enable-resources or --disable-resources was given.
7357 if test "${enable_resources+set}" = set; then
7358   enableval="$enable_resources"
7359
7360                           if test "$enableval" = yes; then
7361                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7362                           else
7363                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7364                           fi
7365
7366 else
7367
7368                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7369                           if test "x$LINE" != x ; then
7370                             eval "DEFAULT_$LINE"
7371                           else
7372                             no_cache=1
7373                           fi
7374
7375                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7376
7377 fi;
7378
7379           eval "$ac_cv_use_resources"
7380           if test "$no_cache" != 1; then
7381             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7382           fi
7383
7384           if test "$wxUSE_RESOURCES" = yes; then
7385             echo "$as_me:$LINENO: result: yes" >&5
7386 echo "${ECHO_T}yes" >&6
7387           else
7388             echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390           fi
7391
7392
7393
7394
7395           enablestring=
7396           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7397 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7398           no_cache=0
7399           # Check whether --enable-clipboard or --disable-clipboard was given.
7400 if test "${enable_clipboard+set}" = set; then
7401   enableval="$enable_clipboard"
7402
7403                           if test "$enableval" = yes; then
7404                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7405                           else
7406                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7407                           fi
7408
7409 else
7410
7411                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7412                           if test "x$LINE" != x ; then
7413                             eval "DEFAULT_$LINE"
7414                           else
7415                             no_cache=1
7416                           fi
7417
7418                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7419
7420 fi;
7421
7422           eval "$ac_cv_use_clipboard"
7423           if test "$no_cache" != 1; then
7424             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7425           fi
7426
7427           if test "$wxUSE_CLIPBOARD" = yes; then
7428             echo "$as_me:$LINENO: result: yes" >&5
7429 echo "${ECHO_T}yes" >&6
7430           else
7431             echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433           fi
7434
7435
7436           enablestring=
7437           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7438 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7439           no_cache=0
7440           # Check whether --enable-dnd or --disable-dnd was given.
7441 if test "${enable_dnd+set}" = set; then
7442   enableval="$enable_dnd"
7443
7444                           if test "$enableval" = yes; then
7445                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7446                           else
7447                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7448                           fi
7449
7450 else
7451
7452                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7453                           if test "x$LINE" != x ; then
7454                             eval "DEFAULT_$LINE"
7455                           else
7456                             no_cache=1
7457                           fi
7458
7459                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7460
7461 fi;
7462
7463           eval "$ac_cv_use_dnd"
7464           if test "$no_cache" != 1; then
7465             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7466           fi
7467
7468           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7469             echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6
7471           else
7472             echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6
7474           fi
7475
7476
7477           enablestring=
7478           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7479 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7480           no_cache=0
7481           # Check whether --enable-metafile or --disable-metafile was given.
7482 if test "${enable_metafile+set}" = set; then
7483   enableval="$enable_metafile"
7484
7485                           if test "$enableval" = yes; then
7486                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7487                           else
7488                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7489                           fi
7490
7491 else
7492
7493                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7494                           if test "x$LINE" != x ; then
7495                             eval "DEFAULT_$LINE"
7496                           else
7497                             no_cache=1
7498                           fi
7499
7500                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7501
7502 fi;
7503
7504           eval "$ac_cv_use_metafile"
7505           if test "$no_cache" != 1; then
7506             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7507           fi
7508
7509           if test "$wxUSE_METAFILE" = yes; then
7510             echo "$as_me:$LINENO: result: yes" >&5
7511 echo "${ECHO_T}yes" >&6
7512           else
7513             echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515           fi
7516
7517
7518
7519
7520
7521           enablestring=
7522           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7523 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7524           no_cache=0
7525           # Check whether --enable-controls or --disable-controls was given.
7526 if test "${enable_controls+set}" = set; then
7527   enableval="$enable_controls"
7528
7529                           if test "$enableval" = yes; then
7530                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7531                           else
7532                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7533                           fi
7534
7535 else
7536
7537                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7538                           if test "x$LINE" != x ; then
7539                             eval "DEFAULT_$LINE"
7540                           else
7541                             no_cache=1
7542                           fi
7543
7544                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7545
7546 fi;
7547
7548           eval "$ac_cv_use_controls"
7549           if test "$no_cache" != 1; then
7550             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7551           fi
7552
7553           if test "$wxUSE_CONTROLS" = yes; then
7554             echo "$as_me:$LINENO: result: yes" >&5
7555 echo "${ECHO_T}yes" >&6
7556           else
7557             echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7559           fi
7560
7561
7562 if test "$wxUSE_CONTROLS" = "yes"; then
7563   DEFAULT_wxUSE_ACCEL=yes
7564   DEFAULT_wxUSE_BMPBUTTON=yes
7565   DEFAULT_wxUSE_BUTTON=yes
7566   DEFAULT_wxUSE_CALCTRL=yes
7567   DEFAULT_wxUSE_CARET=yes
7568   DEFAULT_wxUSE_COMBOBOX=yes
7569   DEFAULT_wxUSE_CHECKBOX=yes
7570   DEFAULT_wxUSE_CHECKLISTBOX=yes
7571   DEFAULT_wxUSE_CHOICE=yes
7572   DEFAULT_wxUSE_CHOICEBOOK=yes
7573   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7574   DEFAULT_wxUSE_COMBOBOX=yes
7575   DEFAULT_wxUSE_DATEPICKCTRL=yes
7576   DEFAULT_wxUSE_DISPLAY=yes
7577   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7578   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7579   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7580   DEFAULT_wxUSE_GAUGE=yes
7581   DEFAULT_wxUSE_GRID=yes
7582   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7583   DEFAULT_wxUSE_DATAVIEWCTRL=no
7584   DEFAULT_wxUSE_IMAGLIST=yes
7585   DEFAULT_wxUSE_LISTBOOK=yes
7586   DEFAULT_wxUSE_LISTBOX=yes
7587   DEFAULT_wxUSE_LISTCTRL=yes
7588   DEFAULT_wxUSE_NOTEBOOK=yes
7589   DEFAULT_wxUSE_RADIOBOX=yes
7590   DEFAULT_wxUSE_RADIOBTN=yes
7591   DEFAULT_wxUSE_SASH=yes
7592   DEFAULT_wxUSE_SCROLLBAR=yes
7593   DEFAULT_wxUSE_SLIDER=yes
7594   DEFAULT_wxUSE_SPINBTN=yes
7595   DEFAULT_wxUSE_SPINCTRL=yes
7596   DEFAULT_wxUSE_SPLITTER=yes
7597   DEFAULT_wxUSE_STATBMP=yes
7598   DEFAULT_wxUSE_STATBOX=yes
7599   DEFAULT_wxUSE_STATLINE=yes
7600   DEFAULT_wxUSE_STATUSBAR=yes
7601   DEFAULT_wxUSE_TAB_DIALOG=yes
7602   DEFAULT_wxUSE_TOGGLEBTN=yes
7603   DEFAULT_wxUSE_TOOLBAR=yes
7604   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7605   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7606   DEFAULT_wxUSE_TOOLTIPS=yes
7607   DEFAULT_wxUSE_TREEBOOK=yes
7608   DEFAULT_wxUSE_TOOLBOOK=yes
7609   DEFAULT_wxUSE_TREECTRL=yes
7610   DEFAULT_wxUSE_POPUPWIN=yes
7611   DEFAULT_wxUSE_TIPWINDOW=yes
7612 elif test "$wxUSE_CONTROLS" = "no"; then
7613   DEFAULT_wxUSE_ACCEL=no
7614   DEFAULT_wxUSE_BMPBUTTON=no
7615   DEFAULT_wxUSE_BUTTON=no
7616   DEFAULT_wxUSE_CALCTRL=no
7617   DEFAULT_wxUSE_CARET=no
7618   DEFAULT_wxUSE_COMBOBOX=no
7619   DEFAULT_wxUSE_CHECKBOX=no
7620   DEFAULT_wxUSE_CHECKLISTBOX=no
7621   DEFAULT_wxUSE_CHOICE=no
7622   DEFAULT_wxUSE_CHOICEBOOK=no
7623   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7624   DEFAULT_wxUSE_COMBOBOX=no
7625   DEFAULT_wxUSE_DATEPICKCTRL=no
7626   DEFAULT_wxUSE_DISPLAY=no
7627   DEFAULT_wxUSE_DIRPICKERCTRL=no
7628   DEFAULT_wxUSE_FILEPICKERCTRL=no
7629   DEFAULT_wxUSE_FONTPICKERCTRL=no
7630   DEFAULT_wxUSE_GAUGE=no
7631   DEFAULT_wxUSE_GRID=no
7632   DEFAULT_wxUSE_HYPERLINKCTRL=no
7633   DEFAULT_wxUSE_DATAVIEWCTRL=no
7634   DEFAULT_wxUSE_IMAGLIST=no
7635   DEFAULT_wxUSE_LISTBOOK=no
7636   DEFAULT_wxUSE_LISTBOX=no
7637   DEFAULT_wxUSE_LISTCTRL=no
7638   DEFAULT_wxUSE_NOTEBOOK=no
7639   DEFAULT_wxUSE_RADIOBOX=no
7640   DEFAULT_wxUSE_RADIOBTN=no
7641   DEFAULT_wxUSE_SASH=no
7642   DEFAULT_wxUSE_SCROLLBAR=no
7643   DEFAULT_wxUSE_SLIDER=no
7644   DEFAULT_wxUSE_SPINBTN=no
7645   DEFAULT_wxUSE_SPINCTRL=no
7646   DEFAULT_wxUSE_SPLITTER=no
7647   DEFAULT_wxUSE_STATBMP=no
7648   DEFAULT_wxUSE_STATBOX=no
7649   DEFAULT_wxUSE_STATLINE=no
7650   DEFAULT_wxUSE_STATUSBAR=no
7651   DEFAULT_wxUSE_TAB_DIALOG=no
7652   DEFAULT_wxUSE_TOGGLEBTN=no
7653   DEFAULT_wxUSE_TOOLBAR=no
7654   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7655   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7656   DEFAULT_wxUSE_TOOLTIPS=no
7657   DEFAULT_wxUSE_TREEBOOK=no
7658   DEFAULT_wxUSE_TOOLBOOK=no
7659   DEFAULT_wxUSE_TREECTRL=no
7660   DEFAULT_wxUSE_POPUPWIN=no
7661   DEFAULT_wxUSE_TIPWINDOW=no
7662 fi
7663
7664
7665           enablestring=
7666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7667 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7668           no_cache=0
7669           # Check whether --enable-accel or --disable-accel was given.
7670 if test "${enable_accel+set}" = set; then
7671   enableval="$enable_accel"
7672
7673                           if test "$enableval" = yes; then
7674                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7675                           else
7676                             ac_cv_use_accel='wxUSE_ACCEL=no'
7677                           fi
7678
7679 else
7680
7681                           LINE=`grep "wxUSE_ACCEL" ${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_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7689
7690 fi;
7691
7692           eval "$ac_cv_use_accel"
7693           if test "$no_cache" != 1; then
7694             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7695           fi
7696
7697           if test "$wxUSE_ACCEL" = 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           enablestring=
7707           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7708 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7709           no_cache=0
7710           # Check whether --enable-button or --disable-button was given.
7711 if test "${enable_button+set}" = set; then
7712   enableval="$enable_button"
7713
7714                           if test "$enableval" = yes; then
7715                             ac_cv_use_button='wxUSE_BUTTON=yes'
7716                           else
7717                             ac_cv_use_button='wxUSE_BUTTON=no'
7718                           fi
7719
7720 else
7721
7722                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7723                           if test "x$LINE" != x ; then
7724                             eval "DEFAULT_$LINE"
7725                           else
7726                             no_cache=1
7727                           fi
7728
7729                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7730
7731 fi;
7732
7733           eval "$ac_cv_use_button"
7734           if test "$no_cache" != 1; then
7735             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7736           fi
7737
7738           if test "$wxUSE_BUTTON" = yes; then
7739             echo "$as_me:$LINENO: result: yes" >&5
7740 echo "${ECHO_T}yes" >&6
7741           else
7742             echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7744           fi
7745
7746
7747           enablestring=
7748           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7749 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7750           no_cache=0
7751           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7752 if test "${enable_bmpbutton+set}" = set; then
7753   enableval="$enable_bmpbutton"
7754
7755                           if test "$enableval" = yes; then
7756                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7757                           else
7758                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7759                           fi
7760
7761 else
7762
7763                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7764                           if test "x$LINE" != x ; then
7765                             eval "DEFAULT_$LINE"
7766                           else
7767                             no_cache=1
7768                           fi
7769
7770                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7771
7772 fi;
7773
7774           eval "$ac_cv_use_bmpbutton"
7775           if test "$no_cache" != 1; then
7776             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7777           fi
7778
7779           if test "$wxUSE_BMPBUTTON" = yes; then
7780             echo "$as_me:$LINENO: result: yes" >&5
7781 echo "${ECHO_T}yes" >&6
7782           else
7783             echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7785           fi
7786
7787
7788           enablestring=
7789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7791           no_cache=0
7792           # Check whether --enable-calendar or --disable-calendar was given.
7793 if test "${enable_calendar+set}" = set; then
7794   enableval="$enable_calendar"
7795
7796                           if test "$enableval" = yes; then
7797                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7798                           else
7799                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7800                           fi
7801
7802 else
7803
7804                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7805                           if test "x$LINE" != x ; then
7806                             eval "DEFAULT_$LINE"
7807                           else
7808                             no_cache=1
7809                           fi
7810
7811                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7812
7813 fi;
7814
7815           eval "$ac_cv_use_calendar"
7816           if test "$no_cache" != 1; then
7817             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7818           fi
7819
7820           if test "$wxUSE_CALCTRL" = yes; then
7821             echo "$as_me:$LINENO: result: yes" >&5
7822 echo "${ECHO_T}yes" >&6
7823           else
7824             echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7826           fi
7827
7828
7829           enablestring=
7830           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7831 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7832           no_cache=0
7833           # Check whether --enable-caret or --disable-caret was given.
7834 if test "${enable_caret+set}" = set; then
7835   enableval="$enable_caret"
7836
7837                           if test "$enableval" = yes; then
7838                             ac_cv_use_caret='wxUSE_CARET=yes'
7839                           else
7840                             ac_cv_use_caret='wxUSE_CARET=no'
7841                           fi
7842
7843 else
7844
7845                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7846                           if test "x$LINE" != x ; then
7847                             eval "DEFAULT_$LINE"
7848                           else
7849                             no_cache=1
7850                           fi
7851
7852                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7853
7854 fi;
7855
7856           eval "$ac_cv_use_caret"
7857           if test "$no_cache" != 1; then
7858             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7859           fi
7860
7861           if test "$wxUSE_CARET" = yes; then
7862             echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6
7864           else
7865             echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7867           fi
7868
7869
7870           enablestring=
7871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7872 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7873           no_cache=0
7874           # Check whether --enable-checkbox or --disable-checkbox was given.
7875 if test "${enable_checkbox+set}" = set; then
7876   enableval="$enable_checkbox"
7877
7878                           if test "$enableval" = yes; then
7879                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7880                           else
7881                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7882                           fi
7883
7884 else
7885
7886                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7887                           if test "x$LINE" != x ; then
7888                             eval "DEFAULT_$LINE"
7889                           else
7890                             no_cache=1
7891                           fi
7892
7893                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7894
7895 fi;
7896
7897           eval "$ac_cv_use_checkbox"
7898           if test "$no_cache" != 1; then
7899             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7900           fi
7901
7902           if test "$wxUSE_CHECKBOX" = yes; then
7903             echo "$as_me:$LINENO: result: yes" >&5
7904 echo "${ECHO_T}yes" >&6
7905           else
7906             echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6
7908           fi
7909
7910
7911           enablestring=
7912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7913 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7914           no_cache=0
7915           # Check whether --enable-checklst or --disable-checklst was given.
7916 if test "${enable_checklst+set}" = set; then
7917   enableval="$enable_checklst"
7918
7919                           if test "$enableval" = yes; then
7920                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7921                           else
7922                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7923                           fi
7924
7925 else
7926
7927                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7928                           if test "x$LINE" != x ; then
7929                             eval "DEFAULT_$LINE"
7930                           else
7931                             no_cache=1
7932                           fi
7933
7934                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7935
7936 fi;
7937
7938           eval "$ac_cv_use_checklst"
7939           if test "$no_cache" != 1; then
7940             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7941           fi
7942
7943           if test "$wxUSE_CHECKLST" = yes; then
7944             echo "$as_me:$LINENO: result: yes" >&5
7945 echo "${ECHO_T}yes" >&6
7946           else
7947             echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7949           fi
7950
7951
7952           enablestring=
7953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7954 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7955           no_cache=0
7956           # Check whether --enable-choice or --disable-choice was given.
7957 if test "${enable_choice+set}" = set; then
7958   enableval="$enable_choice"
7959
7960                           if test "$enableval" = yes; then
7961                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7962                           else
7963                             ac_cv_use_choice='wxUSE_CHOICE=no'
7964                           fi
7965
7966 else
7967
7968                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7969                           if test "x$LINE" != x ; then
7970                             eval "DEFAULT_$LINE"
7971                           else
7972                             no_cache=1
7973                           fi
7974
7975                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7976
7977 fi;
7978
7979           eval "$ac_cv_use_choice"
7980           if test "$no_cache" != 1; then
7981             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7982           fi
7983
7984           if test "$wxUSE_CHOICE" = yes; then
7985             echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6
7987           else
7988             echo "$as_me:$LINENO: result: no" >&5
7989 echo "${ECHO_T}no" >&6
7990           fi
7991
7992
7993           enablestring=
7994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7995 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7996           no_cache=0
7997           # Check whether --enable-choicebook or --disable-choicebook was given.
7998 if test "${enable_choicebook+set}" = set; then
7999   enableval="$enable_choicebook"
8000
8001                           if test "$enableval" = yes; then
8002                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8003                           else
8004                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8005                           fi
8006
8007 else
8008
8009                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8010                           if test "x$LINE" != x ; then
8011                             eval "DEFAULT_$LINE"
8012                           else
8013                             no_cache=1
8014                           fi
8015
8016                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8017
8018 fi;
8019
8020           eval "$ac_cv_use_choicebook"
8021           if test "$no_cache" != 1; then
8022             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8023           fi
8024
8025           if test "$wxUSE_CHOICEBOOK" = yes; then
8026             echo "$as_me:$LINENO: result: yes" >&5
8027 echo "${ECHO_T}yes" >&6
8028           else
8029             echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031           fi
8032
8033
8034           enablestring=
8035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8036 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8037           no_cache=0
8038           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8039 if test "${enable_colourpicker+set}" = set; then
8040   enableval="$enable_colourpicker"
8041
8042                           if test "$enableval" = yes; then
8043                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8044                           else
8045                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8046                           fi
8047
8048 else
8049
8050                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8051                           if test "x$LINE" != x ; then
8052                             eval "DEFAULT_$LINE"
8053                           else
8054                             no_cache=1
8055                           fi
8056
8057                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8058
8059 fi;
8060
8061           eval "$ac_cv_use_colourpicker"
8062           if test "$no_cache" != 1; then
8063             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8064           fi
8065
8066           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8067             echo "$as_me:$LINENO: result: yes" >&5
8068 echo "${ECHO_T}yes" >&6
8069           else
8070             echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8072           fi
8073
8074
8075           enablestring=
8076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8077 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8078           no_cache=0
8079           # Check whether --enable-combobox or --disable-combobox was given.
8080 if test "${enable_combobox+set}" = set; then
8081   enableval="$enable_combobox"
8082
8083                           if test "$enableval" = yes; then
8084                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8085                           else
8086                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8087                           fi
8088
8089 else
8090
8091                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8092                           if test "x$LINE" != x ; then
8093                             eval "DEFAULT_$LINE"
8094                           else
8095                             no_cache=1
8096                           fi
8097
8098                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8099
8100 fi;
8101
8102           eval "$ac_cv_use_combobox"
8103           if test "$no_cache" != 1; then
8104             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8105           fi
8106
8107           if test "$wxUSE_COMBOBOX" = yes; then
8108             echo "$as_me:$LINENO: result: yes" >&5
8109 echo "${ECHO_T}yes" >&6
8110           else
8111             echo "$as_me:$LINENO: result: no" >&5
8112 echo "${ECHO_T}no" >&6
8113           fi
8114
8115
8116           enablestring=
8117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8118 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8119           no_cache=0
8120           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8121 if test "${enable_comboctrl+set}" = set; then
8122   enableval="$enable_comboctrl"
8123
8124                           if test "$enableval" = yes; then
8125                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8126                           else
8127                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8128                           fi
8129
8130 else
8131
8132                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8133                           if test "x$LINE" != x ; then
8134                             eval "DEFAULT_$LINE"
8135                           else
8136                             no_cache=1
8137                           fi
8138
8139                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8140
8141 fi;
8142
8143           eval "$ac_cv_use_comboctrl"
8144           if test "$no_cache" != 1; then
8145             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8146           fi
8147
8148           if test "$wxUSE_COMBOCTRL" = yes; then
8149             echo "$as_me:$LINENO: result: yes" >&5
8150 echo "${ECHO_T}yes" >&6
8151           else
8152             echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154           fi
8155
8156
8157           enablestring=
8158           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8159 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8160           no_cache=0
8161           # Check whether --enable-datepick or --disable-datepick was given.
8162 if test "${enable_datepick+set}" = set; then
8163   enableval="$enable_datepick"
8164
8165                           if test "$enableval" = yes; then
8166                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8167                           else
8168                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8169                           fi
8170
8171 else
8172
8173                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8174                           if test "x$LINE" != x ; then
8175                             eval "DEFAULT_$LINE"
8176                           else
8177                             no_cache=1
8178                           fi
8179
8180                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8181
8182 fi;
8183
8184           eval "$ac_cv_use_datepick"
8185           if test "$no_cache" != 1; then
8186             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8187           fi
8188
8189           if test "$wxUSE_DATEPICKCTRL" = yes; then
8190             echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192           else
8193             echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6
8195           fi
8196
8197
8198           enablestring=
8199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8200 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8201           no_cache=0
8202           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8203 if test "${enable_dirpicker+set}" = set; then
8204   enableval="$enable_dirpicker"
8205
8206                           if test "$enableval" = yes; then
8207                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8208                           else
8209                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8210                           fi
8211
8212 else
8213
8214                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8215                           if test "x$LINE" != x ; then
8216                             eval "DEFAULT_$LINE"
8217                           else
8218                             no_cache=1
8219                           fi
8220
8221                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8222
8223 fi;
8224
8225           eval "$ac_cv_use_dirpicker"
8226           if test "$no_cache" != 1; then
8227             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8228           fi
8229
8230           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8231             echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233           else
8234             echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236           fi
8237
8238
8239           enablestring=
8240           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8241 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8242           no_cache=0
8243           # Check whether --enable-display or --disable-display was given.
8244 if test "${enable_display+set}" = set; then
8245   enableval="$enable_display"
8246
8247                           if test "$enableval" = yes; then
8248                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8249                           else
8250                             ac_cv_use_display='wxUSE_DISPLAY=no'
8251                           fi
8252
8253 else
8254
8255                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8256                           if test "x$LINE" != x ; then
8257                             eval "DEFAULT_$LINE"
8258                           else
8259                             no_cache=1
8260                           fi
8261
8262                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8263
8264 fi;
8265
8266           eval "$ac_cv_use_display"
8267           if test "$no_cache" != 1; then
8268             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8269           fi
8270
8271           if test "$wxUSE_DISPLAY" = yes; then
8272             echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274           else
8275             echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8277           fi
8278
8279
8280           enablestring=
8281           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8282 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8283           no_cache=0
8284           # Check whether --enable-filepicker or --disable-filepicker was given.
8285 if test "${enable_filepicker+set}" = set; then
8286   enableval="$enable_filepicker"
8287
8288                           if test "$enableval" = yes; then
8289                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8290                           else
8291                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8292                           fi
8293
8294 else
8295
8296                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8297                           if test "x$LINE" != x ; then
8298                             eval "DEFAULT_$LINE"
8299                           else
8300                             no_cache=1
8301                           fi
8302
8303                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8304
8305 fi;
8306
8307           eval "$ac_cv_use_filepicker"
8308           if test "$no_cache" != 1; then
8309             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8310           fi
8311
8312           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8313             echo "$as_me:$LINENO: result: yes" >&5
8314 echo "${ECHO_T}yes" >&6
8315           else
8316             echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6
8318           fi
8319
8320
8321           enablestring=
8322           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8323 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8324           no_cache=0
8325           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8326 if test "${enable_fontpicker+set}" = set; then
8327   enableval="$enable_fontpicker"
8328
8329                           if test "$enableval" = yes; then
8330                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8331                           else
8332                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8333                           fi
8334
8335 else
8336
8337                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8338                           if test "x$LINE" != x ; then
8339                             eval "DEFAULT_$LINE"
8340                           else
8341                             no_cache=1
8342                           fi
8343
8344                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8345
8346 fi;
8347
8348           eval "$ac_cv_use_fontpicker"
8349           if test "$no_cache" != 1; then
8350             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8351           fi
8352
8353           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8354             echo "$as_me:$LINENO: result: yes" >&5
8355 echo "${ECHO_T}yes" >&6
8356           else
8357             echo "$as_me:$LINENO: result: no" >&5
8358 echo "${ECHO_T}no" >&6
8359           fi
8360
8361
8362           enablestring=
8363           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8364 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8365           no_cache=0
8366           # Check whether --enable-gauge or --disable-gauge was given.
8367 if test "${enable_gauge+set}" = set; then
8368   enableval="$enable_gauge"
8369
8370                           if test "$enableval" = yes; then
8371                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8372                           else
8373                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8374                           fi
8375
8376 else
8377
8378                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8379                           if test "x$LINE" != x ; then
8380                             eval "DEFAULT_$LINE"
8381                           else
8382                             no_cache=1
8383                           fi
8384
8385                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8386
8387 fi;
8388
8389           eval "$ac_cv_use_gauge"
8390           if test "$no_cache" != 1; then
8391             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8392           fi
8393
8394           if test "$wxUSE_GAUGE" = yes; then
8395             echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8397           else
8398             echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6
8400           fi
8401
8402
8403           enablestring=
8404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8405 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8406           no_cache=0
8407           # Check whether --enable-grid or --disable-grid was given.
8408 if test "${enable_grid+set}" = set; then
8409   enableval="$enable_grid"
8410
8411                           if test "$enableval" = yes; then
8412                             ac_cv_use_grid='wxUSE_GRID=yes'
8413                           else
8414                             ac_cv_use_grid='wxUSE_GRID=no'
8415                           fi
8416
8417 else
8418
8419                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8420                           if test "x$LINE" != x ; then
8421                             eval "DEFAULT_$LINE"
8422                           else
8423                             no_cache=1
8424                           fi
8425
8426                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8427
8428 fi;
8429
8430           eval "$ac_cv_use_grid"
8431           if test "$no_cache" != 1; then
8432             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8433           fi
8434
8435           if test "$wxUSE_GRID" = yes; then
8436             echo "$as_me:$LINENO: result: yes" >&5
8437 echo "${ECHO_T}yes" >&6
8438           else
8439             echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6
8441           fi
8442
8443
8444           enablestring=
8445           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8446 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8447           no_cache=0
8448           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8449 if test "${enable_dataviewctrl+set}" = set; then
8450   enableval="$enable_dataviewctrl"
8451
8452                           if test "$enableval" = yes; then
8453                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8454                           else
8455                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8456                           fi
8457
8458 else
8459
8460                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8461                           if test "x$LINE" != x ; then
8462                             eval "DEFAULT_$LINE"
8463                           else
8464                             no_cache=1
8465                           fi
8466
8467                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8468
8469 fi;
8470
8471           eval "$ac_cv_use_dataviewctrl"
8472           if test "$no_cache" != 1; then
8473             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8474           fi
8475
8476           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8477             echo "$as_me:$LINENO: result: yes" >&5
8478 echo "${ECHO_T}yes" >&6
8479           else
8480             echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8482           fi
8483
8484
8485           enablestring=
8486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8488           no_cache=0
8489           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8490 if test "${enable_hyperlink+set}" = set; then
8491   enableval="$enable_hyperlink"
8492
8493                           if test "$enableval" = yes; then
8494                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8495                           else
8496                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8497                           fi
8498
8499 else
8500
8501                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8502                           if test "x$LINE" != x ; then
8503                             eval "DEFAULT_$LINE"
8504                           else
8505                             no_cache=1
8506                           fi
8507
8508                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8509
8510 fi;
8511
8512           eval "$ac_cv_use_hyperlink"
8513           if test "$no_cache" != 1; then
8514             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8515           fi
8516
8517           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8518             echo "$as_me:$LINENO: result: yes" >&5
8519 echo "${ECHO_T}yes" >&6
8520           else
8521             echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523           fi
8524
8525
8526           enablestring=
8527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8528 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8529           no_cache=0
8530           # Check whether --enable-imaglist or --disable-imaglist was given.
8531 if test "${enable_imaglist+set}" = set; then
8532   enableval="$enable_imaglist"
8533
8534                           if test "$enableval" = yes; then
8535                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8536                           else
8537                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8538                           fi
8539
8540 else
8541
8542                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8543                           if test "x$LINE" != x ; then
8544                             eval "DEFAULT_$LINE"
8545                           else
8546                             no_cache=1
8547                           fi
8548
8549                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8550
8551 fi;
8552
8553           eval "$ac_cv_use_imaglist"
8554           if test "$no_cache" != 1; then
8555             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8556           fi
8557
8558           if test "$wxUSE_IMAGLIST" = yes; then
8559             echo "$as_me:$LINENO: result: yes" >&5
8560 echo "${ECHO_T}yes" >&6
8561           else
8562             echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6
8564           fi
8565
8566
8567           enablestring=
8568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8569 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8570           no_cache=0
8571           # Check whether --enable-listbook or --disable-listbook was given.
8572 if test "${enable_listbook+set}" = set; then
8573   enableval="$enable_listbook"
8574
8575                           if test "$enableval" = yes; then
8576                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8577                           else
8578                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8579                           fi
8580
8581 else
8582
8583                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8584                           if test "x$LINE" != x ; then
8585                             eval "DEFAULT_$LINE"
8586                           else
8587                             no_cache=1
8588                           fi
8589
8590                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8591
8592 fi;
8593
8594           eval "$ac_cv_use_listbook"
8595           if test "$no_cache" != 1; then
8596             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8597           fi
8598
8599           if test "$wxUSE_LISTBOOK" = yes; then
8600             echo "$as_me:$LINENO: result: yes" >&5
8601 echo "${ECHO_T}yes" >&6
8602           else
8603             echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6
8605           fi
8606
8607
8608           enablestring=
8609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8610 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8611           no_cache=0
8612           # Check whether --enable-listbox or --disable-listbox was given.
8613 if test "${enable_listbox+set}" = set; then
8614   enableval="$enable_listbox"
8615
8616                           if test "$enableval" = yes; then
8617                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8618                           else
8619                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8620                           fi
8621
8622 else
8623
8624                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8625                           if test "x$LINE" != x ; then
8626                             eval "DEFAULT_$LINE"
8627                           else
8628                             no_cache=1
8629                           fi
8630
8631                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8632
8633 fi;
8634
8635           eval "$ac_cv_use_listbox"
8636           if test "$no_cache" != 1; then
8637             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8638           fi
8639
8640           if test "$wxUSE_LISTBOX" = yes; then
8641             echo "$as_me:$LINENO: result: yes" >&5
8642 echo "${ECHO_T}yes" >&6
8643           else
8644             echo "$as_me:$LINENO: result: no" >&5
8645 echo "${ECHO_T}no" >&6
8646           fi
8647
8648
8649           enablestring=
8650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8651 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8652           no_cache=0
8653           # Check whether --enable-listctrl or --disable-listctrl was given.
8654 if test "${enable_listctrl+set}" = set; then
8655   enableval="$enable_listctrl"
8656
8657                           if test "$enableval" = yes; then
8658                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8659                           else
8660                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8661                           fi
8662
8663 else
8664
8665                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8666                           if test "x$LINE" != x ; then
8667                             eval "DEFAULT_$LINE"
8668                           else
8669                             no_cache=1
8670                           fi
8671
8672                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8673
8674 fi;
8675
8676           eval "$ac_cv_use_listctrl"
8677           if test "$no_cache" != 1; then
8678             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8679           fi
8680
8681           if test "$wxUSE_LISTCTRL" = yes; then
8682             echo "$as_me:$LINENO: result: yes" >&5
8683 echo "${ECHO_T}yes" >&6
8684           else
8685             echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687           fi
8688
8689
8690           enablestring=
8691           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8692 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8693           no_cache=0
8694           # Check whether --enable-notebook or --disable-notebook was given.
8695 if test "${enable_notebook+set}" = set; then
8696   enableval="$enable_notebook"
8697
8698                           if test "$enableval" = yes; then
8699                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8700                           else
8701                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8702                           fi
8703
8704 else
8705
8706                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8707                           if test "x$LINE" != x ; then
8708                             eval "DEFAULT_$LINE"
8709                           else
8710                             no_cache=1
8711                           fi
8712
8713                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8714
8715 fi;
8716
8717           eval "$ac_cv_use_notebook"
8718           if test "$no_cache" != 1; then
8719             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8720           fi
8721
8722           if test "$wxUSE_NOTEBOOK" = yes; then
8723             echo "$as_me:$LINENO: result: yes" >&5
8724 echo "${ECHO_T}yes" >&6
8725           else
8726             echo "$as_me:$LINENO: result: no" >&5
8727 echo "${ECHO_T}no" >&6
8728           fi
8729
8730
8731           enablestring=
8732           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8733 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8734           no_cache=0
8735           # Check whether --enable-odcombobox or --disable-odcombobox was given.
8736 if test "${enable_odcombobox+set}" = set; then
8737   enableval="$enable_odcombobox"
8738
8739                           if test "$enableval" = yes; then
8740                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8741                           else
8742                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8743                           fi
8744
8745 else
8746
8747                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8748                           if test "x$LINE" != x ; then
8749                             eval "DEFAULT_$LINE"
8750                           else
8751                             no_cache=1
8752                           fi
8753
8754                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8755
8756 fi;
8757
8758           eval "$ac_cv_use_odcombobox"
8759           if test "$no_cache" != 1; then
8760             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8761           fi
8762
8763           if test "$wxUSE_ODCOMBOBOX" = yes; then
8764             echo "$as_me:$LINENO: result: yes" >&5
8765 echo "${ECHO_T}yes" >&6
8766           else
8767             echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8769           fi
8770
8771
8772           enablestring=
8773           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8774 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8775           no_cache=0
8776           # Check whether --enable-radiobox or --disable-radiobox was given.
8777 if test "${enable_radiobox+set}" = set; then
8778   enableval="$enable_radiobox"
8779
8780                           if test "$enableval" = yes; then
8781                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8782                           else
8783                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8784                           fi
8785
8786 else
8787
8788                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8789                           if test "x$LINE" != x ; then
8790                             eval "DEFAULT_$LINE"
8791                           else
8792                             no_cache=1
8793                           fi
8794
8795                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8796
8797 fi;
8798
8799           eval "$ac_cv_use_radiobox"
8800           if test "$no_cache" != 1; then
8801             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8802           fi
8803
8804           if test "$wxUSE_RADIOBOX" = yes; then
8805             echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6
8807           else
8808             echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6
8810           fi
8811
8812
8813           enablestring=
8814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8815 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8816           no_cache=0
8817           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8818 if test "${enable_radiobtn+set}" = set; then
8819   enableval="$enable_radiobtn"
8820
8821                           if test "$enableval" = yes; then
8822                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8823                           else
8824                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8825                           fi
8826
8827 else
8828
8829                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8830                           if test "x$LINE" != x ; then
8831                             eval "DEFAULT_$LINE"
8832                           else
8833                             no_cache=1
8834                           fi
8835
8836                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8837
8838 fi;
8839
8840           eval "$ac_cv_use_radiobtn"
8841           if test "$no_cache" != 1; then
8842             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8843           fi
8844
8845           if test "$wxUSE_RADIOBTN" = yes; then
8846             echo "$as_me:$LINENO: result: yes" >&5
8847 echo "${ECHO_T}yes" >&6
8848           else
8849             echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8851           fi
8852
8853
8854           enablestring=
8855           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8856 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8857           no_cache=0
8858           # Check whether --enable-sash or --disable-sash was given.
8859 if test "${enable_sash+set}" = set; then
8860   enableval="$enable_sash"
8861
8862                           if test "$enableval" = yes; then
8863                             ac_cv_use_sash='wxUSE_SASH=yes'
8864                           else
8865                             ac_cv_use_sash='wxUSE_SASH=no'
8866                           fi
8867
8868 else
8869
8870                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8871                           if test "x$LINE" != x ; then
8872                             eval "DEFAULT_$LINE"
8873                           else
8874                             no_cache=1
8875                           fi
8876
8877                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8878
8879 fi;
8880
8881           eval "$ac_cv_use_sash"
8882           if test "$no_cache" != 1; then
8883             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8884           fi
8885
8886           if test "$wxUSE_SASH" = yes; then
8887             echo "$as_me:$LINENO: result: yes" >&5
8888 echo "${ECHO_T}yes" >&6
8889           else
8890             echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8892           fi
8893
8894
8895           enablestring=
8896           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8897 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8898           no_cache=0
8899           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8900 if test "${enable_scrollbar+set}" = set; then
8901   enableval="$enable_scrollbar"
8902
8903                           if test "$enableval" = yes; then
8904                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8905                           else
8906                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8907                           fi
8908
8909 else
8910
8911                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8912                           if test "x$LINE" != x ; then
8913                             eval "DEFAULT_$LINE"
8914                           else
8915                             no_cache=1
8916                           fi
8917
8918                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8919
8920 fi;
8921
8922           eval "$ac_cv_use_scrollbar"
8923           if test "$no_cache" != 1; then
8924             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8925           fi
8926
8927           if test "$wxUSE_SCROLLBAR" = yes; then
8928             echo "$as_me:$LINENO: result: yes" >&5
8929 echo "${ECHO_T}yes" >&6
8930           else
8931             echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6
8933           fi
8934
8935
8936           enablestring=
8937           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8938 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8939           no_cache=0
8940           # Check whether --enable-slider or --disable-slider was given.
8941 if test "${enable_slider+set}" = set; then
8942   enableval="$enable_slider"
8943
8944                           if test "$enableval" = yes; then
8945                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8946                           else
8947                             ac_cv_use_slider='wxUSE_SLIDER=no'
8948                           fi
8949
8950 else
8951
8952                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8953                           if test "x$LINE" != x ; then
8954                             eval "DEFAULT_$LINE"
8955                           else
8956                             no_cache=1
8957                           fi
8958
8959                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8960
8961 fi;
8962
8963           eval "$ac_cv_use_slider"
8964           if test "$no_cache" != 1; then
8965             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8966           fi
8967
8968           if test "$wxUSE_SLIDER" = yes; then
8969             echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6
8971           else
8972             echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974           fi
8975
8976
8977           enablestring=
8978           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8979 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8980           no_cache=0
8981           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8982 if test "${enable_spinbtn+set}" = set; then
8983   enableval="$enable_spinbtn"
8984
8985                           if test "$enableval" = yes; then
8986                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8987                           else
8988                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8989                           fi
8990
8991 else
8992
8993                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8994                           if test "x$LINE" != x ; then
8995                             eval "DEFAULT_$LINE"
8996                           else
8997                             no_cache=1
8998                           fi
8999
9000                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9001
9002 fi;
9003
9004           eval "$ac_cv_use_spinbtn"
9005           if test "$no_cache" != 1; then
9006             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9007           fi
9008
9009           if test "$wxUSE_SPINBTN" = yes; then
9010             echo "$as_me:$LINENO: result: yes" >&5
9011 echo "${ECHO_T}yes" >&6
9012           else
9013             echo "$as_me:$LINENO: result: no" >&5
9014 echo "${ECHO_T}no" >&6
9015           fi
9016
9017
9018           enablestring=
9019           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9020 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9021           no_cache=0
9022           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9023 if test "${enable_spinctrl+set}" = set; then
9024   enableval="$enable_spinctrl"
9025
9026                           if test "$enableval" = yes; then
9027                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9028                           else
9029                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9030                           fi
9031
9032 else
9033
9034                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9035                           if test "x$LINE" != x ; then
9036                             eval "DEFAULT_$LINE"
9037                           else
9038                             no_cache=1
9039                           fi
9040
9041                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9042
9043 fi;
9044
9045           eval "$ac_cv_use_spinctrl"
9046           if test "$no_cache" != 1; then
9047             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9048           fi
9049
9050           if test "$wxUSE_SPINCTRL" = yes; then
9051             echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6
9053           else
9054             echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6
9056           fi
9057
9058
9059           enablestring=
9060           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9061 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9062           no_cache=0
9063           # Check whether --enable-splitter or --disable-splitter was given.
9064 if test "${enable_splitter+set}" = set; then
9065   enableval="$enable_splitter"
9066
9067                           if test "$enableval" = yes; then
9068                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9069                           else
9070                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9071                           fi
9072
9073 else
9074
9075                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9076                           if test "x$LINE" != x ; then
9077                             eval "DEFAULT_$LINE"
9078                           else
9079                             no_cache=1
9080                           fi
9081
9082                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9083
9084 fi;
9085
9086           eval "$ac_cv_use_splitter"
9087           if test "$no_cache" != 1; then
9088             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9089           fi
9090
9091           if test "$wxUSE_SPLITTER" = yes; then
9092             echo "$as_me:$LINENO: result: yes" >&5
9093 echo "${ECHO_T}yes" >&6
9094           else
9095             echo "$as_me:$LINENO: result: no" >&5
9096 echo "${ECHO_T}no" >&6
9097           fi
9098
9099
9100           enablestring=
9101           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9102 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9103           no_cache=0
9104           # Check whether --enable-statbmp or --disable-statbmp was given.
9105 if test "${enable_statbmp+set}" = set; then
9106   enableval="$enable_statbmp"
9107
9108                           if test "$enableval" = yes; then
9109                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9110                           else
9111                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9112                           fi
9113
9114 else
9115
9116                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9117                           if test "x$LINE" != x ; then
9118                             eval "DEFAULT_$LINE"
9119                           else
9120                             no_cache=1
9121                           fi
9122
9123                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9124
9125 fi;
9126
9127           eval "$ac_cv_use_statbmp"
9128           if test "$no_cache" != 1; then
9129             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9130           fi
9131
9132           if test "$wxUSE_STATBMP" = yes; then
9133             echo "$as_me:$LINENO: result: yes" >&5
9134 echo "${ECHO_T}yes" >&6
9135           else
9136             echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138           fi
9139
9140
9141           enablestring=
9142           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9144           no_cache=0
9145           # Check whether --enable-statbox or --disable-statbox was given.
9146 if test "${enable_statbox+set}" = set; then
9147   enableval="$enable_statbox"
9148
9149                           if test "$enableval" = yes; then
9150                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9151                           else
9152                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9153                           fi
9154
9155 else
9156
9157                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9158                           if test "x$LINE" != x ; then
9159                             eval "DEFAULT_$LINE"
9160                           else
9161                             no_cache=1
9162                           fi
9163
9164                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9165
9166 fi;
9167
9168           eval "$ac_cv_use_statbox"
9169           if test "$no_cache" != 1; then
9170             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9171           fi
9172
9173           if test "$wxUSE_STATBOX" = yes; then
9174             echo "$as_me:$LINENO: result: yes" >&5
9175 echo "${ECHO_T}yes" >&6
9176           else
9177             echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179           fi
9180
9181
9182           enablestring=
9183           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9184 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9185           no_cache=0
9186           # Check whether --enable-statline or --disable-statline was given.
9187 if test "${enable_statline+set}" = set; then
9188   enableval="$enable_statline"
9189
9190                           if test "$enableval" = yes; then
9191                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9192                           else
9193                             ac_cv_use_statline='wxUSE_STATLINE=no'
9194                           fi
9195
9196 else
9197
9198                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9199                           if test "x$LINE" != x ; then
9200                             eval "DEFAULT_$LINE"
9201                           else
9202                             no_cache=1
9203                           fi
9204
9205                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9206
9207 fi;
9208
9209           eval "$ac_cv_use_statline"
9210           if test "$no_cache" != 1; then
9211             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9212           fi
9213
9214           if test "$wxUSE_STATLINE" = yes; then
9215             echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6
9217           else
9218             echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6
9220           fi
9221
9222
9223           enablestring=
9224           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9225 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9226           no_cache=0
9227           # Check whether --enable-stattext or --disable-stattext was given.
9228 if test "${enable_stattext+set}" = set; then
9229   enableval="$enable_stattext"
9230
9231                           if test "$enableval" = yes; then
9232                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9233                           else
9234                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9235                           fi
9236
9237 else
9238
9239                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9240                           if test "x$LINE" != x ; then
9241                             eval "DEFAULT_$LINE"
9242                           else
9243                             no_cache=1
9244                           fi
9245
9246                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9247
9248 fi;
9249
9250           eval "$ac_cv_use_stattext"
9251           if test "$no_cache" != 1; then
9252             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9253           fi
9254
9255           if test "$wxUSE_STATTEXT" = yes; then
9256             echo "$as_me:$LINENO: result: yes" >&5
9257 echo "${ECHO_T}yes" >&6
9258           else
9259             echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9261           fi
9262
9263
9264           enablestring=
9265           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9266 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9267           no_cache=0
9268           # Check whether --enable-statusbar or --disable-statusbar was given.
9269 if test "${enable_statusbar+set}" = set; then
9270   enableval="$enable_statusbar"
9271
9272                           if test "$enableval" = yes; then
9273                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9274                           else
9275                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9276                           fi
9277
9278 else
9279
9280                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9281                           if test "x$LINE" != x ; then
9282                             eval "DEFAULT_$LINE"
9283                           else
9284                             no_cache=1
9285                           fi
9286
9287                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9288
9289 fi;
9290
9291           eval "$ac_cv_use_statusbar"
9292           if test "$no_cache" != 1; then
9293             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9294           fi
9295
9296           if test "$wxUSE_STATUSBAR" = yes; then
9297             echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6
9299           else
9300             echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9302           fi
9303
9304
9305           enablestring=
9306           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9307 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9308           no_cache=0
9309           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9310 if test "${enable_tabdialog+set}" = set; then
9311   enableval="$enable_tabdialog"
9312
9313                           if test "$enableval" = yes; then
9314                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9315                           else
9316                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9317                           fi
9318
9319 else
9320
9321                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9322                           if test "x$LINE" != x ; then
9323                             eval "DEFAULT_$LINE"
9324                           else
9325                             no_cache=1
9326                           fi
9327
9328                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9329
9330 fi;
9331
9332           eval "$ac_cv_use_tabdialog"
9333           if test "$no_cache" != 1; then
9334             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9335           fi
9336
9337           if test "$wxUSE_TAB_DIALOG" = yes; then
9338             echo "$as_me:$LINENO: result: yes" >&5
9339 echo "${ECHO_T}yes" >&6
9340           else
9341             echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343           fi
9344
9345
9346           enablestring=
9347           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9348 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9349           no_cache=0
9350           # Check whether --enable-textctrl or --disable-textctrl was given.
9351 if test "${enable_textctrl+set}" = set; then
9352   enableval="$enable_textctrl"
9353
9354                           if test "$enableval" = yes; then
9355                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9356                           else
9357                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9358                           fi
9359
9360 else
9361
9362                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9363                           if test "x$LINE" != x ; then
9364                             eval "DEFAULT_$LINE"
9365                           else
9366                             no_cache=1
9367                           fi
9368
9369                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9370
9371 fi;
9372
9373           eval "$ac_cv_use_textctrl"
9374           if test "$no_cache" != 1; then
9375             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9376           fi
9377
9378           if test "$wxUSE_TEXTCTRL" = yes; then
9379             echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9381           else
9382             echo "$as_me:$LINENO: result: no" >&5
9383 echo "${ECHO_T}no" >&6
9384           fi
9385
9386
9387           enablestring=
9388           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9389 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9390           no_cache=0
9391           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9392 if test "${enable_togglebtn+set}" = set; then
9393   enableval="$enable_togglebtn"
9394
9395                           if test "$enableval" = yes; then
9396                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9397                           else
9398                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9399                           fi
9400
9401 else
9402
9403                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9404                           if test "x$LINE" != x ; then
9405                             eval "DEFAULT_$LINE"
9406                           else
9407                             no_cache=1
9408                           fi
9409
9410                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9411
9412 fi;
9413
9414           eval "$ac_cv_use_togglebtn"
9415           if test "$no_cache" != 1; then
9416             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9417           fi
9418
9419           if test "$wxUSE_TOGGLEBTN" = yes; then
9420             echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6
9422           else
9423             echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6
9425           fi
9426
9427
9428           enablestring=
9429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9430 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9431           no_cache=0
9432           # Check whether --enable-toolbar or --disable-toolbar was given.
9433 if test "${enable_toolbar+set}" = set; then
9434   enableval="$enable_toolbar"
9435
9436                           if test "$enableval" = yes; then
9437                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9438                           else
9439                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9440                           fi
9441
9442 else
9443
9444                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9445                           if test "x$LINE" != x ; then
9446                             eval "DEFAULT_$LINE"
9447                           else
9448                             no_cache=1
9449                           fi
9450
9451                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9452
9453 fi;
9454
9455           eval "$ac_cv_use_toolbar"
9456           if test "$no_cache" != 1; then
9457             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9458           fi
9459
9460           if test "$wxUSE_TOOLBAR" = yes; then
9461             echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9463           else
9464             echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6
9466           fi
9467
9468
9469           enablestring=
9470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9472           no_cache=0
9473           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9474 if test "${enable_tbarnative+set}" = set; then
9475   enableval="$enable_tbarnative"
9476
9477                           if test "$enableval" = yes; then
9478                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9479                           else
9480                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9481                           fi
9482
9483 else
9484
9485                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9486                           if test "x$LINE" != x ; then
9487                             eval "DEFAULT_$LINE"
9488                           else
9489                             no_cache=1
9490                           fi
9491
9492                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9493
9494 fi;
9495
9496           eval "$ac_cv_use_tbarnative"
9497           if test "$no_cache" != 1; then
9498             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9499           fi
9500
9501           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9502             echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504           else
9505             echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6
9507           fi
9508
9509
9510           enablestring=
9511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9512 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9513           no_cache=0
9514           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9515 if test "${enable_tbarsmpl+set}" = set; then
9516   enableval="$enable_tbarsmpl"
9517
9518                           if test "$enableval" = yes; then
9519                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9520                           else
9521                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9522                           fi
9523
9524 else
9525
9526                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9527                           if test "x$LINE" != x ; then
9528                             eval "DEFAULT_$LINE"
9529                           else
9530                             no_cache=1
9531                           fi
9532
9533                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9534
9535 fi;
9536
9537           eval "$ac_cv_use_tbarsmpl"
9538           if test "$no_cache" != 1; then
9539             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9540           fi
9541
9542           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9543             echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545           else
9546             echo "$as_me:$LINENO: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548           fi
9549
9550
9551           enablestring=
9552           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9553 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9554           no_cache=0
9555           # Check whether --enable-treebook or --disable-treebook was given.
9556 if test "${enable_treebook+set}" = set; then
9557   enableval="$enable_treebook"
9558
9559                           if test "$enableval" = yes; then
9560                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9561                           else
9562                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9563                           fi
9564
9565 else
9566
9567                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9568                           if test "x$LINE" != x ; then
9569                             eval "DEFAULT_$LINE"
9570                           else
9571                             no_cache=1
9572                           fi
9573
9574                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9575
9576 fi;
9577
9578           eval "$ac_cv_use_treebook"
9579           if test "$no_cache" != 1; then
9580             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9581           fi
9582
9583           if test "$wxUSE_TREEBOOK" = yes; then
9584             echo "$as_me:$LINENO: result: yes" >&5
9585 echo "${ECHO_T}yes" >&6
9586           else
9587             echo "$as_me:$LINENO: result: no" >&5
9588 echo "${ECHO_T}no" >&6
9589           fi
9590
9591
9592           enablestring=
9593           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9595           no_cache=0
9596           # Check whether --enable-toolbook or --disable-toolbook was given.
9597 if test "${enable_toolbook+set}" = set; then
9598   enableval="$enable_toolbook"
9599
9600                           if test "$enableval" = yes; then
9601                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9602                           else
9603                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9604                           fi
9605
9606 else
9607
9608                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9609                           if test "x$LINE" != x ; then
9610                             eval "DEFAULT_$LINE"
9611                           else
9612                             no_cache=1
9613                           fi
9614
9615                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9616
9617 fi;
9618
9619           eval "$ac_cv_use_toolbook"
9620           if test "$no_cache" != 1; then
9621             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9622           fi
9623
9624           if test "$wxUSE_TOOLBOOK" = yes; then
9625             echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627           else
9628             echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9630           fi
9631
9632
9633           enablestring=
9634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9635 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9636           no_cache=0
9637           # Check whether --enable-treectrl or --disable-treectrl was given.
9638 if test "${enable_treectrl+set}" = set; then
9639   enableval="$enable_treectrl"
9640
9641                           if test "$enableval" = yes; then
9642                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9643                           else
9644                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9645                           fi
9646
9647 else
9648
9649                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9650                           if test "x$LINE" != x ; then
9651                             eval "DEFAULT_$LINE"
9652                           else
9653                             no_cache=1
9654                           fi
9655
9656                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9657
9658 fi;
9659
9660           eval "$ac_cv_use_treectrl"
9661           if test "$no_cache" != 1; then
9662             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9663           fi
9664
9665           if test "$wxUSE_TREECTRL" = yes; then
9666             echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668           else
9669             echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671           fi
9672
9673
9674           enablestring=
9675           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9676 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9677           no_cache=0
9678           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9679 if test "${enable_tipwindow+set}" = set; then
9680   enableval="$enable_tipwindow"
9681
9682                           if test "$enableval" = yes; then
9683                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9684                           else
9685                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9686                           fi
9687
9688 else
9689
9690                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9691                           if test "x$LINE" != x ; then
9692                             eval "DEFAULT_$LINE"
9693                           else
9694                             no_cache=1
9695                           fi
9696
9697                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9698
9699 fi;
9700
9701           eval "$ac_cv_use_tipwindow"
9702           if test "$no_cache" != 1; then
9703             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9704           fi
9705
9706           if test "$wxUSE_TIPWINDOW" = yes; then
9707             echo "$as_me:$LINENO: result: yes" >&5
9708 echo "${ECHO_T}yes" >&6
9709           else
9710             echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6
9712           fi
9713
9714
9715           enablestring=
9716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9717 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9718           no_cache=0
9719           # Check whether --enable-popupwin or --disable-popupwin was given.
9720 if test "${enable_popupwin+set}" = set; then
9721   enableval="$enable_popupwin"
9722
9723                           if test "$enableval" = yes; then
9724                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9725                           else
9726                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9727                           fi
9728
9729 else
9730
9731                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9732                           if test "x$LINE" != x ; then
9733                             eval "DEFAULT_$LINE"
9734                           else
9735                             no_cache=1
9736                           fi
9737
9738                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9739
9740 fi;
9741
9742           eval "$ac_cv_use_popupwin"
9743           if test "$no_cache" != 1; then
9744             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9745           fi
9746
9747           if test "$wxUSE_POPUPWIN" = yes; then
9748             echo "$as_me:$LINENO: result: yes" >&5
9749 echo "${ECHO_T}yes" >&6
9750           else
9751             echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9753           fi
9754
9755
9756
9757
9758           enablestring=
9759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9760 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9761           no_cache=0
9762           # Check whether --enable-commondlg or --disable-commondlg was given.
9763 if test "${enable_commondlg+set}" = set; then
9764   enableval="$enable_commondlg"
9765
9766                           if test "$enableval" = yes; then
9767                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9768                           else
9769                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9770                           fi
9771
9772 else
9773
9774                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9775                           if test "x$LINE" != x ; then
9776                             eval "DEFAULT_$LINE"
9777                           else
9778                             no_cache=1
9779                           fi
9780
9781                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9782
9783 fi;
9784
9785           eval "$ac_cv_use_commondlg"
9786           if test "$no_cache" != 1; then
9787             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9788           fi
9789
9790           if test "$wxUSE_COMMONDLGS" = yes; then
9791             echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6
9793           else
9794             echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9796           fi
9797
9798
9799           enablestring=
9800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9801 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9802           no_cache=0
9803           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9804 if test "${enable_choicedlg+set}" = set; then
9805   enableval="$enable_choicedlg"
9806
9807                           if test "$enableval" = yes; then
9808                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9809                           else
9810                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9811                           fi
9812
9813 else
9814
9815                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9816                           if test "x$LINE" != x ; then
9817                             eval "DEFAULT_$LINE"
9818                           else
9819                             no_cache=1
9820                           fi
9821
9822                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9823
9824 fi;
9825
9826           eval "$ac_cv_use_choicedlg"
9827           if test "$no_cache" != 1; then
9828             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9829           fi
9830
9831           if test "$wxUSE_CHOICEDLG" = yes; then
9832             echo "$as_me:$LINENO: result: yes" >&5
9833 echo "${ECHO_T}yes" >&6
9834           else
9835             echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9837           fi
9838
9839
9840           enablestring=
9841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9842 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9843           no_cache=0
9844           # Check whether --enable-coldlg or --disable-coldlg was given.
9845 if test "${enable_coldlg+set}" = set; then
9846   enableval="$enable_coldlg"
9847
9848                           if test "$enableval" = yes; then
9849                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9850                           else
9851                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9852                           fi
9853
9854 else
9855
9856                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9857                           if test "x$LINE" != x ; then
9858                             eval "DEFAULT_$LINE"
9859                           else
9860                             no_cache=1
9861                           fi
9862
9863                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9864
9865 fi;
9866
9867           eval "$ac_cv_use_coldlg"
9868           if test "$no_cache" != 1; then
9869             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9870           fi
9871
9872           if test "$wxUSE_COLOURDLG" = yes; then
9873             echo "$as_me:$LINENO: result: yes" >&5
9874 echo "${ECHO_T}yes" >&6
9875           else
9876             echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9878           fi
9879
9880
9881           enablestring=
9882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9883 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9884           no_cache=0
9885           # Check whether --enable-filedlg or --disable-filedlg was given.
9886 if test "${enable_filedlg+set}" = set; then
9887   enableval="$enable_filedlg"
9888
9889                           if test "$enableval" = yes; then
9890                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9891                           else
9892                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9893                           fi
9894
9895 else
9896
9897                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9898                           if test "x$LINE" != x ; then
9899                             eval "DEFAULT_$LINE"
9900                           else
9901                             no_cache=1
9902                           fi
9903
9904                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9905
9906 fi;
9907
9908           eval "$ac_cv_use_filedlg"
9909           if test "$no_cache" != 1; then
9910             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9911           fi
9912
9913           if test "$wxUSE_FILEDLG" = yes; then
9914             echo "$as_me:$LINENO: result: yes" >&5
9915 echo "${ECHO_T}yes" >&6
9916           else
9917             echo "$as_me:$LINENO: result: no" >&5
9918 echo "${ECHO_T}no" >&6
9919           fi
9920
9921
9922           enablestring=
9923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9924 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9925           no_cache=0
9926           # Check whether --enable-finddlg or --disable-finddlg was given.
9927 if test "${enable_finddlg+set}" = set; then
9928   enableval="$enable_finddlg"
9929
9930                           if test "$enableval" = yes; then
9931                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9932                           else
9933                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9934                           fi
9935
9936 else
9937
9938                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9939                           if test "x$LINE" != x ; then
9940                             eval "DEFAULT_$LINE"
9941                           else
9942                             no_cache=1
9943                           fi
9944
9945                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9946
9947 fi;
9948
9949           eval "$ac_cv_use_finddlg"
9950           if test "$no_cache" != 1; then
9951             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9952           fi
9953
9954           if test "$wxUSE_FINDREPLDLG" = yes; then
9955             echo "$as_me:$LINENO: result: yes" >&5
9956 echo "${ECHO_T}yes" >&6
9957           else
9958             echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6
9960           fi
9961
9962
9963           enablestring=
9964           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9965 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9966           no_cache=0
9967           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9968 if test "${enable_fontdlg+set}" = set; then
9969   enableval="$enable_fontdlg"
9970
9971                           if test "$enableval" = yes; then
9972                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9973                           else
9974                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9975                           fi
9976
9977 else
9978
9979                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9980                           if test "x$LINE" != x ; then
9981                             eval "DEFAULT_$LINE"
9982                           else
9983                             no_cache=1
9984                           fi
9985
9986                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9987
9988 fi;
9989
9990           eval "$ac_cv_use_fontdlg"
9991           if test "$no_cache" != 1; then
9992             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9993           fi
9994
9995           if test "$wxUSE_FONTDLG" = yes; then
9996             echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6
9998           else
9999             echo "$as_me:$LINENO: result: no" >&5
10000 echo "${ECHO_T}no" >&6
10001           fi
10002
10003
10004           enablestring=
10005           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10006 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10007           no_cache=0
10008           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10009 if test "${enable_dirdlg+set}" = set; then
10010   enableval="$enable_dirdlg"
10011
10012                           if test "$enableval" = yes; then
10013                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10014                           else
10015                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10016                           fi
10017
10018 else
10019
10020                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10021                           if test "x$LINE" != x ; then
10022                             eval "DEFAULT_$LINE"
10023                           else
10024                             no_cache=1
10025                           fi
10026
10027                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10028
10029 fi;
10030
10031           eval "$ac_cv_use_dirdlg"
10032           if test "$no_cache" != 1; then
10033             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10034           fi
10035
10036           if test "$wxUSE_DIRDLG" = yes; then
10037             echo "$as_me:$LINENO: result: yes" >&5
10038 echo "${ECHO_T}yes" >&6
10039           else
10040             echo "$as_me:$LINENO: result: no" >&5
10041 echo "${ECHO_T}no" >&6
10042           fi
10043
10044
10045           enablestring=
10046           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10047 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10048           no_cache=0
10049           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10050 if test "${enable_msgdlg+set}" = set; then
10051   enableval="$enable_msgdlg"
10052
10053                           if test "$enableval" = yes; then
10054                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10055                           else
10056                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10057                           fi
10058
10059 else
10060
10061                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10062                           if test "x$LINE" != x ; then
10063                             eval "DEFAULT_$LINE"
10064                           else
10065                             no_cache=1
10066                           fi
10067
10068                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10069
10070 fi;
10071
10072           eval "$ac_cv_use_msgdlg"
10073           if test "$no_cache" != 1; then
10074             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10075           fi
10076
10077           if test "$wxUSE_MSGDLG" = yes; then
10078             echo "$as_me:$LINENO: result: yes" >&5
10079 echo "${ECHO_T}yes" >&6
10080           else
10081             echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10083           fi
10084
10085
10086           enablestring=
10087           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10088 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10089           no_cache=0
10090           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10091 if test "${enable_numberdlg+set}" = set; then
10092   enableval="$enable_numberdlg"
10093
10094                           if test "$enableval" = yes; then
10095                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10096                           else
10097                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10098                           fi
10099
10100 else
10101
10102                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10103                           if test "x$LINE" != x ; then
10104                             eval "DEFAULT_$LINE"
10105                           else
10106                             no_cache=1
10107                           fi
10108
10109                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10110
10111 fi;
10112
10113           eval "$ac_cv_use_numberdlg"
10114           if test "$no_cache" != 1; then
10115             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10116           fi
10117
10118           if test "$wxUSE_NUMBERDLG" = yes; then
10119             echo "$as_me:$LINENO: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6
10121           else
10122             echo "$as_me:$LINENO: result: no" >&5
10123 echo "${ECHO_T}no" >&6
10124           fi
10125
10126
10127           enablestring=
10128           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10129 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10130           no_cache=0
10131           # Check whether --enable-splash or --disable-splash was given.
10132 if test "${enable_splash+set}" = set; then
10133   enableval="$enable_splash"
10134
10135                           if test "$enableval" = yes; then
10136                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10137                           else
10138                             ac_cv_use_splash='wxUSE_SPLASH=no'
10139                           fi
10140
10141 else
10142
10143                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10144                           if test "x$LINE" != x ; then
10145                             eval "DEFAULT_$LINE"
10146                           else
10147                             no_cache=1
10148                           fi
10149
10150                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10151
10152 fi;
10153
10154           eval "$ac_cv_use_splash"
10155           if test "$no_cache" != 1; then
10156             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10157           fi
10158
10159           if test "$wxUSE_SPLASH" = yes; then
10160             echo "$as_me:$LINENO: result: yes" >&5
10161 echo "${ECHO_T}yes" >&6
10162           else
10163             echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10165           fi
10166
10167
10168           enablestring=
10169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10170 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10171           no_cache=0
10172           # Check whether --enable-textdlg or --disable-textdlg was given.
10173 if test "${enable_textdlg+set}" = set; then
10174   enableval="$enable_textdlg"
10175
10176                           if test "$enableval" = yes; then
10177                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10178                           else
10179                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10180                           fi
10181
10182 else
10183
10184                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10185                           if test "x$LINE" != x ; then
10186                             eval "DEFAULT_$LINE"
10187                           else
10188                             no_cache=1
10189                           fi
10190
10191                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10192
10193 fi;
10194
10195           eval "$ac_cv_use_textdlg"
10196           if test "$no_cache" != 1; then
10197             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10198           fi
10199
10200           if test "$wxUSE_TEXTDLG" = yes; then
10201             echo "$as_me:$LINENO: result: yes" >&5
10202 echo "${ECHO_T}yes" >&6
10203           else
10204             echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206           fi
10207
10208
10209           enablestring=
10210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10211 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10212           no_cache=0
10213           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10214 if test "${enable_tipdlg+set}" = set; then
10215   enableval="$enable_tipdlg"
10216
10217                           if test "$enableval" = yes; then
10218                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10219                           else
10220                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10221                           fi
10222
10223 else
10224
10225                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10226                           if test "x$LINE" != x ; then
10227                             eval "DEFAULT_$LINE"
10228                           else
10229                             no_cache=1
10230                           fi
10231
10232                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10233
10234 fi;
10235
10236           eval "$ac_cv_use_tipdlg"
10237           if test "$no_cache" != 1; then
10238             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10239           fi
10240
10241           if test "$wxUSE_STARTUP_TIPS" = yes; then
10242             echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6
10244           else
10245             echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6
10247           fi
10248
10249
10250           enablestring=
10251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10252 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10253           no_cache=0
10254           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10255 if test "${enable_progressdlg+set}" = set; then
10256   enableval="$enable_progressdlg"
10257
10258                           if test "$enableval" = yes; then
10259                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10260                           else
10261                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10262                           fi
10263
10264 else
10265
10266                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10267                           if test "x$LINE" != x ; then
10268                             eval "DEFAULT_$LINE"
10269                           else
10270                             no_cache=1
10271                           fi
10272
10273                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10274
10275 fi;
10276
10277           eval "$ac_cv_use_progressdlg"
10278           if test "$no_cache" != 1; then
10279             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10280           fi
10281
10282           if test "$wxUSE_PROGRESSDLG" = yes; then
10283             echo "$as_me:$LINENO: result: yes" >&5
10284 echo "${ECHO_T}yes" >&6
10285           else
10286             echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6
10288           fi
10289
10290
10291           enablestring=
10292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10293 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10294           no_cache=0
10295           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10296 if test "${enable_wizarddlg+set}" = set; then
10297   enableval="$enable_wizarddlg"
10298
10299                           if test "$enableval" = yes; then
10300                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10301                           else
10302                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10303                           fi
10304
10305 else
10306
10307                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10308                           if test "x$LINE" != x ; then
10309                             eval "DEFAULT_$LINE"
10310                           else
10311                             no_cache=1
10312                           fi
10313
10314                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10315
10316 fi;
10317
10318           eval "$ac_cv_use_wizarddlg"
10319           if test "$no_cache" != 1; then
10320             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10321           fi
10322
10323           if test "$wxUSE_WIZARDDLG" = yes; then
10324             echo "$as_me:$LINENO: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10326           else
10327             echo "$as_me:$LINENO: result: no" >&5
10328 echo "${ECHO_T}no" >&6
10329           fi
10330
10331
10332
10333
10334           enablestring=
10335           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10336 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10337           no_cache=0
10338           # Check whether --enable-menus or --disable-menus was given.
10339 if test "${enable_menus+set}" = set; then
10340   enableval="$enable_menus"
10341
10342                           if test "$enableval" = yes; then
10343                             ac_cv_use_menus='wxUSE_MENUS=yes'
10344                           else
10345                             ac_cv_use_menus='wxUSE_MENUS=no'
10346                           fi
10347
10348 else
10349
10350                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10351                           if test "x$LINE" != x ; then
10352                             eval "DEFAULT_$LINE"
10353                           else
10354                             no_cache=1
10355                           fi
10356
10357                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10358
10359 fi;
10360
10361           eval "$ac_cv_use_menus"
10362           if test "$no_cache" != 1; then
10363             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10364           fi
10365
10366           if test "$wxUSE_MENUS" = yes; then
10367             echo "$as_me:$LINENO: result: yes" >&5
10368 echo "${ECHO_T}yes" >&6
10369           else
10370             echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6
10372           fi
10373
10374
10375           enablestring=
10376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10377 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10378           no_cache=0
10379           # Check whether --enable-miniframe or --disable-miniframe was given.
10380 if test "${enable_miniframe+set}" = set; then
10381   enableval="$enable_miniframe"
10382
10383                           if test "$enableval" = yes; then
10384                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10385                           else
10386                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10387                           fi
10388
10389 else
10390
10391                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10392                           if test "x$LINE" != x ; then
10393                             eval "DEFAULT_$LINE"
10394                           else
10395                             no_cache=1
10396                           fi
10397
10398                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10399
10400 fi;
10401
10402           eval "$ac_cv_use_miniframe"
10403           if test "$no_cache" != 1; then
10404             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10405           fi
10406
10407           if test "$wxUSE_MINIFRAME" = yes; then
10408             echo "$as_me:$LINENO: result: yes" >&5
10409 echo "${ECHO_T}yes" >&6
10410           else
10411             echo "$as_me:$LINENO: result: no" >&5
10412 echo "${ECHO_T}no" >&6
10413           fi
10414
10415
10416           enablestring=
10417           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10418 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10419           no_cache=0
10420           # Check whether --enable-tooltips or --disable-tooltips was given.
10421 if test "${enable_tooltips+set}" = set; then
10422   enableval="$enable_tooltips"
10423
10424                           if test "$enableval" = yes; then
10425                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10426                           else
10427                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10428                           fi
10429
10430 else
10431
10432                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10433                           if test "x$LINE" != x ; then
10434                             eval "DEFAULT_$LINE"
10435                           else
10436                             no_cache=1
10437                           fi
10438
10439                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10440
10441 fi;
10442
10443           eval "$ac_cv_use_tooltips"
10444           if test "$no_cache" != 1; then
10445             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10446           fi
10447
10448           if test "$wxUSE_TOOLTIPS" = yes; then
10449             echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6
10451           else
10452             echo "$as_me:$LINENO: result: no" >&5
10453 echo "${ECHO_T}no" >&6
10454           fi
10455
10456
10457           enablestring=
10458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10459 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10460           no_cache=0
10461           # Check whether --enable-splines or --disable-splines was given.
10462 if test "${enable_splines+set}" = set; then
10463   enableval="$enable_splines"
10464
10465                           if test "$enableval" = yes; then
10466                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10467                           else
10468                             ac_cv_use_splines='wxUSE_SPLINES=no'
10469                           fi
10470
10471 else
10472
10473                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10474                           if test "x$LINE" != x ; then
10475                             eval "DEFAULT_$LINE"
10476                           else
10477                             no_cache=1
10478                           fi
10479
10480                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10481
10482 fi;
10483
10484           eval "$ac_cv_use_splines"
10485           if test "$no_cache" != 1; then
10486             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10487           fi
10488
10489           if test "$wxUSE_SPLINES" = yes; then
10490             echo "$as_me:$LINENO: result: yes" >&5
10491 echo "${ECHO_T}yes" >&6
10492           else
10493             echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6
10495           fi
10496
10497
10498           enablestring=
10499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10500 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10501           no_cache=0
10502           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10503 if test "${enable_mousewheel+set}" = set; then
10504   enableval="$enable_mousewheel"
10505
10506                           if test "$enableval" = yes; then
10507                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10508                           else
10509                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10510                           fi
10511
10512 else
10513
10514                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10515                           if test "x$LINE" != x ; then
10516                             eval "DEFAULT_$LINE"
10517                           else
10518                             no_cache=1
10519                           fi
10520
10521                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10522
10523 fi;
10524
10525           eval "$ac_cv_use_mousewheel"
10526           if test "$no_cache" != 1; then
10527             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10528           fi
10529
10530           if test "$wxUSE_MOUSEWHEEL" = yes; then
10531             echo "$as_me:$LINENO: result: yes" >&5
10532 echo "${ECHO_T}yes" >&6
10533           else
10534             echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10536           fi
10537
10538
10539           enablestring=
10540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10541 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10542           no_cache=0
10543           # Check whether --enable-validators or --disable-validators was given.
10544 if test "${enable_validators+set}" = set; then
10545   enableval="$enable_validators"
10546
10547                           if test "$enableval" = yes; then
10548                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10549                           else
10550                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10551                           fi
10552
10553 else
10554
10555                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10556                           if test "x$LINE" != x ; then
10557                             eval "DEFAULT_$LINE"
10558                           else
10559                             no_cache=1
10560                           fi
10561
10562                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10563
10564 fi;
10565
10566           eval "$ac_cv_use_validators"
10567           if test "$no_cache" != 1; then
10568             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10569           fi
10570
10571           if test "$wxUSE_VALIDATORS" = yes; then
10572             echo "$as_me:$LINENO: result: yes" >&5
10573 echo "${ECHO_T}yes" >&6
10574           else
10575             echo "$as_me:$LINENO: result: no" >&5
10576 echo "${ECHO_T}no" >&6
10577           fi
10578
10579
10580           enablestring=
10581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10582 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10583           no_cache=0
10584           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10585 if test "${enable_busyinfo+set}" = set; then
10586   enableval="$enable_busyinfo"
10587
10588                           if test "$enableval" = yes; then
10589                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10590                           else
10591                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10592                           fi
10593
10594 else
10595
10596                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10597                           if test "x$LINE" != x ; then
10598                             eval "DEFAULT_$LINE"
10599                           else
10600                             no_cache=1
10601                           fi
10602
10603                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10604
10605 fi;
10606
10607           eval "$ac_cv_use_busyinfo"
10608           if test "$no_cache" != 1; then
10609             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10610           fi
10611
10612           if test "$wxUSE_BUSYINFO" = yes; then
10613             echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6
10615           else
10616             echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6
10618           fi
10619
10620
10621           enablestring=
10622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10623 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10624           no_cache=0
10625           # Check whether --enable-joystick or --disable-joystick was given.
10626 if test "${enable_joystick+set}" = set; then
10627   enableval="$enable_joystick"
10628
10629                           if test "$enableval" = yes; then
10630                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10631                           else
10632                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10633                           fi
10634
10635 else
10636
10637                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10638                           if test "x$LINE" != x ; then
10639                             eval "DEFAULT_$LINE"
10640                           else
10641                             no_cache=1
10642                           fi
10643
10644                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10645
10646 fi;
10647
10648           eval "$ac_cv_use_joystick"
10649           if test "$no_cache" != 1; then
10650             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10651           fi
10652
10653           if test "$wxUSE_JOYSTICK" = yes; then
10654             echo "$as_me:$LINENO: result: yes" >&5
10655 echo "${ECHO_T}yes" >&6
10656           else
10657             echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6
10659           fi
10660
10661
10662           enablestring=
10663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10664 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10665           no_cache=0
10666           # Check whether --enable-metafile or --disable-metafile was given.
10667 if test "${enable_metafile+set}" = set; then
10668   enableval="$enable_metafile"
10669
10670                           if test "$enableval" = yes; then
10671                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10672                           else
10673                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10674                           fi
10675
10676 else
10677
10678                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10679                           if test "x$LINE" != x ; then
10680                             eval "DEFAULT_$LINE"
10681                           else
10682                             no_cache=1
10683                           fi
10684
10685                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10686
10687 fi;
10688
10689           eval "$ac_cv_use_metafile"
10690           if test "$no_cache" != 1; then
10691             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10692           fi
10693
10694           if test "$wxUSE_METAFILE" = yes; then
10695             echo "$as_me:$LINENO: result: yes" >&5
10696 echo "${ECHO_T}yes" >&6
10697           else
10698             echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6
10700           fi
10701
10702
10703           enablestring=
10704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10705 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10706           no_cache=0
10707           # Check whether --enable-dragimage or --disable-dragimage was given.
10708 if test "${enable_dragimage+set}" = set; then
10709   enableval="$enable_dragimage"
10710
10711                           if test "$enableval" = yes; then
10712                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10713                           else
10714                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10715                           fi
10716
10717 else
10718
10719                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10720                           if test "x$LINE" != x ; then
10721                             eval "DEFAULT_$LINE"
10722                           else
10723                             no_cache=1
10724                           fi
10725
10726                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10727
10728 fi;
10729
10730           eval "$ac_cv_use_dragimage"
10731           if test "$no_cache" != 1; then
10732             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10733           fi
10734
10735           if test "$wxUSE_DRAGIMAGE" = yes; then
10736             echo "$as_me:$LINENO: result: yes" >&5
10737 echo "${ECHO_T}yes" >&6
10738           else
10739             echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10741           fi
10742
10743
10744           enablestring=
10745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10746 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10747           no_cache=0
10748           # Check whether --enable-accessibility or --disable-accessibility was given.
10749 if test "${enable_accessibility+set}" = set; then
10750   enableval="$enable_accessibility"
10751
10752                           if test "$enableval" = yes; then
10753                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10754                           else
10755                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10756                           fi
10757
10758 else
10759
10760                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10761                           if test "x$LINE" != x ; then
10762                             eval "DEFAULT_$LINE"
10763                           else
10764                             no_cache=1
10765                           fi
10766
10767                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10768
10769 fi;
10770
10771           eval "$ac_cv_use_accessibility"
10772           if test "$no_cache" != 1; then
10773             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10774           fi
10775
10776           if test "$wxUSE_ACCESSIBILITY" = yes; then
10777             echo "$as_me:$LINENO: result: yes" >&5
10778 echo "${ECHO_T}yes" >&6
10779           else
10780             echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10782           fi
10783
10784
10785 if test "$wxUSE_MSW" = "1"; then
10786
10787           enablestring=
10788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10789 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10790           no_cache=0
10791           # Check whether --enable-dccache or --disable-dccache was given.
10792 if test "${enable_dccache+set}" = set; then
10793   enableval="$enable_dccache"
10794
10795                           if test "$enableval" = yes; then
10796                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10797                           else
10798                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10799                           fi
10800
10801 else
10802
10803                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10804                           if test "x$LINE" != x ; then
10805                             eval "DEFAULT_$LINE"
10806                           else
10807                             no_cache=1
10808                           fi
10809
10810                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10811
10812 fi;
10813
10814           eval "$ac_cv_use_dccache"
10815           if test "$no_cache" != 1; then
10816             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10817           fi
10818
10819           if test "$wxUSE_DC_CACHEING" = yes; then
10820             echo "$as_me:$LINENO: result: yes" >&5
10821 echo "${ECHO_T}yes" >&6
10822           else
10823             echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6
10825           fi
10826
10827 fi
10828
10829
10830
10831           enablestring=
10832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10833 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10834           no_cache=0
10835           # Check whether --enable-palette or --disable-palette was given.
10836 if test "${enable_palette+set}" = set; then
10837   enableval="$enable_palette"
10838
10839                           if test "$enableval" = yes; then
10840                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10841                           else
10842                             ac_cv_use_palette='wxUSE_PALETTE=no'
10843                           fi
10844
10845 else
10846
10847                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10848                           if test "x$LINE" != x ; then
10849                             eval "DEFAULT_$LINE"
10850                           else
10851                             no_cache=1
10852                           fi
10853
10854                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10855
10856 fi;
10857
10858           eval "$ac_cv_use_palette"
10859           if test "$no_cache" != 1; then
10860             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10861           fi
10862
10863           if test "$wxUSE_PALETTE" = yes; then
10864             echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6
10866           else
10867             echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10869           fi
10870
10871
10872           enablestring=
10873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10874 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10875           no_cache=0
10876           # Check whether --enable-image or --disable-image was given.
10877 if test "${enable_image+set}" = set; then
10878   enableval="$enable_image"
10879
10880                           if test "$enableval" = yes; then
10881                             ac_cv_use_image='wxUSE_IMAGE=yes'
10882                           else
10883                             ac_cv_use_image='wxUSE_IMAGE=no'
10884                           fi
10885
10886 else
10887
10888                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10889                           if test "x$LINE" != x ; then
10890                             eval "DEFAULT_$LINE"
10891                           else
10892                             no_cache=1
10893                           fi
10894
10895                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10896
10897 fi;
10898
10899           eval "$ac_cv_use_image"
10900           if test "$no_cache" != 1; then
10901             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10902           fi
10903
10904           if test "$wxUSE_IMAGE" = yes; then
10905             echo "$as_me:$LINENO: result: yes" >&5
10906 echo "${ECHO_T}yes" >&6
10907           else
10908             echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6
10910           fi
10911
10912
10913           enablestring=
10914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10915 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10916           no_cache=0
10917           # Check whether --enable-gif or --disable-gif was given.
10918 if test "${enable_gif+set}" = set; then
10919   enableval="$enable_gif"
10920
10921                           if test "$enableval" = yes; then
10922                             ac_cv_use_gif='wxUSE_GIF=yes'
10923                           else
10924                             ac_cv_use_gif='wxUSE_GIF=no'
10925                           fi
10926
10927 else
10928
10929                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10930                           if test "x$LINE" != x ; then
10931                             eval "DEFAULT_$LINE"
10932                           else
10933                             no_cache=1
10934                           fi
10935
10936                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10937
10938 fi;
10939
10940           eval "$ac_cv_use_gif"
10941           if test "$no_cache" != 1; then
10942             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10943           fi
10944
10945           if test "$wxUSE_GIF" = yes; then
10946             echo "$as_me:$LINENO: result: yes" >&5
10947 echo "${ECHO_T}yes" >&6
10948           else
10949             echo "$as_me:$LINENO: result: no" >&5
10950 echo "${ECHO_T}no" >&6
10951           fi
10952
10953
10954           enablestring=
10955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10956 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10957           no_cache=0
10958           # Check whether --enable-pcx or --disable-pcx was given.
10959 if test "${enable_pcx+set}" = set; then
10960   enableval="$enable_pcx"
10961
10962                           if test "$enableval" = yes; then
10963                             ac_cv_use_pcx='wxUSE_PCX=yes'
10964                           else
10965                             ac_cv_use_pcx='wxUSE_PCX=no'
10966                           fi
10967
10968 else
10969
10970                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10971                           if test "x$LINE" != x ; then
10972                             eval "DEFAULT_$LINE"
10973                           else
10974                             no_cache=1
10975                           fi
10976
10977                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10978
10979 fi;
10980
10981           eval "$ac_cv_use_pcx"
10982           if test "$no_cache" != 1; then
10983             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10984           fi
10985
10986           if test "$wxUSE_PCX" = yes; then
10987             echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6
10989           else
10990             echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10992           fi
10993
10994
10995           enablestring=
10996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10998           no_cache=0
10999           # Check whether --enable-iff or --disable-iff was given.
11000 if test "${enable_iff+set}" = set; then
11001   enableval="$enable_iff"
11002
11003                           if test "$enableval" = yes; then
11004                             ac_cv_use_iff='wxUSE_IFF=yes'
11005                           else
11006                             ac_cv_use_iff='wxUSE_IFF=no'
11007                           fi
11008
11009 else
11010
11011                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11012                           if test "x$LINE" != x ; then
11013                             eval "DEFAULT_$LINE"
11014                           else
11015                             no_cache=1
11016                           fi
11017
11018                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11019
11020 fi;
11021
11022           eval "$ac_cv_use_iff"
11023           if test "$no_cache" != 1; then
11024             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11025           fi
11026
11027           if test "$wxUSE_IFF" = yes; then
11028             echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030           else
11031             echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033           fi
11034
11035
11036           enablestring=
11037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11038 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11039           no_cache=0
11040           # Check whether --enable-pnm or --disable-pnm was given.
11041 if test "${enable_pnm+set}" = set; then
11042   enableval="$enable_pnm"
11043
11044                           if test "$enableval" = yes; then
11045                             ac_cv_use_pnm='wxUSE_PNM=yes'
11046                           else
11047                             ac_cv_use_pnm='wxUSE_PNM=no'
11048                           fi
11049
11050 else
11051
11052                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11053                           if test "x$LINE" != x ; then
11054                             eval "DEFAULT_$LINE"
11055                           else
11056                             no_cache=1
11057                           fi
11058
11059                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11060
11061 fi;
11062
11063           eval "$ac_cv_use_pnm"
11064           if test "$no_cache" != 1; then
11065             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11066           fi
11067
11068           if test "$wxUSE_PNM" = yes; then
11069             echo "$as_me:$LINENO: result: yes" >&5
11070 echo "${ECHO_T}yes" >&6
11071           else
11072             echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074           fi
11075
11076
11077           enablestring=
11078           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11079 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11080           no_cache=0
11081           # Check whether --enable-xpm or --disable-xpm was given.
11082 if test "${enable_xpm+set}" = set; then
11083   enableval="$enable_xpm"
11084
11085                           if test "$enableval" = yes; then
11086                             ac_cv_use_xpm='wxUSE_XPM=yes'
11087                           else
11088                             ac_cv_use_xpm='wxUSE_XPM=no'
11089                           fi
11090
11091 else
11092
11093                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11094                           if test "x$LINE" != x ; then
11095                             eval "DEFAULT_$LINE"
11096                           else
11097                             no_cache=1
11098                           fi
11099
11100                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11101
11102 fi;
11103
11104           eval "$ac_cv_use_xpm"
11105           if test "$no_cache" != 1; then
11106             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11107           fi
11108
11109           if test "$wxUSE_XPM" = yes; then
11110             echo "$as_me:$LINENO: result: yes" >&5
11111 echo "${ECHO_T}yes" >&6
11112           else
11113             echo "$as_me:$LINENO: result: no" >&5
11114 echo "${ECHO_T}no" >&6
11115           fi
11116
11117
11118           enablestring=
11119           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11120 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11121           no_cache=0
11122           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11123 if test "${enable_ico_cur+set}" = set; then
11124   enableval="$enable_ico_cur"
11125
11126                           if test "$enableval" = yes; then
11127                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11128                           else
11129                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11130                           fi
11131
11132 else
11133
11134                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11135                           if test "x$LINE" != x ; then
11136                             eval "DEFAULT_$LINE"
11137                           else
11138                             no_cache=1
11139                           fi
11140
11141                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11142
11143 fi;
11144
11145           eval "$ac_cv_use_ico_cur"
11146           if test "$no_cache" != 1; then
11147             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11148           fi
11149
11150           if test "$wxUSE_ICO_CUR" = yes; then
11151             echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6
11153           else
11154             echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11156           fi
11157
11158
11159 fi
11160
11161
11162
11163 # Check whether --with-flavour or --without-flavour was given.
11164 if test "${with_flavour+set}" = set; then
11165   withval="$with_flavour"
11166   WX_FLAVOUR="$withval"
11167 fi;
11168
11169
11170
11171           enablestring=
11172           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11173 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11174           no_cache=0
11175           # Check whether --enable-official_build or --disable-official_build was given.
11176 if test "${enable_official_build+set}" = set; then
11177   enableval="$enable_official_build"
11178
11179                           if test "$enableval" = yes; then
11180                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11181                           else
11182                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11183                           fi
11184
11185 else
11186
11187                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11188                           if test "x$LINE" != x ; then
11189                             eval "DEFAULT_$LINE"
11190                           else
11191                             no_cache=1
11192                           fi
11193
11194                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11195
11196 fi;
11197
11198           eval "$ac_cv_use_official_build"
11199           if test "$no_cache" != 1; then
11200             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11201           fi
11202
11203           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11204             echo "$as_me:$LINENO: result: yes" >&5
11205 echo "${ECHO_T}yes" >&6
11206           else
11207             echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209           fi
11210
11211 # Check whether --enable-vendor or --disable-vendor was given.
11212 if test "${enable_vendor+set}" = set; then
11213   enableval="$enable_vendor"
11214   VENDOR="$enableval"
11215 fi;
11216 if test "x$VENDOR" = "x"; then
11217     VENDOR="custom"
11218 fi
11219
11220
11221
11222
11223           echo "saving argument cache $wx_arg_cache_file"
11224           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11225
11226
11227
11228 echo "$as_me:$LINENO: checking for toolkit" >&5
11229 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11230
11231 # In Wine, we need to default to MSW, not GTK or MOTIF
11232 if test "$wxUSE_WINE" = "yes"; then
11233     DEFAULT_DEFAULT_wxUSE_GTK=0
11234     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11235     DEFAULT_DEFAULT_wxUSE_MSW=1
11236     wxUSE_SHARED=no
11237 fi
11238
11239
11240 if test "$wxUSE_GUI" = "yes"; then
11241
11242     if test "$USE_BEOS" = 1; then
11243         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11244 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11245    { (exit 1); exit 1; }; }
11246     fi
11247
11248     if test "$TOOLKIT_GIVEN" = 1; then
11249             for toolkit in `echo $ALL_TOOLKITS`; do
11250         var=wxUSE_$toolkit
11251         eval "value=\$${var}"
11252         if test "x$value" = "xno"; then
11253           eval "$var=0"
11254         elif test "x$value" != "x"; then
11255           eval "$var=1"
11256         fi
11257
11258         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11259           eval "wx${toolkit}_VERSION=$value"
11260         fi
11261       done
11262     else
11263             for toolkit in `echo $ALL_TOOLKITS`; do
11264         if test "$has_toolkit_in_cache" != 1; then
11265           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11266         else
11267           var=DEFAULT_wxUSE_$toolkit
11268
11269           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11270           if test "x$version" != "x"; then
11271             eval "wx${toolkit}_VERSION=$version"
11272           fi
11273         fi
11274         eval "wxUSE_$toolkit=\$${var}"
11275       done
11276     fi
11277
11278             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11279                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11280                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11281
11282         case "${host}" in
11283       *-pc-os2_emx | *-pc-os2-emx )
11284         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11285     esac
11286
11287     case "$NUM_TOOLKITS" in
11288       1)
11289       ;;
11290       0)
11291         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11292 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11293    { (exit 1); exit 1; }; }
11294       ;;
11295       *)
11296         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11297 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11298    { (exit 1); exit 1; }; }
11299     esac
11300
11301     # to be removed when --disable-gtk2 isn't needed
11302     if test "x$wxUSE_GTK2" = "xyes"; then
11303         wxGTK_VERSION=2
11304     elif test "x$wxUSE_GTK2" = "xno"; then
11305         wxGTK_VERSION=1
11306     fi
11307
11308         for toolkit in `echo $ALL_TOOLKITS`; do
11309       var=wxUSE_$toolkit
11310       eval "value=\$${var}"
11311       if test "x$value" != x; then
11312         cache_var=CACHE_$toolkit
11313         eval "cache=\$${cache_var}"
11314         if test "$cache" = 1; then
11315           echo "$var=$value" >> ${wx_arg_cache_file}
11316           eval "version=\$wx${toolkit}_VERSION"
11317           if test "x$version" != "x"; then
11318             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11319           fi
11320         fi
11321         if test "$value" = 1; then
11322           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11323           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11324 echo "${ECHO_T}$toolkit_echo" >&6
11325         fi
11326       fi
11327     done
11328 else
11329     if test "x$host_alias" != "x"; then
11330         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11331 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11332     else
11333         echo "$as_me:$LINENO: result: base only" >&5
11334 echo "${ECHO_T}base only" >&6
11335     fi
11336 fi
11337
11338 wants_win32=0
11339 doesnt_want_win32=0
11340 case "${host}" in
11341   *-*-cygwin*)
11342       if test "$wxUSE_MSW" = 1 ; then
11343         wants_win32=1
11344         BAKEFILE_FORCE_PLATFORM=win32
11345       else
11346         doesnt_want_win32=1
11347       fi
11348   ;;
11349   *-*-mingw*)
11350       wants_win32=1
11351   ;;
11352 esac
11353
11354 if test "$wxUSE_WINE" = "yes"; then
11355     wants_win32=1
11356         CC=winegcc
11357     CXX=wineg++
11358     LDFLAGS_GUI="-mwindows"
11359 fi
11360
11361 if test "$wants_win32" = 1 ; then
11362     USE_UNIX=0
11363     USE_WIN32=1
11364     cat >>confdefs.h <<\_ACEOF
11365 #define __WIN32__ 1
11366 _ACEOF
11367
11368     cat >>confdefs.h <<\_ACEOF
11369 #define __WIN95__ 1
11370 _ACEOF
11371
11372     cat >>confdefs.h <<\_ACEOF
11373 #define __WINDOWS__ 1
11374 _ACEOF
11375
11376     cat >>confdefs.h <<\_ACEOF
11377 #define __GNUWIN32__ 1
11378 _ACEOF
11379
11380     cat >>confdefs.h <<\_ACEOF
11381 #define STRICT 1
11382 _ACEOF
11383
11384     cat >>confdefs.h <<\_ACEOF
11385 #define WINVER 0x0400
11386 _ACEOF
11387
11388 fi
11389 if test "$doesnt_want_win32" = 1 ; then
11390     USE_UNIX=1
11391     USE_WIN32=0
11392 fi
11393
11394 if test "$USE_UNIX" = 1 ; then
11395     wxUSE_UNIX=yes
11396     cat >>confdefs.h <<\_ACEOF
11397 #define __UNIX__ 1
11398 _ACEOF
11399
11400 fi
11401
11402
11403 cat >confcache <<\_ACEOF
11404 # This file is a shell script that caches the results of configure
11405 # tests run on this system so they can be shared between configure
11406 # scripts and configure runs, see configure's option --config-cache.
11407 # It is not useful on other systems.  If it contains results you don't
11408 # want to keep, you may remove or edit it.
11409 #
11410 # config.status only pays attention to the cache file if you give it
11411 # the --recheck option to rerun configure.
11412 #
11413 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11414 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11415 # following values.
11416
11417 _ACEOF
11418
11419 # The following way of writing the cache mishandles newlines in values,
11420 # but we know of no workaround that is simple, portable, and efficient.
11421 # So, don't put newlines in cache variables' values.
11422 # Ultrix sh set writes to stderr and can't be redirected directly,
11423 # and sets the high bit in the cache file unless we assign to the vars.
11424 {
11425   (set) 2>&1 |
11426     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11427     *ac_space=\ *)
11428       # `set' does not quote correctly, so add quotes (double-quote
11429       # substitution turns \\\\ into \\, and sed turns \\ into \).
11430       sed -n \
11431         "s/'/'\\\\''/g;
11432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11433       ;;
11434     *)
11435       # `set' quotes correctly as required by POSIX, so do not add quotes.
11436       sed -n \
11437         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11438       ;;
11439     esac;
11440 } |
11441   sed '
11442      t clear
11443      : clear
11444      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11445      t end
11446      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11447      : end' >>confcache
11448 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11449   if test -w $cache_file; then
11450     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11451     cat confcache >$cache_file
11452   else
11453     echo "not updating unwritable cache $cache_file"
11454   fi
11455 fi
11456 rm -f confcache
11457
11458 CFLAGS=${CFLAGS:=}
11459
11460
11461
11462     ac_ext=c
11463 ac_cpp='$CPP $CPPFLAGS'
11464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467 if test -n "$ac_tool_prefix"; then
11468   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11470 echo "$as_me:$LINENO: checking for $ac_word" >&5
11471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11472 if test "${ac_cv_prog_CC+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   if test -n "$CC"; then
11476   ac_cv_prog_CC="$CC" # Let the user override the test.
11477 else
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483   for ac_exec_ext in '' $ac_executable_extensions; do
11484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487     break 2
11488   fi
11489 done
11490 done
11491
11492 fi
11493 fi
11494 CC=$ac_cv_prog_CC
11495 if test -n "$CC"; then
11496   echo "$as_me:$LINENO: result: $CC" >&5
11497 echo "${ECHO_T}$CC" >&6
11498 else
11499   echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11501 fi
11502
11503 fi
11504 if test -z "$ac_cv_prog_CC"; then
11505   ac_ct_CC=$CC
11506   # Extract the first word of "gcc", so it can be a program name with args.
11507 set dummy gcc; ac_word=$2
11508 echo "$as_me:$LINENO: checking for $ac_word" >&5
11509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   if test -n "$ac_ct_CC"; then
11514   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11518 do
11519   IFS=$as_save_IFS
11520   test -z "$as_dir" && as_dir=.
11521   for ac_exec_ext in '' $ac_executable_extensions; do
11522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523     ac_cv_prog_ac_ct_CC="gcc"
11524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525     break 2
11526   fi
11527 done
11528 done
11529
11530 fi
11531 fi
11532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11533 if test -n "$ac_ct_CC"; then
11534   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11535 echo "${ECHO_T}$ac_ct_CC" >&6
11536 else
11537   echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6
11539 fi
11540
11541   CC=$ac_ct_CC
11542 else
11543   CC="$ac_cv_prog_CC"
11544 fi
11545
11546 if test -z "$CC"; then
11547   if test -n "$ac_tool_prefix"; then
11548   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11549 set dummy ${ac_tool_prefix}cc; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_prog_CC+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   if test -n "$CC"; then
11556   ac_cv_prog_CC="$CC" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563   for ac_exec_ext in '' $ac_executable_extensions; do
11564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565     ac_cv_prog_CC="${ac_tool_prefix}cc"
11566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570 done
11571
11572 fi
11573 fi
11574 CC=$ac_cv_prog_CC
11575 if test -n "$CC"; then
11576   echo "$as_me:$LINENO: result: $CC" >&5
11577 echo "${ECHO_T}$CC" >&6
11578 else
11579   echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6
11581 fi
11582
11583 fi
11584 if test -z "$ac_cv_prog_CC"; then
11585   ac_ct_CC=$CC
11586   # Extract the first word of "cc", so it can be a program name with args.
11587 set dummy cc; ac_word=$2
11588 echo "$as_me:$LINENO: checking for $ac_word" >&5
11589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   if test -n "$ac_ct_CC"; then
11594   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601   for ac_exec_ext in '' $ac_executable_extensions; do
11602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603     ac_cv_prog_ac_ct_CC="cc"
11604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608 done
11609
11610 fi
11611 fi
11612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11613 if test -n "$ac_ct_CC"; then
11614   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11615 echo "${ECHO_T}$ac_ct_CC" >&6
11616 else
11617   echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6
11619 fi
11620
11621   CC=$ac_ct_CC
11622 else
11623   CC="$ac_cv_prog_CC"
11624 fi
11625
11626 fi
11627 if test -z "$CC"; then
11628   # Extract the first word of "cc", so it can be a program name with args.
11629 set dummy cc; ac_word=$2
11630 echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11632 if test "${ac_cv_prog_CC+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   if test -n "$CC"; then
11636   ac_cv_prog_CC="$CC" # Let the user override the test.
11637 else
11638   ac_prog_rejected=no
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642   IFS=$as_save_IFS
11643   test -z "$as_dir" && as_dir=.
11644   for ac_exec_ext in '' $ac_executable_extensions; do
11645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11647        ac_prog_rejected=yes
11648        continue
11649      fi
11650     ac_cv_prog_CC="cc"
11651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652     break 2
11653   fi
11654 done
11655 done
11656
11657 if test $ac_prog_rejected = yes; then
11658   # We found a bogon in the path, so make sure we never use it.
11659   set dummy $ac_cv_prog_CC
11660   shift
11661   if test $# != 0; then
11662     # We chose a different compiler from the bogus one.
11663     # However, it has the same basename, so the bogon will be chosen
11664     # first if we set CC to just the basename; use the full file name.
11665     shift
11666     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11667   fi
11668 fi
11669 fi
11670 fi
11671 CC=$ac_cv_prog_CC
11672 if test -n "$CC"; then
11673   echo "$as_me:$LINENO: result: $CC" >&5
11674 echo "${ECHO_T}$CC" >&6
11675 else
11676   echo "$as_me:$LINENO: result: no" >&5
11677 echo "${ECHO_T}no" >&6
11678 fi
11679
11680 fi
11681 if test -z "$CC"; then
11682   if test -n "$ac_tool_prefix"; then
11683   for ac_prog in cl
11684   do
11685     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11687 echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11689 if test "${ac_cv_prog_CC+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   if test -n "$CC"; then
11693   ac_cv_prog_CC="$CC" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11697 do
11698   IFS=$as_save_IFS
11699   test -z "$as_dir" && as_dir=.
11700   for ac_exec_ext in '' $ac_executable_extensions; do
11701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704     break 2
11705   fi
11706 done
11707 done
11708
11709 fi
11710 fi
11711 CC=$ac_cv_prog_CC
11712 if test -n "$CC"; then
11713   echo "$as_me:$LINENO: result: $CC" >&5
11714 echo "${ECHO_T}$CC" >&6
11715 else
11716   echo "$as_me:$LINENO: result: no" >&5
11717 echo "${ECHO_T}no" >&6
11718 fi
11719
11720     test -n "$CC" && break
11721   done
11722 fi
11723 if test -z "$CC"; then
11724   ac_ct_CC=$CC
11725   for ac_prog in cl
11726 do
11727   # Extract the first word of "$ac_prog", so it can be a program name with args.
11728 set dummy $ac_prog; ac_word=$2
11729 echo "$as_me:$LINENO: checking for $ac_word" >&5
11730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   if test -n "$ac_ct_CC"; then
11735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11736 else
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11739 do
11740   IFS=$as_save_IFS
11741   test -z "$as_dir" && as_dir=.
11742   for ac_exec_ext in '' $ac_executable_extensions; do
11743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744     ac_cv_prog_ac_ct_CC="$ac_prog"
11745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11746     break 2
11747   fi
11748 done
11749 done
11750
11751 fi
11752 fi
11753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11754 if test -n "$ac_ct_CC"; then
11755   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11756 echo "${ECHO_T}$ac_ct_CC" >&6
11757 else
11758   echo "$as_me:$LINENO: result: no" >&5
11759 echo "${ECHO_T}no" >&6
11760 fi
11761
11762   test -n "$ac_ct_CC" && break
11763 done
11764
11765   CC=$ac_ct_CC
11766 fi
11767
11768 fi
11769
11770
11771 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11772 See \`config.log' for more details." >&5
11773 echo "$as_me: error: no acceptable C compiler found in \$PATH
11774 See \`config.log' for more details." >&2;}
11775    { (exit 1); exit 1; }; }
11776
11777 # Provide some information about the compiler.
11778 echo "$as_me:$LINENO:" \
11779      "checking for C compiler version" >&5
11780 ac_compiler=`set X $ac_compile; echo $2`
11781 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11782   (eval $ac_compiler --version </dev/null >&5) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }
11786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11787   (eval $ac_compiler -v </dev/null >&5) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }
11791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11792   (eval $ac_compiler -V </dev/null >&5) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }
11796
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803
11804 int
11805 main ()
11806 {
11807
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 ac_clean_files_save=$ac_clean_files
11813 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11814 # Try to create an executable without -o first, disregard a.out.
11815 # It will help us diagnose broken compilers, and finding out an intuition
11816 # of exeext.
11817 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11818 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11819 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11820 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11821   (eval $ac_link_default) 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; then
11825   # Find the output, starting from the most likely.  This scheme is
11826 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11827 # resort.
11828
11829 # Be careful to initialize this variable, since it used to be cached.
11830 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11831 ac_cv_exeext=
11832 # b.out is created by i960 compilers.
11833 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11834 do
11835   test -f "$ac_file" || continue
11836   case $ac_file in
11837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11838         ;;
11839     conftest.$ac_ext )
11840         # This is the source file.
11841         ;;
11842     [ab].out )
11843         # We found the default executable, but exeext='' is most
11844         # certainly right.
11845         break;;
11846     *.* )
11847         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11848         # FIXME: I believe we export ac_cv_exeext for Libtool,
11849         # but it would be cool to find out if it's true.  Does anybody
11850         # maintain Libtool? --akim.
11851         export ac_cv_exeext
11852         break;;
11853     * )
11854         break;;
11855   esac
11856 done
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11862 See \`config.log' for more details." >&5
11863 echo "$as_me: error: C compiler cannot create executables
11864 See \`config.log' for more details." >&2;}
11865    { (exit 77); exit 77; }; }
11866 fi
11867
11868 ac_exeext=$ac_cv_exeext
11869 echo "$as_me:$LINENO: result: $ac_file" >&5
11870 echo "${ECHO_T}$ac_file" >&6
11871
11872 # Check the compiler produces executables we can run.  If not, either
11873 # the compiler is broken, or we cross compile.
11874 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11877 # If not cross compiling, check that we can run a simple program.
11878 if test "$cross_compiling" != yes; then
11879   if { ac_try='./$ac_file'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885     cross_compiling=no
11886   else
11887     if test "$cross_compiling" = maybe; then
11888         cross_compiling=yes
11889     else
11890         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11891 If you meant to cross compile, use \`--host'.
11892 See \`config.log' for more details." >&5
11893 echo "$as_me: error: cannot run C compiled programs.
11894 If you meant to cross compile, use \`--host'.
11895 See \`config.log' for more details." >&2;}
11896    { (exit 1); exit 1; }; }
11897     fi
11898   fi
11899 fi
11900 echo "$as_me:$LINENO: result: yes" >&5
11901 echo "${ECHO_T}yes" >&6
11902
11903 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11904 ac_clean_files=$ac_clean_files_save
11905 # Check the compiler produces executables we can run.  If not, either
11906 # the compiler is broken, or we cross compile.
11907 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11909 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11910 echo "${ECHO_T}$cross_compiling" >&6
11911
11912 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11913 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11915   (eval $ac_link) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; then
11919   # If both `conftest.exe' and `conftest' are `present' (well, observable)
11920 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11921 # work properly (i.e., refer to `conftest.exe'), while it won't with
11922 # `rm'.
11923 for ac_file in conftest.exe conftest conftest.*; do
11924   test -f "$ac_file" || continue
11925   case $ac_file in
11926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11927     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11928           export ac_cv_exeext
11929           break;;
11930     * ) break;;
11931   esac
11932 done
11933 else
11934   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11935 See \`config.log' for more details." >&5
11936 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11937 See \`config.log' for more details." >&2;}
11938    { (exit 1); exit 1; }; }
11939 fi
11940
11941 rm -f conftest$ac_cv_exeext
11942 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11943 echo "${ECHO_T}$ac_cv_exeext" >&6
11944
11945 rm -f conftest.$ac_ext
11946 EXEEXT=$ac_cv_exeext
11947 ac_exeext=$EXEEXT
11948 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11949 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11950 if test "${ac_cv_objext+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959
11960 int
11961 main ()
11962 {
11963
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.o conftest.obj
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970   (eval $ac_compile) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; then
11974   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11975   case $ac_file in
11976     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11977     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11978        break;;
11979   esac
11980 done
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11986 See \`config.log' for more details." >&5
11987 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11988 See \`config.log' for more details." >&2;}
11989    { (exit 1); exit 1; }; }
11990 fi
11991
11992 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11995 echo "${ECHO_T}$ac_cv_objext" >&6
11996 OBJEXT=$ac_cv_objext
11997 ac_objext=$OBJEXT
11998 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11999 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12000 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009
12010 int
12011 main ()
12012 {
12013 #ifndef __GNUC__
12014        choke me
12015 #endif
12016
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023   (eval $ac_compile) 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest.$ac_objext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   ac_compiler_gnu=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_compiler_gnu=no
12048 fi
12049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12051
12052 fi
12053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12055 GCC=`test $ac_compiler_gnu = yes && echo yes`
12056 ac_test_CFLAGS=${CFLAGS+set}
12057 ac_save_CFLAGS=$CFLAGS
12058 CFLAGS="-g"
12059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12061 if test "${ac_cv_prog_cc_g+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070
12071 int
12072 main ()
12073 {
12074
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12081   (eval $ac_compile) 2>conftest.er1
12082   ac_status=$?
12083   grep -v '^ *+' conftest.er1 >conftest.err
12084   rm -f conftest.er1
12085   cat conftest.err >&5
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; } &&
12094          { ac_try='test -s conftest.$ac_objext'
12095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096   (eval $ac_try) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   ac_cv_prog_cc_g=yes
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_cv_prog_cc_g=no
12106 fi
12107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12108 fi
12109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12110 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12111 if test "$ac_test_CFLAGS" = set; then
12112   CFLAGS=$ac_save_CFLAGS
12113 elif test $ac_cv_prog_cc_g = yes; then
12114   if test "$GCC" = yes; then
12115     CFLAGS="-g -O2"
12116   else
12117     CFLAGS="-g"
12118   fi
12119 else
12120   if test "$GCC" = yes; then
12121     CFLAGS="-O2"
12122   else
12123     CFLAGS=
12124   fi
12125 fi
12126 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12127 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131   ac_cv_prog_cc_stdc=no
12132 ac_save_CC=$CC
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139 #include <stdarg.h>
12140 #include <stdio.h>
12141 #include <sys/types.h>
12142 #include <sys/stat.h>
12143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12144 struct buf { int x; };
12145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12146 static char *e (p, i)
12147      char **p;
12148      int i;
12149 {
12150   return p[i];
12151 }
12152 static char *f (char * (*g) (char **, int), char **p, ...)
12153 {
12154   char *s;
12155   va_list v;
12156   va_start (v,p);
12157   s = g (p, va_arg (v,int));
12158   va_end (v);
12159   return s;
12160 }
12161
12162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12163    function prototypes and stuff, but not '\xHH' hex character constants.
12164    These don't provoke an error unfortunately, instead are silently treated
12165    as 'x'.  The following induces an error, until -std1 is added to get
12166    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12167    array size at least.  It's necessary to write '\x00'==0 to get something
12168    that's true only with -std1.  */
12169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12170
12171 int test (int i, double x);
12172 struct s1 {int (*f) (int a);};
12173 struct s2 {int (*f) (double a);};
12174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12175 int argc;
12176 char **argv;
12177 int
12178 main ()
12179 {
12180 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 # Don't try gcc -ansi; that turns off useful extensions and
12186 # breaks some systems' header files.
12187 # AIX                   -qlanglvl=ansi
12188 # Ultrix and OSF/1      -std1
12189 # HP-UX 10.20 and later -Ae
12190 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12191 # SVR4                  -Xc -D__EXTENSIONS__
12192 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12193 do
12194   CC="$ac_save_CC $ac_arg"
12195   rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197   (eval $ac_compile) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; } &&
12210          { ac_try='test -s conftest.$ac_objext'
12211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212   (eval $ac_try) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; }; then
12216   ac_cv_prog_cc_stdc=$ac_arg
12217 break
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 fi
12223 rm -f conftest.err conftest.$ac_objext
12224 done
12225 rm -f conftest.$ac_ext conftest.$ac_objext
12226 CC=$ac_save_CC
12227
12228 fi
12229
12230 case "x$ac_cv_prog_cc_stdc" in
12231   x|xno)
12232     echo "$as_me:$LINENO: result: none needed" >&5
12233 echo "${ECHO_T}none needed" >&6 ;;
12234   *)
12235     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12236 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12237     CC="$CC $ac_cv_prog_cc_stdc" ;;
12238 esac
12239
12240 # Some people use a C++ compiler to compile C.  Since we use `exit',
12241 # in C++ we need to declare it.  In case someone uses the same compiler
12242 # for both compiling C and C++ we need to have the C++ compiler decide
12243 # the declaration of exit, since it's the most demanding environment.
12244 cat >conftest.$ac_ext <<_ACEOF
12245 #ifndef __cplusplus
12246   choke me
12247 #endif
12248 _ACEOF
12249 rm -f conftest.$ac_objext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12251   (eval $ac_compile) 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; } &&
12264          { ac_try='test -s conftest.$ac_objext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   for ac_declaration in \
12271    '' \
12272    'extern "C" void std::exit (int) throw (); using std::exit;' \
12273    'extern "C" void std::exit (int); using std::exit;' \
12274    'extern "C" void exit (int) throw ();' \
12275    'extern "C" void exit (int);' \
12276    'void exit (int);'
12277 do
12278   cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 $ac_declaration
12285 #include <stdlib.h>
12286 int
12287 main ()
12288 {
12289 exit (42);
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296   (eval $ac_compile) 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305   (eval $ac_try) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; } &&
12309          { ac_try='test -s conftest.$ac_objext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   :
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 continue
12321 fi
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323   cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329 $ac_declaration
12330 int
12331 main ()
12332 {
12333 exit (42);
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340   (eval $ac_compile) 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349   (eval $ac_try) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; } &&
12353          { ac_try='test -s conftest.$ac_objext'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; }; then
12359   break
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 fi
12365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12366 done
12367 rm -f conftest*
12368 if test -n "$ac_declaration"; then
12369   echo '#ifdef __cplusplus' >>confdefs.h
12370   echo $ac_declaration      >>confdefs.h
12371   echo '#endif'             >>confdefs.h
12372 fi
12373
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 fi
12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380 ac_ext=c
12381 ac_cpp='$CPP $CPPFLAGS'
12382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385
12386
12387
12388     ac_ext=c
12389 ac_cpp='$CPP $CPPFLAGS'
12390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393
12394     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12395 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12396 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 int
12407 main ()
12408 {
12409
12410              #ifndef __INTEL_COMPILER
12411                 choke me
12412              #endif
12413
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420   (eval $ac_compile) 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; } &&
12433          { ac_try='test -s conftest.$ac_objext'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 bakefile_cv_c_compiler___INTEL_COMPILER=no
12445
12446 fi
12447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448
12449
12450 fi
12451 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12452 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12453     ac_ext=c
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458
12459     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12460         :; INTELCC=yes
12461     else
12462         :;
12463     fi
12464
12465
12466         if test "x$GCC" != "xyes"; then
12467         if test "xCC" = "xC"; then
12468             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12469 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12470 if test "${bakefile_cv_c_exto+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h.  */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h.  */
12479
12480 int
12481 main ()
12482 {
12483
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest.$ac_ext.o
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490   (eval $ac_compile) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; then
12494   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12495     case $ac_file in
12496         conftest.$ac_ext.o)
12497             bakefile_cv_c_exto="-ext o"
12498             ;;
12499         *)
12500             ;;
12501     esac
12502 done
12503 else
12504   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12505 See \`config.log' for more details." >&5
12506 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12507 See \`config.log' for more details." >&2;}
12508    { (exit 1); exit 1; }; }
12509
12510 fi
12511
12512 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12513
12514 fi
12515 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12516 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12517 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12518     if test "c" = "c"; then
12519         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12520     fi
12521     if test "c" = "cxx"; then
12522         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12523     fi
12524 fi
12525
12526             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12527                 unset ac_cv_prog_cc_g
12528                 ac_test_CFLAGS=${CFLAGS+set}
12529 ac_save_CFLAGS=$CFLAGS
12530 CFLAGS="-g"
12531 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12532 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12533 if test "${ac_cv_prog_cc_g+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542
12543 int
12544 main ()
12545 {
12546
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562   (eval $ac_try) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; } &&
12566          { ac_try='test -s conftest.$ac_objext'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; }; then
12572   ac_cv_prog_cc_g=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 ac_cv_prog_cc_g=no
12578 fi
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 fi
12581 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12582 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12583 if test "$ac_test_CFLAGS" = set; then
12584   CFLAGS=$ac_save_CFLAGS
12585 elif test $ac_cv_prog_cc_g = yes; then
12586   if test "$GCC" = yes; then
12587     CFLAGS="-g -O2"
12588   else
12589     CFLAGS="-g"
12590   fi
12591 else
12592   if test "$GCC" = yes; then
12593     CFLAGS="-O2"
12594   else
12595     CFLAGS=
12596   fi
12597 fi
12598             fi
12599         fi
12600
12601                         case `uname -s` in
12602             AIX*)
12603                 ac_ext=c
12604 ac_cpp='$CPP $CPPFLAGS'
12605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608
12609 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12610 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12611 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620
12621 int
12622 main ()
12623 {
12624 #ifndef __xlC__
12625        choke me
12626 #endif
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634   (eval $ac_compile) 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; } &&
12647          { ac_try='test -s conftest.$ac_objext'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   bakefile_compiler_xlc=yes
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 bakefile_compiler_xlc=no
12659 fi
12660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12662
12663 fi
12664 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12665 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12666
12667 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674
12675                 ;;
12676
12677             Darwin)
12678                 ac_ext=c
12679 ac_cpp='$CPP $CPPFLAGS'
12680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683
12684 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12685 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12686 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695
12696 int
12697 main ()
12698 {
12699 #ifndef __MWERKS__
12700        choke me
12701 #endif
12702
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718   (eval $ac_try) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; } &&
12722          { ac_try='test -s conftest.$ac_objext'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728   bakefile_compiler_mwerks=yes
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 bakefile_compiler_mwerks=no
12734 fi
12735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12737
12738 fi
12739 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12740 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12741
12742 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12743 ac_ext=c
12744 ac_cpp='$CPP $CPPFLAGS'
12745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748
12749
12750                 ac_ext=c
12751 ac_cpp='$CPP $CPPFLAGS'
12752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12755
12756 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12757 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12758 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767
12768 int
12769 main ()
12770 {
12771 #ifndef __xlC__
12772        choke me
12773 #endif
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781   (eval $ac_compile) 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; } &&
12794          { ac_try='test -s conftest.$ac_objext'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   bakefile_compiler_xlc=yes
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 bakefile_compiler_xlc=no
12806 fi
12807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12808     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12809
12810 fi
12811 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12812 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12813
12814 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12815 ac_ext=c
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820
12821
12822                 ;;
12823
12824             IRIX*)
12825
12826
12827     ac_ext=c
12828 ac_cpp='$CPP $CPPFLAGS'
12829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12832
12833     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12834 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12835 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 int
12846 main ()
12847 {
12848
12849              #ifndef _SGI_COMPILER_VERSION
12850                 choke me
12851              #endif
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859   (eval $ac_compile) 2>conftest.er1
12860   ac_status=$?
12861   grep -v '^ *+' conftest.er1 >conftest.err
12862   rm -f conftest.er1
12863   cat conftest.err >&5
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } &&
12866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; } &&
12872          { ac_try='test -s conftest.$ac_objext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12884
12885 fi
12886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887
12888
12889 fi
12890 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12891 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12892     ac_ext=c
12893 ac_cpp='$CPP $CPPFLAGS'
12894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12897
12898     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12899         :; SGICC=yes
12900     else
12901         :;
12902     fi
12903
12904
12905                 ;;
12906
12907             HP-UX*)
12908
12909
12910     ac_ext=c
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12917 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12918 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927
12928 int
12929 main ()
12930 {
12931
12932              #ifndef __HP_cc
12933                 choke me
12934              #endif
12935
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942   (eval $ac_compile) 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } &&
12949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951   (eval $ac_try) 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; } &&
12955          { ac_try='test -s conftest.$ac_objext'
12956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957   (eval $ac_try) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; }; then
12961   bakefile_cv_c_compiler___HP_cc=yes
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 bakefile_cv_c_compiler___HP_cc=no
12967
12968 fi
12969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970
12971
12972 fi
12973 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12974 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
12975     ac_ext=c
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980
12981     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12982         :; HPCC=yes
12983     else
12984         :;
12985     fi
12986
12987
12988                 ;;
12989
12990             OSF1)
12991
12992
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     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13000 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13001 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13002   echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004   cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h.  */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h.  */
13010
13011 int
13012 main ()
13013 {
13014
13015              #ifndef __DECC
13016                 choke me
13017              #endif
13018
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 rm -f conftest.$ac_objext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13025   (eval $ac_compile) 2>conftest.er1
13026   ac_status=$?
13027   grep -v '^ *+' conftest.er1 >conftest.err
13028   rm -f conftest.er1
13029   cat conftest.err >&5
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } &&
13032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034   (eval $ac_try) 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; } &&
13038          { ac_try='test -s conftest.$ac_objext'
13039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040   (eval $ac_try) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; }; then
13044   bakefile_cv_c_compiler___DECC=yes
13045 else
13046   echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 bakefile_cv_c_compiler___DECC=no
13050
13051 fi
13052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13053
13054
13055 fi
13056 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13057 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13058     ac_ext=c
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13065         :; COMPAQCC=yes
13066     else
13067         :;
13068     fi
13069
13070
13071                 ;;
13072
13073             SunOS)
13074
13075
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     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13083 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13084 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093
13094 int
13095 main ()
13096 {
13097
13098              #ifndef __SUNPRO_C
13099                 choke me
13100              #endif
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117   (eval $ac_try) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; } &&
13121          { ac_try='test -s conftest.$ac_objext'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; }; then
13127   bakefile_cv_c_compiler___SUNPRO_C=yes
13128 else
13129   echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132 bakefile_cv_c_compiler___SUNPRO_C=no
13133
13134 fi
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136
13137
13138 fi
13139 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13140 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13141     ac_ext=c
13142 ac_cpp='$CPP $CPPFLAGS'
13143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13146
13147     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13148         :; SUNCC=yes
13149     else
13150         :;
13151     fi
13152
13153
13154                 ;;
13155         esac
13156     fi
13157
13158
13159
13160 ac_ext=c
13161 ac_cpp='$CPP $CPPFLAGS'
13162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13166 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13167 # On Suns, sometimes $CPP names a directory.
13168 if test -n "$CPP" && test -d "$CPP"; then
13169   CPP=
13170 fi
13171 if test -z "$CPP"; then
13172   if test "${ac_cv_prog_CPP+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175       # Double quotes because CPP needs to be expanded
13176     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13177     do
13178       ac_preproc_ok=false
13179 for ac_c_preproc_warn_flag in '' yes
13180 do
13181   # Use a header file that comes with gcc, so configuring glibc
13182   # with a fresh cross-compiler works.
13183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13184   # <limits.h> exists even on freestanding compilers.
13185   # On the NeXT, cc -E runs the code through the compiler's parser,
13186   # not just through cpp. "Syntax error" is here to catch this case.
13187   cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 #ifdef __STDC__
13194 # include <limits.h>
13195 #else
13196 # include <assert.h>
13197 #endif
13198                      Syntax error
13199 _ACEOF
13200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13202   ac_status=$?
13203   grep -v '^ *+' conftest.er1 >conftest.err
13204   rm -f conftest.er1
13205   cat conftest.err >&5
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } >/dev/null; then
13208   if test -s conftest.err; then
13209     ac_cpp_err=$ac_c_preproc_warn_flag
13210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13211   else
13212     ac_cpp_err=
13213   fi
13214 else
13215   ac_cpp_err=yes
13216 fi
13217 if test -z "$ac_cpp_err"; then
13218   :
13219 else
13220   echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223   # Broken: fails on valid input.
13224 continue
13225 fi
13226 rm -f conftest.err conftest.$ac_ext
13227
13228   # OK, works on sane cases.  Now check whether non-existent headers
13229   # can be detected and how.
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <ac_nonexistent.h>
13237 _ACEOF
13238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } >/dev/null; then
13246   if test -s conftest.err; then
13247     ac_cpp_err=$ac_c_preproc_warn_flag
13248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13249   else
13250     ac_cpp_err=
13251   fi
13252 else
13253   ac_cpp_err=yes
13254 fi
13255 if test -z "$ac_cpp_err"; then
13256   # Broken: success on invalid input.
13257 continue
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262   # Passes both tests.
13263 ac_preproc_ok=:
13264 break
13265 fi
13266 rm -f conftest.err conftest.$ac_ext
13267
13268 done
13269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13270 rm -f conftest.err conftest.$ac_ext
13271 if $ac_preproc_ok; then
13272   break
13273 fi
13274
13275     done
13276     ac_cv_prog_CPP=$CPP
13277
13278 fi
13279   CPP=$ac_cv_prog_CPP
13280 else
13281   ac_cv_prog_CPP=$CPP
13282 fi
13283 echo "$as_me:$LINENO: result: $CPP" >&5
13284 echo "${ECHO_T}$CPP" >&6
13285 ac_preproc_ok=false
13286 for ac_c_preproc_warn_flag in '' yes
13287 do
13288   # Use a header file that comes with gcc, so configuring glibc
13289   # with a fresh cross-compiler works.
13290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13291   # <limits.h> exists even on freestanding compilers.
13292   # On the NeXT, cc -E runs the code through the compiler's parser,
13293   # not just through cpp. "Syntax error" is here to catch this case.
13294   cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #ifdef __STDC__
13301 # include <limits.h>
13302 #else
13303 # include <assert.h>
13304 #endif
13305                      Syntax error
13306 _ACEOF
13307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } >/dev/null; then
13315   if test -s conftest.err; then
13316     ac_cpp_err=$ac_c_preproc_warn_flag
13317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13318   else
13319     ac_cpp_err=
13320   fi
13321 else
13322   ac_cpp_err=yes
13323 fi
13324 if test -z "$ac_cpp_err"; then
13325   :
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330   # Broken: fails on valid input.
13331 continue
13332 fi
13333 rm -f conftest.err conftest.$ac_ext
13334
13335   # OK, works on sane cases.  Now check whether non-existent headers
13336   # can be detected and how.
13337   cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343 #include <ac_nonexistent.h>
13344 _ACEOF
13345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } >/dev/null; then
13353   if test -s conftest.err; then
13354     ac_cpp_err=$ac_c_preproc_warn_flag
13355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13356   else
13357     ac_cpp_err=
13358   fi
13359 else
13360   ac_cpp_err=yes
13361 fi
13362 if test -z "$ac_cpp_err"; then
13363   # Broken: success on invalid input.
13364 continue
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369   # Passes both tests.
13370 ac_preproc_ok=:
13371 break
13372 fi
13373 rm -f conftest.err conftest.$ac_ext
13374
13375 done
13376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13377 rm -f conftest.err conftest.$ac_ext
13378 if $ac_preproc_ok; then
13379   :
13380 else
13381   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13384 See \`config.log' for more details." >&2;}
13385    { (exit 1); exit 1; }; }
13386 fi
13387
13388 ac_ext=c
13389 ac_cpp='$CPP $CPPFLAGS'
13390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13393
13394
13395 echo "$as_me:$LINENO: checking for egrep" >&5
13396 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13397 if test "${ac_cv_prog_egrep+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13401     then ac_cv_prog_egrep='grep -E'
13402     else ac_cv_prog_egrep='egrep'
13403     fi
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13406 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13407  EGREP=$ac_cv_prog_egrep
13408
13409
13410 if test $ac_cv_c_compiler_gnu = yes; then
13411     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13412 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13413 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416     ac_pattern="Autoconf.*'x'"
13417   cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #include <sgtty.h>
13424 Autoconf TIOCGETP
13425 _ACEOF
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13428   ac_cv_prog_gcc_traditional=yes
13429 else
13430   ac_cv_prog_gcc_traditional=no
13431 fi
13432 rm -f conftest*
13433
13434
13435   if test $ac_cv_prog_gcc_traditional = no; then
13436     cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 #include <termio.h>
13443 Autoconf TCGETA
13444 _ACEOF
13445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13447   ac_cv_prog_gcc_traditional=yes
13448 fi
13449 rm -f conftest*
13450
13451   fi
13452 fi
13453 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13454 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13455   if test $ac_cv_prog_gcc_traditional = yes; then
13456     CC="$CC -traditional"
13457   fi
13458 fi
13459
13460
13461 ac_ext=cc
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466
13467
13468 CXXFLAGS=${CXXFLAGS:=}
13469
13470
13471
13472     ac_ext=cc
13473 ac_cpp='$CXXCPP $CPPFLAGS'
13474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13477 if test -n "$ac_tool_prefix"; then
13478   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13479   do
13480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13482 echo "$as_me:$LINENO: checking for $ac_word" >&5
13483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13484 if test "${ac_cv_prog_CXX+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   if test -n "$CXX"; then
13488   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13489 else
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13492 do
13493   IFS=$as_save_IFS
13494   test -z "$as_dir" && as_dir=.
13495   for ac_exec_ext in '' $ac_executable_extensions; do
13496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13499     break 2
13500   fi
13501 done
13502 done
13503
13504 fi
13505 fi
13506 CXX=$ac_cv_prog_CXX
13507 if test -n "$CXX"; then
13508   echo "$as_me:$LINENO: result: $CXX" >&5
13509 echo "${ECHO_T}$CXX" >&6
13510 else
13511   echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13513 fi
13514
13515     test -n "$CXX" && break
13516   done
13517 fi
13518 if test -z "$CXX"; then
13519   ac_ct_CXX=$CXX
13520   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13521 do
13522   # Extract the first word of "$ac_prog", so it can be a program name with args.
13523 set dummy $ac_prog; ac_word=$2
13524 echo "$as_me:$LINENO: checking for $ac_word" >&5
13525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13526 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13527   echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529   if test -n "$ac_ct_CXX"; then
13530   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535   IFS=$as_save_IFS
13536   test -z "$as_dir" && as_dir=.
13537   for ac_exec_ext in '' $ac_executable_extensions; do
13538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539     ac_cv_prog_ac_ct_CXX="$ac_prog"
13540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13541     break 2
13542   fi
13543 done
13544 done
13545
13546 fi
13547 fi
13548 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13549 if test -n "$ac_ct_CXX"; then
13550   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13551 echo "${ECHO_T}$ac_ct_CXX" >&6
13552 else
13553   echo "$as_me:$LINENO: result: no" >&5
13554 echo "${ECHO_T}no" >&6
13555 fi
13556
13557   test -n "$ac_ct_CXX" && break
13558 done
13559 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13560
13561   CXX=$ac_ct_CXX
13562 fi
13563
13564
13565 # Provide some information about the compiler.
13566 echo "$as_me:$LINENO:" \
13567      "checking for C++ compiler version" >&5
13568 ac_compiler=`set X $ac_compile; echo $2`
13569 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13570   (eval $ac_compiler --version </dev/null >&5) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }
13574 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13575   (eval $ac_compiler -v </dev/null >&5) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }
13579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13580   (eval $ac_compiler -V </dev/null >&5) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }
13584
13585 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13586 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13587 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 int
13598 main ()
13599 {
13600 #ifndef __GNUC__
13601        choke me
13602 #endif
13603
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610   (eval $ac_compile) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest.$ac_objext'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; }; then
13629   ac_compiler_gnu=yes
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_compiler_gnu=no
13635 fi
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13638
13639 fi
13640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13642 GXX=`test $ac_compiler_gnu = yes && echo yes`
13643 ac_test_CXXFLAGS=${CXXFLAGS+set}
13644 ac_save_CXXFLAGS=$CXXFLAGS
13645 CXXFLAGS="-g"
13646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13648 if test "${ac_cv_prog_cxx_g+set}" = set; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651   cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657
13658 int
13659 main ()
13660 {
13661
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668   (eval $ac_compile) 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest.$ac_objext'
13682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683   (eval $ac_try) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   ac_cv_prog_cxx_g=yes
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 ac_cv_prog_cxx_g=no
13693 fi
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 fi
13696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13698 if test "$ac_test_CXXFLAGS" = set; then
13699   CXXFLAGS=$ac_save_CXXFLAGS
13700 elif test $ac_cv_prog_cxx_g = yes; then
13701   if test "$GXX" = yes; then
13702     CXXFLAGS="-g -O2"
13703   else
13704     CXXFLAGS="-g"
13705   fi
13706 else
13707   if test "$GXX" = yes; then
13708     CXXFLAGS="-O2"
13709   else
13710     CXXFLAGS=
13711   fi
13712 fi
13713 for ac_declaration in \
13714    '' \
13715    'extern "C" void std::exit (int) throw (); using std::exit;' \
13716    'extern "C" void std::exit (int); using std::exit;' \
13717    'extern "C" void exit (int) throw ();' \
13718    'extern "C" void exit (int);' \
13719    'void exit (int);'
13720 do
13721   cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727 $ac_declaration
13728 #include <stdlib.h>
13729 int
13730 main ()
13731 {
13732 exit (42);
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739   (eval $ac_compile) 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   :
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 continue
13764 fi
13765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766   cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772 $ac_declaration
13773 int
13774 main ()
13775 {
13776 exit (42);
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783   (eval $ac_compile) 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } &&
13790          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792   (eval $ac_try) 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; } &&
13796          { ac_try='test -s conftest.$ac_objext'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   break
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 fi
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 done
13810 rm -f conftest*
13811 if test -n "$ac_declaration"; then
13812   echo '#ifdef __cplusplus' >>confdefs.h
13813   echo $ac_declaration      >>confdefs.h
13814   echo '#endif'             >>confdefs.h
13815 fi
13816
13817 ac_ext=cc
13818 ac_cpp='$CXXCPP $CPPFLAGS'
13819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13822
13823
13824
13825     ac_ext=cc
13826 ac_cpp='$CXXCPP $CPPFLAGS'
13827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13830
13831     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13832 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13833 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13834   echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836   cat >conftest.$ac_ext <<_ACEOF
13837 /* confdefs.h.  */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h.  */
13842
13843 int
13844 main ()
13845 {
13846
13847              #ifndef __INTEL_COMPILER
13848                 choke me
13849              #endif
13850
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857   (eval $ac_compile) 2>conftest.er1
13858   ac_status=$?
13859   grep -v '^ *+' conftest.er1 >conftest.err
13860   rm -f conftest.er1
13861   cat conftest.err >&5
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } &&
13864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866   (eval $ac_try) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; } &&
13870          { ac_try='test -s conftest.$ac_objext'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; }; then
13876   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13877 else
13878   echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13880
13881 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13882
13883 fi
13884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13885
13886
13887 fi
13888 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13889 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13890     ac_ext=cc
13891 ac_cpp='$CXXCPP $CPPFLAGS'
13892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13895
13896     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13897         :; INTELCXX=yes
13898     else
13899         :;
13900     fi
13901
13902
13903         if test "x$GCXX" != "xyes"; then
13904         if test "xCXX" = "xC"; then
13905             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13906 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13907 if test "${bakefile_cv_cxx_exto+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916
13917 int
13918 main ()
13919 {
13920
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest.$ac_ext.o
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927   (eval $ac_compile) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; then
13931   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13932     case $ac_file in
13933         conftest.$ac_ext.o)
13934             bakefile_cv_cxx_exto="-ext o"
13935             ;;
13936         *)
13937             ;;
13938     esac
13939 done
13940 else
13941   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13942 See \`config.log' for more details." >&5
13943 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13944 See \`config.log' for more details." >&2;}
13945    { (exit 1); exit 1; }; }
13946
13947 fi
13948
13949 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13950
13951 fi
13952 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13953 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13954 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
13955     if test "cxx" = "c"; then
13956         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
13957     fi
13958     if test "cxx" = "cxx"; then
13959         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
13960     fi
13961 fi
13962
13963             if test "x$bakefile_cv_c_exto" '!=' "x"; then
13964                 unset ac_cv_prog_cc_g
13965                 ac_test_CFLAGS=${CFLAGS+set}
13966 ac_save_CFLAGS=$CFLAGS
13967 CFLAGS="-g"
13968 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13969 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13970 if test "${ac_cv_prog_cc_g+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979
13980 int
13981 main ()
13982 {
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>conftest.er1
13991   ac_status=$?
13992   grep -v '^ *+' conftest.er1 >conftest.err
13993   rm -f conftest.er1
13994   cat conftest.err >&5
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } &&
13997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; } &&
14003          { ac_try='test -s conftest.$ac_objext'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   ac_cv_prog_cc_g=yes
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_cv_prog_cc_g=no
14015 fi
14016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14020 if test "$ac_test_CFLAGS" = set; then
14021   CFLAGS=$ac_save_CFLAGS
14022 elif test $ac_cv_prog_cc_g = yes; then
14023   if test "$GCC" = yes; then
14024     CFLAGS="-g -O2"
14025   else
14026     CFLAGS="-g"
14027   fi
14028 else
14029   if test "$GCC" = yes; then
14030     CFLAGS="-O2"
14031   else
14032     CFLAGS=
14033   fi
14034 fi
14035             fi
14036         fi
14037
14038                         case `uname -s` in
14039             AIX*)
14040                 ac_ext=cc
14041 ac_cpp='$CXXCPP $CPPFLAGS'
14042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14045
14046 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14047 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14048 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h.  */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h.  */
14057
14058 int
14059 main ()
14060 {
14061 #ifndef __xlC__
14062        choke me
14063 #endif
14064
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071   (eval $ac_compile) 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } &&
14078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; } &&
14084          { ac_try='test -s conftest.$ac_objext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090   bakefile_compiler_xlc=yes
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095 bakefile_compiler_xlc=no
14096 fi
14097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14099
14100 fi
14101 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14102 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14103
14104 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14105 ac_ext=cc
14106 ac_cpp='$CXXCPP $CPPFLAGS'
14107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110
14111
14112                 ;;
14113
14114             Darwin)
14115                 ac_ext=cc
14116 ac_cpp='$CXXCPP $CPPFLAGS'
14117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14120
14121 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14122 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14123 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132
14133 int
14134 main ()
14135 {
14136 #ifndef __MWERKS__
14137        choke me
14138 #endif
14139
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; } &&
14159          { ac_try='test -s conftest.$ac_objext'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   bakefile_compiler_mwerks=yes
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 bakefile_compiler_mwerks=no
14171 fi
14172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14174
14175 fi
14176 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14177 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14178
14179 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14180 ac_ext=cc
14181 ac_cpp='$CXXCPP $CPPFLAGS'
14182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14185
14186
14187                 ac_ext=cc
14188 ac_cpp='$CXXCPP $CPPFLAGS'
14189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14192
14193 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14194 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14195 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204
14205 int
14206 main ()
14207 {
14208 #ifndef __xlC__
14209        choke me
14210 #endif
14211
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218   (eval $ac_compile) 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   bakefile_compiler_xlc=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 bakefile_compiler_xlc=no
14243 fi
14244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14246
14247 fi
14248 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14249 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14250
14251 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14252 ac_ext=cc
14253 ac_cpp='$CXXCPP $CPPFLAGS'
14254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14257
14258
14259                 ;;
14260
14261             IRIX*)
14262
14263
14264     ac_ext=cc
14265 ac_cpp='$CXXCPP $CPPFLAGS'
14266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14269
14270     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14271 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14272 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281
14282 int
14283 main ()
14284 {
14285
14286              #ifndef _SGI_COMPILER_VERSION
14287                 choke me
14288              #endif
14289
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305   (eval $ac_try) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; } &&
14309          { ac_try='test -s conftest.$ac_objext'
14310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311   (eval $ac_try) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; }; then
14315   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14316 else
14317   echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14321
14322 fi
14323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14324
14325
14326 fi
14327 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14328 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14329     ac_ext=cc
14330 ac_cpp='$CXXCPP $CPPFLAGS'
14331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14334
14335     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14336         :; SGICXX=yes
14337     else
14338         :;
14339     fi
14340
14341
14342                 ;;
14343
14344             HP-UX*)
14345
14346
14347     ac_ext=cc
14348 ac_cpp='$CXXCPP $CPPFLAGS'
14349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14352
14353     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14354 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14355 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364
14365 int
14366 main ()
14367 {
14368
14369              #ifndef __HP_aCC
14370                 choke me
14371              #endif
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } &&
14386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   bakefile_cv_cxx_compiler___HP_aCC=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 bakefile_cv_cxx_compiler___HP_aCC=no
14404
14405 fi
14406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14407
14408
14409 fi
14410 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14411 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14412     ac_ext=cc
14413 ac_cpp='$CXXCPP $CPPFLAGS'
14414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14417
14418     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14419         :; HPCXX=yes
14420     else
14421         :;
14422     fi
14423
14424
14425                 ;;
14426
14427             OSF1)
14428
14429
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     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14437 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14438 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447
14448 int
14449 main ()
14450 {
14451
14452              #ifndef __DECCXX
14453                 choke me
14454              #endif
14455
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462   (eval $ac_compile) 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   bakefile_cv_cxx_compiler___DECCXX=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 bakefile_cv_cxx_compiler___DECCXX=no
14487
14488 fi
14489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490
14491
14492 fi
14493 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14494 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14495     ac_ext=cc
14496 ac_cpp='$CXXCPP $CPPFLAGS'
14497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500
14501     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14502         :; COMPAQCXX=yes
14503     else
14504         :;
14505     fi
14506
14507
14508                 ;;
14509
14510             SunOS)
14511
14512
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     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14520 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14521 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530
14531 int
14532 main ()
14533 {
14534
14535              #ifndef __SUNPRO_CC
14536                 choke me
14537              #endif
14538
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest.$ac_objext'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14570
14571 fi
14572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14573
14574
14575 fi
14576 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14577 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14578     ac_ext=cc
14579 ac_cpp='$CXXCPP $CPPFLAGS'
14580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14583
14584     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14585         :; SUNCXX=yes
14586     else
14587         :;
14588     fi
14589
14590
14591                 ;;
14592         esac
14593     fi
14594
14595
14596
14597 if test -n "$ac_tool_prefix"; then
14598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14600 echo "$as_me:$LINENO: checking for $ac_word" >&5
14601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14602 if test "${ac_cv_prog_RANLIB+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   if test -n "$RANLIB"; then
14606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14607 else
14608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609 for as_dir in $PATH
14610 do
14611   IFS=$as_save_IFS
14612   test -z "$as_dir" && as_dir=.
14613   for ac_exec_ext in '' $ac_executable_extensions; do
14614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14617     break 2
14618   fi
14619 done
14620 done
14621
14622 fi
14623 fi
14624 RANLIB=$ac_cv_prog_RANLIB
14625 if test -n "$RANLIB"; then
14626   echo "$as_me:$LINENO: result: $RANLIB" >&5
14627 echo "${ECHO_T}$RANLIB" >&6
14628 else
14629   echo "$as_me:$LINENO: result: no" >&5
14630 echo "${ECHO_T}no" >&6
14631 fi
14632
14633 fi
14634 if test -z "$ac_cv_prog_RANLIB"; then
14635   ac_ct_RANLIB=$RANLIB
14636   # Extract the first word of "ranlib", so it can be a program name with args.
14637 set dummy ranlib; ac_word=$2
14638 echo "$as_me:$LINENO: checking for $ac_word" >&5
14639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14640 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643   if test -n "$ac_ct_RANLIB"; then
14644   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14645 else
14646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647 for as_dir in $PATH
14648 do
14649   IFS=$as_save_IFS
14650   test -z "$as_dir" && as_dir=.
14651   for ac_exec_ext in '' $ac_executable_extensions; do
14652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14653     ac_cv_prog_ac_ct_RANLIB="ranlib"
14654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14655     break 2
14656   fi
14657 done
14658 done
14659
14660   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14661 fi
14662 fi
14663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14664 if test -n "$ac_ct_RANLIB"; then
14665   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14666 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14667 else
14668   echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14670 fi
14671
14672   RANLIB=$ac_ct_RANLIB
14673 else
14674   RANLIB="$ac_cv_prog_RANLIB"
14675 fi
14676
14677
14678 if test -n "$ac_tool_prefix"; then
14679   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14680 set dummy ${ac_tool_prefix}ar; ac_word=$2
14681 echo "$as_me:$LINENO: checking for $ac_word" >&5
14682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14683 if test "${ac_cv_prog_AR+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   if test -n "$AR"; then
14687   ac_cv_prog_AR="$AR" # Let the user override the test.
14688 else
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14691 do
14692   IFS=$as_save_IFS
14693   test -z "$as_dir" && as_dir=.
14694   for ac_exec_ext in '' $ac_executable_extensions; do
14695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14696     ac_cv_prog_AR="${ac_tool_prefix}ar"
14697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14698     break 2
14699   fi
14700 done
14701 done
14702
14703 fi
14704 fi
14705 AR=$ac_cv_prog_AR
14706 if test -n "$AR"; then
14707   echo "$as_me:$LINENO: result: $AR" >&5
14708 echo "${ECHO_T}$AR" >&6
14709 else
14710   echo "$as_me:$LINENO: result: no" >&5
14711 echo "${ECHO_T}no" >&6
14712 fi
14713
14714 fi
14715 if test -z "$ac_cv_prog_AR"; then
14716   ac_ct_AR=$AR
14717   # Extract the first word of "ar", so it can be a program name with args.
14718 set dummy ar; ac_word=$2
14719 echo "$as_me:$LINENO: checking for $ac_word" >&5
14720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14721 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   if test -n "$ac_ct_AR"; then
14725   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14726 else
14727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728 for as_dir in $PATH
14729 do
14730   IFS=$as_save_IFS
14731   test -z "$as_dir" && as_dir=.
14732   for ac_exec_ext in '' $ac_executable_extensions; do
14733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734     ac_cv_prog_ac_ct_AR="ar"
14735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14736     break 2
14737   fi
14738 done
14739 done
14740
14741 fi
14742 fi
14743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14744 if test -n "$ac_ct_AR"; then
14745   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14746 echo "${ECHO_T}$ac_ct_AR" >&6
14747 else
14748   echo "$as_me:$LINENO: result: no" >&5
14749 echo "${ECHO_T}no" >&6
14750 fi
14751
14752   AR=$ac_ct_AR
14753 else
14754   AR="$ac_cv_prog_AR"
14755 fi
14756
14757 if test "x$AR" = "x" ; then
14758     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14759 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14760    { (exit 1); exit 1; }; }
14761 fi
14762
14763 # Find a good install program.  We prefer a C program (faster),
14764 # so one script is as good as another.  But avoid the broken or
14765 # incompatible versions:
14766 # SysV /etc/install, /usr/sbin/install
14767 # SunOS /usr/etc/install
14768 # IRIX /sbin/install
14769 # AIX /bin/install
14770 # AmigaOS /C/install, which installs bootblocks on floppy discs
14771 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14772 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14773 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14774 # OS/2's system install, which has a completely different semantic
14775 # ./install, which can be erroneously created by make from ./install.sh.
14776 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14777 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14778 if test -z "$INSTALL"; then
14779 if test "${ac_cv_path_install+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14784 do
14785   IFS=$as_save_IFS
14786   test -z "$as_dir" && as_dir=.
14787   # Account for people who put trailing slashes in PATH elements.
14788 case $as_dir/ in
14789   ./ | .// | /cC/* | \
14790   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14791   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14792   /usr/ucb/* ) ;;
14793   *)
14794     # OSF1 and SCO ODT 3.0 have their own names for install.
14795     # Don't use installbsd from OSF since it installs stuff as root
14796     # by default.
14797     for ac_prog in ginstall scoinst install; do
14798       for ac_exec_ext in '' $ac_executable_extensions; do
14799         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14800           if test $ac_prog = install &&
14801             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14802             # AIX install.  It has an incompatible calling convention.
14803             :
14804           elif test $ac_prog = install &&
14805             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14806             # program-specific install script used by HP pwplus--don't use.
14807             :
14808           else
14809             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14810             break 3
14811           fi
14812         fi
14813       done
14814     done
14815     ;;
14816 esac
14817 done
14818
14819
14820 fi
14821   if test "${ac_cv_path_install+set}" = set; then
14822     INSTALL=$ac_cv_path_install
14823   else
14824     # As a last resort, use the slow shell script.  We don't cache a
14825     # path for INSTALL within a source directory, because that will
14826     # break other packages using the cache if that directory is
14827     # removed, or if the path is relative.
14828     INSTALL=$ac_install_sh
14829   fi
14830 fi
14831 echo "$as_me:$LINENO: result: $INSTALL" >&5
14832 echo "${ECHO_T}$INSTALL" >&6
14833
14834 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14835 # It thinks the first close brace ends the variable substitution.
14836 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14837
14838 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14839
14840 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14841
14842
14843 case ${INSTALL} in
14844   /* ) # Absolute
14845      ;;
14846   ?:* ) # Drive letter, considered as absolute.
14847      ;;
14848   *)
14849      INSTALL=`pwd`/${INSTALL} ;;
14850 esac
14851
14852
14853 case "${host}" in
14854
14855                 *-*-darwin* )
14856         INSTALL_PROGRAM="cp -fp"
14857         INSTALL_DATA="cp -fp"
14858         ;;
14859     *)
14860         ;;
14861 esac
14862
14863 if test -n "$ac_tool_prefix"; then
14864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14865 set dummy ${ac_tool_prefix}strip; ac_word=$2
14866 echo "$as_me:$LINENO: checking for $ac_word" >&5
14867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14868 if test "${ac_cv_prog_STRIP+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   if test -n "$STRIP"; then
14872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14873 else
14874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 for as_dir in $PATH
14876 do
14877   IFS=$as_save_IFS
14878   test -z "$as_dir" && as_dir=.
14879   for ac_exec_ext in '' $ac_executable_extensions; do
14880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14883     break 2
14884   fi
14885 done
14886 done
14887
14888 fi
14889 fi
14890 STRIP=$ac_cv_prog_STRIP
14891 if test -n "$STRIP"; then
14892   echo "$as_me:$LINENO: result: $STRIP" >&5
14893 echo "${ECHO_T}$STRIP" >&6
14894 else
14895   echo "$as_me:$LINENO: result: no" >&5
14896 echo "${ECHO_T}no" >&6
14897 fi
14898
14899 fi
14900 if test -z "$ac_cv_prog_STRIP"; then
14901   ac_ct_STRIP=$STRIP
14902   # Extract the first word of "strip", so it can be a program name with args.
14903 set dummy strip; ac_word=$2
14904 echo "$as_me:$LINENO: checking for $ac_word" >&5
14905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   if test -n "$ac_ct_STRIP"; then
14910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14911 else
14912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14913 for as_dir in $PATH
14914 do
14915   IFS=$as_save_IFS
14916   test -z "$as_dir" && as_dir=.
14917   for ac_exec_ext in '' $ac_executable_extensions; do
14918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14919     ac_cv_prog_ac_ct_STRIP="strip"
14920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14921     break 2
14922   fi
14923 done
14924 done
14925
14926   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14927 fi
14928 fi
14929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14930 if test -n "$ac_ct_STRIP"; then
14931   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14932 echo "${ECHO_T}$ac_ct_STRIP" >&6
14933 else
14934   echo "$as_me:$LINENO: result: no" >&5
14935 echo "${ECHO_T}no" >&6
14936 fi
14937
14938   STRIP=$ac_ct_STRIP
14939 else
14940   STRIP="$ac_cv_prog_STRIP"
14941 fi
14942
14943
14944 if test "$wxUSE_WINE" = "yes"; then
14945     if test -n "$ac_tool_prefix"; then
14946   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}wrc; ac_word=$2
14948 echo "$as_me:$LINENO: checking for $ac_word" >&5
14949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14950 if test "${ac_cv_prog_WINDRES+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   if test -n "$WINDRES"; then
14954   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14955 else
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14958 do
14959   IFS=$as_save_IFS
14960   test -z "$as_dir" && as_dir=.
14961   for ac_exec_ext in '' $ac_executable_extensions; do
14962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14963     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
14964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14965     break 2
14966   fi
14967 done
14968 done
14969
14970 fi
14971 fi
14972 WINDRES=$ac_cv_prog_WINDRES
14973 if test -n "$WINDRES"; then
14974   echo "$as_me:$LINENO: result: $WINDRES" >&5
14975 echo "${ECHO_T}$WINDRES" >&6
14976 else
14977   echo "$as_me:$LINENO: result: no" >&5
14978 echo "${ECHO_T}no" >&6
14979 fi
14980
14981 fi
14982 if test -z "$ac_cv_prog_WINDRES"; then
14983   ac_ct_WINDRES=$WINDRES
14984   # Extract the first word of "wrc", so it can be a program name with args.
14985 set dummy wrc; ac_word=$2
14986 echo "$as_me:$LINENO: checking for $ac_word" >&5
14987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14988 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   if test -n "$ac_ct_WINDRES"; then
14992   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14993 else
14994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14995 for as_dir in $PATH
14996 do
14997   IFS=$as_save_IFS
14998   test -z "$as_dir" && as_dir=.
14999   for ac_exec_ext in '' $ac_executable_extensions; do
15000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15001     ac_cv_prog_ac_ct_WINDRES="wrc"
15002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15003     break 2
15004   fi
15005 done
15006 done
15007
15008 fi
15009 fi
15010 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15011 if test -n "$ac_ct_WINDRES"; then
15012   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15013 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15014 else
15015   echo "$as_me:$LINENO: result: no" >&5
15016 echo "${ECHO_T}no" >&6
15017 fi
15018
15019   WINDRES=$ac_ct_WINDRES
15020 else
15021   WINDRES="$ac_cv_prog_WINDRES"
15022 fi
15023
15024     RESCOMP="$WINDRES"
15025 else
15026     case "${host}" in
15027     *-*-cygwin* | *-*-mingw32* )
15028                                 if test -n "$ac_tool_prefix"; then
15029   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15030 set dummy ${ac_tool_prefix}windres; ac_word=$2
15031 echo "$as_me:$LINENO: checking for $ac_word" >&5
15032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15033 if test "${ac_cv_prog_WINDRES+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   if test -n "$WINDRES"; then
15037   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15038 else
15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $PATH
15041 do
15042   IFS=$as_save_IFS
15043   test -z "$as_dir" && as_dir=.
15044   for ac_exec_ext in '' $ac_executable_extensions; do
15045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15046     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15048     break 2
15049   fi
15050 done
15051 done
15052
15053 fi
15054 fi
15055 WINDRES=$ac_cv_prog_WINDRES
15056 if test -n "$WINDRES"; then
15057   echo "$as_me:$LINENO: result: $WINDRES" >&5
15058 echo "${ECHO_T}$WINDRES" >&6
15059 else
15060   echo "$as_me:$LINENO: result: no" >&5
15061 echo "${ECHO_T}no" >&6
15062 fi
15063
15064 fi
15065 if test -z "$ac_cv_prog_WINDRES"; then
15066   ac_ct_WINDRES=$WINDRES
15067   # Extract the first word of "windres", so it can be a program name with args.
15068 set dummy windres; ac_word=$2
15069 echo "$as_me:$LINENO: checking for $ac_word" >&5
15070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15071 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   if test -n "$ac_ct_WINDRES"; then
15075   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15076 else
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080   IFS=$as_save_IFS
15081   test -z "$as_dir" && as_dir=.
15082   for ac_exec_ext in '' $ac_executable_extensions; do
15083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084     ac_cv_prog_ac_ct_WINDRES="windres"
15085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15086     break 2
15087   fi
15088 done
15089 done
15090
15091 fi
15092 fi
15093 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15094 if test -n "$ac_ct_WINDRES"; then
15095   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15096 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15097 else
15098   echo "$as_me:$LINENO: result: no" >&5
15099 echo "${ECHO_T}no" >&6
15100 fi
15101
15102   WINDRES=$ac_ct_WINDRES
15103 else
15104   WINDRES="$ac_cv_prog_WINDRES"
15105 fi
15106
15107         RESCOMP="$WINDRES"
15108         if test -n "$ac_tool_prefix"; then
15109   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15110 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15111 echo "$as_me:$LINENO: checking for $ac_word" >&5
15112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15113 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   if test -n "$DLLTOOL"; then
15117   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15118 else
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15121 do
15122   IFS=$as_save_IFS
15123   test -z "$as_dir" && as_dir=.
15124   for ac_exec_ext in '' $ac_executable_extensions; do
15125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15128     break 2
15129   fi
15130 done
15131 done
15132
15133 fi
15134 fi
15135 DLLTOOL=$ac_cv_prog_DLLTOOL
15136 if test -n "$DLLTOOL"; then
15137   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15138 echo "${ECHO_T}$DLLTOOL" >&6
15139 else
15140   echo "$as_me:$LINENO: result: no" >&5
15141 echo "${ECHO_T}no" >&6
15142 fi
15143
15144 fi
15145 if test -z "$ac_cv_prog_DLLTOOL"; then
15146   ac_ct_DLLTOOL=$DLLTOOL
15147   # Extract the first word of "dlltool", so it can be a program name with args.
15148 set dummy dlltool; ac_word=$2
15149 echo "$as_me:$LINENO: checking for $ac_word" >&5
15150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15151 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   if test -n "$ac_ct_DLLTOOL"; then
15155   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15156 else
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15159 do
15160   IFS=$as_save_IFS
15161   test -z "$as_dir" && as_dir=.
15162   for ac_exec_ext in '' $ac_executable_extensions; do
15163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166     break 2
15167   fi
15168 done
15169 done
15170
15171 fi
15172 fi
15173 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15174 if test -n "$ac_ct_DLLTOOL"; then
15175   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15176 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15177 else
15178   echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6
15180 fi
15181
15182   DLLTOOL=$ac_ct_DLLTOOL
15183 else
15184   DLLTOOL="$ac_cv_prog_DLLTOOL"
15185 fi
15186
15187         ;;
15188     esac
15189 fi
15190
15191 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15192 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15193 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196
15197     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15198             egrep -s GNU > /dev/null); then
15199         wx_cv_prog_makeisgnu="yes"
15200     else
15201         wx_cv_prog_makeisgnu="no"
15202     fi
15203
15204 fi
15205 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15206 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15207
15208 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15209     IF_GNU_MAKE=""
15210 else
15211     IF_GNU_MAKE="#"
15212 fi
15213
15214
15215
15216 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15217 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15218 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15219 if test "${wx_cv_prog_makevpath+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222
15223 cat - << EOF > confMake
15224 check : file
15225         cp \$? \$@
15226         cp \$? final_file
15227 EOF
15228
15229 if test ! -d sub ; then
15230   mkdir sub
15231 fi
15232 echo dummy > sub/file
15233 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15234 RESULT=$?
15235 rm -f sub/file check final_file confMake
15236 rmdir sub
15237 if test "$RESULT" = 0; then
15238   wx_cv_prog_makevpath="yes"
15239 else
15240   wx_cv_prog_makevpath="no"
15241 fi
15242
15243 fi
15244 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15245 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15246
15247 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15248 { { echo "$as_me:$LINENO: error:
15249 You need a make-utility that is able to use the variable
15250 VPATH correctly.
15251 If your version of make does not support VPATH correctly,
15252 please install GNU-make (possibly as gmake), and start
15253 configure with the following command:
15254 export MAKE=gmake; ./configure  for sh-type shells
15255 setenv MAKE gmake; ./configure  for csh-type shells
15256 Also please do remember to use gmake in this case every time
15257 you are trying to compile.
15258 " >&5
15259 echo "$as_me: error:
15260 You need a make-utility that is able to use the variable
15261 VPATH correctly.
15262 If your version of make does not support VPATH correctly,
15263 please install GNU-make (possibly as gmake), and start
15264 configure with the following command:
15265 export MAKE=gmake; ./configure  for sh-type shells
15266 setenv MAKE gmake; ./configure  for csh-type shells
15267 Also please do remember to use gmake in this case every time
15268 you are trying to compile.
15269 " >&2;}
15270    { (exit 1); exit 1; }; }
15271 fi fi
15272 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15273 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15274 LN_S=$as_ln_s
15275 if test "$LN_S" = "ln -s"; then
15276   echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15278 else
15279   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15280 echo "${ECHO_T}no, using $LN_S" >&6
15281 fi
15282
15283
15284
15285
15286 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15287     CXXFLAGS="-qunique $CXXFLAGS"
15288 fi
15289
15290 case "${host}" in
15291   powerpc-*-darwin* )
15292     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15293 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15294     cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 int
15302 main ()
15303 {
15304 #ifndef __POWERPC__
15305         choke me for lack of PowerPC
15306 #endif
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314   (eval $ac_compile) 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323   (eval $ac_try) 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; } &&
15327          { ac_try='test -s conftest.$ac_objext'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; }; then
15333   echo "$as_me:$LINENO: result: yes" >&5
15334 echo "${ECHO_T}yes" >&6
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15341         cat >>confdefs.h <<\_ACEOF
15342 #define __POWERPC__ 1
15343 _ACEOF
15344
15345
15346 fi
15347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15348   ;;
15349 esac
15350
15351 case "${host}" in
15352   *-*-darwin* )
15353     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15354 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15355     cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 #include <CoreFoundation/CFBase.h>
15362
15363 int
15364 main ()
15365 {
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373   (eval $ac_compile) 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; } &&
15386          { ac_try='test -s conftest.$ac_objext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392   echo "$as_me:$LINENO: result: yes" >&5
15393 echo "${ECHO_T}yes" >&6
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 echo "$as_me:$LINENO: result: no" >&5
15399 echo "${ECHO_T}no" >&6
15400         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15401 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15402         cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 #define __CF_USE_FRAMEWORK_INCLUDES__
15409 #include <CoreFoundation/CFBase.h>
15410
15411 int
15412 main ()
15413 {
15414
15415   ;
15416   return 0;
15417 }
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421   (eval $ac_compile) 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } &&
15428          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
15434          { ac_try='test -s conftest.$ac_objext'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   echo "$as_me:$LINENO: result: yes" >&5
15441 echo "${ECHO_T}yes" >&6
15442                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15448 See \`config.log' for more details." >&5
15449 echo "$as_me: error: no.  CoreFoundation not available.
15450 See \`config.log' for more details." >&2;}
15451    { (exit 1); exit 1; }; }
15452
15453 fi
15454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15455
15456
15457 fi
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459   ;;
15460 esac
15461
15462 case "${host}" in
15463   *-pc-os2_emx | *-pc-os2-emx )
15464                                                       ac_ext=c
15465 ac_cpp='$CPP $CPPFLAGS'
15466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15469
15470       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15471                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15472 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15473 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   ac_check_lib_save_LIBS=$LIBS
15477 LIBS="-lcExt  $LIBS"
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484
15485 /* Override any gcc2 internal prototype to avoid an error.  */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 /* We use char because int might match the return type of a gcc2
15490    builtin and then its argument prototype would still apply.  */
15491 char drand48 ();
15492 int
15493 main ()
15494 {
15495 drand48 ();
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest.$ac_objext conftest$ac_exeext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15502   (eval $ac_link) 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } &&
15509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; } &&
15515          { ac_try='test -s conftest$ac_exeext'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   ac_cv_lib_cExt_drand48=yes
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_cv_lib_cExt_drand48=no
15527 fi
15528 rm -f conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530 LIBS=$ac_check_lib_save_LIBS
15531 fi
15532 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15533 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15534 if test $ac_cv_lib_cExt_drand48 = yes; then
15535   LIBS="$LIBS -lcExt"
15536 fi
15537
15538       else
15539                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15540       fi
15541                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15542 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15543 if test "${wx_cv_gccversion+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546
15547           if test "$cross_compiling" = yes; then
15548                 wx_cv_gccversion="EMX2"
15549
15550 else
15551   cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557
15558                   #include <stdio.h>
15559
15560                   int main()
15561                   {
15562                       FILE *f=fopen("conftestval", "w");
15563                       if (!f) exit(1);
15564                       fprintf(f,
15565                   #if (__GNUC__ < 3)
15566                               "EMX2"
15567                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15568                               "EMX3"
15569                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15570                               "Innotek5"
15571                   #else
15572                               "Innotek6"
15573                   #endif
15574                       );
15575                       exit(0);
15576                   }
15577
15578 _ACEOF
15579 rm -f conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581   (eval $ac_link) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   wx_cv_gccversion=`cat conftestval`
15591 else
15592   echo "$as_me: program exited with status $ac_status" >&5
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ( exit $ac_status )
15597 wx_cv_gccversion="EMX2"
15598 fi
15599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15600 fi
15601
15602 fi
15603 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15604 echo "${ECHO_T}$wx_cv_gccversion" >&6
15605       ac_ext=cc
15606 ac_cpp='$CXXCPP $CPPFLAGS'
15607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15610
15611       if test "$wx_cv_gccversion" = "EMX2"; then
15612           LIBS="$LIBS -lstdcpp"
15613           LDFLAGS="$LDFLAGS -Zsysv-signals"
15614       else
15615           if test "$wx_cv_gccversion" = "EMX3"; then
15616               LIBS="$LIBS -lstdcxx -lgcc"
15617               LDFLAGS="$LDFLAGS -Zsysv-signals"
15618           else
15619               LIBS="$LIBS -lstdc++"
15620           fi
15621       fi
15622       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15623         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15624 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15625         wxUSE_OMF=yes
15626         enable_omf=yes
15627       fi
15628         ;;
15629   *)
15630
15631       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15632 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15633 if test "${ac_cv_string_strcasecmp+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636
15637           cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643
15644               #include <string.h>
15645
15646 int
15647 main ()
15648 {
15649
15650                   strcasecmp("foo", "bar");
15651
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658   (eval $ac_link) 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; } &&
15671          { ac_try='test -s conftest$ac_exeext'
15672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673   (eval $ac_try) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_cv_string_strcasecmp=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_cv_string_strcasecmp=no
15683
15684 fi
15685 rm -f conftest.err conftest.$ac_objext \
15686       conftest$ac_exeext conftest.$ac_ext
15687
15688 fi
15689 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15690 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15691
15692       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15693           cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_STRCASECMP_IN_STRING_H 1
15695 _ACEOF
15696
15697       else
15698           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15699 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15700 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703
15704               cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710
15711                   #include <strings.h>
15712
15713 int
15714 main ()
15715 {
15716
15717                       strcasecmp("foo", "bar");
15718
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725   (eval $ac_link) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest$ac_exeext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_strings_strcasecmp=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_cv_strings_strcasecmp=no
15750
15751 fi
15752 rm -f conftest.err conftest.$ac_objext \
15753       conftest$ac_exeext conftest.$ac_ext
15754
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15757 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15758
15759           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15760               cat >>confdefs.h <<\_ACEOF
15761 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15762 _ACEOF
15763
15764           else
15765               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15766 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15767    { (exit 1); exit 1; }; }
15768           fi
15769       fi
15770
15771         ;;
15772 esac
15773
15774
15775 ac_ext=cc
15776 ac_cpp='$CXXCPP $CPPFLAGS'
15777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15780 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15781 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15782 if test -z "$CXXCPP"; then
15783   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786       # Double quotes because CXXCPP needs to be expanded
15787     for CXXCPP in "$CXX -E" "/lib/cpp"
15788     do
15789       ac_preproc_ok=false
15790 for ac_cxx_preproc_warn_flag in '' yes
15791 do
15792   # Use a header file that comes with gcc, so configuring glibc
15793   # with a fresh cross-compiler works.
15794   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795   # <limits.h> exists even on freestanding compilers.
15796   # On the NeXT, cc -E runs the code through the compiler's parser,
15797   # not just through cpp. "Syntax error" is here to catch this case.
15798   cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804 #ifdef __STDC__
15805 # include <limits.h>
15806 #else
15807 # include <assert.h>
15808 #endif
15809                      Syntax error
15810 _ACEOF
15811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } >/dev/null; then
15819   if test -s conftest.err; then
15820     ac_cpp_err=$ac_cxx_preproc_warn_flag
15821     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15822   else
15823     ac_cpp_err=
15824   fi
15825 else
15826   ac_cpp_err=yes
15827 fi
15828 if test -z "$ac_cpp_err"; then
15829   :
15830 else
15831   echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834   # Broken: fails on valid input.
15835 continue
15836 fi
15837 rm -f conftest.err conftest.$ac_ext
15838
15839   # OK, works on sane cases.  Now check whether non-existent headers
15840   # can be detected and how.
15841   cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847 #include <ac_nonexistent.h>
15848 _ACEOF
15849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15851   ac_status=$?
15852   grep -v '^ *+' conftest.er1 >conftest.err
15853   rm -f conftest.er1
15854   cat conftest.err >&5
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); } >/dev/null; then
15857   if test -s conftest.err; then
15858     ac_cpp_err=$ac_cxx_preproc_warn_flag
15859     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15860   else
15861     ac_cpp_err=
15862   fi
15863 else
15864   ac_cpp_err=yes
15865 fi
15866 if test -z "$ac_cpp_err"; then
15867   # Broken: success on invalid input.
15868 continue
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873   # Passes both tests.
15874 ac_preproc_ok=:
15875 break
15876 fi
15877 rm -f conftest.err conftest.$ac_ext
15878
15879 done
15880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15881 rm -f conftest.err conftest.$ac_ext
15882 if $ac_preproc_ok; then
15883   break
15884 fi
15885
15886     done
15887     ac_cv_prog_CXXCPP=$CXXCPP
15888
15889 fi
15890   CXXCPP=$ac_cv_prog_CXXCPP
15891 else
15892   ac_cv_prog_CXXCPP=$CXXCPP
15893 fi
15894 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15895 echo "${ECHO_T}$CXXCPP" >&6
15896 ac_preproc_ok=false
15897 for ac_cxx_preproc_warn_flag in '' yes
15898 do
15899   # Use a header file that comes with gcc, so configuring glibc
15900   # with a fresh cross-compiler works.
15901   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902   # <limits.h> exists even on freestanding compilers.
15903   # On the NeXT, cc -E runs the code through the compiler's parser,
15904   # not just through cpp. "Syntax error" is here to catch this case.
15905   cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 #ifdef __STDC__
15912 # include <limits.h>
15913 #else
15914 # include <assert.h>
15915 #endif
15916                      Syntax error
15917 _ACEOF
15918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } >/dev/null; then
15926   if test -s conftest.err; then
15927     ac_cpp_err=$ac_cxx_preproc_warn_flag
15928     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15929   else
15930     ac_cpp_err=
15931   fi
15932 else
15933   ac_cpp_err=yes
15934 fi
15935 if test -z "$ac_cpp_err"; then
15936   :
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941   # Broken: fails on valid input.
15942 continue
15943 fi
15944 rm -f conftest.err conftest.$ac_ext
15945
15946   # OK, works on sane cases.  Now check whether non-existent headers
15947   # can be detected and how.
15948   cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 #include <ac_nonexistent.h>
15955 _ACEOF
15956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } >/dev/null; then
15964   if test -s conftest.err; then
15965     ac_cpp_err=$ac_cxx_preproc_warn_flag
15966     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15967   else
15968     ac_cpp_err=
15969   fi
15970 else
15971   ac_cpp_err=yes
15972 fi
15973 if test -z "$ac_cpp_err"; then
15974   # Broken: success on invalid input.
15975 continue
15976 else
15977   echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980   # Passes both tests.
15981 ac_preproc_ok=:
15982 break
15983 fi
15984 rm -f conftest.err conftest.$ac_ext
15985
15986 done
15987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15988 rm -f conftest.err conftest.$ac_ext
15989 if $ac_preproc_ok; then
15990   :
15991 else
15992   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15993 See \`config.log' for more details." >&5
15994 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15995 See \`config.log' for more details." >&2;}
15996    { (exit 1); exit 1; }; }
15997 fi
15998
15999 ac_ext=cc
16000 ac_cpp='$CXXCPP $CPPFLAGS'
16001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16004
16005
16006 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16008 if test "${ac_cv_header_stdc+set}" = set; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011   cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h.  */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h.  */
16017 #include <stdlib.h>
16018 #include <stdarg.h>
16019 #include <string.h>
16020 #include <float.h>
16021
16022 int
16023 main ()
16024 {
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032   (eval $ac_compile) 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; } &&
16045          { ac_try='test -s conftest.$ac_objext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_cv_header_stdc=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_cv_header_stdc=no
16057 fi
16058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16059
16060 if test $ac_cv_header_stdc = yes; then
16061   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16062   cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h.  */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h.  */
16068 #include <string.h>
16069
16070 _ACEOF
16071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16072   $EGREP "memchr" >/dev/null 2>&1; then
16073   :
16074 else
16075   ac_cv_header_stdc=no
16076 fi
16077 rm -f conftest*
16078
16079 fi
16080
16081 if test $ac_cv_header_stdc = yes; then
16082   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16083   cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 #include <stdlib.h>
16090
16091 _ACEOF
16092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16093   $EGREP "free" >/dev/null 2>&1; then
16094   :
16095 else
16096   ac_cv_header_stdc=no
16097 fi
16098 rm -f conftest*
16099
16100 fi
16101
16102 if test $ac_cv_header_stdc = yes; then
16103   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16104   if test "$cross_compiling" = yes; then
16105   :
16106 else
16107   cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 #include <ctype.h>
16114 #if ((' ' & 0x0FF) == 0x020)
16115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16117 #else
16118 # define ISLOWER(c) \
16119                    (('a' <= (c) && (c) <= 'i') \
16120                      || ('j' <= (c) && (c) <= 'r') \
16121                      || ('s' <= (c) && (c) <= 'z'))
16122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16123 #endif
16124
16125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16126 int
16127 main ()
16128 {
16129   int i;
16130   for (i = 0; i < 256; i++)
16131     if (XOR (islower (i), ISLOWER (i))
16132         || toupper (i) != TOUPPER (i))
16133       exit(2);
16134   exit (0);
16135 }
16136 _ACEOF
16137 rm -f conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139   (eval $ac_link) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; }; then
16148   :
16149 else
16150   echo "$as_me: program exited with status $ac_status" >&5
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ( exit $ac_status )
16155 ac_cv_header_stdc=no
16156 fi
16157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16158 fi
16159 fi
16160 fi
16161 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16162 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16163 if test $ac_cv_header_stdc = yes; then
16164
16165 cat >>confdefs.h <<\_ACEOF
16166 #define STDC_HEADERS 1
16167 _ACEOF
16168
16169 fi
16170
16171 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16182                   inttypes.h stdint.h unistd.h
16183 do
16184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 echo "$as_me:$LINENO: checking for $ac_header" >&5
16186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16188   echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190   cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h.  */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h.  */
16196 $ac_includes_default
16197
16198 #include <$ac_header>
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202   (eval $ac_compile) 2>conftest.er1
16203   ac_status=$?
16204   grep -v '^ *+' conftest.er1 >conftest.err
16205   rm -f conftest.er1
16206   cat conftest.err >&5
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } &&
16209          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; } &&
16215          { ac_try='test -s conftest.$ac_objext'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; }; then
16221   eval "$as_ac_Header=yes"
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 eval "$as_ac_Header=no"
16227 fi
16228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16229 fi
16230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233   cat >>confdefs.h <<_ACEOF
16234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235 _ACEOF
16236
16237 fi
16238
16239 done
16240
16241
16242
16243 for ac_header in stdlib.h
16244 do
16245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16247   echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16250   echo $ECHO_N "(cached) $ECHO_C" >&6
16251 fi
16252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16254 else
16255   # Is the header compilable?
16256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 $ac_includes_default
16265 #include <$ac_header>
16266 _ACEOF
16267 rm -f conftest.$ac_objext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269   (eval $ac_compile) 2>conftest.er1
16270   ac_status=$?
16271   grep -v '^ *+' conftest.er1 >conftest.err
16272   rm -f conftest.er1
16273   cat conftest.err >&5
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); } &&
16276          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest.$ac_objext'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_header_compiler=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ac_header_compiler=no
16294 fi
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297 echo "${ECHO_T}$ac_header_compiler" >&6
16298
16299 # Is the header present?
16300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308 #include <$ac_header>
16309 _ACEOF
16310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } >/dev/null; then
16318   if test -s conftest.err; then
16319     ac_cpp_err=$ac_cxx_preproc_warn_flag
16320     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16321   else
16322     ac_cpp_err=
16323   fi
16324 else
16325   ac_cpp_err=yes
16326 fi
16327 if test -z "$ac_cpp_err"; then
16328   ac_header_preproc=yes
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333   ac_header_preproc=no
16334 fi
16335 rm -f conftest.err conftest.$ac_ext
16336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16337 echo "${ECHO_T}$ac_header_preproc" >&6
16338
16339 # So?  What about this header?
16340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16341   yes:no: )
16342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16346     ac_header_preproc=yes
16347     ;;
16348   no:yes:* )
16349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16361     (
16362       cat <<\_ASBOX
16363 ## ----------------------------------------- ##
16364 ## Report this to wx-dev@lists.wxwidgets.org ##
16365 ## ----------------------------------------- ##
16366 _ASBOX
16367     ) |
16368       sed "s/^/$as_me: WARNING:     /" >&2
16369     ;;
16370 esac
16371 echo "$as_me:$LINENO: checking for $ac_header" >&5
16372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   eval "$as_ac_Header=\$ac_header_preproc"
16377 fi
16378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16380
16381 fi
16382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16383   cat >>confdefs.h <<_ACEOF
16384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16385 _ACEOF
16386
16387 fi
16388
16389 done
16390
16391
16392 for ac_header in malloc.h
16393 do
16394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16396   echo "$as_me:$LINENO: checking for $ac_header" >&5
16397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 fi
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16403 else
16404   # Is the header compilable?
16405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h.  */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h.  */
16413 $ac_includes_default
16414 #include <$ac_header>
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418   (eval $ac_compile) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; } &&
16431          { ac_try='test -s conftest.$ac_objext'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   ac_header_compiler=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_header_compiler=no
16443 fi
16444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446 echo "${ECHO_T}$ac_header_compiler" >&6
16447
16448 # Is the header present?
16449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 #include <$ac_header>
16458 _ACEOF
16459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } >/dev/null; then
16467   if test -s conftest.err; then
16468     ac_cpp_err=$ac_cxx_preproc_warn_flag
16469     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16470   else
16471     ac_cpp_err=
16472   fi
16473 else
16474   ac_cpp_err=yes
16475 fi
16476 if test -z "$ac_cpp_err"; then
16477   ac_header_preproc=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482   ac_header_preproc=no
16483 fi
16484 rm -f conftest.err conftest.$ac_ext
16485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16486 echo "${ECHO_T}$ac_header_preproc" >&6
16487
16488 # So?  What about this header?
16489 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16490   yes:no: )
16491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16495     ac_header_preproc=yes
16496     ;;
16497   no:yes:* )
16498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16510     (
16511       cat <<\_ASBOX
16512 ## ----------------------------------------- ##
16513 ## Report this to wx-dev@lists.wxwidgets.org ##
16514 ## ----------------------------------------- ##
16515 _ASBOX
16516     ) |
16517       sed "s/^/$as_me: WARNING:     /" >&2
16518     ;;
16519 esac
16520 echo "$as_me:$LINENO: checking for $ac_header" >&5
16521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   eval "$as_ac_Header=\$ac_header_preproc"
16526 fi
16527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529
16530 fi
16531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532   cat >>confdefs.h <<_ACEOF
16533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16534 _ACEOF
16535
16536 fi
16537
16538 done
16539
16540
16541 for ac_header in unistd.h
16542 do
16543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16545   echo "$as_me:$LINENO: checking for $ac_header" >&5
16546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 fi
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16552 else
16553   # Is the header compilable?
16554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562 $ac_includes_default
16563 #include <$ac_header>
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567   (eval $ac_compile) 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest.$ac_objext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_header_compiler=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_header_compiler=no
16592 fi
16593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16595 echo "${ECHO_T}$ac_header_compiler" >&6
16596
16597 # Is the header present?
16598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 #include <$ac_header>
16607 _ACEOF
16608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16610   ac_status=$?
16611   grep -v '^ *+' conftest.er1 >conftest.err
16612   rm -f conftest.er1
16613   cat conftest.err >&5
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } >/dev/null; then
16616   if test -s conftest.err; then
16617     ac_cpp_err=$ac_cxx_preproc_warn_flag
16618     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16619   else
16620     ac_cpp_err=
16621   fi
16622 else
16623   ac_cpp_err=yes
16624 fi
16625 if test -z "$ac_cpp_err"; then
16626   ac_header_preproc=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631   ac_header_preproc=no
16632 fi
16633 rm -f conftest.err conftest.$ac_ext
16634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635 echo "${ECHO_T}$ac_header_preproc" >&6
16636
16637 # So?  What about this header?
16638 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16639   yes:no: )
16640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16644     ac_header_preproc=yes
16645     ;;
16646   no:yes:* )
16647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16659     (
16660       cat <<\_ASBOX
16661 ## ----------------------------------------- ##
16662 ## Report this to wx-dev@lists.wxwidgets.org ##
16663 ## ----------------------------------------- ##
16664 _ASBOX
16665     ) |
16666       sed "s/^/$as_me: WARNING:     /" >&2
16667     ;;
16668 esac
16669 echo "$as_me:$LINENO: checking for $ac_header" >&5
16670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   eval "$as_ac_Header=\$ac_header_preproc"
16675 fi
16676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16678
16679 fi
16680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16681   cat >>confdefs.h <<_ACEOF
16682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16683 _ACEOF
16684
16685 fi
16686
16687 done
16688
16689
16690 for ac_header in wchar.h
16691 do
16692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16694   echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 fi
16699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16701 else
16702   # Is the header compilable?
16703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 $ac_includes_default
16712 #include <$ac_header>
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716   (eval $ac_compile) 2>conftest.er1
16717   ac_status=$?
16718   grep -v '^ *+' conftest.er1 >conftest.err
16719   rm -f conftest.er1
16720   cat conftest.err >&5
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } &&
16723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725   (eval $ac_try) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; } &&
16729          { ac_try='test -s conftest.$ac_objext'
16730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731   (eval $ac_try) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ac_header_compiler=yes
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_header_compiler=no
16741 fi
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16744 echo "${ECHO_T}$ac_header_compiler" >&6
16745
16746 # Is the header present?
16747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 #include <$ac_header>
16756 _ACEOF
16757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16759   ac_status=$?
16760   grep -v '^ *+' conftest.er1 >conftest.err
16761   rm -f conftest.er1
16762   cat conftest.err >&5
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } >/dev/null; then
16765   if test -s conftest.err; then
16766     ac_cpp_err=$ac_cxx_preproc_warn_flag
16767     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16768   else
16769     ac_cpp_err=
16770   fi
16771 else
16772   ac_cpp_err=yes
16773 fi
16774 if test -z "$ac_cpp_err"; then
16775   ac_header_preproc=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780   ac_header_preproc=no
16781 fi
16782 rm -f conftest.err conftest.$ac_ext
16783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784 echo "${ECHO_T}$ac_header_preproc" >&6
16785
16786 # So?  What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16788   yes:no: )
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793     ac_header_preproc=yes
16794     ;;
16795   no:yes:* )
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16808     (
16809       cat <<\_ASBOX
16810 ## ----------------------------------------- ##
16811 ## Report this to wx-dev@lists.wxwidgets.org ##
16812 ## ----------------------------------------- ##
16813 _ASBOX
16814     ) |
16815       sed "s/^/$as_me: WARNING:     /" >&2
16816     ;;
16817 esac
16818 echo "$as_me:$LINENO: checking for $ac_header" >&5
16819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   eval "$as_ac_Header=\$ac_header_preproc"
16824 fi
16825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827
16828 fi
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835
16836 done
16837
16838
16839 if test "$ac_cv_header_wchar_h" != "yes"; then
16840
16841 for ac_header in wcstr.h
16842 do
16843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845   echo "$as_me:$LINENO: checking for $ac_header" >&5
16846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 fi
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852 else
16853   # Is the header compilable?
16854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 $ac_includes_default
16863 #include <$ac_header>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867   (eval $ac_compile) 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; } &&
16880          { ac_try='test -s conftest.$ac_objext'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_header_compiler=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_header_compiler=no
16892 fi
16893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16895 echo "${ECHO_T}$ac_header_compiler" >&6
16896
16897 # Is the header present?
16898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 #include <$ac_header>
16907 _ACEOF
16908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16910   ac_status=$?
16911   grep -v '^ *+' conftest.er1 >conftest.err
16912   rm -f conftest.er1
16913   cat conftest.err >&5
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } >/dev/null; then
16916   if test -s conftest.err; then
16917     ac_cpp_err=$ac_cxx_preproc_warn_flag
16918     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16919   else
16920     ac_cpp_err=
16921   fi
16922 else
16923   ac_cpp_err=yes
16924 fi
16925 if test -z "$ac_cpp_err"; then
16926   ac_header_preproc=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931   ac_header_preproc=no
16932 fi
16933 rm -f conftest.err conftest.$ac_ext
16934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16935 echo "${ECHO_T}$ac_header_preproc" >&6
16936
16937 # So?  What about this header?
16938 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16939   yes:no: )
16940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16944     ac_header_preproc=yes
16945     ;;
16946   no:yes:* )
16947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16959     (
16960       cat <<\_ASBOX
16961 ## ----------------------------------------- ##
16962 ## Report this to wx-dev@lists.wxwidgets.org ##
16963 ## ----------------------------------------- ##
16964 _ASBOX
16965     ) |
16966       sed "s/^/$as_me: WARNING:     /" >&2
16967     ;;
16968 esac
16969 echo "$as_me:$LINENO: checking for $ac_header" >&5
16970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   eval "$as_ac_Header=\$ac_header_preproc"
16975 fi
16976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978
16979 fi
16980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16981   cat >>confdefs.h <<_ACEOF
16982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16983 _ACEOF
16984
16985 fi
16986
16987 done
16988
16989 fi
16990
16991
16992 for ac_header in fnmatch.h
16993 do
16994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996   echo "$as_me:$LINENO: checking for $ac_header" >&5
16997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 fi
17001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17003 else
17004   # Is the header compilable?
17005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 $ac_includes_default
17014 #include <$ac_header>
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17018   (eval $ac_compile) 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } &&
17031          { ac_try='test -s conftest.$ac_objext'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   ac_header_compiler=yes
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 ac_header_compiler=no
17043 fi
17044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17046 echo "${ECHO_T}$ac_header_compiler" >&6
17047
17048 # Is the header present?
17049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 #include <$ac_header>
17058 _ACEOF
17059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17061   ac_status=$?
17062   grep -v '^ *+' conftest.er1 >conftest.err
17063   rm -f conftest.er1
17064   cat conftest.err >&5
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } >/dev/null; then
17067   if test -s conftest.err; then
17068     ac_cpp_err=$ac_cxx_preproc_warn_flag
17069     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17070   else
17071     ac_cpp_err=
17072   fi
17073 else
17074   ac_cpp_err=yes
17075 fi
17076 if test -z "$ac_cpp_err"; then
17077   ac_header_preproc=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082   ac_header_preproc=no
17083 fi
17084 rm -f conftest.err conftest.$ac_ext
17085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17086 echo "${ECHO_T}$ac_header_preproc" >&6
17087
17088 # So?  What about this header?
17089 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17090   yes:no: )
17091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17095     ac_header_preproc=yes
17096     ;;
17097   no:yes:* )
17098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17110     (
17111       cat <<\_ASBOX
17112 ## ----------------------------------------- ##
17113 ## Report this to wx-dev@lists.wxwidgets.org ##
17114 ## ----------------------------------------- ##
17115 _ASBOX
17116     ) |
17117       sed "s/^/$as_me: WARNING:     /" >&2
17118     ;;
17119 esac
17120 echo "$as_me:$LINENO: checking for $ac_header" >&5
17121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   eval "$as_ac_Header=\$ac_header_preproc"
17126 fi
17127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17129
17130 fi
17131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17132   cat >>confdefs.h <<_ACEOF
17133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17134 _ACEOF
17135
17136 fi
17137
17138 done
17139
17140
17141
17142 for ac_header in langinfo.h
17143 do
17144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146   echo "$as_me:$LINENO: checking for $ac_header" >&5
17147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 fi
17151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17153 else
17154   # Is the header compilable?
17155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h.  */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h.  */
17163 $ac_includes_default
17164 #include <$ac_header>
17165 _ACEOF
17166 rm -f conftest.$ac_objext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17168   (eval $ac_compile) 2>conftest.er1
17169   ac_status=$?
17170   grep -v '^ *+' conftest.er1 >conftest.err
17171   rm -f conftest.er1
17172   cat conftest.err >&5
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } &&
17175          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177   (eval $ac_try) 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; } &&
17181          { ac_try='test -s conftest.$ac_objext'
17182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183   (eval $ac_try) 2>&5
17184   ac_status=$?
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); }; }; then
17187   ac_header_compiler=yes
17188 else
17189   echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_header_compiler=no
17193 fi
17194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17196 echo "${ECHO_T}$ac_header_compiler" >&6
17197
17198 # Is the header present?
17199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207 #include <$ac_header>
17208 _ACEOF
17209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } >/dev/null; then
17217   if test -s conftest.err; then
17218     ac_cpp_err=$ac_cxx_preproc_warn_flag
17219     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17220   else
17221     ac_cpp_err=
17222   fi
17223 else
17224   ac_cpp_err=yes
17225 fi
17226 if test -z "$ac_cpp_err"; then
17227   ac_header_preproc=yes
17228 else
17229   echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232   ac_header_preproc=no
17233 fi
17234 rm -f conftest.err conftest.$ac_ext
17235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17236 echo "${ECHO_T}$ac_header_preproc" >&6
17237
17238 # So?  What about this header?
17239 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17240   yes:no: )
17241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17245     ac_header_preproc=yes
17246     ;;
17247   no:yes:* )
17248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17260     (
17261       cat <<\_ASBOX
17262 ## ----------------------------------------- ##
17263 ## Report this to wx-dev@lists.wxwidgets.org ##
17264 ## ----------------------------------------- ##
17265 _ASBOX
17266     ) |
17267       sed "s/^/$as_me: WARNING:     /" >&2
17268     ;;
17269 esac
17270 echo "$as_me:$LINENO: checking for $ac_header" >&5
17271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   eval "$as_ac_Header=\$ac_header_preproc"
17276 fi
17277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17279
17280 fi
17281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17282   cat >>confdefs.h <<_ACEOF
17283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17284 _ACEOF
17285
17286 fi
17287
17288 done
17289
17290
17291 case "${host}" in
17292   *-pc-os2_emx | *-pc-os2-emx )
17293                   if test $ac_cv_header_langinfo_h = "yes" \
17294                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17295                      -o "$wx_cv_gccversion" = "EMX3" \
17296                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17297           LIBS="$LIBS -lintl"
17298       fi
17299   ;;
17300 esac
17301
17302
17303 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17304 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17305 if test "${ac_cv_c_const+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314
17315 int
17316 main ()
17317 {
17318 /* FIXME: Include the comments suggested by Paul. */
17319 #ifndef __cplusplus
17320   /* Ultrix mips cc rejects this.  */
17321   typedef int charset[2];
17322   const charset x;
17323   /* SunOS 4.1.1 cc rejects this.  */
17324   char const *const *ccp;
17325   char **p;
17326   /* NEC SVR4.0.2 mips cc rejects this.  */
17327   struct point {int x, y;};
17328   static struct point const zero = {0,0};
17329   /* AIX XL C 1.02.0.0 rejects this.
17330      It does not let you subtract one const X* pointer from another in
17331      an arm of an if-expression whose if-part is not a constant
17332      expression */
17333   const char *g = "string";
17334   ccp = &g + (g ? g-g : 0);
17335   /* HPUX 7.0 cc rejects these. */
17336   ++ccp;
17337   p = (char**) ccp;
17338   ccp = (char const *const *) p;
17339   { /* SCO 3.2v4 cc rejects this.  */
17340     char *t;
17341     char const *s = 0 ? (char *) 0 : (char const *) 0;
17342
17343     *t++ = 0;
17344   }
17345   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17346     int x[] = {25, 17};
17347     const int *foo = &x[0];
17348     ++foo;
17349   }
17350   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17351     typedef const int *iptr;
17352     iptr p = 0;
17353     ++p;
17354   }
17355   { /* AIX XL C 1.02.0.0 rejects this saying
17356        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17357     struct s { int j; const int *ap[3]; };
17358     struct s *b; b->j = 5;
17359   }
17360   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17361     const int foo = 10;
17362   }
17363 #endif
17364
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371   (eval $ac_compile) 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; } &&
17384          { ac_try='test -s conftest.$ac_objext'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; }; then
17390   ac_cv_c_const=yes
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 ac_cv_c_const=no
17396 fi
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17400 echo "${ECHO_T}$ac_cv_c_const" >&6
17401 if test $ac_cv_c_const = no; then
17402
17403 cat >>confdefs.h <<\_ACEOF
17404 #define const
17405 _ACEOF
17406
17407 fi
17408
17409 echo "$as_me:$LINENO: checking for inline" >&5
17410 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17411 if test "${ac_cv_c_inline+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414   ac_cv_c_inline=no
17415 for ac_kw in inline __inline__ __inline; do
17416   cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h.  */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h.  */
17422 #ifndef __cplusplus
17423 typedef int foo_t;
17424 static $ac_kw foo_t static_foo () {return 0; }
17425 $ac_kw foo_t foo () {return 0; }
17426 #endif
17427
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_cv_c_inline=$ac_kw; break
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 fi
17456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17457 done
17458
17459 fi
17460 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17461 echo "${ECHO_T}$ac_cv_c_inline" >&6
17462
17463
17464 case $ac_cv_c_inline in
17465   inline | yes) ;;
17466   *)
17467     case $ac_cv_c_inline in
17468       no) ac_val=;;
17469       *) ac_val=$ac_cv_c_inline;;
17470     esac
17471     cat >>confdefs.h <<_ACEOF
17472 #ifndef __cplusplus
17473 #define inline $ac_val
17474 #endif
17475 _ACEOF
17476     ;;
17477 esac
17478
17479
17480 echo "$as_me:$LINENO: checking for char" >&5
17481 echo $ECHO_N "checking for char... $ECHO_C" >&6
17482 if test "${ac_cv_type_char+set}" = set; then
17483   echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485   cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h.  */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h.  */
17491 $ac_includes_default
17492 int
17493 main ()
17494 {
17495 if ((char *) 0)
17496   return 0;
17497 if (sizeof (char))
17498   return 0;
17499   ;
17500   return 0;
17501 }
17502 _ACEOF
17503 rm -f conftest.$ac_objext
17504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17505   (eval $ac_compile) 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } &&
17512          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; } &&
17518          { ac_try='test -s conftest.$ac_objext'
17519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520   (eval $ac_try) 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; }; then
17524   ac_cv_type_char=yes
17525 else
17526   echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529 ac_cv_type_char=no
17530 fi
17531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17532 fi
17533 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17534 echo "${ECHO_T}$ac_cv_type_char" >&6
17535
17536 echo "$as_me:$LINENO: checking size of char" >&5
17537 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17538 if test "${ac_cv_sizeof_char+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541   if test "$ac_cv_type_char" = yes; then
17542   # The cast to unsigned long works around a bug in the HP C Compiler
17543   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17544   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17545   # This bug is HP SR number 8606223364.
17546   if test "$cross_compiling" = yes; then
17547   # Depending upon the size, compute the lo and hi bounds.
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 $ac_includes_default
17555 int
17556 main ()
17557 {
17558 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17559 test_array [0] = 0
17560
17561   ;
17562   return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567   (eval $ac_compile) 2>conftest.er1
17568   ac_status=$?
17569   grep -v '^ *+' conftest.er1 >conftest.err
17570   rm -f conftest.er1
17571   cat conftest.err >&5
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); } &&
17574          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest.$ac_objext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_lo=0 ac_mid=0
17587   while :; do
17588     cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 $ac_includes_default
17595 int
17596 main ()
17597 {
17598 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17599 test_array [0] = 0
17600
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607   (eval $ac_compile) 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } &&
17614          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; } &&
17620          { ac_try='test -s conftest.$ac_objext'
17621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622   (eval $ac_try) 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; }; then
17626   ac_hi=$ac_mid; break
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 ac_lo=`expr $ac_mid + 1`
17632                     if test $ac_lo -le $ac_mid; then
17633                       ac_lo= ac_hi=
17634                       break
17635                     fi
17636                     ac_mid=`expr 2 '*' $ac_mid + 1`
17637 fi
17638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17639   done
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650 $ac_includes_default
17651 int
17652 main ()
17653 {
17654 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17655 test_array [0] = 0
17656
17657   ;
17658   return 0;
17659 }
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663   (eval $ac_compile) 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } &&
17670          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; } &&
17676          { ac_try='test -s conftest.$ac_objext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_hi=-1 ac_mid=-1
17683   while :; do
17684     cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690 $ac_includes_default
17691 int
17692 main ()
17693 {
17694 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17695 test_array [0] = 0
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703   (eval $ac_compile) 2>conftest.er1
17704   ac_status=$?
17705   grep -v '^ *+' conftest.er1 >conftest.err
17706   rm -f conftest.er1
17707   cat conftest.err >&5
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); } &&
17710          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712   (eval $ac_try) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; } &&
17716          { ac_try='test -s conftest.$ac_objext'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; }; then
17722   ac_lo=$ac_mid; break
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_hi=`expr '(' $ac_mid ')' - 1`
17728                        if test $ac_mid -le $ac_hi; then
17729                          ac_lo= ac_hi=
17730                          break
17731                        fi
17732                        ac_mid=`expr 2 '*' $ac_mid`
17733 fi
17734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735   done
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 ac_lo= ac_hi=
17741 fi
17742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743 fi
17744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17745 # Binary search between lo and hi bounds.
17746 while test "x$ac_lo" != "x$ac_hi"; do
17747   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17748   cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754 $ac_includes_default
17755 int
17756 main ()
17757 {
17758 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17759 test_array [0] = 0
17760
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767   (eval $ac_compile) 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest.$ac_objext'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   ac_hi=$ac_mid
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_lo=`expr '(' $ac_mid ')' + 1`
17792 fi
17793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17794 done
17795 case $ac_lo in
17796 ?*) ac_cv_sizeof_char=$ac_lo;;
17797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17798 See \`config.log' for more details." >&5
17799 echo "$as_me: error: cannot compute sizeof (char), 77
17800 See \`config.log' for more details." >&2;}
17801    { (exit 1); exit 1; }; } ;;
17802 esac
17803 else
17804   if test "$cross_compiling" = yes; then
17805   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17806 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17807    { (exit 1); exit 1; }; }
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 $ac_includes_default
17816 long longval () { return (long) (sizeof (char)); }
17817 unsigned long ulongval () { return (long) (sizeof (char)); }
17818 #include <stdio.h>
17819 #include <stdlib.h>
17820 int
17821 main ()
17822 {
17823
17824   FILE *f = fopen ("conftest.val", "w");
17825   if (! f)
17826     exit (1);
17827   if (((long) (sizeof (char))) < 0)
17828     {
17829       long i = longval ();
17830       if (i != ((long) (sizeof (char))))
17831         exit (1);
17832       fprintf (f, "%ld\n", i);
17833     }
17834   else
17835     {
17836       unsigned long i = ulongval ();
17837       if (i != ((long) (sizeof (char))))
17838         exit (1);
17839       fprintf (f, "%lu\n", i);
17840     }
17841   exit (ferror (f) || fclose (f) != 0);
17842
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest$ac_exeext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849   (eval $ac_link) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854   (eval $ac_try) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   ac_cv_sizeof_char=`cat conftest.val`
17859 else
17860   echo "$as_me: program exited with status $ac_status" >&5
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ( exit $ac_status )
17865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17866 See \`config.log' for more details." >&5
17867 echo "$as_me: error: cannot compute sizeof (char), 77
17868 See \`config.log' for more details." >&2;}
17869    { (exit 1); exit 1; }; }
17870 fi
17871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17872 fi
17873 fi
17874 rm -f conftest.val
17875 else
17876   ac_cv_sizeof_char=0
17877 fi
17878 fi
17879 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17880 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17881 cat >>confdefs.h <<_ACEOF
17882 #define SIZEOF_CHAR $ac_cv_sizeof_char
17883 _ACEOF
17884
17885
17886 echo "$as_me:$LINENO: checking for short" >&5
17887 echo $ECHO_N "checking for short... $ECHO_C" >&6
17888 if test "${ac_cv_type_short+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 $ac_includes_default
17898 int
17899 main ()
17900 {
17901 if ((short *) 0)
17902   return 0;
17903 if (sizeof (short))
17904   return 0;
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911   (eval $ac_compile) 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } &&
17918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest.$ac_objext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   ac_cv_type_short=yes
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_type_short=no
17936 fi
17937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938 fi
17939 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17940 echo "${ECHO_T}$ac_cv_type_short" >&6
17941
17942 echo "$as_me:$LINENO: checking size of short" >&5
17943 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17944 if test "${ac_cv_sizeof_short+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   if test "$ac_cv_type_short" = yes; then
17948   # The cast to unsigned long works around a bug in the HP C Compiler
17949   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17950   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17951   # This bug is HP SR number 8606223364.
17952   if test "$cross_compiling" = yes; then
17953   # Depending upon the size, compute the lo and hi bounds.
17954 cat >conftest.$ac_ext <<_ACEOF
17955 /* confdefs.h.  */
17956 _ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h.  */
17960 $ac_includes_default
17961 int
17962 main ()
17963 {
17964 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17965 test_array [0] = 0
17966
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17973   (eval $ac_compile) 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } &&
17980          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982   (eval $ac_try) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; } &&
17986          { ac_try='test -s conftest.$ac_objext'
17987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988   (eval $ac_try) 2>&5
17989   ac_status=$?
17990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991   (exit $ac_status); }; }; then
17992   ac_lo=0 ac_mid=0
17993   while :; do
17994     cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 $ac_includes_default
18001 int
18002 main ()
18003 {
18004 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18005 test_array [0] = 0
18006
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013   (eval $ac_compile) 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest.$ac_objext'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; }; then
18032   ac_hi=$ac_mid; break
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ac_lo=`expr $ac_mid + 1`
18038                     if test $ac_lo -le $ac_mid; then
18039                       ac_lo= ac_hi=
18040                       break
18041                     fi
18042                     ac_mid=`expr 2 '*' $ac_mid + 1`
18043 fi
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045   done
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056 $ac_includes_default
18057 int
18058 main ()
18059 {
18060 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18061 test_array [0] = 0
18062
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18069   (eval $ac_compile) 2>conftest.er1
18070   ac_status=$?
18071   grep -v '^ *+' conftest.er1 >conftest.err
18072   rm -f conftest.er1
18073   cat conftest.err >&5
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); } &&
18076          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078   (eval $ac_try) 2>&5
18079   ac_status=$?
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); }; } &&
18082          { ac_try='test -s conftest.$ac_objext'
18083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084   (eval $ac_try) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088   ac_hi=-1 ac_mid=-1
18089   while :; do
18090     cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096 $ac_includes_default
18097 int
18098 main ()
18099 {
18100 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18101 test_array [0] = 0
18102
18103   ;
18104   return 0;
18105 }
18106 _ACEOF
18107 rm -f conftest.$ac_objext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109   (eval $ac_compile) 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } &&
18116          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; } &&
18122          { ac_try='test -s conftest.$ac_objext'
18123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124   (eval $ac_try) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; }; then
18128   ac_lo=$ac_mid; break
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_hi=`expr '(' $ac_mid ')' - 1`
18134                        if test $ac_mid -le $ac_hi; then
18135                          ac_lo= ac_hi=
18136                          break
18137                        fi
18138                        ac_mid=`expr 2 '*' $ac_mid`
18139 fi
18140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18141   done
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ac_lo= ac_hi=
18147 fi
18148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18149 fi
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151 # Binary search between lo and hi bounds.
18152 while test "x$ac_lo" != "x$ac_hi"; do
18153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 $ac_includes_default
18161 int
18162 main ()
18163 {
18164 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18165 test_array [0] = 0
18166
18167   ;
18168   return 0;
18169 }
18170 _ACEOF
18171 rm -f conftest.$ac_objext
18172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18173   (eval $ac_compile) 2>conftest.er1
18174   ac_status=$?
18175   grep -v '^ *+' conftest.er1 >conftest.err
18176   rm -f conftest.er1
18177   cat conftest.err >&5
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } &&
18180          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182   (eval $ac_try) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188   (eval $ac_try) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_hi=$ac_mid
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 ac_lo=`expr '(' $ac_mid ')' + 1`
18198 fi
18199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200 done
18201 case $ac_lo in
18202 ?*) ac_cv_sizeof_short=$ac_lo;;
18203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18204 See \`config.log' for more details." >&5
18205 echo "$as_me: error: cannot compute sizeof (short), 77
18206 See \`config.log' for more details." >&2;}
18207    { (exit 1); exit 1; }; } ;;
18208 esac
18209 else
18210   if test "$cross_compiling" = yes; then
18211   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18212 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18213    { (exit 1); exit 1; }; }
18214 else
18215   cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221 $ac_includes_default
18222 long longval () { return (long) (sizeof (short)); }
18223 unsigned long ulongval () { return (long) (sizeof (short)); }
18224 #include <stdio.h>
18225 #include <stdlib.h>
18226 int
18227 main ()
18228 {
18229
18230   FILE *f = fopen ("conftest.val", "w");
18231   if (! f)
18232     exit (1);
18233   if (((long) (sizeof (short))) < 0)
18234     {
18235       long i = longval ();
18236       if (i != ((long) (sizeof (short))))
18237         exit (1);
18238       fprintf (f, "%ld\n", i);
18239     }
18240   else
18241     {
18242       unsigned long i = ulongval ();
18243       if (i != ((long) (sizeof (short))))
18244         exit (1);
18245       fprintf (f, "%lu\n", i);
18246     }
18247   exit (ferror (f) || fclose (f) != 0);
18248
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255   (eval $ac_link) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); }; }; then
18264   ac_cv_sizeof_short=`cat conftest.val`
18265 else
18266   echo "$as_me: program exited with status $ac_status" >&5
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ( exit $ac_status )
18271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18272 See \`config.log' for more details." >&5
18273 echo "$as_me: error: cannot compute sizeof (short), 77
18274 See \`config.log' for more details." >&2;}
18275    { (exit 1); exit 1; }; }
18276 fi
18277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18278 fi
18279 fi
18280 rm -f conftest.val
18281 else
18282   ac_cv_sizeof_short=0
18283 fi
18284 fi
18285 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18286 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18287 cat >>confdefs.h <<_ACEOF
18288 #define SIZEOF_SHORT $ac_cv_sizeof_short
18289 _ACEOF
18290
18291
18292 echo "$as_me:$LINENO: checking for void *" >&5
18293 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18294 if test "${ac_cv_type_void_p+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h.  */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h.  */
18303 $ac_includes_default
18304 int
18305 main ()
18306 {
18307 if ((void * *) 0)
18308   return 0;
18309 if (sizeof (void *))
18310   return 0;
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317   (eval $ac_compile) 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; } &&
18330          { ac_try='test -s conftest.$ac_objext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   ac_cv_type_void_p=yes
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 ac_cv_type_void_p=no
18342 fi
18343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18344 fi
18345 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18346 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18347
18348 echo "$as_me:$LINENO: checking size of void *" >&5
18349 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18350 if test "${ac_cv_sizeof_void_p+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   if test "$ac_cv_type_void_p" = yes; then
18354   # The cast to unsigned long works around a bug in the HP C Compiler
18355   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18356   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18357   # This bug is HP SR number 8606223364.
18358   if test "$cross_compiling" = yes; then
18359   # Depending upon the size, compute the lo and hi bounds.
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366 $ac_includes_default
18367 int
18368 main ()
18369 {
18370 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18371 test_array [0] = 0
18372
18373   ;
18374   return 0;
18375 }
18376 _ACEOF
18377 rm -f conftest.$ac_objext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18379   (eval $ac_compile) 2>conftest.er1
18380   ac_status=$?
18381   grep -v '^ *+' conftest.er1 >conftest.err
18382   rm -f conftest.er1
18383   cat conftest.err >&5
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); } &&
18386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388   (eval $ac_try) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; } &&
18392          { ac_try='test -s conftest.$ac_objext'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; }; then
18398   ac_lo=0 ac_mid=0
18399   while :; do
18400     cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h.  */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h.  */
18406 $ac_includes_default
18407 int
18408 main ()
18409 {
18410 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18411 test_array [0] = 0
18412
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419   (eval $ac_compile) 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } &&
18426          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428   (eval $ac_try) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; } &&
18432          { ac_try='test -s conftest.$ac_objext'
18433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; }; then
18438   ac_hi=$ac_mid; break
18439 else
18440   echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_lo=`expr $ac_mid + 1`
18444                     if test $ac_lo -le $ac_mid; then
18445                       ac_lo= ac_hi=
18446                       break
18447                     fi
18448                     ac_mid=`expr 2 '*' $ac_mid + 1`
18449 fi
18450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18451   done
18452 else
18453   echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462 $ac_includes_default
18463 int
18464 main ()
18465 {
18466 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18467 test_array [0] = 0
18468
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18475   (eval $ac_compile) 2>conftest.er1
18476   ac_status=$?
18477   grep -v '^ *+' conftest.er1 >conftest.err
18478   rm -f conftest.er1
18479   cat conftest.err >&5
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } &&
18482          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484   (eval $ac_try) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; } &&
18488          { ac_try='test -s conftest.$ac_objext'
18489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490   (eval $ac_try) 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; }; then
18494   ac_hi=-1 ac_mid=-1
18495   while :; do
18496     cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502 $ac_includes_default
18503 int
18504 main ()
18505 {
18506 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18507 test_array [0] = 0
18508
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515   (eval $ac_compile) 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } &&
18522          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524   (eval $ac_try) 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; } &&
18528          { ac_try='test -s conftest.$ac_objext'
18529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530   (eval $ac_try) 2>&5
18531   ac_status=$?
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); }; }; then
18534   ac_lo=$ac_mid; break
18535 else
18536   echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18538
18539 ac_hi=`expr '(' $ac_mid ')' - 1`
18540                        if test $ac_mid -le $ac_hi; then
18541                          ac_lo= ac_hi=
18542                          break
18543                        fi
18544                        ac_mid=`expr 2 '*' $ac_mid`
18545 fi
18546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18547   done
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 ac_lo= ac_hi=
18553 fi
18554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18555 fi
18556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557 # Binary search between lo and hi bounds.
18558 while test "x$ac_lo" != "x$ac_hi"; do
18559   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18560   cat >conftest.$ac_ext <<_ACEOF
18561 /* confdefs.h.  */
18562 _ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h.  */
18566 $ac_includes_default
18567 int
18568 main ()
18569 {
18570 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18571 test_array [0] = 0
18572
18573   ;
18574   return 0;
18575 }
18576 _ACEOF
18577 rm -f conftest.$ac_objext
18578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579   (eval $ac_compile) 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } &&
18586          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588   (eval $ac_try) 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; } &&
18592          { ac_try='test -s conftest.$ac_objext'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; }; then
18598   ac_hi=$ac_mid
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603 ac_lo=`expr '(' $ac_mid ')' + 1`
18604 fi
18605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18606 done
18607 case $ac_lo in
18608 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18610 See \`config.log' for more details." >&5
18611 echo "$as_me: error: cannot compute sizeof (void *), 77
18612 See \`config.log' for more details." >&2;}
18613    { (exit 1); exit 1; }; } ;;
18614 esac
18615 else
18616   if test "$cross_compiling" = yes; then
18617   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18618 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18619    { (exit 1); exit 1; }; }
18620 else
18621   cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 $ac_includes_default
18628 long longval () { return (long) (sizeof (void *)); }
18629 unsigned long ulongval () { return (long) (sizeof (void *)); }
18630 #include <stdio.h>
18631 #include <stdlib.h>
18632 int
18633 main ()
18634 {
18635
18636   FILE *f = fopen ("conftest.val", "w");
18637   if (! f)
18638     exit (1);
18639   if (((long) (sizeof (void *))) < 0)
18640     {
18641       long i = longval ();
18642       if (i != ((long) (sizeof (void *))))
18643         exit (1);
18644       fprintf (f, "%ld\n", i);
18645     }
18646   else
18647     {
18648       unsigned long i = ulongval ();
18649       if (i != ((long) (sizeof (void *))))
18650         exit (1);
18651       fprintf (f, "%lu\n", i);
18652     }
18653   exit (ferror (f) || fclose (f) != 0);
18654
18655   ;
18656   return 0;
18657 }
18658 _ACEOF
18659 rm -f conftest$ac_exeext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661   (eval $ac_link) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666   (eval $ac_try) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; }; then
18670   ac_cv_sizeof_void_p=`cat conftest.val`
18671 else
18672   echo "$as_me: program exited with status $ac_status" >&5
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ( exit $ac_status )
18677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18678 See \`config.log' for more details." >&5
18679 echo "$as_me: error: cannot compute sizeof (void *), 77
18680 See \`config.log' for more details." >&2;}
18681    { (exit 1); exit 1; }; }
18682 fi
18683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18684 fi
18685 fi
18686 rm -f conftest.val
18687 else
18688   ac_cv_sizeof_void_p=0
18689 fi
18690 fi
18691 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18692 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18693 cat >>confdefs.h <<_ACEOF
18694 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18695 _ACEOF
18696
18697
18698 echo "$as_me:$LINENO: checking for int" >&5
18699 echo $ECHO_N "checking for int... $ECHO_C" >&6
18700 if test "${ac_cv_type_int+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709 $ac_includes_default
18710 int
18711 main ()
18712 {
18713 if ((int *) 0)
18714   return 0;
18715 if (sizeof (int))
18716   return 0;
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest.$ac_objext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723   (eval $ac_compile) 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } &&
18730          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732   (eval $ac_try) 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); }; } &&
18736          { ac_try='test -s conftest.$ac_objext'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; }; then
18742   ac_cv_type_int=yes
18743 else
18744   echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747 ac_cv_type_int=no
18748 fi
18749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18750 fi
18751 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18752 echo "${ECHO_T}$ac_cv_type_int" >&6
18753
18754 echo "$as_me:$LINENO: checking size of int" >&5
18755 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18756 if test "${ac_cv_sizeof_int+set}" = set; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759   if test "$ac_cv_type_int" = yes; then
18760   # The cast to unsigned long works around a bug in the HP C Compiler
18761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18763   # This bug is HP SR number 8606223364.
18764   if test "$cross_compiling" = yes; then
18765   # Depending upon the size, compute the lo and hi bounds.
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772 $ac_includes_default
18773 int
18774 main ()
18775 {
18776 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18777 test_array [0] = 0
18778
18779   ;
18780   return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785   (eval $ac_compile) 2>conftest.er1
18786   ac_status=$?
18787   grep -v '^ *+' conftest.er1 >conftest.err
18788   rm -f conftest.er1
18789   cat conftest.err >&5
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); } &&
18792          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794   (eval $ac_try) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest.$ac_objext'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   ac_lo=0 ac_mid=0
18805   while :; do
18806     cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h.  */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h.  */
18812 $ac_includes_default
18813 int
18814 main ()
18815 {
18816 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18817 test_array [0] = 0
18818
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18825   (eval $ac_compile) 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } &&
18832          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834   (eval $ac_try) 2>&5
18835   ac_status=$?
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); }; } &&
18838          { ac_try='test -s conftest.$ac_objext'
18839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840   (eval $ac_try) 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; }; then
18844   ac_hi=$ac_mid; break
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 ac_lo=`expr $ac_mid + 1`
18850                     if test $ac_lo -le $ac_mid; then
18851                       ac_lo= ac_hi=
18852                       break
18853                     fi
18854                     ac_mid=`expr 2 '*' $ac_mid + 1`
18855 fi
18856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18857   done
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868 $ac_includes_default
18869 int
18870 main ()
18871 {
18872 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18873 test_array [0] = 0
18874
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 rm -f conftest.$ac_objext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18881   (eval $ac_compile) 2>conftest.er1
18882   ac_status=$?
18883   grep -v '^ *+' conftest.er1 >conftest.err
18884   rm -f conftest.er1
18885   cat conftest.err >&5
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest.$ac_objext'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   ac_hi=-1 ac_mid=-1
18901   while :; do
18902     cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 $ac_includes_default
18909 int
18910 main ()
18911 {
18912 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18913 test_array [0] = 0
18914
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext
18920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18921   (eval $ac_compile) 2>conftest.er1
18922   ac_status=$?
18923   grep -v '^ *+' conftest.er1 >conftest.err
18924   rm -f conftest.er1
18925   cat conftest.err >&5
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); } &&
18928          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930   (eval $ac_try) 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; } &&
18934          { ac_try='test -s conftest.$ac_objext'
18935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936   (eval $ac_try) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; }; then
18940   ac_lo=$ac_mid; break
18941 else
18942   echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 ac_hi=`expr '(' $ac_mid ')' - 1`
18946                        if test $ac_mid -le $ac_hi; then
18947                          ac_lo= ac_hi=
18948                          break
18949                        fi
18950                        ac_mid=`expr 2 '*' $ac_mid`
18951 fi
18952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18953   done
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_lo= ac_hi=
18959 fi
18960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961 fi
18962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18963 # Binary search between lo and hi bounds.
18964 while test "x$ac_lo" != "x$ac_hi"; do
18965   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18966   cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972 $ac_includes_default
18973 int
18974 main ()
18975 {
18976 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18977 test_array [0] = 0
18978
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext
18984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18985   (eval $ac_compile) 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; } &&
18998          { ac_try='test -s conftest.$ac_objext'
18999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000   (eval $ac_try) 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; }; then
19004   ac_hi=$ac_mid
19005 else
19006   echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_lo=`expr '(' $ac_mid ')' + 1`
19010 fi
19011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012 done
19013 case $ac_lo in
19014 ?*) ac_cv_sizeof_int=$ac_lo;;
19015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19016 See \`config.log' for more details." >&5
19017 echo "$as_me: error: cannot compute sizeof (int), 77
19018 See \`config.log' for more details." >&2;}
19019    { (exit 1); exit 1; }; } ;;
19020 esac
19021 else
19022   if test "$cross_compiling" = yes; then
19023   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19024 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19025    { (exit 1); exit 1; }; }
19026 else
19027   cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h.  */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h.  */
19033 $ac_includes_default
19034 long longval () { return (long) (sizeof (int)); }
19035 unsigned long ulongval () { return (long) (sizeof (int)); }
19036 #include <stdio.h>
19037 #include <stdlib.h>
19038 int
19039 main ()
19040 {
19041
19042   FILE *f = fopen ("conftest.val", "w");
19043   if (! f)
19044     exit (1);
19045   if (((long) (sizeof (int))) < 0)
19046     {
19047       long i = longval ();
19048       if (i != ((long) (sizeof (int))))
19049         exit (1);
19050       fprintf (f, "%ld\n", i);
19051     }
19052   else
19053     {
19054       unsigned long i = ulongval ();
19055       if (i != ((long) (sizeof (int))))
19056         exit (1);
19057       fprintf (f, "%lu\n", i);
19058     }
19059   exit (ferror (f) || fclose (f) != 0);
19060
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067   (eval $ac_link) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_cv_sizeof_int=`cat conftest.val`
19077 else
19078   echo "$as_me: program exited with status $ac_status" >&5
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082 ( exit $ac_status )
19083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19084 See \`config.log' for more details." >&5
19085 echo "$as_me: error: cannot compute sizeof (int), 77
19086 See \`config.log' for more details." >&2;}
19087    { (exit 1); exit 1; }; }
19088 fi
19089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19090 fi
19091 fi
19092 rm -f conftest.val
19093 else
19094   ac_cv_sizeof_int=0
19095 fi
19096 fi
19097 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19098 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19099 cat >>confdefs.h <<_ACEOF
19100 #define SIZEOF_INT $ac_cv_sizeof_int
19101 _ACEOF
19102
19103
19104 echo "$as_me:$LINENO: checking for long" >&5
19105 echo $ECHO_N "checking for long... $ECHO_C" >&6
19106 if test "${ac_cv_type_long+set}" = set; then
19107   echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109   cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h.  */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h.  */
19115 $ac_includes_default
19116 int
19117 main ()
19118 {
19119 if ((long *) 0)
19120   return 0;
19121 if (sizeof (long))
19122   return 0;
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129   (eval $ac_compile) 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } &&
19136          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest.$ac_objext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   ac_cv_type_long=yes
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_cv_type_long=no
19154 fi
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156 fi
19157 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19158 echo "${ECHO_T}$ac_cv_type_long" >&6
19159
19160 echo "$as_me:$LINENO: checking size of long" >&5
19161 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19162 if test "${ac_cv_sizeof_long+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165   if test "$ac_cv_type_long" = yes; then
19166   # The cast to unsigned long works around a bug in the HP C Compiler
19167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19169   # This bug is HP SR number 8606223364.
19170   if test "$cross_compiling" = yes; then
19171   # Depending upon the size, compute the lo and hi bounds.
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 $ac_includes_default
19179 int
19180 main ()
19181 {
19182 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19183 test_array [0] = 0
19184
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191   (eval $ac_compile) 2>conftest.er1
19192   ac_status=$?
19193   grep -v '^ *+' conftest.er1 >conftest.err
19194   rm -f conftest.er1
19195   cat conftest.err >&5
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } &&
19198          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200   (eval $ac_try) 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest.$ac_objext'
19205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206   (eval $ac_try) 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); }; }; then
19210   ac_lo=0 ac_mid=0
19211   while :; do
19212     cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 $ac_includes_default
19219 int
19220 main ()
19221 {
19222 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19223 test_array [0] = 0
19224
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231   (eval $ac_compile) 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } &&
19238          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest.$ac_objext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_hi=$ac_mid; break
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_lo=`expr $ac_mid + 1`
19256                     if test $ac_lo -le $ac_mid; then
19257                       ac_lo= ac_hi=
19258                       break
19259                     fi
19260                     ac_mid=`expr 2 '*' $ac_mid + 1`
19261 fi
19262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19263   done
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274 $ac_includes_default
19275 int
19276 main ()
19277 {
19278 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19279 test_array [0] = 0
19280
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287   (eval $ac_compile) 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } &&
19294          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296   (eval $ac_try) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest.$ac_objext'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; }; then
19306   ac_hi=-1 ac_mid=-1
19307   while :; do
19308     cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 $ac_includes_default
19315 int
19316 main ()
19317 {
19318 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19319 test_array [0] = 0
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19327   (eval $ac_compile) 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } &&
19334          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336   (eval $ac_try) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest.$ac_objext'
19341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342   (eval $ac_try) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   ac_lo=$ac_mid; break
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351 ac_hi=`expr '(' $ac_mid ')' - 1`
19352                        if test $ac_mid -le $ac_hi; then
19353                          ac_lo= ac_hi=
19354                          break
19355                        fi
19356                        ac_mid=`expr 2 '*' $ac_mid`
19357 fi
19358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19359   done
19360 else
19361   echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364 ac_lo= ac_hi=
19365 fi
19366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19367 fi
19368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19369 # Binary search between lo and hi bounds.
19370 while test "x$ac_lo" != "x$ac_hi"; do
19371   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19372   cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378 $ac_includes_default
19379 int
19380 main ()
19381 {
19382 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19383 test_array [0] = 0
19384
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19391   (eval $ac_compile) 2>conftest.er1
19392   ac_status=$?
19393   grep -v '^ *+' conftest.er1 >conftest.err
19394   rm -f conftest.er1
19395   cat conftest.err >&5
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); } &&
19398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; } &&
19404          { ac_try='test -s conftest.$ac_objext'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; }; then
19410   ac_hi=$ac_mid
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 ac_lo=`expr '(' $ac_mid ')' + 1`
19416 fi
19417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418 done
19419 case $ac_lo in
19420 ?*) ac_cv_sizeof_long=$ac_lo;;
19421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19422 See \`config.log' for more details." >&5
19423 echo "$as_me: error: cannot compute sizeof (long), 77
19424 See \`config.log' for more details." >&2;}
19425    { (exit 1); exit 1; }; } ;;
19426 esac
19427 else
19428   if test "$cross_compiling" = yes; then
19429   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19430 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19431    { (exit 1); exit 1; }; }
19432 else
19433   cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 $ac_includes_default
19440 long longval () { return (long) (sizeof (long)); }
19441 unsigned long ulongval () { return (long) (sizeof (long)); }
19442 #include <stdio.h>
19443 #include <stdlib.h>
19444 int
19445 main ()
19446 {
19447
19448   FILE *f = fopen ("conftest.val", "w");
19449   if (! f)
19450     exit (1);
19451   if (((long) (sizeof (long))) < 0)
19452     {
19453       long i = longval ();
19454       if (i != ((long) (sizeof (long))))
19455         exit (1);
19456       fprintf (f, "%ld\n", i);
19457     }
19458   else
19459     {
19460       unsigned long i = ulongval ();
19461       if (i != ((long) (sizeof (long))))
19462         exit (1);
19463       fprintf (f, "%lu\n", i);
19464     }
19465   exit (ferror (f) || fclose (f) != 0);
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473   (eval $ac_link) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_sizeof_long=`cat conftest.val`
19483 else
19484   echo "$as_me: program exited with status $ac_status" >&5
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 ( exit $ac_status )
19489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19490 See \`config.log' for more details." >&5
19491 echo "$as_me: error: cannot compute sizeof (long), 77
19492 See \`config.log' for more details." >&2;}
19493    { (exit 1); exit 1; }; }
19494 fi
19495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 fi
19498 rm -f conftest.val
19499 else
19500   ac_cv_sizeof_long=0
19501 fi
19502 fi
19503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19504 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19505 cat >>confdefs.h <<_ACEOF
19506 #define SIZEOF_LONG $ac_cv_sizeof_long
19507 _ACEOF
19508
19509
19510 echo "$as_me:$LINENO: checking for size_t" >&5
19511 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19512 if test "${ac_cv_type_size_t+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h.  */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h.  */
19521 $ac_includes_default
19522 int
19523 main ()
19524 {
19525 if ((size_t *) 0)
19526   return 0;
19527 if (sizeof (size_t))
19528   return 0;
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535   (eval $ac_compile) 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } &&
19542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest.$ac_objext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_cv_type_size_t=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_cv_type_size_t=no
19560 fi
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 fi
19563 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19564 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19565
19566 echo "$as_me:$LINENO: checking size of size_t" >&5
19567 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19568 if test "${ac_cv_sizeof_size_t+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   if test "$ac_cv_type_size_t" = yes; then
19572   # The cast to unsigned long works around a bug in the HP C Compiler
19573   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19574   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19575   # This bug is HP SR number 8606223364.
19576   if test "$cross_compiling" = yes; then
19577   # Depending upon the size, compute the lo and hi bounds.
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h.  */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h.  */
19584 $ac_includes_default
19585 int
19586 main ()
19587 {
19588 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19589 test_array [0] = 0
19590
19591   ;
19592   return 0;
19593 }
19594 _ACEOF
19595 rm -f conftest.$ac_objext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597   (eval $ac_compile) 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606   (eval $ac_try) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; } &&
19610          { ac_try='test -s conftest.$ac_objext'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_lo=0 ac_mid=0
19617   while :; do
19618     cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624 $ac_includes_default
19625 int
19626 main ()
19627 {
19628 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19629 test_array [0] = 0
19630
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19637   (eval $ac_compile) 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646   (eval $ac_try) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest.$ac_objext'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   ac_hi=$ac_mid; break
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_lo=`expr $ac_mid + 1`
19662                     if test $ac_lo -le $ac_mid; then
19663                       ac_lo= ac_hi=
19664                       break
19665                     fi
19666                     ac_mid=`expr 2 '*' $ac_mid + 1`
19667 fi
19668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19669   done
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680 $ac_includes_default
19681 int
19682 main ()
19683 {
19684 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19685 test_array [0] = 0
19686
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19693   (eval $ac_compile) 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } &&
19700          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702   (eval $ac_try) 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; } &&
19706          { ac_try='test -s conftest.$ac_objext'
19707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708   (eval $ac_try) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; }; then
19712   ac_hi=-1 ac_mid=-1
19713   while :; do
19714     cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 $ac_includes_default
19721 int
19722 main ()
19723 {
19724 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19725 test_array [0] = 0
19726
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733   (eval $ac_compile) 2>conftest.er1
19734   ac_status=$?
19735   grep -v '^ *+' conftest.er1 >conftest.err
19736   rm -f conftest.er1
19737   cat conftest.err >&5
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); } &&
19740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; } &&
19746          { ac_try='test -s conftest.$ac_objext'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; }; then
19752   ac_lo=$ac_mid; break
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ac_hi=`expr '(' $ac_mid ')' - 1`
19758                        if test $ac_mid -le $ac_hi; then
19759                          ac_lo= ac_hi=
19760                          break
19761                        fi
19762                        ac_mid=`expr 2 '*' $ac_mid`
19763 fi
19764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765   done
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_lo= ac_hi=
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 fi
19774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775 # Binary search between lo and hi bounds.
19776 while test "x$ac_lo" != "x$ac_hi"; do
19777   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19778   cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 $ac_includes_default
19785 int
19786 main ()
19787 {
19788 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19789 test_array [0] = 0
19790
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797   (eval $ac_compile) 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; } &&
19810          { ac_try='test -s conftest.$ac_objext'
19811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812   (eval $ac_try) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_hi=$ac_mid
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_lo=`expr '(' $ac_mid ')' + 1`
19822 fi
19823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19824 done
19825 case $ac_lo in
19826 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19828 See \`config.log' for more details." >&5
19829 echo "$as_me: error: cannot compute sizeof (size_t), 77
19830 See \`config.log' for more details." >&2;}
19831    { (exit 1); exit 1; }; } ;;
19832 esac
19833 else
19834   if test "$cross_compiling" = yes; then
19835   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19836 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19837    { (exit 1); exit 1; }; }
19838 else
19839   cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 $ac_includes_default
19846 long longval () { return (long) (sizeof (size_t)); }
19847 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19848 #include <stdio.h>
19849 #include <stdlib.h>
19850 int
19851 main ()
19852 {
19853
19854   FILE *f = fopen ("conftest.val", "w");
19855   if (! f)
19856     exit (1);
19857   if (((long) (sizeof (size_t))) < 0)
19858     {
19859       long i = longval ();
19860       if (i != ((long) (sizeof (size_t))))
19861         exit (1);
19862       fprintf (f, "%ld\n", i);
19863     }
19864   else
19865     {
19866       unsigned long i = ulongval ();
19867       if (i != ((long) (sizeof (size_t))))
19868         exit (1);
19869       fprintf (f, "%lu\n", i);
19870     }
19871   exit (ferror (f) || fclose (f) != 0);
19872
19873   ;
19874   return 0;
19875 }
19876 _ACEOF
19877 rm -f conftest$ac_exeext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879   (eval $ac_link) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_cv_sizeof_size_t=`cat conftest.val`
19889 else
19890   echo "$as_me: program exited with status $ac_status" >&5
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ( exit $ac_status )
19895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19896 See \`config.log' for more details." >&5
19897 echo "$as_me: error: cannot compute sizeof (size_t), 77
19898 See \`config.log' for more details." >&2;}
19899    { (exit 1); exit 1; }; }
19900 fi
19901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19902 fi
19903 fi
19904 rm -f conftest.val
19905 else
19906   ac_cv_sizeof_size_t=0
19907 fi
19908 fi
19909 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19910 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19911 cat >>confdefs.h <<_ACEOF
19912 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19913 _ACEOF
19914
19915
19916
19917 case "${host}" in
19918     arm-*-linux* )
19919         echo "$as_me:$LINENO: checking for long long" >&5
19920 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19921 if test "${ac_cv_type_long_long+set}" = set; then
19922   echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924   cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h.  */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h.  */
19930 $ac_includes_default
19931 int
19932 main ()
19933 {
19934 if ((long long *) 0)
19935   return 0;
19936 if (sizeof (long long))
19937   return 0;
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.$ac_objext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19944   (eval $ac_compile) 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest.$ac_objext'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   ac_cv_type_long_long=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 ac_cv_type_long_long=no
19969 fi
19970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19971 fi
19972 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19973 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19974
19975 echo "$as_me:$LINENO: checking size of long long" >&5
19976 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19977 if test "${ac_cv_sizeof_long_long+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   if test "$ac_cv_type_long_long" = yes; then
19981   # The cast to unsigned long works around a bug in the HP C Compiler
19982   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19983   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19984   # This bug is HP SR number 8606223364.
19985   if test "$cross_compiling" = yes; then
19986   # Depending upon the size, compute the lo and hi bounds.
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 $ac_includes_default
19994 int
19995 main ()
19996 {
19997 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19998 test_array [0] = 0
19999
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006   (eval $ac_compile) 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } &&
20013          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; } &&
20019          { ac_try='test -s conftest.$ac_objext'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; }; then
20025   ac_lo=0 ac_mid=0
20026   while :; do
20027     cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 $ac_includes_default
20034 int
20035 main ()
20036 {
20037 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20038 test_array [0] = 0
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046   (eval $ac_compile) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest.$ac_objext'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_hi=$ac_mid; break
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 ac_lo=`expr $ac_mid + 1`
20071                     if test $ac_lo -le $ac_mid; then
20072                       ac_lo= ac_hi=
20073                       break
20074                     fi
20075                     ac_mid=`expr 2 '*' $ac_mid + 1`
20076 fi
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078   done
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090 int
20091 main ()
20092 {
20093 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20094 test_array [0] = 0
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102   (eval $ac_compile) 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } &&
20109          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; } &&
20115          { ac_try='test -s conftest.$ac_objext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_hi=-1 ac_mid=-1
20122   while :; do
20123     cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 $ac_includes_default
20130 int
20131 main ()
20132 {
20133 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20134 test_array [0] = 0
20135
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest.$ac_objext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_lo=$ac_mid; break
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ac_hi=`expr '(' $ac_mid ')' - 1`
20167                        if test $ac_mid -le $ac_hi; then
20168                          ac_lo= ac_hi=
20169                          break
20170                        fi
20171                        ac_mid=`expr 2 '*' $ac_mid`
20172 fi
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174   done
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_lo= ac_hi=
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 fi
20183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 # Binary search between lo and hi bounds.
20185 while test "x$ac_lo" != "x$ac_hi"; do
20186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 $ac_includes_default
20194 int
20195 main ()
20196 {
20197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20198 test_array [0] = 0
20199
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206   (eval $ac_compile) 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; } &&
20219          { ac_try='test -s conftest.$ac_objext'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   ac_hi=$ac_mid
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ac_lo=`expr '(' $ac_mid ')' + 1`
20231 fi
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20233 done
20234 case $ac_lo in
20235 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20237 See \`config.log' for more details." >&5
20238 echo "$as_me: error: cannot compute sizeof (long long), 77
20239 See \`config.log' for more details." >&2;}
20240    { (exit 1); exit 1; }; } ;;
20241 esac
20242 else
20243   if test "$cross_compiling" = yes; then
20244   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20245 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20246    { (exit 1); exit 1; }; }
20247 else
20248   cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 $ac_includes_default
20255 long longval () { return (long) (sizeof (long long)); }
20256 unsigned long ulongval () { return (long) (sizeof (long long)); }
20257 #include <stdio.h>
20258 #include <stdlib.h>
20259 int
20260 main ()
20261 {
20262
20263   FILE *f = fopen ("conftest.val", "w");
20264   if (! f)
20265     exit (1);
20266   if (((long) (sizeof (long long))) < 0)
20267     {
20268       long i = longval ();
20269       if (i != ((long) (sizeof (long long))))
20270         exit (1);
20271       fprintf (f, "%ld\n", i);
20272     }
20273   else
20274     {
20275       unsigned long i = ulongval ();
20276       if (i != ((long) (sizeof (long long))))
20277         exit (1);
20278       fprintf (f, "%lu\n", i);
20279     }
20280   exit (ferror (f) || fclose (f) != 0);
20281
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest$ac_exeext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20288   (eval $ac_link) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_sizeof_long_long=`cat conftest.val`
20298 else
20299   echo "$as_me: program exited with status $ac_status" >&5
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ( exit $ac_status )
20304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20305 See \`config.log' for more details." >&5
20306 echo "$as_me: error: cannot compute sizeof (long long), 77
20307 See \`config.log' for more details." >&2;}
20308    { (exit 1); exit 1; }; }
20309 fi
20310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20311 fi
20312 fi
20313 rm -f conftest.val
20314 else
20315   ac_cv_sizeof_long_long=0
20316 fi
20317 fi
20318 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20319 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20320 cat >>confdefs.h <<_ACEOF
20321 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20322 _ACEOF
20323
20324
20325     ;;
20326     *-hp-hpux* )
20327         echo "$as_me:$LINENO: checking for long long" >&5
20328 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20329 if test "${ac_cv_type_long_long+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338 $ac_includes_default
20339 int
20340 main ()
20341 {
20342 if ((long long *) 0)
20343   return 0;
20344 if (sizeof (long long))
20345   return 0;
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352   (eval $ac_compile) 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } &&
20359          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; } &&
20365          { ac_try='test -s conftest.$ac_objext'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; }; then
20371   ac_cv_type_long_long=yes
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 ac_cv_type_long_long=no
20377 fi
20378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20379 fi
20380 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20381 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20382
20383 echo "$as_me:$LINENO: checking size of long long" >&5
20384 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20385 if test "${ac_cv_sizeof_long_long+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   if test "$ac_cv_type_long_long" = yes; then
20389   # The cast to unsigned long works around a bug in the HP C Compiler
20390   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20391   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20392   # This bug is HP SR number 8606223364.
20393   if test "$cross_compiling" = yes; then
20394   # Depending upon the size, compute the lo and hi bounds.
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h.  */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h.  */
20401 $ac_includes_default
20402 int
20403 main ()
20404 {
20405 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20406 test_array [0] = 0
20407
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414   (eval $ac_compile) 2>conftest.er1
20415   ac_status=$?
20416   grep -v '^ *+' conftest.er1 >conftest.err
20417   rm -f conftest.er1
20418   cat conftest.err >&5
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); } &&
20421          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; } &&
20427          { ac_try='test -s conftest.$ac_objext'
20428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429   (eval $ac_try) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; }; then
20433   ac_lo=0 ac_mid=0
20434   while :; do
20435     cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441 $ac_includes_default
20442 int
20443 main ()
20444 {
20445 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20446 test_array [0] = 0
20447
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454   (eval $ac_compile) 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } &&
20461          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463   (eval $ac_try) 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); }; } &&
20467          { ac_try='test -s conftest.$ac_objext'
20468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469   (eval $ac_try) 2>&5
20470   ac_status=$?
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); }; }; then
20473   ac_hi=$ac_mid; break
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 ac_lo=`expr $ac_mid + 1`
20479                     if test $ac_lo -le $ac_mid; then
20480                       ac_lo= ac_hi=
20481                       break
20482                     fi
20483                     ac_mid=`expr 2 '*' $ac_mid + 1`
20484 fi
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486   done
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 $ac_includes_default
20498 int
20499 main ()
20500 {
20501 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20502 test_array [0] = 0
20503
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510   (eval $ac_compile) 2>conftest.er1
20511   ac_status=$?
20512   grep -v '^ *+' conftest.er1 >conftest.err
20513   rm -f conftest.er1
20514   cat conftest.err >&5
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } &&
20517          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; } &&
20523          { ac_try='test -s conftest.$ac_objext'
20524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525   (eval $ac_try) 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; }; then
20529   ac_hi=-1 ac_mid=-1
20530   while :; do
20531     cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538 int
20539 main ()
20540 {
20541 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20542 test_array [0] = 0
20543
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550   (eval $ac_compile) 2>conftest.er1
20551   ac_status=$?
20552   grep -v '^ *+' conftest.er1 >conftest.err
20553   rm -f conftest.er1
20554   cat conftest.err >&5
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } &&
20557          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; } &&
20563          { ac_try='test -s conftest.$ac_objext'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; }; then
20569   ac_lo=$ac_mid; break
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574 ac_hi=`expr '(' $ac_mid ')' - 1`
20575                        if test $ac_mid -le $ac_hi; then
20576                          ac_lo= ac_hi=
20577                          break
20578                        fi
20579                        ac_mid=`expr 2 '*' $ac_mid`
20580 fi
20581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20582   done
20583 else
20584   echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 ac_lo= ac_hi=
20588 fi
20589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20590 fi
20591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592 # Binary search between lo and hi bounds.
20593 while test "x$ac_lo" != "x$ac_hi"; do
20594   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20595   cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 $ac_includes_default
20602 int
20603 main ()
20604 {
20605 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20606 test_array [0] = 0
20607
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614   (eval $ac_compile) 2>conftest.er1
20615   ac_status=$?
20616   grep -v '^ *+' conftest.er1 >conftest.err
20617   rm -f conftest.er1
20618   cat conftest.err >&5
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } &&
20621          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623   (eval $ac_try) 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; } &&
20627          { ac_try='test -s conftest.$ac_objext'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_hi=$ac_mid
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_lo=`expr '(' $ac_mid ')' + 1`
20639 fi
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 done
20642 case $ac_lo in
20643 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20644 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20645 See \`config.log' for more details." >&5
20646 echo "$as_me: error: cannot compute sizeof (long long), 77
20647 See \`config.log' for more details." >&2;}
20648    { (exit 1); exit 1; }; } ;;
20649 esac
20650 else
20651   if test "$cross_compiling" = yes; then
20652   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20653 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20654    { (exit 1); exit 1; }; }
20655 else
20656   cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 $ac_includes_default
20663 long longval () { return (long) (sizeof (long long)); }
20664 unsigned long ulongval () { return (long) (sizeof (long long)); }
20665 #include <stdio.h>
20666 #include <stdlib.h>
20667 int
20668 main ()
20669 {
20670
20671   FILE *f = fopen ("conftest.val", "w");
20672   if (! f)
20673     exit (1);
20674   if (((long) (sizeof (long long))) < 0)
20675     {
20676       long i = longval ();
20677       if (i != ((long) (sizeof (long long))))
20678         exit (1);
20679       fprintf (f, "%ld\n", i);
20680     }
20681   else
20682     {
20683       unsigned long i = ulongval ();
20684       if (i != ((long) (sizeof (long long))))
20685         exit (1);
20686       fprintf (f, "%lu\n", i);
20687     }
20688   exit (ferror (f) || fclose (f) != 0);
20689
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696   (eval $ac_link) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ac_cv_sizeof_long_long=`cat conftest.val`
20706 else
20707   echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711 ( exit $ac_status )
20712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20713 See \`config.log' for more details." >&5
20714 echo "$as_me: error: cannot compute sizeof (long long), 77
20715 See \`config.log' for more details." >&2;}
20716    { (exit 1); exit 1; }; }
20717 fi
20718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20719 fi
20720 fi
20721 rm -f conftest.val
20722 else
20723   ac_cv_sizeof_long_long=0
20724 fi
20725 fi
20726 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20727 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20728 cat >>confdefs.h <<_ACEOF
20729 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20730 _ACEOF
20731
20732
20733         if test "$ac_cv_sizeof_long_long" != "0"; then
20734                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20735         fi
20736     ;;
20737     * )
20738         echo "$as_me:$LINENO: checking for long long" >&5
20739 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20740 if test "${ac_cv_type_long_long+set}" = set; then
20741   echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 $ac_includes_default
20750 int
20751 main ()
20752 {
20753 if ((long long *) 0)
20754   return 0;
20755 if (sizeof (long long))
20756   return 0;
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_cv_type_long_long=yes
20783 else
20784   echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 ac_cv_type_long_long=no
20788 fi
20789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790 fi
20791 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20792 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20793
20794 echo "$as_me:$LINENO: checking size of long long" >&5
20795 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20796 if test "${ac_cv_sizeof_long_long+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   if test "$ac_cv_type_long_long" = yes; then
20800   # The cast to unsigned long works around a bug in the HP C Compiler
20801   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20802   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20803   # This bug is HP SR number 8606223364.
20804   if test "$cross_compiling" = yes; then
20805   # Depending upon the size, compute the lo and hi bounds.
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812 $ac_includes_default
20813 int
20814 main ()
20815 {
20816 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20817 test_array [0] = 0
20818
20819   ;
20820   return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825   (eval $ac_compile) 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } &&
20832          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; } &&
20838          { ac_try='test -s conftest.$ac_objext'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   ac_lo=0 ac_mid=0
20845   while :; do
20846     cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 $ac_includes_default
20853 int
20854 main ()
20855 {
20856 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20857 test_array [0] = 0
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20865   (eval $ac_compile) 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } &&
20872          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; } &&
20878          { ac_try='test -s conftest.$ac_objext'
20879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880   (eval $ac_try) 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; }; then
20884   ac_hi=$ac_mid; break
20885 else
20886   echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889 ac_lo=`expr $ac_mid + 1`
20890                     if test $ac_lo -le $ac_mid; then
20891                       ac_lo= ac_hi=
20892                       break
20893                     fi
20894                     ac_mid=`expr 2 '*' $ac_mid + 1`
20895 fi
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20897   done
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20901
20902 cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h.  */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h.  */
20908 $ac_includes_default
20909 int
20910 main ()
20911 {
20912 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20913 test_array [0] = 0
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext
20920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20921   (eval $ac_compile) 2>conftest.er1
20922   ac_status=$?
20923   grep -v '^ *+' conftest.er1 >conftest.err
20924   rm -f conftest.er1
20925   cat conftest.err >&5
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } &&
20928          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; } &&
20934          { ac_try='test -s conftest.$ac_objext'
20935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936   (eval $ac_try) 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; }; then
20940   ac_hi=-1 ac_mid=-1
20941   while :; do
20942     cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 $ac_includes_default
20949 int
20950 main ()
20951 {
20952 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20953 test_array [0] = 0
20954
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20961   (eval $ac_compile) 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } &&
20968          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; } &&
20974          { ac_try='test -s conftest.$ac_objext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_lo=$ac_mid; break
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_hi=`expr '(' $ac_mid ')' - 1`
20986                        if test $ac_mid -le $ac_hi; then
20987                          ac_lo= ac_hi=
20988                          break
20989                        fi
20990                        ac_mid=`expr 2 '*' $ac_mid`
20991 fi
20992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20993   done
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 ac_lo= ac_hi=
20999 fi
21000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21001 fi
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 # Binary search between lo and hi bounds.
21004 while test "x$ac_lo" != "x$ac_hi"; do
21005   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 $ac_includes_default
21013 int
21014 main ()
21015 {
21016 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21017 test_array [0] = 0
21018
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025   (eval $ac_compile) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034   (eval $ac_try) 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; } &&
21038          { ac_try='test -s conftest.$ac_objext'
21039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040   (eval $ac_try) 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); }; }; then
21044   ac_hi=$ac_mid
21045 else
21046   echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 ac_lo=`expr '(' $ac_mid ')' + 1`
21050 fi
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 done
21053 case $ac_lo in
21054 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21055 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21056 See \`config.log' for more details." >&5
21057 echo "$as_me: error: cannot compute sizeof (long long), 77
21058 See \`config.log' for more details." >&2;}
21059    { (exit 1); exit 1; }; } ;;
21060 esac
21061 else
21062   if test "$cross_compiling" = yes; then
21063   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21064 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21065    { (exit 1); exit 1; }; }
21066 else
21067   cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 $ac_includes_default
21074 long longval () { return (long) (sizeof (long long)); }
21075 unsigned long ulongval () { return (long) (sizeof (long long)); }
21076 #include <stdio.h>
21077 #include <stdlib.h>
21078 int
21079 main ()
21080 {
21081
21082   FILE *f = fopen ("conftest.val", "w");
21083   if (! f)
21084     exit (1);
21085   if (((long) (sizeof (long long))) < 0)
21086     {
21087       long i = longval ();
21088       if (i != ((long) (sizeof (long long))))
21089         exit (1);
21090       fprintf (f, "%ld\n", i);
21091     }
21092   else
21093     {
21094       unsigned long i = ulongval ();
21095       if (i != ((long) (sizeof (long long))))
21096         exit (1);
21097       fprintf (f, "%lu\n", i);
21098     }
21099   exit (ferror (f) || fclose (f) != 0);
21100
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107   (eval $ac_link) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_cv_sizeof_long_long=`cat conftest.val`
21117 else
21118   echo "$as_me: program exited with status $ac_status" >&5
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122 ( exit $ac_status )
21123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21124 See \`config.log' for more details." >&5
21125 echo "$as_me: error: cannot compute sizeof (long long), 77
21126 See \`config.log' for more details." >&2;}
21127    { (exit 1); exit 1; }; }
21128 fi
21129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21130 fi
21131 fi
21132 rm -f conftest.val
21133 else
21134   ac_cv_sizeof_long_long=0
21135 fi
21136 fi
21137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21138 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21139 cat >>confdefs.h <<_ACEOF
21140 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21141 _ACEOF
21142
21143
21144 esac
21145
21146 echo "$as_me:$LINENO: checking for wchar_t" >&5
21147 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21148 if test "${ac_cv_type_wchar_t+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157
21158         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21159         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21160         #  error "fake wchar_t"
21161         #endif
21162         #ifdef HAVE_WCHAR_H
21163         #  ifdef __CYGWIN__
21164         #    include <stddef.h>
21165         #  endif
21166         #  include <wchar.h>
21167         #endif
21168         #ifdef HAVE_STDLIB_H
21169         #  include <stdlib.h>
21170         #endif
21171         #include <stdio.h>
21172
21173
21174
21175 int
21176 main ()
21177 {
21178 if ((wchar_t *) 0)
21179   return 0;
21180 if (sizeof (wchar_t))
21181   return 0;
21182   ;
21183   return 0;
21184 }
21185 _ACEOF
21186 rm -f conftest.$ac_objext
21187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21188   (eval $ac_compile) 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } &&
21195          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197   (eval $ac_try) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); }; } &&
21201          { ac_try='test -s conftest.$ac_objext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   ac_cv_type_wchar_t=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_type_wchar_t=no
21213 fi
21214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21215 fi
21216 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21217 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21218
21219 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21220 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21221 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224   if test "$ac_cv_type_wchar_t" = yes; then
21225   # The cast to unsigned long works around a bug in the HP C Compiler
21226   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21227   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21228   # This bug is HP SR number 8606223364.
21229   if test "$cross_compiling" = yes; then
21230   # Depending upon the size, compute the lo and hi bounds.
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h.  */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h.  */
21237
21238         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21239         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21240         #  error "fake wchar_t"
21241         #endif
21242         #ifdef HAVE_WCHAR_H
21243         #  ifdef __CYGWIN__
21244         #    include <stddef.h>
21245         #  endif
21246         #  include <wchar.h>
21247         #endif
21248         #ifdef HAVE_STDLIB_H
21249         #  include <stdlib.h>
21250         #endif
21251         #include <stdio.h>
21252
21253
21254
21255 int
21256 main ()
21257 {
21258 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21259 test_array [0] = 0
21260
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21267   (eval $ac_compile) 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } &&
21274          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276   (eval $ac_try) 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); }; } &&
21280          { ac_try='test -s conftest.$ac_objext'
21281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282   (eval $ac_try) 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); }; }; then
21286   ac_lo=0 ac_mid=0
21287   while :; do
21288     cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294
21295         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21296         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21297         #  error "fake wchar_t"
21298         #endif
21299         #ifdef HAVE_WCHAR_H
21300         #  ifdef __CYGWIN__
21301         #    include <stddef.h>
21302         #  endif
21303         #  include <wchar.h>
21304         #endif
21305         #ifdef HAVE_STDLIB_H
21306         #  include <stdlib.h>
21307         #endif
21308         #include <stdio.h>
21309
21310
21311
21312 int
21313 main ()
21314 {
21315 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21316 test_array [0] = 0
21317
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324   (eval $ac_compile) 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } &&
21331          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; } &&
21337          { ac_try='test -s conftest.$ac_objext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ac_hi=$ac_mid; break
21344 else
21345   echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_lo=`expr $ac_mid + 1`
21349                     if test $ac_lo -le $ac_mid; then
21350                       ac_lo= ac_hi=
21351                       break
21352                     fi
21353                     ac_mid=`expr 2 '*' $ac_mid + 1`
21354 fi
21355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356   done
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h.  */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h.  */
21367
21368         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21369         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21370         #  error "fake wchar_t"
21371         #endif
21372         #ifdef HAVE_WCHAR_H
21373         #  ifdef __CYGWIN__
21374         #    include <stddef.h>
21375         #  endif
21376         #  include <wchar.h>
21377         #endif
21378         #ifdef HAVE_STDLIB_H
21379         #  include <stdlib.h>
21380         #endif
21381         #include <stdio.h>
21382
21383
21384
21385 int
21386 main ()
21387 {
21388 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21389 test_array [0] = 0
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397   (eval $ac_compile) 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } &&
21404          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406   (eval $ac_try) 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; } &&
21410          { ac_try='test -s conftest.$ac_objext'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416   ac_hi=-1 ac_mid=-1
21417   while :; do
21418     cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424
21425         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21426         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21427         #  error "fake wchar_t"
21428         #endif
21429         #ifdef HAVE_WCHAR_H
21430         #  ifdef __CYGWIN__
21431         #    include <stddef.h>
21432         #  endif
21433         #  include <wchar.h>
21434         #endif
21435         #ifdef HAVE_STDLIB_H
21436         #  include <stdlib.h>
21437         #endif
21438         #include <stdio.h>
21439
21440
21441
21442 int
21443 main ()
21444 {
21445 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21446 test_array [0] = 0
21447
21448   ;
21449   return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest.$ac_objext
21453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21454   (eval $ac_compile) 2>conftest.er1
21455   ac_status=$?
21456   grep -v '^ *+' conftest.er1 >conftest.err
21457   rm -f conftest.er1
21458   cat conftest.err >&5
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); } &&
21461          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463   (eval $ac_try) 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; } &&
21467          { ac_try='test -s conftest.$ac_objext'
21468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469   (eval $ac_try) 2>&5
21470   ac_status=$?
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); }; }; then
21473   ac_lo=$ac_mid; break
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478 ac_hi=`expr '(' $ac_mid ')' - 1`
21479                        if test $ac_mid -le $ac_hi; then
21480                          ac_lo= ac_hi=
21481                          break
21482                        fi
21483                        ac_mid=`expr 2 '*' $ac_mid`
21484 fi
21485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21486   done
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 ac_lo= ac_hi=
21492 fi
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494 fi
21495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496 # Binary search between lo and hi bounds.
21497 while test "x$ac_lo" != "x$ac_hi"; do
21498   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21499   cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505
21506         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21507         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21508         #  error "fake wchar_t"
21509         #endif
21510         #ifdef HAVE_WCHAR_H
21511         #  ifdef __CYGWIN__
21512         #    include <stddef.h>
21513         #  endif
21514         #  include <wchar.h>
21515         #endif
21516         #ifdef HAVE_STDLIB_H
21517         #  include <stdlib.h>
21518         #endif
21519         #include <stdio.h>
21520
21521
21522
21523 int
21524 main ()
21525 {
21526 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21527 test_array [0] = 0
21528
21529   ;
21530   return 0;
21531 }
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535   (eval $ac_compile) 2>conftest.er1
21536   ac_status=$?
21537   grep -v '^ *+' conftest.er1 >conftest.err
21538   rm -f conftest.er1
21539   cat conftest.err >&5
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } &&
21542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; } &&
21548          { ac_try='test -s conftest.$ac_objext'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; }; then
21554   ac_hi=$ac_mid
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 ac_lo=`expr '(' $ac_mid ')' + 1`
21560 fi
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562 done
21563 case $ac_lo in
21564 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21566 See \`config.log' for more details." >&5
21567 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21568 See \`config.log' for more details." >&2;}
21569    { (exit 1); exit 1; }; } ;;
21570 esac
21571 else
21572   if test "$cross_compiling" = yes; then
21573   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21574 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21575    { (exit 1); exit 1; }; }
21576 else
21577   cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583
21584         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21585         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21586         #  error "fake wchar_t"
21587         #endif
21588         #ifdef HAVE_WCHAR_H
21589         #  ifdef __CYGWIN__
21590         #    include <stddef.h>
21591         #  endif
21592         #  include <wchar.h>
21593         #endif
21594         #ifdef HAVE_STDLIB_H
21595         #  include <stdlib.h>
21596         #endif
21597         #include <stdio.h>
21598
21599
21600
21601 long longval () { return (long) (sizeof (wchar_t)); }
21602 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21603 #include <stdio.h>
21604 #include <stdlib.h>
21605 int
21606 main ()
21607 {
21608
21609   FILE *f = fopen ("conftest.val", "w");
21610   if (! f)
21611     exit (1);
21612   if (((long) (sizeof (wchar_t))) < 0)
21613     {
21614       long i = longval ();
21615       if (i != ((long) (sizeof (wchar_t))))
21616         exit (1);
21617       fprintf (f, "%ld\n", i);
21618     }
21619   else
21620     {
21621       unsigned long i = ulongval ();
21622       if (i != ((long) (sizeof (wchar_t))))
21623         exit (1);
21624       fprintf (f, "%lu\n", i);
21625     }
21626   exit (ferror (f) || fclose (f) != 0);
21627
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634   (eval $ac_link) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639   (eval $ac_try) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; }; then
21643   ac_cv_sizeof_wchar_t=`cat conftest.val`
21644 else
21645   echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ( exit $ac_status )
21650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21651 See \`config.log' for more details." >&5
21652 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21653 See \`config.log' for more details." >&2;}
21654    { (exit 1); exit 1; }; }
21655 fi
21656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 fi
21659 rm -f conftest.val
21660 else
21661   ac_cv_sizeof_wchar_t=0
21662 fi
21663 fi
21664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21665 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21666 cat >>confdefs.h <<_ACEOF
21667 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21668 _ACEOF
21669
21670
21671 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21672     wxUSE_WCHAR_T=yes
21673 else
21674     wxUSE_WCHAR_T=no
21675 fi
21676
21677 echo "$as_me:$LINENO: checking for va_copy" >&5
21678 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21679 if test "${wx_cv_func_va_copy+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682
21683         cat >conftest.$ac_ext <<_ACEOF
21684
21685             #include <stdarg.h>
21686             void foo(char *f, ...)
21687             {
21688                 va_list ap1, ap2;
21689                 va_start(ap1, f);
21690                 va_copy(ap2, ap1);
21691                 va_end(ap2);
21692                 va_end(ap1);
21693             }
21694             int main()
21695             {
21696                 foo("hi", 17);
21697                 return 0;
21698             }
21699 _ACEOF
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21702   (eval $ac_link) 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } &&
21709          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; } &&
21715          { ac_try='test -s conftest$ac_exeext'
21716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; }; then
21721   wx_cv_func_va_copy=yes
21722 else
21723   echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 wx_cv_func_va_copy=no
21727
21728 fi
21729 rm -f conftest.err conftest.$ac_objext \
21730       conftest$ac_exeext conftest.$ac_ext
21731
21732
21733 fi
21734 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21735 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21736
21737 if test $wx_cv_func_va_copy = "yes"; then
21738     cat >>confdefs.h <<\_ACEOF
21739 #define HAVE_VA_COPY 1
21740 _ACEOF
21741
21742 else
21743         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21744 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21745 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748
21749             if test "$cross_compiling" = yes; then
21750                   wx_cv_type_va_list_lvalue=yes
21751
21752 else
21753   cat >conftest.$ac_ext <<_ACEOF
21754
21755                 #include <stdarg.h>
21756                 int foo(char *f, ...)
21757                 {
21758                     va_list ap1, ap2;
21759                     va_start(ap1, f);
21760                     ap2 = ap1;
21761                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21762                         return 1;
21763                     va_end(ap2);
21764                     va_end(ap1);
21765                     return 0;
21766                 }
21767                 int main()
21768                 {
21769                     return foo("hi", 17);
21770                 }
21771 _ACEOF
21772 rm -f conftest$ac_exeext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21774   (eval $ac_link) 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779   (eval $ac_try) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   wx_cv_type_va_list_lvalue=yes
21784 else
21785   echo "$as_me: program exited with status $ac_status" >&5
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ( exit $ac_status )
21790 wx_cv_type_va_list_lvalue=no
21791 fi
21792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21793 fi
21794
21795
21796 fi
21797 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21798 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21799
21800     if test $wx_cv_type_va_list_lvalue != "yes"; then
21801                         cat >>confdefs.h <<\_ACEOF
21802 #define VA_LIST_IS_ARRAY 1
21803 _ACEOF
21804
21805     fi
21806 fi
21807
21808 # Check whether --enable-largefile or --disable-largefile was given.
21809 if test "${enable_largefile+set}" = set; then
21810   enableval="$enable_largefile"
21811
21812 fi;
21813 if test "$enable_largefile" != no; then
21814             wx_largefile=no
21815
21816     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21817 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21818 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21819   echo $ECHO_N "(cached) $ECHO_C" >&6
21820 else
21821
21822           cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h.  */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h.  */
21828 #define _FILE_OFFSET_BITS 64
21829                           #include <sys/types.h>
21830 int
21831 main ()
21832 {
21833 typedef struct {
21834     unsigned int field: sizeof(off_t) == 8;
21835 } wxlf;
21836
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843   (eval $ac_compile) 2>conftest.er1
21844   ac_status=$?
21845   grep -v '^ *+' conftest.er1 >conftest.err
21846   rm -f conftest.er1
21847   cat conftest.err >&5
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); } &&
21850          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852   (eval $ac_try) 2>&5
21853   ac_status=$?
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); }; } &&
21856          { ac_try='test -s conftest.$ac_objext'
21857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); }; }; then
21862   ac_cv_sys_file_offset_bits=64
21863 else
21864   echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867 ac_cv_sys_file_offset_bits=no
21868 fi
21869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21870
21871
21872 fi
21873 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21874 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21875
21876     if test "$ac_cv_sys_file_offset_bits" != no; then
21877         wx_largefile=yes
21878         cat >>confdefs.h <<_ACEOF
21879 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21880 _ACEOF
21881
21882     fi
21883
21884     if test "x$wx_largefile" != "xyes"; then
21885
21886     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21887 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21888 if test "${ac_cv_sys_large_files+set}" = set; then
21889   echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891
21892           cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 #define _LARGE_FILES 1
21899                           #include <sys/types.h>
21900 int
21901 main ()
21902 {
21903 typedef struct {
21904     unsigned int field: sizeof(off_t) == 8;
21905 } wxlf;
21906
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext
21912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21913   (eval $ac_compile) 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } &&
21920          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; } &&
21926          { ac_try='test -s conftest.$ac_objext'
21927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; }; then
21932   ac_cv_sys_large_files=1
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937 ac_cv_sys_large_files=no
21938 fi
21939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21940
21941
21942 fi
21943 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21944 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21945
21946     if test "$ac_cv_sys_large_files" != no; then
21947         wx_largefile=yes
21948         cat >>confdefs.h <<_ACEOF
21949 #define _LARGE_FILES $ac_cv_sys_large_files
21950 _ACEOF
21951
21952     fi
21953
21954     fi
21955
21956     echo "$as_me:$LINENO: checking if large file support is available" >&5
21957 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21958     if test "x$wx_largefile" = "xyes"; then
21959         cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_LARGEFILE_SUPPORT 1
21961 _ACEOF
21962
21963     fi
21964     echo "$as_me:$LINENO: result: $wx_largefile" >&5
21965 echo "${ECHO_T}$wx_largefile" >&6
21966 fi
21967
21968
21969 if test "x$wx_largefile" = "xyes"; then
21970     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21971         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
21972
21973                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21974             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21975 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21976 if test "${wx_cv_STDC_EXT_required+set}" = set; then
21977   echo $ECHO_N "(cached) $ECHO_C" >&6
21978 else
21979
21980                     cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986
21987 int
21988 main ()
21989 {
21990
21991                             #ifndef __STDC_EXT__
21992                                 choke me
21993                             #endif
21994
21995   ;
21996   return 0;
21997 }
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22001   (eval $ac_compile) 2>conftest.er1
22002   ac_status=$?
22003   grep -v '^ *+' conftest.er1 >conftest.err
22004   rm -f conftest.er1
22005   cat conftest.err >&5
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); } &&
22008          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest.$ac_objext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   wx_cv_STDC_EXT_required=no
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 wx_cv_STDC_EXT_required=yes
22026
22027 fi
22028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029
22030
22031 fi
22032 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22033 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22034             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22035                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22036             fi
22037         fi
22038     else
22039         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22040     fi
22041         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22042 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22043 if test "${ac_cv_sys_largefile_source+set}" = set; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046   while :; do
22047   ac_cv_sys_largefile_source=no
22048   cat >conftest.$ac_ext <<_ACEOF
22049 /* confdefs.h.  */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h.  */
22054 #include <stdio.h>
22055 int
22056 main ()
22057 {
22058 return !fseeko;
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22065   (eval $ac_compile) 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } &&
22072          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074   (eval $ac_try) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; } &&
22078          { ac_try='test -s conftest.$ac_objext'
22079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); }; }; then
22084   break
22085 else
22086   echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 fi
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091   cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097 #define _LARGEFILE_SOURCE 1
22098 #include <stdio.h>
22099 int
22100 main ()
22101 {
22102 return !fseeko;
22103   ;
22104   return 0;
22105 }
22106 _ACEOF
22107 rm -f conftest.$ac_objext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22109   (eval $ac_compile) 2>conftest.er1
22110   ac_status=$?
22111   grep -v '^ *+' conftest.er1 >conftest.err
22112   rm -f conftest.er1
22113   cat conftest.err >&5
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); } &&
22116          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118   (eval $ac_try) 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; } &&
22122          { ac_try='test -s conftest.$ac_objext'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128   ac_cv_sys_largefile_source=1; break
22129 else
22130   echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22132
22133 fi
22134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22135   break
22136 done
22137 fi
22138 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22139 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22140 if test "$ac_cv_sys_largefile_source" != no; then
22141
22142 cat >>confdefs.h <<_ACEOF
22143 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22144 _ACEOF
22145
22146 fi
22147 rm -f conftest*
22148
22149 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22150 # in glibc 2.1.3, but that breaks too many other things.
22151 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22152 echo "$as_me:$LINENO: checking for fseeko" >&5
22153 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22154 if test "${ac_cv_func_fseeko+set}" = set; then
22155   echo $ECHO_N "(cached) $ECHO_C" >&6
22156 else
22157   cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 #include <stdio.h>
22164 int
22165 main ()
22166 {
22167 return fseeko && fseeko (stdin, 0, 0);
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174   (eval $ac_link) 2>conftest.er1
22175   ac_status=$?
22176   grep -v '^ *+' conftest.er1 >conftest.err
22177   rm -f conftest.er1
22178   cat conftest.err >&5
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); } &&
22181          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183   (eval $ac_try) 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); }; } &&
22187          { ac_try='test -s conftest$ac_exeext'
22188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189   (eval $ac_try) 2>&5
22190   ac_status=$?
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; }; then
22193   ac_cv_func_fseeko=yes
22194 else
22195   echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22197
22198 ac_cv_func_fseeko=no
22199 fi
22200 rm -f conftest.err conftest.$ac_objext \
22201       conftest$ac_exeext conftest.$ac_ext
22202 fi
22203 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22204 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22205 if test $ac_cv_func_fseeko = yes; then
22206
22207 cat >>confdefs.h <<\_ACEOF
22208 #define HAVE_FSEEKO 1
22209 _ACEOF
22210
22211 fi
22212
22213     if test "$ac_cv_sys_largefile_source" != no; then
22214         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22215     fi
22216 fi
22217
22218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22220 if test "${ac_cv_c_bigendian+set}" = set; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223   ac_cv_c_bigendian=unknown
22224 # See if sys/param.h defines the BYTE_ORDER macro.
22225 cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 #include <sys/types.h>
22232 #include <sys/param.h>
22233 int
22234 main ()
22235 {
22236
22237 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22238  bogus endian macros
22239 #endif
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 rm -f conftest.$ac_objext
22245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22246   (eval $ac_compile) 2>conftest.er1
22247   ac_status=$?
22248   grep -v '^ *+' conftest.er1 >conftest.err
22249   rm -f conftest.er1
22250   cat conftest.err >&5
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); } &&
22253          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest.$ac_objext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   # It does; now see whether it defined to BIG_ENDIAN or not.
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 #include <sys/types.h>
22273 #include <sys/param.h>
22274 int
22275 main ()
22276 {
22277
22278 #if BYTE_ORDER != BIG_ENDIAN
22279  not big endian
22280 #endif
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287   (eval $ac_compile) 2>conftest.er1
22288   ac_status=$?
22289   grep -v '^ *+' conftest.er1 >conftest.err
22290   rm -f conftest.er1
22291   cat conftest.err >&5
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); } &&
22294          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; } &&
22300          { ac_try='test -s conftest.$ac_objext'
22301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302   (eval $ac_try) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }; }; then
22306   ac_cv_c_bigendian=yes
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 ac_cv_c_bigendian=no
22312 fi
22313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 fi
22319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22320 if test $ac_cv_c_bigendian = unknown; then
22321 if test "$cross_compiling" = yes; then
22322   ac_cv_c_bigendian=unknown
22323 else
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 main () {
22331   /* Are we little or big endian?  From Harbison&Steele.  */
22332   union
22333   {
22334     long l;
22335     char c[sizeof (long)];
22336   } u;
22337   u.l = 1;
22338   exit (u.c[sizeof (long) - 1] == 1);
22339 }
22340 _ACEOF
22341 rm -f conftest$ac_exeext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343   (eval $ac_link) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   ac_cv_c_bigendian=no
22353 else
22354   echo "$as_me: program exited with status $ac_status" >&5
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358 ( exit $ac_status )
22359 ac_cv_c_bigendian=yes
22360 fi
22361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 fi
22364 fi
22365 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22366 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22367 if test $ac_cv_c_bigendian = unknown; then
22368   { 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
22369 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;}
22370 fi
22371 if test $ac_cv_c_bigendian = yes; then
22372   cat >>confdefs.h <<\_ACEOF
22373 #define WORDS_BIGENDIAN 1
22374 _ACEOF
22375
22376 fi
22377
22378
22379
22380
22381
22382     ac_ext=cc
22383 ac_cpp='$CXXCPP $CPPFLAGS'
22384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22387
22388
22389
22390 for ac_header in iostream
22391 do
22392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22394   echo "$as_me:$LINENO: checking for $ac_header" >&5
22395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 fi
22399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22401 else
22402   # Is the header compilable?
22403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 $ac_includes_default
22412 #include <$ac_header>
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416   (eval $ac_compile) 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } &&
22423          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425   (eval $ac_try) 2>&5
22426   ac_status=$?
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); }; } &&
22429          { ac_try='test -s conftest.$ac_objext'
22430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431   (eval $ac_try) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); }; }; then
22435   ac_header_compiler=yes
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440 ac_header_compiler=no
22441 fi
22442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22444 echo "${ECHO_T}$ac_header_compiler" >&6
22445
22446 # Is the header present?
22447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h.  */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h.  */
22455 #include <$ac_header>
22456 _ACEOF
22457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } >/dev/null; then
22465   if test -s conftest.err; then
22466     ac_cpp_err=$ac_cxx_preproc_warn_flag
22467     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22468   else
22469     ac_cpp_err=
22470   fi
22471 else
22472   ac_cpp_err=yes
22473 fi
22474 if test -z "$ac_cpp_err"; then
22475   ac_header_preproc=yes
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480   ac_header_preproc=no
22481 fi
22482 rm -f conftest.err conftest.$ac_ext
22483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22484 echo "${ECHO_T}$ac_header_preproc" >&6
22485
22486 # So?  What about this header?
22487 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22488   yes:no: )
22489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22493     ac_header_preproc=yes
22494     ;;
22495   no:yes:* )
22496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22508     (
22509       cat <<\_ASBOX
22510 ## ----------------------------------------- ##
22511 ## Report this to wx-dev@lists.wxwidgets.org ##
22512 ## ----------------------------------------- ##
22513 _ASBOX
22514     ) |
22515       sed "s/^/$as_me: WARNING:     /" >&2
22516     ;;
22517 esac
22518 echo "$as_me:$LINENO: checking for $ac_header" >&5
22519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22521   echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523   eval "$as_ac_Header=\$ac_header_preproc"
22524 fi
22525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22527
22528 fi
22529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22530   cat >>confdefs.h <<_ACEOF
22531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22532 _ACEOF
22533
22534 fi
22535
22536 done
22537
22538
22539     if test "$ac_cv_header_iostream" = "yes" ; then
22540       :
22541     else
22542       cat >>confdefs.h <<\_ACEOF
22543 #define wxUSE_IOSTREAMH 1
22544 _ACEOF
22545
22546     fi
22547
22548     ac_ext=cc
22549 ac_cpp='$CXXCPP $CPPFLAGS'
22550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22553
22554
22555
22556
22557   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22558 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22559 if test "${wx_cv_cpp_bool+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562
22563
22564
22565     ac_ext=cc
22566 ac_cpp='$CXXCPP $CPPFLAGS'
22567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22570
22571
22572     cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h.  */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h.  */
22578
22579
22580 int
22581 main ()
22582 {
22583
22584         bool b = true;
22585
22586         return 0;
22587
22588   ;
22589   return 0;
22590 }
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22594   (eval $ac_compile) 2>conftest.er1
22595   ac_status=$?
22596   grep -v '^ *+' conftest.er1 >conftest.err
22597   rm -f conftest.er1
22598   cat conftest.err >&5
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); } &&
22601          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603   (eval $ac_try) 2>&5
22604   ac_status=$?
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); }; } &&
22607          { ac_try='test -s conftest.$ac_objext'
22608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609   (eval $ac_try) 2>&5
22610   ac_status=$?
22611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612   (exit $ac_status); }; }; then
22613
22614         wx_cv_cpp_bool=yes
22615
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620
22621         wx_cv_cpp_bool=no
22622
22623
22624 fi
22625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22626
22627     ac_ext=cc
22628 ac_cpp='$CXXCPP $CPPFLAGS'
22629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22632
22633
22634 fi
22635 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22636 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22637
22638   if test "$wx_cv_cpp_bool" = "yes"; then
22639     cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_BOOL 1
22641 _ACEOF
22642
22643   fi
22644
22645
22646
22647   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22648 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22649 if test "${wx_cv_explicit+set}" = set; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652
22653
22654
22655     ac_ext=cc
22656 ac_cpp='$CXXCPP $CPPFLAGS'
22657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22660
22661
22662             cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668
22669         class Foo { public: explicit Foo(int) {} };
22670
22671 int
22672 main ()
22673 {
22674
22675         return 0;
22676
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22683   (eval $ac_compile) 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } &&
22690          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692   (eval $ac_try) 2>&5
22693   ac_status=$?
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); }; } &&
22696          { ac_try='test -s conftest.$ac_objext'
22697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698   (eval $ac_try) 2>&5
22699   ac_status=$?
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); }; }; then
22702
22703         cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709
22710                 class Foo { public: explicit Foo(int) {} };
22711                 static void TakeFoo(const Foo& foo) { }
22712
22713 int
22714 main ()
22715 {
22716
22717                 TakeFoo(17);
22718                 return 0;
22719
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22726   (eval $ac_compile) 2>conftest.er1
22727   ac_status=$?
22728   grep -v '^ *+' conftest.er1 >conftest.err
22729   rm -f conftest.er1
22730   cat conftest.err >&5
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } &&
22733          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735   (eval $ac_try) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); }; } &&
22739          { ac_try='test -s conftest.$ac_objext'
22740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741   (eval $ac_try) 2>&5
22742   ac_status=$?
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); }; }; then
22745   wx_cv_explicit=no
22746 else
22747   echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750 wx_cv_explicit=yes
22751
22752 fi
22753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22754
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 wx_cv_explicit=no
22760
22761 fi
22762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22763
22764     ac_ext=cc
22765 ac_cpp='$CXXCPP $CPPFLAGS'
22766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22769
22770
22771 fi
22772 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22773 echo "${ECHO_T}$wx_cv_explicit" >&6
22774
22775   if test "$wx_cv_explicit" = "yes"; then
22776     cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_EXPLICIT 1
22778 _ACEOF
22779
22780   fi
22781
22782
22783 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22784 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22785 if test "${ac_cv_cxx_const_cast+set}" = set; then
22786   echo $ECHO_N "(cached) $ECHO_C" >&6
22787 else
22788
22789
22790  ac_ext=cc
22791 ac_cpp='$CXXCPP $CPPFLAGS'
22792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22795
22796  cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802
22803 int
22804 main ()
22805 {
22806 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22813   (eval $ac_compile) 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } &&
22820          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; } &&
22826          { ac_try='test -s conftest.$ac_objext'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832   ac_cv_cxx_const_cast=yes
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ac_cv_cxx_const_cast=no
22838 fi
22839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22840  ac_ext=cc
22841 ac_cpp='$CXXCPP $CPPFLAGS'
22842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22845
22846
22847 fi
22848 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22849 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22850 if test "$ac_cv_cxx_const_cast" = yes; then
22851
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_CONST_CAST
22854 _ACEOF
22855
22856 fi
22857
22858 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22859 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22860 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863
22864
22865  ac_ext=cc
22866 ac_cpp='$CXXCPP $CPPFLAGS'
22867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22870
22871  cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 #include <typeinfo>
22878 class Base { public : Base () {} virtual void f () = 0;};
22879 class Derived : public Base { public : Derived () {} virtual void f () {} };
22880 class Unrelated { public : Unrelated () {} };
22881 int g (Unrelated&) { return 0; }
22882 int
22883 main ()
22884 {
22885
22886 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22887   ;
22888   return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893   (eval $ac_compile) 2>conftest.er1
22894   ac_status=$?
22895   grep -v '^ *+' conftest.er1 >conftest.err
22896   rm -f conftest.er1
22897   cat conftest.err >&5
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } &&
22900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902   (eval $ac_try) 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); }; } &&
22906          { ac_try='test -s conftest.$ac_objext'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; }; then
22912   ac_cv_cxx_reinterpret_cast=yes
22913 else
22914   echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22916
22917 ac_cv_cxx_reinterpret_cast=no
22918 fi
22919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22920  ac_ext=cc
22921 ac_cpp='$CXXCPP $CPPFLAGS'
22922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22925
22926
22927 fi
22928 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22929 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22930 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22931
22932 cat >>confdefs.h <<\_ACEOF
22933 #define HAVE_REINTERPRET_CAST
22934 _ACEOF
22935
22936 fi
22937
22938 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22939 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22940 if test "${ac_cv_cxx_static_cast+set}" = set; then
22941   echo $ECHO_N "(cached) $ECHO_C" >&6
22942 else
22943
22944
22945  ac_ext=cc
22946 ac_cpp='$CXXCPP $CPPFLAGS'
22947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22950
22951  cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h.  */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h.  */
22957 #include <typeinfo>
22958 class Base { public : Base () {} virtual void f () = 0; };
22959 class Derived : public Base { public : Derived () {} virtual void f () {} };
22960 int g (Derived&) { return 0; }
22961 int
22962 main ()
22963 {
22964
22965 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22966   ;
22967   return 0;
22968 }
22969 _ACEOF
22970 rm -f conftest.$ac_objext
22971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22972   (eval $ac_compile) 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } &&
22979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981   (eval $ac_try) 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); }; } &&
22985          { ac_try='test -s conftest.$ac_objext'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; }; then
22991   ac_cv_cxx_static_cast=yes
22992 else
22993   echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996 ac_cv_cxx_static_cast=no
22997 fi
22998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22999  ac_ext=cc
23000 ac_cpp='$CXXCPP $CPPFLAGS'
23001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23004
23005
23006 fi
23007 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23008 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23009 if test "$ac_cv_cxx_static_cast" = yes; then
23010
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_STATIC_CAST
23013 _ACEOF
23014
23015 fi
23016
23017
23018 if test "x$SUNCXX" = xyes; then
23019     CXXFLAGS="-features=tmplife $CXXFLAGS"
23020 fi
23021
23022 if test "x$SUNCC" = xyes; then
23023     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23024 fi
23025
23026 if test "x$SGICC" = "xyes"; then
23027     CFLAGS="-woff 3970 $CFLAGS"
23028 fi
23029 if test "x$SGICXX" = "xyes"; then
23030     CXXFLAGS="-woff 3970 $CXXFLAGS"
23031 fi
23032
23033 if test "x$HPCC" = "xyes"; then
23034                     CFLAGS="+W 2011,2450 $CFLAGS"
23035 fi
23036 if test "x$HPCXX" = "xyes"; then
23037             CXXFLAGS="+W 2340 $CXXFLAGS"
23038 fi
23039
23040 if test "x$COMPAQCXX" = "xyes"; then
23041                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23042 fi
23043
23044 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23045     if test "$wxUSE_UNICODE" = "yes"; then
23046         std_string="std::wstring"
23047         char_type="wchar_t"
23048     else
23049         std_string="std::string"
23050         char_type="char"
23051     fi
23052
23053         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23054 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23055     cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 #include <string>
23062 int
23063 main ()
23064 {
23065 $std_string foo;
23066   ;
23067   return 0;
23068 }
23069 _ACEOF
23070 rm -f conftest.$ac_objext
23071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23072   (eval $ac_compile) 2>conftest.er1
23073   ac_status=$?
23074   grep -v '^ *+' conftest.er1 >conftest.err
23075   rm -f conftest.er1
23076   cat conftest.err >&5
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); } &&
23079          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
23085          { ac_try='test -s conftest.$ac_objext'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; }; then
23091   echo "$as_me:$LINENO: result: yes" >&5
23092 echo "${ECHO_T}yes" >&6
23093                     cat >>confdefs.h <<\_ACEOF
23094 #define HAVE_STD_WSTRING 1
23095 _ACEOF
23096
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101 echo "$as_me:$LINENO: result: no" >&5
23102 echo "${ECHO_T}no" >&6
23103                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23104 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23105                     cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h.  */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h.  */
23111
23112                         #ifdef HAVE_WCHAR_H
23113                         #  ifdef __CYGWIN__
23114                         #    include <stddef.h>
23115                         #  endif
23116                         #  include <wchar.h>
23117                         #endif
23118                         #ifdef HAVE_STDLIB_H
23119                         #  include <stdlib.h>
23120                         #endif
23121                         #include <stdio.h>
23122                         #include <string>
23123
23124 int
23125 main ()
23126 {
23127 std::basic_string<$char_type> foo;
23128                          const $char_type* dummy = foo.c_str();
23129   ;
23130   return 0;
23131 }
23132 _ACEOF
23133 rm -f conftest.$ac_objext
23134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23135   (eval $ac_compile) 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } &&
23142          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; } &&
23148          { ac_try='test -s conftest.$ac_objext'
23149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150   (eval $ac_try) 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); }; }; then
23154   echo "$as_me:$LINENO: result: yes" >&5
23155 echo "${ECHO_T}yes" >&6
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 echo "$as_me:$LINENO: result: no" >&5
23161 echo "${ECHO_T}no" >&6
23162                          if test "$wxUSE_STL" = "yes"; then
23163                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23164 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23165    { (exit 1); exit 1; }; }
23166                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23167                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23168 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23169    { (exit 1); exit 1; }; }
23170                          else
23171                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23172 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23173                              wxUSE_STD_STRING=no
23174                          fi
23175
23176
23177 fi
23178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23179
23180 fi
23181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23182 fi
23183
23184 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23185     echo "$as_me:$LINENO: checking for std::istream" >&5
23186 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23187 if test "${ac_cv_type_std__istream+set}" = set; then
23188   echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190   cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196 #include <iostream>
23197
23198 int
23199 main ()
23200 {
23201 if ((std::istream *) 0)
23202   return 0;
23203 if (sizeof (std::istream))
23204   return 0;
23205   ;
23206   return 0;
23207 }
23208 _ACEOF
23209 rm -f conftest.$ac_objext
23210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23211   (eval $ac_compile) 2>conftest.er1
23212   ac_status=$?
23213   grep -v '^ *+' conftest.er1 >conftest.err
23214   rm -f conftest.er1
23215   cat conftest.err >&5
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); } &&
23218          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; } &&
23224          { ac_try='test -s conftest.$ac_objext'
23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226   (eval $ac_try) 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230   ac_cv_type_std__istream=yes
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 ac_cv_type_std__istream=no
23236 fi
23237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238 fi
23239 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23240 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23241 if test $ac_cv_type_std__istream = yes; then
23242
23243 cat >>confdefs.h <<_ACEOF
23244 #define HAVE_STD__ISTREAM 1
23245 _ACEOF
23246
23247
23248 else
23249   wxUSE_STD_IOSTREAM=no
23250 fi
23251 echo "$as_me:$LINENO: checking for std::ostream" >&5
23252 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23253 if test "${ac_cv_type_std__ostream+set}" = set; then
23254   echo $ECHO_N "(cached) $ECHO_C" >&6
23255 else
23256   cat >conftest.$ac_ext <<_ACEOF
23257 /* confdefs.h.  */
23258 _ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h.  */
23262 #include <iostream>
23263
23264 int
23265 main ()
23266 {
23267 if ((std::ostream *) 0)
23268   return 0;
23269 if (sizeof (std::ostream))
23270   return 0;
23271   ;
23272   return 0;
23273 }
23274 _ACEOF
23275 rm -f conftest.$ac_objext
23276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23277   (eval $ac_compile) 2>conftest.er1
23278   ac_status=$?
23279   grep -v '^ *+' conftest.er1 >conftest.err
23280   rm -f conftest.er1
23281   cat conftest.err >&5
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); } &&
23284          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286   (eval $ac_try) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); }; } &&
23290          { ac_try='test -s conftest.$ac_objext'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; }; then
23296   ac_cv_type_std__ostream=yes
23297 else
23298   echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ac_cv_type_std__ostream=no
23302 fi
23303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23304 fi
23305 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23306 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23307 if test $ac_cv_type_std__ostream = yes; then
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_STD__OSTREAM 1
23311 _ACEOF
23312
23313
23314 else
23315   wxUSE_STD_IOSTREAM=no
23316 fi
23317
23318
23319     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23320         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23321             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23322 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23323    { (exit 1); exit 1; }; }
23324         else
23325             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23326 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23327         fi
23328     fi
23329 fi
23330
23331 if test "$wxUSE_STL" = "yes"; then
23332         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23333 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23334     cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h.  */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h.  */
23340 #include <string>
23341                     #include <functional>
23342                     #include <algorithm>
23343                     #include <vector>
23344                     #include <list>
23345 int
23346 main ()
23347 {
23348 std::vector<int> moo;
23349                      std::list<int> foo;
23350                      std::vector<int>::iterator it =
23351                          std::find_if(moo.begin(), moo.end(),
23352                                       std::bind2nd(std::less<int>(), 3));
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23359   (eval $ac_compile) 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } &&
23366          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368   (eval $ac_try) 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; } &&
23372          { ac_try='test -s conftest.$ac_objext'
23373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); }; }; then
23378   echo "$as_me:$LINENO: result: yes" >&5
23379 echo "${ECHO_T}yes" >&6
23380 else
23381   echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384 echo "$as_me:$LINENO: result: no" >&5
23385 echo "${ECHO_T}no" >&6
23386                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23387 echo "$as_me: error: Basic STL functionality missing" >&2;}
23388    { (exit 1); exit 1; }; }
23389 fi
23390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23391
23392         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23393 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23394     cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <string>
23401 int
23402 main ()
23403 {
23404 std::string foo, bar;
23405                     foo.compare(bar);
23406                     foo.compare(1, 1, bar);
23407                     foo.compare(1, 1, bar, 1, 1);
23408                     foo.compare("");
23409                     foo.compare(1, 1, "");
23410                     foo.compare(1, 1, "", 2);
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23417   (eval $ac_compile) 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } &&
23424          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; } &&
23430          { ac_try='test -s conftest.$ac_objext'
23431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432   (eval $ac_try) 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; }; then
23436   echo "$as_me:$LINENO: result: yes" >&5
23437 echo "${ECHO_T}yes" >&6
23438                     cat >>confdefs.h <<\_ACEOF
23439 #define HAVE_STD_STRING_COMPARE 1
23440 _ACEOF
23441
23442 else
23443   echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446 echo "$as_me:$LINENO: result: no" >&5
23447 echo "${ECHO_T}no" >&6
23448 fi
23449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23450
23451         if test "${ac_cv_header_hash_map+set}" = set; then
23452   echo "$as_me:$LINENO: checking for hash_map" >&5
23453 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23454 if test "${ac_cv_header_hash_map+set}" = set; then
23455   echo $ECHO_N "(cached) $ECHO_C" >&6
23456 fi
23457 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23458 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23459 else
23460   # Is the header compilable?
23461 echo "$as_me:$LINENO: checking hash_map usability" >&5
23462 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469 $ac_includes_default
23470 #include <hash_map>
23471 _ACEOF
23472 rm -f conftest.$ac_objext
23473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23474   (eval $ac_compile) 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } &&
23481          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483   (eval $ac_try) 2>&5
23484   ac_status=$?
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); }; } &&
23487          { ac_try='test -s conftest.$ac_objext'
23488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); }; }; then
23493   ac_header_compiler=yes
23494 else
23495   echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 ac_header_compiler=no
23499 fi
23500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23502 echo "${ECHO_T}$ac_header_compiler" >&6
23503
23504 # Is the header present?
23505 echo "$as_me:$LINENO: checking hash_map presence" >&5
23506 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 #include <hash_map>
23514 _ACEOF
23515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23517   ac_status=$?
23518   grep -v '^ *+' conftest.er1 >conftest.err
23519   rm -f conftest.er1
23520   cat conftest.err >&5
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); } >/dev/null; then
23523   if test -s conftest.err; then
23524     ac_cpp_err=$ac_cxx_preproc_warn_flag
23525     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23526   else
23527     ac_cpp_err=
23528   fi
23529 else
23530   ac_cpp_err=yes
23531 fi
23532 if test -z "$ac_cpp_err"; then
23533   ac_header_preproc=yes
23534 else
23535   echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23537
23538   ac_header_preproc=no
23539 fi
23540 rm -f conftest.err conftest.$ac_ext
23541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23542 echo "${ECHO_T}$ac_header_preproc" >&6
23543
23544 # So?  What about this header?
23545 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23546   yes:no: )
23547     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23548 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23549     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23550 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23551     ac_header_preproc=yes
23552     ;;
23553   no:yes:* )
23554     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23555 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23556     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23557 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23558     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23559 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23560     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23561 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23562     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23563 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23564     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23565 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23566     (
23567       cat <<\_ASBOX
23568 ## ----------------------------------------- ##
23569 ## Report this to wx-dev@lists.wxwidgets.org ##
23570 ## ----------------------------------------- ##
23571 _ASBOX
23572     ) |
23573       sed "s/^/$as_me: WARNING:     /" >&2
23574     ;;
23575 esac
23576 echo "$as_me:$LINENO: checking for hash_map" >&5
23577 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23578 if test "${ac_cv_header_hash_map+set}" = set; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   ac_cv_header_hash_map=$ac_header_preproc
23582 fi
23583 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23584 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23585
23586 fi
23587 if test $ac_cv_header_hash_map = yes; then
23588   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23589 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23590                      cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596 #include <hash_map>
23597                                      #include <hash_set>
23598 int
23599 main ()
23600 {
23601 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23602                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23603   ;
23604   return 0;
23605 }
23606 _ACEOF
23607 rm -f conftest.$ac_objext
23608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23609   (eval $ac_compile) 2>conftest.er1
23610   ac_status=$?
23611   grep -v '^ *+' conftest.er1 >conftest.err
23612   rm -f conftest.er1
23613   cat conftest.err >&5
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } &&
23616          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618   (eval $ac_try) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; } &&
23622          { ac_try='test -s conftest.$ac_objext'
23623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624   (eval $ac_try) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; }; then
23628   echo "$as_me:$LINENO: result: yes" >&5
23629 echo "${ECHO_T}yes" >&6
23630                                      cat >>confdefs.h <<\_ACEOF
23631 #define HAVE_HASH_MAP 1
23632 _ACEOF
23633
23634                                      cat >>confdefs.h <<\_ACEOF
23635 #define HAVE_STD_HASH_MAP 1
23636 _ACEOF
23637
23638 else
23639   echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 echo "$as_me:$LINENO: result: no" >&5
23643 echo "${ECHO_T}no" >&6
23644 fi
23645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23646
23647 fi
23648
23649
23650
23651     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23652   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23653 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23654 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23655   echo $ECHO_N "(cached) $ECHO_C" >&6
23656 fi
23657 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23658 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23659 else
23660   # Is the header compilable?
23661 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23662 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669 $ac_includes_default
23670 #include <ext/hash_map>
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23674   (eval $ac_compile) 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } &&
23681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683   (eval $ac_try) 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; } &&
23687          { ac_try='test -s conftest.$ac_objext'
23688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); }; }; then
23693   ac_header_compiler=yes
23694 else
23695   echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 ac_header_compiler=no
23699 fi
23700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23702 echo "${ECHO_T}$ac_header_compiler" >&6
23703
23704 # Is the header present?
23705 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23706 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23707 cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713 #include <ext/hash_map>
23714 _ACEOF
23715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } >/dev/null; then
23723   if test -s conftest.err; then
23724     ac_cpp_err=$ac_cxx_preproc_warn_flag
23725     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23726   else
23727     ac_cpp_err=
23728   fi
23729 else
23730   ac_cpp_err=yes
23731 fi
23732 if test -z "$ac_cpp_err"; then
23733   ac_header_preproc=yes
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738   ac_header_preproc=no
23739 fi
23740 rm -f conftest.err conftest.$ac_ext
23741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23742 echo "${ECHO_T}$ac_header_preproc" >&6
23743
23744 # So?  What about this header?
23745 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23746   yes:no: )
23747     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23748 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23749     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23750 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23751     ac_header_preproc=yes
23752     ;;
23753   no:yes:* )
23754     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23755 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23756     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
23757 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
23758     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23759 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23760     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23761 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23762     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23763 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23764     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23765 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23766     (
23767       cat <<\_ASBOX
23768 ## ----------------------------------------- ##
23769 ## Report this to wx-dev@lists.wxwidgets.org ##
23770 ## ----------------------------------------- ##
23771 _ASBOX
23772     ) |
23773       sed "s/^/$as_me: WARNING:     /" >&2
23774     ;;
23775 esac
23776 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23777 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23778 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23779   echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781   ac_cv_header_ext_hash_map=$ac_header_preproc
23782 fi
23783 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23784 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23785
23786 fi
23787 if test $ac_cv_header_ext_hash_map = yes; then
23788   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23789 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23790                      cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h.  */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h.  */
23796 #include <ext/hash_map>
23797                                      #include <ext/hash_set>
23798 int
23799 main ()
23800 {
23801 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23802                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23803   ;
23804   return 0;
23805 }
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23809   (eval $ac_compile) 2>conftest.er1
23810   ac_status=$?
23811   grep -v '^ *+' conftest.er1 >conftest.err
23812   rm -f conftest.er1
23813   cat conftest.err >&5
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); } &&
23816          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818   (eval $ac_try) 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); }; } &&
23822          { ac_try='test -s conftest.$ac_objext'
23823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824   (eval $ac_try) 2>&5
23825   ac_status=$?
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); }; }; then
23828   echo "$as_me:$LINENO: result: yes" >&5
23829 echo "${ECHO_T}yes" >&6
23830                                      cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_EXT_HASH_MAP 1
23832 _ACEOF
23833
23834                                      cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_GNU_CXX_HASH_MAP 1
23836 _ACEOF
23837
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 echo "$as_me:$LINENO: result: no" >&5
23843 echo "${ECHO_T}no" >&6
23844 fi
23845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23846
23847 fi
23848
23849
23850 fi
23851
23852
23853 SEARCH_INCLUDE="\
23854     /usr/local/include        \
23855                               \
23856     /usr/Motif-2.1/include    \
23857     /usr/Motif-1.2/include    \
23858     /usr/include/Motif1.2     \
23859                               \
23860     /usr/dt/include           \
23861     /usr/openwin/include      \
23862                               \
23863     /usr/include/Xm           \
23864                               \
23865     /usr/X11R6/include        \
23866     /usr/X11R6.4/include      \
23867     /usr/X11R5/include        \
23868     /usr/X11R4/include        \
23869                               \
23870     /usr/include/X11R6        \
23871     /usr/include/X11R5        \
23872     /usr/include/X11R4        \
23873                               \
23874     /usr/local/X11R6/include  \
23875     /usr/local/X11R5/include  \
23876     /usr/local/X11R4/include  \
23877                               \
23878     /usr/local/include/X11R6  \
23879     /usr/local/include/X11R5  \
23880     /usr/local/include/X11R4  \
23881                               \
23882     /usr/X11/include          \
23883     /usr/include/X11          \
23884     /usr/local/X11/include    \
23885     /usr/local/include/X11    \
23886                               \
23887     /usr/XFree86/include/X11  \
23888     /usr/pkg/include          \
23889                               \
23890     /usr/openwin/share/include"
23891
23892 echo "$as_me:$LINENO: checking for libraries directory" >&5
23893 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
23894
23895 case "${host}" in
23896     *-*-irix6* )
23897         if test "${wx_cv_std_libpath+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900
23901                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23902                     for e in a so sl dylib dll.a; do
23903                         libc="$d/libc.$e"
23904                         if test -f $libc; then
23905                             save_LIBS="$LIBS"
23906                             LIBS="$libc"
23907                             cat >conftest.$ac_ext <<_ACEOF
23908 int main() { return 0; }
23909 _ACEOF
23910 rm -f conftest.$ac_objext conftest$ac_exeext
23911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912   (eval $ac_link) 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } &&
23919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; } &&
23925          { ac_try='test -s conftest$ac_exeext'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; }; then
23931   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936 fi
23937 rm -f conftest.err conftest.$ac_objext \
23938       conftest$ac_exeext conftest.$ac_ext
23939                             LIBS="$save_LIBS"
23940                             if test "x$wx_cv_std_libpath" != "x"; then
23941                                 break 2
23942                             fi
23943                         fi
23944                     done
23945                 done
23946                 if test "x$wx_cv_std_libpath" = "x"; then
23947                     wx_cv_std_libpath="lib"
23948                 fi
23949
23950
23951 fi
23952
23953         ;;
23954
23955     *-*-solaris2* )
23956                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23957             wx_cv_std_libpath="lib/64"
23958         else
23959             wx_cv_std_libpath="lib"
23960         fi
23961         ;;
23962
23963     *-*-linux* )
23964                 if test "$ac_cv_sizeof_void_p" = 8 -a \
23965                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23966             wx_cv_std_libpath="lib64"
23967         else
23968             wx_cv_std_libpath="lib"
23969         fi
23970         ;;
23971
23972     *)
23973         wx_cv_std_libpath="lib";
23974         ;;
23975 esac
23976
23977 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23978 echo "${ECHO_T}$wx_cv_std_libpath" >&6
23979
23980 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
23981
23982 if test "$build" != "$host" -a "$GCC" = yes; then
23983                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23984         cross_root=`dirname $cross_root`
23985         cross_root=`dirname $cross_root`
23986
23987                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23988         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23989         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
23990
23991                 if test -z "$PKG_CONFIG_PATH"; then
23992             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23993             export PKG_CONFIG_PATH
23994         fi
23995
23996                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
23997
23998 ac_find_includes=
23999 for ac_dir in $SEARCH_INCLUDE /usr/include;
24000   do
24001     if test -f "$ac_dir/X11/Intrinsic.h"; then
24002       ac_find_includes=$ac_dir
24003       break
24004     fi
24005   done
24006
24007             x_includes=$ac_find_includes
24008         fi
24009         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24010
24011   ac_find_libraries=
24012   for ac_dir in $SEARCH_LIB;
24013   do
24014     for ac_extension in a so sl dylib dll.a; do
24015       if test -f "$ac_dir/libXt.$ac_extension"; then
24016         ac_find_libraries=$ac_dir
24017         break 2
24018       fi
24019     done
24020   done
24021
24022             x_libraries=$ac_find_libraries
24023         fi
24024     fi
24025 fi
24026
24027
24028 cat >confcache <<\_ACEOF
24029 # This file is a shell script that caches the results of configure
24030 # tests run on this system so they can be shared between configure
24031 # scripts and configure runs, see configure's option --config-cache.
24032 # It is not useful on other systems.  If it contains results you don't
24033 # want to keep, you may remove or edit it.
24034 #
24035 # config.status only pays attention to the cache file if you give it
24036 # the --recheck option to rerun configure.
24037 #
24038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24040 # following values.
24041
24042 _ACEOF
24043
24044 # The following way of writing the cache mishandles newlines in values,
24045 # but we know of no workaround that is simple, portable, and efficient.
24046 # So, don't put newlines in cache variables' values.
24047 # Ultrix sh set writes to stderr and can't be redirected directly,
24048 # and sets the high bit in the cache file unless we assign to the vars.
24049 {
24050   (set) 2>&1 |
24051     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24052     *ac_space=\ *)
24053       # `set' does not quote correctly, so add quotes (double-quote
24054       # substitution turns \\\\ into \\, and sed turns \\ into \).
24055       sed -n \
24056         "s/'/'\\\\''/g;
24057           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24058       ;;
24059     *)
24060       # `set' quotes correctly as required by POSIX, so do not add quotes.
24061       sed -n \
24062         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24063       ;;
24064     esac;
24065 } |
24066   sed '
24067      t clear
24068      : clear
24069      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24070      t end
24071      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24072      : end' >>confcache
24073 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24074   if test -w $cache_file; then
24075     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24076     cat confcache >$cache_file
24077   else
24078     echo "not updating unwritable cache $cache_file"
24079   fi
24080 fi
24081 rm -f confcache
24082
24083 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24084     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24085 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24086 if test "${wx_cv_lib_glibc21+set}" = set; then
24087   echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089
24090         cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096 #include <features.h>
24097 int
24098 main ()
24099 {
24100
24101                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24102                 not glibc 2.1
24103                 #endif
24104
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext
24110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24111   (eval $ac_compile) 2>conftest.er1
24112   ac_status=$?
24113   grep -v '^ *+' conftest.er1 >conftest.err
24114   rm -f conftest.er1
24115   cat conftest.err >&5
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); } &&
24118          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120   (eval $ac_try) 2>&5
24121   ac_status=$?
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); }; } &&
24124          { ac_try='test -s conftest.$ac_objext'
24125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126   (eval $ac_try) 2>&5
24127   ac_status=$?
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); }; }; then
24130
24131                 wx_cv_lib_glibc21=yes
24132
24133 else
24134   echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24136
24137
24138                 wx_cv_lib_glibc21=no
24139
24140
24141 fi
24142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24143
24144 fi
24145 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24146 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24147     if test "$wx_cv_lib_glibc21" = "yes"; then
24148         cat >>confdefs.h <<\_ACEOF
24149 #define wxHAVE_GLIBC2 1
24150 _ACEOF
24151
24152     fi
24153 fi
24154
24155 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24156     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24157         cat >>confdefs.h <<\_ACEOF
24158 #define _GNU_SOURCE 1
24159 _ACEOF
24160
24161     fi
24162 fi
24163
24164 have_cos=0
24165 have_floor=0
24166
24167 for ac_func in cos
24168 do
24169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24170 echo "$as_me:$LINENO: checking for $ac_func" >&5
24171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24172 if eval "test \"\${$as_ac_var+set}\" = set"; then
24173   echo $ECHO_N "(cached) $ECHO_C" >&6
24174 else
24175   cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h.  */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h.  */
24181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24183 #define $ac_func innocuous_$ac_func
24184
24185 /* System header to define __stub macros and hopefully few prototypes,
24186     which can conflict with char $ac_func (); below.
24187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24188     <limits.h> exists even on freestanding compilers.  */
24189
24190 #ifdef __STDC__
24191 # include <limits.h>
24192 #else
24193 # include <assert.h>
24194 #endif
24195
24196 #undef $ac_func
24197
24198 /* Override any gcc2 internal prototype to avoid an error.  */
24199 #ifdef __cplusplus
24200 extern "C"
24201 {
24202 #endif
24203 /* We use char because int might match the return type of a gcc2
24204    builtin and then its argument prototype would still apply.  */
24205 char $ac_func ();
24206 /* The GNU C library defines this for functions which it implements
24207     to always fail with ENOSYS.  Some functions are actually named
24208     something starting with __ and the normal name is an alias.  */
24209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24210 choke me
24211 #else
24212 char (*f) () = $ac_func;
24213 #endif
24214 #ifdef __cplusplus
24215 }
24216 #endif
24217
24218 int
24219 main ()
24220 {
24221 return f != $ac_func;
24222   ;
24223   return 0;
24224 }
24225 _ACEOF
24226 rm -f conftest.$ac_objext conftest$ac_exeext
24227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24228   (eval $ac_link) 2>conftest.er1
24229   ac_status=$?
24230   grep -v '^ *+' conftest.er1 >conftest.err
24231   rm -f conftest.er1
24232   cat conftest.err >&5
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); } &&
24235          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237   (eval $ac_try) 2>&5
24238   ac_status=$?
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); }; } &&
24241          { ac_try='test -s conftest$ac_exeext'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; }; then
24247   eval "$as_ac_var=yes"
24248 else
24249   echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24251
24252 eval "$as_ac_var=no"
24253 fi
24254 rm -f conftest.err conftest.$ac_objext \
24255       conftest$ac_exeext conftest.$ac_ext
24256 fi
24257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24259 if test `eval echo '${'$as_ac_var'}'` = yes; then
24260   cat >>confdefs.h <<_ACEOF
24261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24262 _ACEOF
24263  have_cos=1
24264 fi
24265 done
24266
24267
24268 for ac_func in floor
24269 do
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273 if eval "test \"\${$as_ac_var+set}\" = set"; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24284 #define $ac_func innocuous_$ac_func
24285
24286 /* System header to define __stub macros and hopefully few prototypes,
24287     which can conflict with char $ac_func (); below.
24288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289     <limits.h> exists even on freestanding compilers.  */
24290
24291 #ifdef __STDC__
24292 # include <limits.h>
24293 #else
24294 # include <assert.h>
24295 #endif
24296
24297 #undef $ac_func
24298
24299 /* Override any gcc2 internal prototype to avoid an error.  */
24300 #ifdef __cplusplus
24301 extern "C"
24302 {
24303 #endif
24304 /* We use char because int might match the return type of a gcc2
24305    builtin and then its argument prototype would still apply.  */
24306 char $ac_func ();
24307 /* The GNU C library defines this for functions which it implements
24308     to always fail with ENOSYS.  Some functions are actually named
24309     something starting with __ and the normal name is an alias.  */
24310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24311 choke me
24312 #else
24313 char (*f) () = $ac_func;
24314 #endif
24315 #ifdef __cplusplus
24316 }
24317 #endif
24318
24319 int
24320 main ()
24321 {
24322 return f != $ac_func;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329   (eval $ac_link) 2>conftest.er1
24330   ac_status=$?
24331   grep -v '^ *+' conftest.er1 >conftest.err
24332   rm -f conftest.er1
24333   cat conftest.err >&5
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } &&
24336          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338   (eval $ac_try) 2>&5
24339   ac_status=$?
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); }; } &&
24342          { ac_try='test -s conftest$ac_exeext'
24343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344   (eval $ac_try) 2>&5
24345   ac_status=$?
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); }; }; then
24348   eval "$as_ac_var=yes"
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353 eval "$as_ac_var=no"
24354 fi
24355 rm -f conftest.err conftest.$ac_objext \
24356       conftest$ac_exeext conftest.$ac_ext
24357 fi
24358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360 if test `eval echo '${'$as_ac_var'}'` = yes; then
24361   cat >>confdefs.h <<_ACEOF
24362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24363 _ACEOF
24364  have_floor=1
24365 fi
24366 done
24367
24368 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24369 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24370 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24371     echo "$as_me:$LINENO: result: yes" >&5
24372 echo "${ECHO_T}yes" >&6
24373 else
24374     echo "$as_me:$LINENO: result: no" >&5
24375 echo "${ECHO_T}no" >&6
24376     LIBS="$LIBS -lm"
24377     # use different functions to avoid configure caching
24378     have_sin=0
24379     have_ceil=0
24380
24381 for ac_func in sin
24382 do
24383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24384 echo "$as_me:$LINENO: checking for $ac_func" >&5
24385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24386 if eval "test \"\${$as_ac_var+set}\" = set"; then
24387   echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389   cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h.  */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h.  */
24395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24397 #define $ac_func innocuous_$ac_func
24398
24399 /* System header to define __stub macros and hopefully few prototypes,
24400     which can conflict with char $ac_func (); below.
24401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24402     <limits.h> exists even on freestanding compilers.  */
24403
24404 #ifdef __STDC__
24405 # include <limits.h>
24406 #else
24407 # include <assert.h>
24408 #endif
24409
24410 #undef $ac_func
24411
24412 /* Override any gcc2 internal prototype to avoid an error.  */
24413 #ifdef __cplusplus
24414 extern "C"
24415 {
24416 #endif
24417 /* We use char because int might match the return type of a gcc2
24418    builtin and then its argument prototype would still apply.  */
24419 char $ac_func ();
24420 /* The GNU C library defines this for functions which it implements
24421     to always fail with ENOSYS.  Some functions are actually named
24422     something starting with __ and the normal name is an alias.  */
24423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24424 choke me
24425 #else
24426 char (*f) () = $ac_func;
24427 #endif
24428 #ifdef __cplusplus
24429 }
24430 #endif
24431
24432 int
24433 main ()
24434 {
24435 return f != $ac_func;
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext conftest$ac_exeext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442   (eval $ac_link) 2>conftest.er1
24443   ac_status=$?
24444   grep -v '^ *+' conftest.er1 >conftest.err
24445   rm -f conftest.er1
24446   cat conftest.err >&5
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } &&
24449          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451   (eval $ac_try) 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); }; } &&
24455          { ac_try='test -s conftest$ac_exeext'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461   eval "$as_ac_var=yes"
24462 else
24463   echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466 eval "$as_ac_var=no"
24467 fi
24468 rm -f conftest.err conftest.$ac_objext \
24469       conftest$ac_exeext conftest.$ac_ext
24470 fi
24471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24473 if test `eval echo '${'$as_ac_var'}'` = yes; then
24474   cat >>confdefs.h <<_ACEOF
24475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24476 _ACEOF
24477  have_sin=1
24478 fi
24479 done
24480
24481
24482 for ac_func in ceil
24483 do
24484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24485 echo "$as_me:$LINENO: checking for $ac_func" >&5
24486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24487 if eval "test \"\${$as_ac_var+set}\" = set"; then
24488   echo $ECHO_N "(cached) $ECHO_C" >&6
24489 else
24490   cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24498 #define $ac_func innocuous_$ac_func
24499
24500 /* System header to define __stub macros and hopefully few prototypes,
24501     which can conflict with char $ac_func (); below.
24502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24503     <limits.h> exists even on freestanding compilers.  */
24504
24505 #ifdef __STDC__
24506 # include <limits.h>
24507 #else
24508 # include <assert.h>
24509 #endif
24510
24511 #undef $ac_func
24512
24513 /* Override any gcc2 internal prototype to avoid an error.  */
24514 #ifdef __cplusplus
24515 extern "C"
24516 {
24517 #endif
24518 /* We use char because int might match the return type of a gcc2
24519    builtin and then its argument prototype would still apply.  */
24520 char $ac_func ();
24521 /* The GNU C library defines this for functions which it implements
24522     to always fail with ENOSYS.  Some functions are actually named
24523     something starting with __ and the normal name is an alias.  */
24524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24525 choke me
24526 #else
24527 char (*f) () = $ac_func;
24528 #endif
24529 #ifdef __cplusplus
24530 }
24531 #endif
24532
24533 int
24534 main ()
24535 {
24536 return f != $ac_func;
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24543   (eval $ac_link) 2>conftest.er1
24544   ac_status=$?
24545   grep -v '^ *+' conftest.er1 >conftest.err
24546   rm -f conftest.er1
24547   cat conftest.err >&5
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); } &&
24550          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552   (eval $ac_try) 2>&5
24553   ac_status=$?
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); }; } &&
24556          { ac_try='test -s conftest$ac_exeext'
24557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558   (eval $ac_try) 2>&5
24559   ac_status=$?
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); }; }; then
24562   eval "$as_ac_var=yes"
24563 else
24564   echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567 eval "$as_ac_var=no"
24568 fi
24569 rm -f conftest.err conftest.$ac_objext \
24570       conftest$ac_exeext conftest.$ac_ext
24571 fi
24572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24574 if test `eval echo '${'$as_ac_var'}'` = yes; then
24575   cat >>confdefs.h <<_ACEOF
24576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24577 _ACEOF
24578  have_ceil=1
24579 fi
24580 done
24581
24582     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24583 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24584     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24585         echo "$as_me:$LINENO: result: yes" >&5
24586 echo "${ECHO_T}yes" >&6
24587     else
24588         echo "$as_me:$LINENO: result: no" >&5
24589 echo "${ECHO_T}no" >&6
24590         # not sure we should warn the user, crash, etc.
24591     fi
24592 fi
24593
24594
24595
24596 if test "$wxUSE_REGEX" != "no"; then
24597     cat >>confdefs.h <<\_ACEOF
24598 #define wxUSE_REGEX 1
24599 _ACEOF
24600
24601
24602     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24603         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24604 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24605         wxUSE_REGEX=builtin
24606     fi
24607
24608     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24609                         if test "${ac_cv_header_regex_h+set}" = set; then
24610   echo "$as_me:$LINENO: checking for regex.h" >&5
24611 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24612 if test "${ac_cv_header_regex_h+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 fi
24615 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24616 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24617 else
24618   # Is the header compilable?
24619 echo "$as_me:$LINENO: checking regex.h usability" >&5
24620 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627 $ac_includes_default
24628 #include <regex.h>
24629 _ACEOF
24630 rm -f conftest.$ac_objext
24631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24632   (eval $ac_compile) 2>conftest.er1
24633   ac_status=$?
24634   grep -v '^ *+' conftest.er1 >conftest.err
24635   rm -f conftest.er1
24636   cat conftest.err >&5
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); } &&
24639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641   (eval $ac_try) 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; } &&
24645          { ac_try='test -s conftest.$ac_objext'
24646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); }; }; then
24651   ac_header_compiler=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656 ac_header_compiler=no
24657 fi
24658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24660 echo "${ECHO_T}$ac_header_compiler" >&6
24661
24662 # Is the header present?
24663 echo "$as_me:$LINENO: checking regex.h presence" >&5
24664 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24665 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h.  */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h.  */
24671 #include <regex.h>
24672 _ACEOF
24673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24675   ac_status=$?
24676   grep -v '^ *+' conftest.er1 >conftest.err
24677   rm -f conftest.er1
24678   cat conftest.err >&5
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); } >/dev/null; then
24681   if test -s conftest.err; then
24682     ac_cpp_err=$ac_cxx_preproc_warn_flag
24683     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24684   else
24685     ac_cpp_err=
24686   fi
24687 else
24688   ac_cpp_err=yes
24689 fi
24690 if test -z "$ac_cpp_err"; then
24691   ac_header_preproc=yes
24692 else
24693   echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696   ac_header_preproc=no
24697 fi
24698 rm -f conftest.err conftest.$ac_ext
24699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24700 echo "${ECHO_T}$ac_header_preproc" >&6
24701
24702 # So?  What about this header?
24703 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24704   yes:no: )
24705     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24706 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24707     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24708 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24709     ac_header_preproc=yes
24710     ;;
24711   no:yes:* )
24712     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24713 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24714     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
24715 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
24716     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24717 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24718     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
24719 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24720     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24721 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24722     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24723 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24724     (
24725       cat <<\_ASBOX
24726 ## ----------------------------------------- ##
24727 ## Report this to wx-dev@lists.wxwidgets.org ##
24728 ## ----------------------------------------- ##
24729 _ASBOX
24730     ) |
24731       sed "s/^/$as_me: WARNING:     /" >&2
24732     ;;
24733 esac
24734 echo "$as_me:$LINENO: checking for regex.h" >&5
24735 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24736 if test "${ac_cv_header_regex_h+set}" = set; then
24737   echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739   ac_cv_header_regex_h=$ac_header_preproc
24740 fi
24741 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24742 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24743
24744 fi
24745 if test $ac_cv_header_regex_h = yes; then
24746
24747
24748 for ac_func in regcomp re_search
24749 do
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24753 if eval "test \"\${$as_ac_var+set}\" = set"; then
24754   echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24764 #define $ac_func innocuous_$ac_func
24765
24766 /* System header to define __stub macros and hopefully few prototypes,
24767     which can conflict with char $ac_func (); below.
24768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769     <limits.h> exists even on freestanding compilers.  */
24770
24771 #ifdef __STDC__
24772 # include <limits.h>
24773 #else
24774 # include <assert.h>
24775 #endif
24776
24777 #undef $ac_func
24778
24779 /* Override any gcc2 internal prototype to avoid an error.  */
24780 #ifdef __cplusplus
24781 extern "C"
24782 {
24783 #endif
24784 /* We use char because int might match the return type of a gcc2
24785    builtin and then its argument prototype would still apply.  */
24786 char $ac_func ();
24787 /* The GNU C library defines this for functions which it implements
24788     to always fail with ENOSYS.  Some functions are actually named
24789     something starting with __ and the normal name is an alias.  */
24790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24791 choke me
24792 #else
24793 char (*f) () = $ac_func;
24794 #endif
24795 #ifdef __cplusplus
24796 }
24797 #endif
24798
24799 int
24800 main ()
24801 {
24802 return f != $ac_func;
24803   ;
24804   return 0;
24805 }
24806 _ACEOF
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24809   (eval $ac_link) 2>conftest.er1
24810   ac_status=$?
24811   grep -v '^ *+' conftest.er1 >conftest.err
24812   rm -f conftest.er1
24813   cat conftest.err >&5
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); } &&
24816          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; } &&
24822          { ac_try='test -s conftest$ac_exeext'
24823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824   (eval $ac_try) 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   eval "$as_ac_var=yes"
24829 else
24830   echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 eval "$as_ac_var=no"
24834 fi
24835 rm -f conftest.err conftest.$ac_objext \
24836       conftest$ac_exeext conftest.$ac_ext
24837 fi
24838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24840 if test `eval echo '${'$as_ac_var'}'` = yes; then
24841   cat >>confdefs.h <<_ACEOF
24842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24843 _ACEOF
24844
24845 fi
24846 done
24847
24848 fi
24849
24850
24851
24852         if test "x$ac_cv_func_regcomp" != "xyes"; then
24853             if test "$wxUSE_REGEX" = "sys" ; then
24854                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24855 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24856    { (exit 1); exit 1; }; }
24857             else
24858                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24859 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24860                 wxUSE_REGEX=builtin
24861             fi
24862         else
24863                         wxUSE_REGEX=sys
24864                         cat >>confdefs.h <<\_ACEOF
24865 #define WX_NO_REGEX_ADVANCED 1
24866 _ACEOF
24867
24868         fi
24869     fi
24870 fi
24871
24872
24873 ZLIB_LINK=
24874 if test "$wxUSE_ZLIB" != "no" ; then
24875     cat >>confdefs.h <<\_ACEOF
24876 #define wxUSE_ZLIB 1
24877 _ACEOF
24878
24879
24880     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24881                                                 if test "$USE_DARWIN" = 1; then
24882             system_zlib_h_ok="yes"
24883         else
24884                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24885 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24886 if test "${ac_cv_header_zlib_h+set}" = set; then
24887   echo $ECHO_N "(cached) $ECHO_C" >&6
24888 else
24889   if test "$cross_compiling" = yes; then
24890                       unset ac_cv_header_zlib_h
24891
24892 else
24893   cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h.  */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h.  */
24899
24900                         #include <zlib.h>
24901                         #include <stdio.h>
24902
24903                         int main()
24904                         {
24905                             FILE *f=fopen("conftestval", "w");
24906                             if (!f) exit(1);
24907                             fprintf(f, "%s",
24908                                     ZLIB_VERSION[0] == '1' &&
24909                                     (ZLIB_VERSION[2] > '1' ||
24910                                     (ZLIB_VERSION[2] == '1' &&
24911                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24912                             exit(0);
24913                         }
24914
24915 _ACEOF
24916 rm -f conftest$ac_exeext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918   (eval $ac_link) 2>&5
24919   ac_status=$?
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923   (eval $ac_try) 2>&5
24924   ac_status=$?
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); }; }; then
24927   ac_cv_header_zlib_h=`cat conftestval`
24928 else
24929   echo "$as_me: program exited with status $ac_status" >&5
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24932
24933 ( exit $ac_status )
24934 ac_cv_header_zlib_h=no
24935 fi
24936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24937 fi
24938
24939 fi
24940 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24941 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24942                                     if test "${ac_cv_header_zlib_h+set}" = set; then
24943   echo "$as_me:$LINENO: checking for zlib.h" >&5
24944 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24945 if test "${ac_cv_header_zlib_h+set}" = set; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 fi
24948 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24949 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24950 else
24951   # Is the header compilable?
24952 echo "$as_me:$LINENO: checking zlib.h usability" >&5
24953 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24954 cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960 $ac_includes_default
24961 #include <zlib.h>
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24965   (eval $ac_compile) 2>conftest.er1
24966   ac_status=$?
24967   grep -v '^ *+' conftest.er1 >conftest.err
24968   rm -f conftest.er1
24969   cat conftest.err >&5
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); } &&
24972          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974   (eval $ac_try) 2>&5
24975   ac_status=$?
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); }; } &&
24978          { ac_try='test -s conftest.$ac_objext'
24979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980   (eval $ac_try) 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); }; }; then
24984   ac_header_compiler=yes
24985 else
24986   echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989 ac_header_compiler=no
24990 fi
24991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24993 echo "${ECHO_T}$ac_header_compiler" >&6
24994
24995 # Is the header present?
24996 echo "$as_me:$LINENO: checking zlib.h presence" >&5
24997 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24998 cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004 #include <zlib.h>
25005 _ACEOF
25006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } >/dev/null; then
25014   if test -s conftest.err; then
25015     ac_cpp_err=$ac_cxx_preproc_warn_flag
25016     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25017   else
25018     ac_cpp_err=
25019   fi
25020 else
25021   ac_cpp_err=yes
25022 fi
25023 if test -z "$ac_cpp_err"; then
25024   ac_header_preproc=yes
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029   ac_header_preproc=no
25030 fi
25031 rm -f conftest.err conftest.$ac_ext
25032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25033 echo "${ECHO_T}$ac_header_preproc" >&6
25034
25035 # So?  What about this header?
25036 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25037   yes:no: )
25038     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25039 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25040     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25041 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25042     ac_header_preproc=yes
25043     ;;
25044   no:yes:* )
25045     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25046 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25047     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25048 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25049     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25050 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25051     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25052 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25053     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25054 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25055     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25056 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25057     (
25058       cat <<\_ASBOX
25059 ## ----------------------------------------- ##
25060 ## Report this to wx-dev@lists.wxwidgets.org ##
25061 ## ----------------------------------------- ##
25062 _ASBOX
25063     ) |
25064       sed "s/^/$as_me: WARNING:     /" >&2
25065     ;;
25066 esac
25067 echo "$as_me:$LINENO: checking for zlib.h" >&5
25068 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25069 if test "${ac_cv_header_zlib_h+set}" = set; then
25070   echo $ECHO_N "(cached) $ECHO_C" >&6
25071 else
25072   ac_cv_header_zlib_h=$ac_header_preproc
25073 fi
25074 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25075 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25076
25077 fi
25078
25079
25080
25081             system_zlib_h_ok=$ac_cv_header_zlib_h
25082         fi
25083
25084         if test "$system_zlib_h_ok" = "yes"; then
25085             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25086 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25087 if test "${ac_cv_lib_z_deflate+set}" = set; then
25088   echo $ECHO_N "(cached) $ECHO_C" >&6
25089 else
25090   ac_check_lib_save_LIBS=$LIBS
25091 LIBS="-lz  $LIBS"
25092 cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098
25099 /* Override any gcc2 internal prototype to avoid an error.  */
25100 #ifdef __cplusplus
25101 extern "C"
25102 #endif
25103 /* We use char because int might match the return type of a gcc2
25104    builtin and then its argument prototype would still apply.  */
25105 char deflate ();
25106 int
25107 main ()
25108 {
25109 deflate ();
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest.$ac_objext conftest$ac_exeext
25115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25116   (eval $ac_link) 2>conftest.er1
25117   ac_status=$?
25118   grep -v '^ *+' conftest.er1 >conftest.err
25119   rm -f conftest.er1
25120   cat conftest.err >&5
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); } &&
25123          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; } &&
25129          { ac_try='test -s conftest$ac_exeext'
25130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131   (eval $ac_try) 2>&5
25132   ac_status=$?
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); }; }; then
25135   ac_cv_lib_z_deflate=yes
25136 else
25137   echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_cv_lib_z_deflate=no
25141 fi
25142 rm -f conftest.err conftest.$ac_objext \
25143       conftest$ac_exeext conftest.$ac_ext
25144 LIBS=$ac_check_lib_save_LIBS
25145 fi
25146 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25147 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25148 if test $ac_cv_lib_z_deflate = yes; then
25149   ZLIB_LINK=" -lz"
25150 fi
25151
25152         fi
25153
25154         if test "x$ZLIB_LINK" = "x" ; then
25155             if test "$wxUSE_ZLIB" = "sys" ; then
25156                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25157 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25158    { (exit 1); exit 1; }; }
25159             else
25160                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25161 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25162                 wxUSE_ZLIB=builtin
25163             fi
25164         else
25165                         wxUSE_ZLIB=sys
25166         fi
25167     fi
25168 fi
25169
25170
25171 PNG_LINK=
25172 if test "$wxUSE_LIBPNG" != "no" ; then
25173     cat >>confdefs.h <<\_ACEOF
25174 #define wxUSE_LIBPNG 1
25175 _ACEOF
25176
25177
25178     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25179         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25180 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25181         wxUSE_LIBPNG=sys
25182     fi
25183
25184                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25185         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25186 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25187         wxUSE_LIBPNG=builtin
25188     fi
25189
25190     if test "$wxUSE_MGL" != 1 ; then
25191                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25192                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25193 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25194 if test "${ac_cv_header_png_h+set}" = set; then
25195   echo $ECHO_N "(cached) $ECHO_C" >&6
25196 else
25197   if test "$cross_compiling" = yes; then
25198                       unset ac_cv_header_png_h
25199
25200 else
25201   cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207
25208                         #include <png.h>
25209                         #include <stdio.h>
25210
25211                         int main()
25212                         {
25213                             FILE *f=fopen("conftestval", "w");
25214                             if (!f) exit(1);
25215                             fprintf(f, "%s",
25216                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25217                             exit(0);
25218                         }
25219
25220 _ACEOF
25221 rm -f conftest$ac_exeext
25222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25223   (eval $ac_link) 2>&5
25224   ac_status=$?
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228   (eval $ac_try) 2>&5
25229   ac_status=$?
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); }; }; then
25232   ac_cv_header_png_h=`cat conftestval`
25233 else
25234   echo "$as_me: program exited with status $ac_status" >&5
25235 echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25237
25238 ( exit $ac_status )
25239 ac_cv_header_png_h=no
25240 fi
25241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25242 fi
25243
25244 fi
25245 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25246 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25247             if test "${ac_cv_header_png_h+set}" = set; then
25248   echo "$as_me:$LINENO: checking for png.h" >&5
25249 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25250 if test "${ac_cv_header_png_h+set}" = set; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 fi
25253 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25254 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25255 else
25256   # Is the header compilable?
25257 echo "$as_me:$LINENO: checking png.h usability" >&5
25258 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25259 cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h.  */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h.  */
25265 $ac_includes_default
25266 #include <png.h>
25267 _ACEOF
25268 rm -f conftest.$ac_objext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25270   (eval $ac_compile) 2>conftest.er1
25271   ac_status=$?
25272   grep -v '^ *+' conftest.er1 >conftest.err
25273   rm -f conftest.er1
25274   cat conftest.err >&5
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); } &&
25277          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279   (eval $ac_try) 2>&5
25280   ac_status=$?
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); }; } &&
25283          { ac_try='test -s conftest.$ac_objext'
25284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285   (eval $ac_try) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); }; }; then
25289   ac_header_compiler=yes
25290 else
25291   echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25293
25294 ac_header_compiler=no
25295 fi
25296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25298 echo "${ECHO_T}$ac_header_compiler" >&6
25299
25300 # Is the header present?
25301 echo "$as_me:$LINENO: checking png.h presence" >&5
25302 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309 #include <png.h>
25310 _ACEOF
25311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } >/dev/null; then
25319   if test -s conftest.err; then
25320     ac_cpp_err=$ac_cxx_preproc_warn_flag
25321     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25322   else
25323     ac_cpp_err=
25324   fi
25325 else
25326   ac_cpp_err=yes
25327 fi
25328 if test -z "$ac_cpp_err"; then
25329   ac_header_preproc=yes
25330 else
25331   echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334   ac_header_preproc=no
25335 fi
25336 rm -f conftest.err conftest.$ac_ext
25337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25338 echo "${ECHO_T}$ac_header_preproc" >&6
25339
25340 # So?  What about this header?
25341 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25342   yes:no: )
25343     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25344 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25345     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25346 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25347     ac_header_preproc=yes
25348     ;;
25349   no:yes:* )
25350     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25351 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25352     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25353 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25354     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25355 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25356     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25357 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25358     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25359 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25360     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25361 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25362     (
25363       cat <<\_ASBOX
25364 ## ----------------------------------------- ##
25365 ## Report this to wx-dev@lists.wxwidgets.org ##
25366 ## ----------------------------------------- ##
25367 _ASBOX
25368     ) |
25369       sed "s/^/$as_me: WARNING:     /" >&2
25370     ;;
25371 esac
25372 echo "$as_me:$LINENO: checking for png.h" >&5
25373 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25374 if test "${ac_cv_header_png_h+set}" = set; then
25375   echo $ECHO_N "(cached) $ECHO_C" >&6
25376 else
25377   ac_cv_header_png_h=$ac_header_preproc
25378 fi
25379 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25380 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25381
25382 fi
25383
25384
25385
25386             if test "$ac_cv_header_png_h" = "yes"; then
25387                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25388 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25389 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25390   echo $ECHO_N "(cached) $ECHO_C" >&6
25391 else
25392   ac_check_lib_save_LIBS=$LIBS
25393 LIBS="-lpng -lz -lm $LIBS"
25394 cat >conftest.$ac_ext <<_ACEOF
25395 /* confdefs.h.  */
25396 _ACEOF
25397 cat confdefs.h >>conftest.$ac_ext
25398 cat >>conftest.$ac_ext <<_ACEOF
25399 /* end confdefs.h.  */
25400
25401 /* Override any gcc2 internal prototype to avoid an error.  */
25402 #ifdef __cplusplus
25403 extern "C"
25404 #endif
25405 /* We use char because int might match the return type of a gcc2
25406    builtin and then its argument prototype would still apply.  */
25407 char png_check_sig ();
25408 int
25409 main ()
25410 {
25411 png_check_sig ();
25412   ;
25413   return 0;
25414 }
25415 _ACEOF
25416 rm -f conftest.$ac_objext conftest$ac_exeext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418   (eval $ac_link) 2>conftest.er1
25419   ac_status=$?
25420   grep -v '^ *+' conftest.er1 >conftest.err
25421   rm -f conftest.er1
25422   cat conftest.err >&5
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); } &&
25425          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427   (eval $ac_try) 2>&5
25428   ac_status=$?
25429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430   (exit $ac_status); }; } &&
25431          { ac_try='test -s conftest$ac_exeext'
25432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25433   (eval $ac_try) 2>&5
25434   ac_status=$?
25435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436   (exit $ac_status); }; }; then
25437   ac_cv_lib_png_png_check_sig=yes
25438 else
25439   echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442 ac_cv_lib_png_png_check_sig=no
25443 fi
25444 rm -f conftest.err conftest.$ac_objext \
25445       conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25447 fi
25448 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25449 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25450 if test $ac_cv_lib_png_png_check_sig = yes; then
25451   PNG_LINK=" -lpng -lz"
25452 fi
25453
25454             fi
25455
25456             if test "x$PNG_LINK" = "x" ; then
25457                 if test "$wxUSE_LIBPNG" = "sys" ; then
25458                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25459 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25460    { (exit 1); exit 1; }; }
25461                 else
25462                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25463 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25464                     wxUSE_LIBPNG=builtin
25465                 fi
25466             else
25467                                 wxUSE_LIBPNG=sys
25468             fi
25469         fi
25470     fi
25471
25472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25473 fi
25474
25475
25476 JPEG_LINK=
25477 if test "$wxUSE_LIBJPEG" != "no" ; then
25478     cat >>confdefs.h <<\_ACEOF
25479 #define wxUSE_LIBJPEG 1
25480 _ACEOF
25481
25482
25483     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25484         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25485 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25486         wxUSE_LIBJPEG=sys
25487     fi
25488
25489     if test "$wxUSE_MGL" != 1 ; then
25490                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25491                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25492 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25493             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25494   echo $ECHO_N "(cached) $ECHO_C" >&6
25495 else
25496   cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502
25503                         #undef HAVE_STDLIB_H
25504                         #include <stdio.h>
25505                         #include <jpeglib.h>
25506
25507 int
25508 main ()
25509 {
25510
25511
25512   ;
25513   return 0;
25514 }
25515 _ACEOF
25516 rm -f conftest.$ac_objext
25517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25518   (eval $ac_compile) 2>conftest.er1
25519   ac_status=$?
25520   grep -v '^ *+' conftest.er1 >conftest.err
25521   rm -f conftest.er1
25522   cat conftest.err >&5
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } &&
25525          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527   (eval $ac_try) 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; } &&
25531          { ac_try='test -s conftest.$ac_objext'
25532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533   (eval $ac_try) 2>&5
25534   ac_status=$?
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); }; }; then
25537   ac_cv_header_jpeglib_h=yes
25538 else
25539   echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_cv_header_jpeglib_h=no
25543
25544 fi
25545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25546
25547 fi
25548
25549             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25550 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25551
25552             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25553                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25554 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25555 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25556   echo $ECHO_N "(cached) $ECHO_C" >&6
25557 else
25558   ac_check_lib_save_LIBS=$LIBS
25559 LIBS="-ljpeg  $LIBS"
25560 cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566
25567 /* Override any gcc2 internal prototype to avoid an error.  */
25568 #ifdef __cplusplus
25569 extern "C"
25570 #endif
25571 /* We use char because int might match the return type of a gcc2
25572    builtin and then its argument prototype would still apply.  */
25573 char jpeg_read_header ();
25574 int
25575 main ()
25576 {
25577 jpeg_read_header ();
25578   ;
25579   return 0;
25580 }
25581 _ACEOF
25582 rm -f conftest.$ac_objext conftest$ac_exeext
25583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584   (eval $ac_link) 2>conftest.er1
25585   ac_status=$?
25586   grep -v '^ *+' conftest.er1 >conftest.err
25587   rm -f conftest.er1
25588   cat conftest.err >&5
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); } &&
25591          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593   (eval $ac_try) 2>&5
25594   ac_status=$?
25595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); }; } &&
25597          { ac_try='test -s conftest$ac_exeext'
25598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599   (eval $ac_try) 2>&5
25600   ac_status=$?
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); }; }; then
25603   ac_cv_lib_jpeg_jpeg_read_header=yes
25604 else
25605   echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25607
25608 ac_cv_lib_jpeg_jpeg_read_header=no
25609 fi
25610 rm -f conftest.err conftest.$ac_objext \
25611       conftest$ac_exeext conftest.$ac_ext
25612 LIBS=$ac_check_lib_save_LIBS
25613 fi
25614 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25615 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25616 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25617   JPEG_LINK=" -ljpeg"
25618 fi
25619
25620             fi
25621
25622             if test "x$JPEG_LINK" = "x" ; then
25623                 if test "$wxUSE_LIBJPEG" = "sys" ; then
25624                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25625 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25626    { (exit 1); exit 1; }; }
25627                 else
25628                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25629 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25630                     wxUSE_LIBJPEG=builtin
25631                 fi
25632             else
25633                                 wxUSE_LIBJPEG=sys
25634             fi
25635         fi
25636     fi
25637 fi
25638
25639
25640 TIFF_LINK=
25641 TIFF_PREREQ_LINKS=-lm
25642 if test "$wxUSE_LIBTIFF" != "no" ; then
25643     cat >>confdefs.h <<\_ACEOF
25644 #define wxUSE_LIBTIFF 1
25645 _ACEOF
25646
25647
25648     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25649                         if test "$wxUSE_LIBJPEG" = "sys"; then
25650             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25651         fi
25652         if test "$wxUSE_ZLIB" = "sys"; then
25653             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25654         fi
25655         if test "${ac_cv_header_tiffio_h+set}" = set; then
25656   echo "$as_me:$LINENO: checking for tiffio.h" >&5
25657 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25658 if test "${ac_cv_header_tiffio_h+set}" = set; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 fi
25661 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25662 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25663 else
25664   # Is the header compilable?
25665 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25666 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25667 cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 $ac_includes_default
25674 #include <tiffio.h>
25675 _ACEOF
25676 rm -f conftest.$ac_objext
25677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678   (eval $ac_compile) 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } &&
25685          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687   (eval $ac_try) 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; } &&
25691          { ac_try='test -s conftest.$ac_objext'
25692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693   (eval $ac_try) 2>&5
25694   ac_status=$?
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); }; }; then
25697   ac_header_compiler=yes
25698 else
25699   echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25701
25702 ac_header_compiler=no
25703 fi
25704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25706 echo "${ECHO_T}$ac_header_compiler" >&6
25707
25708 # Is the header present?
25709 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25710 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25711 cat >conftest.$ac_ext <<_ACEOF
25712 /* confdefs.h.  */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h.  */
25717 #include <tiffio.h>
25718 _ACEOF
25719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } >/dev/null; then
25727   if test -s conftest.err; then
25728     ac_cpp_err=$ac_cxx_preproc_warn_flag
25729     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25730   else
25731     ac_cpp_err=
25732   fi
25733 else
25734   ac_cpp_err=yes
25735 fi
25736 if test -z "$ac_cpp_err"; then
25737   ac_header_preproc=yes
25738 else
25739   echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742   ac_header_preproc=no
25743 fi
25744 rm -f conftest.err conftest.$ac_ext
25745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25746 echo "${ECHO_T}$ac_header_preproc" >&6
25747
25748 # So?  What about this header?
25749 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25750   yes:no: )
25751     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25752 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25753     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25754 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25755     ac_header_preproc=yes
25756     ;;
25757   no:yes:* )
25758     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25759 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
25761 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25763 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
25765 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25766     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25767 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
25768     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25769 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
25770     (
25771       cat <<\_ASBOX
25772 ## ----------------------------------------- ##
25773 ## Report this to wx-dev@lists.wxwidgets.org ##
25774 ## ----------------------------------------- ##
25775 _ASBOX
25776     ) |
25777       sed "s/^/$as_me: WARNING:     /" >&2
25778     ;;
25779 esac
25780 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25781 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25782 if test "${ac_cv_header_tiffio_h+set}" = set; then
25783   echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785   ac_cv_header_tiffio_h=$ac_header_preproc
25786 fi
25787 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25788 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25789
25790 fi
25791 if test $ac_cv_header_tiffio_h = yes; then
25792
25793                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25794 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25795 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798   ac_check_lib_save_LIBS=$LIBS
25799 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806
25807 /* Override any gcc2 internal prototype to avoid an error.  */
25808 #ifdef __cplusplus
25809 extern "C"
25810 #endif
25811 /* We use char because int might match the return type of a gcc2
25812    builtin and then its argument prototype would still apply.  */
25813 char TIFFError ();
25814 int
25815 main ()
25816 {
25817 TIFFError ();
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 rm -f conftest.$ac_objext conftest$ac_exeext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25824   (eval $ac_link) 2>conftest.er1
25825   ac_status=$?
25826   grep -v '^ *+' conftest.er1 >conftest.err
25827   rm -f conftest.er1
25828   cat conftest.err >&5
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } &&
25831          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833   (eval $ac_try) 2>&5
25834   ac_status=$?
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); }; } &&
25837          { ac_try='test -s conftest$ac_exeext'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; }; then
25843   ac_cv_lib_tiff_TIFFError=yes
25844 else
25845   echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25847
25848 ac_cv_lib_tiff_TIFFError=no
25849 fi
25850 rm -f conftest.err conftest.$ac_objext \
25851       conftest$ac_exeext conftest.$ac_ext
25852 LIBS=$ac_check_lib_save_LIBS
25853 fi
25854 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25855 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25856 if test $ac_cv_lib_tiff_TIFFError = yes; then
25857   TIFF_LINK=" -ltiff"
25858 fi
25859
25860
25861
25862 fi
25863
25864
25865
25866         if test "x$TIFF_LINK" = "x" ; then
25867             if test "$wxUSE_LIBTIFF" = "sys" ; then
25868                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25869 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25870    { (exit 1); exit 1; }; }
25871             else
25872                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25873 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25874                 wxUSE_LIBTIFF=builtin
25875             fi
25876         else
25877                         wxUSE_LIBTIFF=sys
25878         fi
25879     fi
25880 fi
25881
25882
25883 if test "$wxUSE_WCHAR_T" != "yes"; then
25884     if test "$wxUSE_EXPAT" != "no"; then
25885         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25886 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25887         wxUSE_EXPAT=no
25888     fi
25889     if test "$wxUSE_XML" != "no"; then
25890         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25891 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25892         wxUSE_XML=no
25893     fi
25894 fi
25895
25896 if test "$wxUSE_EXPAT" != "no"; then
25897     wxUSE_XML=yes
25898     cat >>confdefs.h <<\_ACEOF
25899 #define wxUSE_EXPAT 1
25900 _ACEOF
25901
25902     cat >>confdefs.h <<\_ACEOF
25903 #define wxUSE_XML 1
25904 _ACEOF
25905
25906
25907     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25908         if test "${ac_cv_header_expat_h+set}" = set; then
25909   echo "$as_me:$LINENO: checking for expat.h" >&5
25910 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25911 if test "${ac_cv_header_expat_h+set}" = set; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 fi
25914 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25915 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25916 else
25917   # Is the header compilable?
25918 echo "$as_me:$LINENO: checking expat.h usability" >&5
25919 echo $ECHO_N "checking expat.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 <expat.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 expat.h presence" >&5
25963 echo $ECHO_N "checking expat.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 <expat.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: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26005 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26006     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26007 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26008     ac_header_preproc=yes
26009     ;;
26010   no:yes:* )
26011     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26012 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26013     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26014 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26015     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26016 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26017     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26018 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26019     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26020 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26021     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26022 echo "$as_me: WARNING: expat.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 expat.h" >&5
26034 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26035 if test "${ac_cv_header_expat_h+set}" = set; then
26036   echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038   ac_cv_header_expat_h=$ac_header_preproc
26039 fi
26040 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26041 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26042
26043 fi
26044 if test $ac_cv_header_expat_h = yes; then
26045   found_expat_h=1
26046 fi
26047
26048
26049         if test "x$found_expat_h" = "x1"; then
26050                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26051 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26052 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26053   echo $ECHO_N "(cached) $ECHO_C" >&6
26054 else
26055
26056                 cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h.  */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h.  */
26062 #include <expat.h>
26063 int
26064 main ()
26065 {
26066
26067   ;
26068   return 0;
26069 }
26070 _ACEOF
26071 rm -f conftest.$ac_objext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26073   (eval $ac_compile) 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082   (eval $ac_try) 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; } &&
26086          { ac_try='test -s conftest.$ac_objext'
26087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088   (eval $ac_try) 2>&5
26089   ac_status=$?
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); }; }; then
26092   wx_cv_expat_is_not_broken=yes
26093 else
26094   echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097 wx_cv_expat_is_not_broken=no
26098
26099 fi
26100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26101
26102
26103 fi
26104 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26105 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26106             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26107                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26108 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26109 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26110   echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112   ac_check_lib_save_LIBS=$LIBS
26113 LIBS="-lexpat  $LIBS"
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120
26121 /* Override any gcc2 internal prototype to avoid an error.  */
26122 #ifdef __cplusplus
26123 extern "C"
26124 #endif
26125 /* We use char because int might match the return type of a gcc2
26126    builtin and then its argument prototype would still apply.  */
26127 char XML_ParserCreate ();
26128 int
26129 main ()
26130 {
26131 XML_ParserCreate ();
26132   ;
26133   return 0;
26134 }
26135 _ACEOF
26136 rm -f conftest.$ac_objext conftest$ac_exeext
26137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26138   (eval $ac_link) 2>conftest.er1
26139   ac_status=$?
26140   grep -v '^ *+' conftest.er1 >conftest.err
26141   rm -f conftest.er1
26142   cat conftest.err >&5
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } &&
26145          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147   (eval $ac_try) 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); }; } &&
26151          { ac_try='test -s conftest$ac_exeext'
26152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153   (eval $ac_try) 2>&5
26154   ac_status=$?
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); }; }; then
26157   ac_cv_lib_expat_XML_ParserCreate=yes
26158 else
26159   echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26161
26162 ac_cv_lib_expat_XML_ParserCreate=no
26163 fi
26164 rm -f conftest.err conftest.$ac_objext \
26165       conftest$ac_exeext conftest.$ac_ext
26166 LIBS=$ac_check_lib_save_LIBS
26167 fi
26168 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26169 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26170 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26171   EXPAT_LINK=" -lexpat"
26172 fi
26173
26174             fi
26175         fi
26176         if test "x$EXPAT_LINK" = "x" ; then
26177             if test "$wxUSE_EXPAT" = "sys" ; then
26178                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26179 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26180    { (exit 1); exit 1; }; }
26181             else
26182                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26183 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26184                 wxUSE_EXPAT=builtin
26185             fi
26186         else
26187                         wxUSE_EXPAT=sys
26188         fi
26189     fi
26190     if test "$wxUSE_EXPAT" = "builtin" ; then
26191
26192
26193 subdirs="$subdirs src/expat"
26194
26195     fi
26196 fi
26197
26198
26199
26200 if test "$wxUSE_LIBMSPACK" != "no"; then
26201     if test "${ac_cv_header_mspack_h+set}" = set; then
26202   echo "$as_me:$LINENO: checking for mspack.h" >&5
26203 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26204 if test "${ac_cv_header_mspack_h+set}" = set; then
26205   echo $ECHO_N "(cached) $ECHO_C" >&6
26206 fi
26207 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26208 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26209 else
26210   # Is the header compilable?
26211 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26212 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26213 cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219 $ac_includes_default
26220 #include <mspack.h>
26221 _ACEOF
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224   (eval $ac_compile) 2>conftest.er1
26225   ac_status=$?
26226   grep -v '^ *+' conftest.er1 >conftest.err
26227   rm -f conftest.er1
26228   cat conftest.err >&5
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); } &&
26231          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233   (eval $ac_try) 2>&5
26234   ac_status=$?
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); }; } &&
26237          { ac_try='test -s conftest.$ac_objext'
26238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); }; }; then
26243   ac_header_compiler=yes
26244 else
26245   echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248 ac_header_compiler=no
26249 fi
26250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26252 echo "${ECHO_T}$ac_header_compiler" >&6
26253
26254 # Is the header present?
26255 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26256 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26257 cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h.  */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h.  */
26263 #include <mspack.h>
26264 _ACEOF
26265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } >/dev/null; then
26273   if test -s conftest.err; then
26274     ac_cpp_err=$ac_cxx_preproc_warn_flag
26275     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26276   else
26277     ac_cpp_err=
26278   fi
26279 else
26280   ac_cpp_err=yes
26281 fi
26282 if test -z "$ac_cpp_err"; then
26283   ac_header_preproc=yes
26284 else
26285   echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26287
26288   ac_header_preproc=no
26289 fi
26290 rm -f conftest.err conftest.$ac_ext
26291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26292 echo "${ECHO_T}$ac_header_preproc" >&6
26293
26294 # So?  What about this header?
26295 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26296   yes:no: )
26297     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26298 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26299     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26300 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26301     ac_header_preproc=yes
26302     ;;
26303   no:yes:* )
26304     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26305 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26306     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26307 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26308     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26309 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26310     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26311 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26312     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26313 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26314     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26315 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26316     (
26317       cat <<\_ASBOX
26318 ## ----------------------------------------- ##
26319 ## Report this to wx-dev@lists.wxwidgets.org ##
26320 ## ----------------------------------------- ##
26321 _ASBOX
26322     ) |
26323       sed "s/^/$as_me: WARNING:     /" >&2
26324     ;;
26325 esac
26326 echo "$as_me:$LINENO: checking for mspack.h" >&5
26327 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26328 if test "${ac_cv_header_mspack_h+set}" = set; then
26329   echo $ECHO_N "(cached) $ECHO_C" >&6
26330 else
26331   ac_cv_header_mspack_h=$ac_header_preproc
26332 fi
26333 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26334 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26335
26336 fi
26337 if test $ac_cv_header_mspack_h = yes; then
26338   found_mspack_h=1
26339 fi
26340
26341
26342     if test "x$found_mspack_h" = "x1"; then
26343         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26344 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26345 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   ac_check_lib_save_LIBS=$LIBS
26349 LIBS="-lmspack  $LIBS"
26350 cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356
26357 /* Override any gcc2 internal prototype to avoid an error.  */
26358 #ifdef __cplusplus
26359 extern "C"
26360 #endif
26361 /* We use char because int might match the return type of a gcc2
26362    builtin and then its argument prototype would still apply.  */
26363 char mspack_create_chm_decompressor ();
26364 int
26365 main ()
26366 {
26367 mspack_create_chm_decompressor ();
26368   ;
26369   return 0;
26370 }
26371 _ACEOF
26372 rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26374   (eval $ac_link) 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } &&
26381          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26383   (eval $ac_try) 2>&5
26384   ac_status=$?
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); }; } &&
26387          { ac_try='test -s conftest$ac_exeext'
26388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389   (eval $ac_try) 2>&5
26390   ac_status=$?
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); }; }; then
26393   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26394 else
26395   echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26399 fi
26400 rm -f conftest.err conftest.$ac_objext \
26401       conftest$ac_exeext conftest.$ac_ext
26402 LIBS=$ac_check_lib_save_LIBS
26403 fi
26404 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26405 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26406 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26407   MSPACK_LINK=" -lmspack"
26408 fi
26409
26410     fi
26411     if test "x$MSPACK_LINK" = "x" ; then
26412         wxUSE_LIBMSPACK=no
26413     fi
26414 fi
26415
26416 if test "$wxUSE_LIBMSPACK" != "no"; then
26417     cat >>confdefs.h <<\_ACEOF
26418 #define wxUSE_LIBMSPACK 1
26419 _ACEOF
26420
26421 fi
26422
26423
26424
26425 AFMINSTALL=
26426 WIN32INSTALL=
26427
26428 TOOLKIT=
26429 TOOLKIT_INCLUDE=
26430 WIDGET_SET=
26431
26432 if test "$USE_WIN32" = 1 ; then
26433
26434 for ac_header in w32api.h
26435 do
26436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438   echo "$as_me:$LINENO: checking for $ac_header" >&5
26439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 fi
26443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26445 else
26446   # Is the header compilable?
26447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 $ac_includes_default
26456 #include <$ac_header>
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460   (eval $ac_compile) 2>conftest.er1
26461   ac_status=$?
26462   grep -v '^ *+' conftest.er1 >conftest.err
26463   rm -f conftest.er1
26464   cat conftest.err >&5
26465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466   (exit $ac_status); } &&
26467          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469   (eval $ac_try) 2>&5
26470   ac_status=$?
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); }; } &&
26473          { ac_try='test -s conftest.$ac_objext'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; }; then
26479   ac_header_compiler=yes
26480 else
26481   echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 ac_header_compiler=no
26485 fi
26486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26488 echo "${ECHO_T}$ac_header_compiler" >&6
26489
26490 # Is the header present?
26491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26493 cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499 #include <$ac_header>
26500 _ACEOF
26501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } >/dev/null; then
26509   if test -s conftest.err; then
26510     ac_cpp_err=$ac_cxx_preproc_warn_flag
26511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26512   else
26513     ac_cpp_err=
26514   fi
26515 else
26516   ac_cpp_err=yes
26517 fi
26518 if test -z "$ac_cpp_err"; then
26519   ac_header_preproc=yes
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524   ac_header_preproc=no
26525 fi
26526 rm -f conftest.err conftest.$ac_ext
26527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26528 echo "${ECHO_T}$ac_header_preproc" >&6
26529
26530 # So?  What about this header?
26531 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26532   yes:no: )
26533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26537     ac_header_preproc=yes
26538     ;;
26539   no:yes:* )
26540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26552     (
26553       cat <<\_ASBOX
26554 ## ----------------------------------------- ##
26555 ## Report this to wx-dev@lists.wxwidgets.org ##
26556 ## ----------------------------------------- ##
26557 _ASBOX
26558     ) |
26559       sed "s/^/$as_me: WARNING:     /" >&2
26560     ;;
26561 esac
26562 echo "$as_me:$LINENO: checking for $ac_header" >&5
26563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26565   echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567   eval "$as_ac_Header=\$ac_header_preproc"
26568 fi
26569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26571
26572 fi
26573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26574   cat >>confdefs.h <<_ACEOF
26575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26576 _ACEOF
26577
26578 fi
26579
26580 done
26581
26582     if test "${ac_cv_header_windows_h+set}" = set; then
26583   echo "$as_me:$LINENO: checking for windows.h" >&5
26584 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26585 if test "${ac_cv_header_windows_h+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 fi
26588 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26589 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26590 else
26591   # Is the header compilable?
26592 echo "$as_me:$LINENO: checking windows.h usability" >&5
26593 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26594 cat >conftest.$ac_ext <<_ACEOF
26595 /* confdefs.h.  */
26596 _ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h.  */
26600 $ac_includes_default
26601 #include <windows.h>
26602 _ACEOF
26603 rm -f conftest.$ac_objext
26604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26605   (eval $ac_compile) 2>conftest.er1
26606   ac_status=$?
26607   grep -v '^ *+' conftest.er1 >conftest.err
26608   rm -f conftest.er1
26609   cat conftest.err >&5
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); } &&
26612          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614   (eval $ac_try) 2>&5
26615   ac_status=$?
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); }; } &&
26618          { ac_try='test -s conftest.$ac_objext'
26619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620   (eval $ac_try) 2>&5
26621   ac_status=$?
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); }; }; then
26624   ac_header_compiler=yes
26625 else
26626   echo "$as_me: failed program was:" >&5
26627 sed 's/^/| /' conftest.$ac_ext >&5
26628
26629 ac_header_compiler=no
26630 fi
26631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26633 echo "${ECHO_T}$ac_header_compiler" >&6
26634
26635 # Is the header present?
26636 echo "$as_me:$LINENO: checking windows.h presence" >&5
26637 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26638 cat >conftest.$ac_ext <<_ACEOF
26639 /* confdefs.h.  */
26640 _ACEOF
26641 cat confdefs.h >>conftest.$ac_ext
26642 cat >>conftest.$ac_ext <<_ACEOF
26643 /* end confdefs.h.  */
26644 #include <windows.h>
26645 _ACEOF
26646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } >/dev/null; then
26654   if test -s conftest.err; then
26655     ac_cpp_err=$ac_cxx_preproc_warn_flag
26656     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26657   else
26658     ac_cpp_err=
26659   fi
26660 else
26661   ac_cpp_err=yes
26662 fi
26663 if test -z "$ac_cpp_err"; then
26664   ac_header_preproc=yes
26665 else
26666   echo "$as_me: failed program was:" >&5
26667 sed 's/^/| /' conftest.$ac_ext >&5
26668
26669   ac_header_preproc=no
26670 fi
26671 rm -f conftest.err conftest.$ac_ext
26672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26673 echo "${ECHO_T}$ac_header_preproc" >&6
26674
26675 # So?  What about this header?
26676 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26677   yes:no: )
26678     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26679 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26680     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26681 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26682     ac_header_preproc=yes
26683     ;;
26684   no:yes:* )
26685     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26686 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26687     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
26688 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
26689     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26690 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26691     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
26692 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26693     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26694 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26695     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26696 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26697     (
26698       cat <<\_ASBOX
26699 ## ----------------------------------------- ##
26700 ## Report this to wx-dev@lists.wxwidgets.org ##
26701 ## ----------------------------------------- ##
26702 _ASBOX
26703     ) |
26704       sed "s/^/$as_me: WARNING:     /" >&2
26705     ;;
26706 esac
26707 echo "$as_me:$LINENO: checking for windows.h" >&5
26708 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26709 if test "${ac_cv_header_windows_h+set}" = set; then
26710   echo $ECHO_N "(cached) $ECHO_C" >&6
26711 else
26712   ac_cv_header_windows_h=$ac_header_preproc
26713 fi
26714 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26715 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26716
26717 fi
26718 if test $ac_cv_header_windows_h = yes; then
26719   :
26720 else
26721
26722         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26723 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26724    { (exit 1); exit 1; }; }
26725
26726 fi
26727
26728
26729
26730             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26731
26732     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26733         LIBS="$LIBS -loleacc"
26734     fi
26735
26736     case "${host}" in
26737         *-*-cygwin* )
26738                         LIBS="$LIBS -lkernel32 -luser32"
26739     esac
26740
26741         if test "$wxUSE_ODBC" = "sys" ; then
26742         wxUSE_ODBC = "yes"
26743     fi
26744     if test "$wxUSE_ODBC" = "yes" ; then
26745         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26746         cat >>confdefs.h <<\_ACEOF
26747 #define wxUSE_ODBC 1
26748 _ACEOF
26749
26750     fi
26751
26752         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26753     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26754
26755                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26756
26757         WIN32INSTALL=win32install
26758 fi
26759
26760 if test "$wxUSE_GUI" = "yes"; then
26761     USE_GUI=1
26762
26763     GUI_TK_LIBRARY=
26764
26765     WXGTK12=
26766     WXGTK127=
26767     WXGTK20=
26768     WXGPE=
26769
26770     if test "$wxUSE_COCOA" = 1 ; then
26771         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26772             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26773 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26774             wxUSE_PRINTING_ARCHITECTURE=no
26775         fi
26776         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26777             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26778 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26779             wxUSE_DRAG_AND_DROP=no
26780         fi
26781         if test "$wxUSE_DRAGIMAGE" = "yes"; then
26782             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26783 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26784             wxUSE_DRAGIMAGE=no
26785         fi
26786     fi
26787
26788     if test "$wxUSE_MSW" = 1 ; then
26789         TOOLKIT=MSW
26790         GUIDIST=MSW_DIST
26791
26792                 case "${host}" in
26793             *-*-mingw32* )
26794                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26795         esac
26796     fi
26797
26798     if test "$wxUSE_GTK" = 1; then
26799                 ac_ext=c
26800 ac_cpp='$CPP $CPPFLAGS'
26801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26804
26805
26806         echo "$as_me:$LINENO: checking for GTK+ version" >&5
26807 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26808
26809         gtk_version_cached=1
26810         if test "${wx_cv_lib_gtk+set}" = set; then
26811   echo $ECHO_N "(cached) $ECHO_C" >&6
26812 else
26813
26814                                                 gtk_version_cached=0
26815                 echo "$as_me:$LINENO: result: " >&5
26816 echo "${ECHO_T}" >&6
26817
26818                                                 GTK_MODULES=
26819                 if test "$wxUSE_THREADS" = "yes"; then
26820                     GTK_MODULES=gthread
26821                 fi
26822
26823                                 wx_cv_lib_gtk=
26824                 if test "x$wxGTK_VERSION" != "x1"
26825                 then
26826                                                                                 case "${host}" in
26827                         *-*-solaris2* )
26828                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26829                             enable_gtktest=no
26830                             fi
26831                     esac
26832
26833                     # Check whether --enable-gtktest or --disable-gtktest was given.
26834 if test "${enable_gtktest+set}" = set; then
26835   enableval="$enable_gtktest"
26836
26837 else
26838   enable_gtktest=yes
26839 fi;
26840
26841   pkg_config_args=gtk+-2.0
26842   for module in . $GTK_MODULES
26843   do
26844       case "$module" in
26845          gthread)
26846              pkg_config_args="$pkg_config_args gthread-2.0"
26847          ;;
26848       esac
26849   done
26850
26851   no_gtk=""
26852
26853   # Extract the first word of "pkg-config", so it can be a program name with args.
26854 set dummy pkg-config; ac_word=$2
26855 echo "$as_me:$LINENO: checking for $ac_word" >&5
26856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26857 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26858   echo $ECHO_N "(cached) $ECHO_C" >&6
26859 else
26860   case $PKG_CONFIG in
26861   [\\/]* | ?:[\\/]*)
26862   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26863   ;;
26864   *)
26865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26866 for as_dir in $PATH
26867 do
26868   IFS=$as_save_IFS
26869   test -z "$as_dir" && as_dir=.
26870   for ac_exec_ext in '' $ac_executable_extensions; do
26871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26872     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26874     break 2
26875   fi
26876 done
26877 done
26878
26879   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26880   ;;
26881 esac
26882 fi
26883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26884
26885 if test -n "$PKG_CONFIG"; then
26886   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26887 echo "${ECHO_T}$PKG_CONFIG" >&6
26888 else
26889   echo "$as_me:$LINENO: result: no" >&5
26890 echo "${ECHO_T}no" >&6
26891 fi
26892
26893
26894   if test x$PKG_CONFIG != xno ; then
26895     if pkg-config --atleast-pkgconfig-version 0.7 ; then
26896       :
26897     else
26898       echo "*** pkg-config too old; version 0.7 or better required."
26899       no_gtk=yes
26900       PKG_CONFIG=no
26901     fi
26902   else
26903     no_gtk=yes
26904   fi
26905
26906   min_gtk_version=2.0.0
26907   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26908 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26909
26910   if test x$PKG_CONFIG != xno ; then
26911     ## don't try to run the test against uninstalled libtool libs
26912     if $PKG_CONFIG --uninstalled $pkg_config_args; then
26913           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26914           enable_gtktest=no
26915     fi
26916
26917     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26918           :
26919     else
26920           no_gtk=yes
26921     fi
26922   fi
26923
26924   if test x"$no_gtk" = x ; then
26925     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26926     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26927     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26929     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26930            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26931     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26932            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26933     if test "x$enable_gtktest" = "xyes" ; then
26934       ac_save_CFLAGS="$CFLAGS"
26935       ac_save_LIBS="$LIBS"
26936       CFLAGS="$CFLAGS $GTK_CFLAGS"
26937       LIBS="$GTK_LIBS $LIBS"
26938       rm -f conf.gtktest
26939       if test "$cross_compiling" = yes; then
26940   echo $ac_n "cross compiling; assumed OK... $ac_c"
26941 else
26942   cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948
26949 #include <gtk/gtk.h>
26950 #include <stdio.h>
26951 #include <stdlib.h>
26952
26953 int
26954 main ()
26955 {
26956   int major, minor, micro;
26957   char *tmp_version;
26958
26959   system ("touch conf.gtktest");
26960
26961   /* HP/UX 9 (%@#!) writes to sscanf strings */
26962   tmp_version = g_strdup("$min_gtk_version");
26963   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26964      printf("%s, bad version string\n", "$min_gtk_version");
26965      exit(1);
26966    }
26967
26968   if ((gtk_major_version != $gtk_config_major_version) ||
26969       (gtk_minor_version != $gtk_config_minor_version) ||
26970       (gtk_micro_version != $gtk_config_micro_version))
26971     {
26972       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26973              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26974              gtk_major_version, gtk_minor_version, gtk_micro_version);
26975       printf ("*** was found! If pkg-config was correct, then it is best\n");
26976       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26977       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26978       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26979       printf("*** required on your system.\n");
26980       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26981       printf("*** to point to the correct configuration files\n");
26982     }
26983   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26984            (gtk_minor_version != GTK_MINOR_VERSION) ||
26985            (gtk_micro_version != GTK_MICRO_VERSION))
26986     {
26987       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26988              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26989       printf("*** library (version %d.%d.%d)\n",
26990              gtk_major_version, gtk_minor_version, gtk_micro_version);
26991     }
26992   else
26993     {
26994       if ((gtk_major_version > major) ||
26995         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26996         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26997       {
26998         return 0;
26999        }
27000      else
27001       {
27002         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27003                gtk_major_version, gtk_minor_version, gtk_micro_version);
27004         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27005                major, minor, micro);
27006         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27007         printf("***\n");
27008         printf("*** If you have already installed a sufficiently new version, this error\n");
27009         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27010         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27011         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27012         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27013         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27014         printf("*** so that the correct libraries are found at run-time))\n");
27015       }
27016     }
27017   return 1;
27018 }
27019
27020 _ACEOF
27021 rm -f conftest$ac_exeext
27022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023   (eval $ac_link) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028   (eval $ac_try) 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; }; then
27032   :
27033 else
27034   echo "$as_me: program exited with status $ac_status" >&5
27035 echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ( exit $ac_status )
27039 no_gtk=yes
27040 fi
27041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27042 fi
27043        CFLAGS="$ac_save_CFLAGS"
27044        LIBS="$ac_save_LIBS"
27045      fi
27046   fi
27047   if test "x$no_gtk" = x ; then
27048      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27049 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27050      wx_cv_lib_gtk=2.0
27051   else
27052      echo "$as_me:$LINENO: result: no" >&5
27053 echo "${ECHO_T}no" >&6
27054      if test "$PKG_CONFIG" = "no" ; then
27055        echo "*** A new enough version of pkg-config was not found."
27056        echo "*** See http://pkgconfig.sourceforge.net"
27057      else
27058        if test -f conf.gtktest ; then
27059         :
27060        else
27061           echo "*** Could not run GTK+ test program, checking why..."
27062           ac_save_CFLAGS="$CFLAGS"
27063           ac_save_LIBS="$LIBS"
27064           CFLAGS="$CFLAGS $GTK_CFLAGS"
27065           LIBS="$LIBS $GTK_LIBS"
27066           cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072
27073 #include <gtk/gtk.h>
27074 #include <stdio.h>
27075
27076 int
27077 main ()
27078 {
27079  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27086   (eval $ac_link) 2>conftest.er1
27087   ac_status=$?
27088   grep -v '^ *+' conftest.er1 >conftest.err
27089   rm -f conftest.er1
27090   cat conftest.err >&5
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } &&
27093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095   (eval $ac_try) 2>&5
27096   ac_status=$?
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); }; } &&
27099          { ac_try='test -s conftest$ac_exeext'
27100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101   (eval $ac_try) 2>&5
27102   ac_status=$?
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); }; }; then
27105    echo "*** The test program compiled, but did not run. This usually means"
27106           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27107           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27108           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27109           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27110           echo "*** is required on your system"
27111           echo "***"
27112           echo "*** If you have an old version installed, it is best to remove it, although"
27113           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27114 else
27115   echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27117
27118  echo "*** The test program failed to compile or link. See the file config.log for the"
27119           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27120 fi
27121 rm -f conftest.err conftest.$ac_objext \
27122       conftest$ac_exeext conftest.$ac_ext
27123           CFLAGS="$ac_save_CFLAGS"
27124           LIBS="$ac_save_LIBS"
27125        fi
27126      fi
27127      GTK_CFLAGS=""
27128      GTK_LIBS=""
27129      :
27130   fi
27131
27132
27133   rm -f conf.gtktest
27134
27135
27136                                         case "${host}" in
27137                         *-*-solaris2* )
27138                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27139                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27140                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27141                             fi
27142                                                         if test "$wxUSE_SHARED" != "yes"; then
27143                                 GTK_LIBS="$GTK_LIBS -lX11"
27144                             fi
27145                     esac
27146                 fi
27147
27148                                 if test -z "$wx_cv_lib_gtk"; then
27149                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27150
27151 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27152 if test "${with_gtk_prefix+set}" = set; then
27153   withval="$with_gtk_prefix"
27154   gtk_config_prefix="$withval"
27155 else
27156   gtk_config_prefix=""
27157 fi;
27158
27159 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27160 if test "${with_gtk_exec_prefix+set}" = set; then
27161   withval="$with_gtk_exec_prefix"
27162   gtk_config_exec_prefix="$withval"
27163 else
27164   gtk_config_exec_prefix=""
27165 fi;
27166 # Check whether --enable-gtktest or --disable-gtktest was given.
27167 if test "${enable_gtktest+set}" = set; then
27168   enableval="$enable_gtktest"
27169
27170 else
27171   enable_gtktest=yes
27172 fi;
27173
27174   for module in . $GTK_MODULES
27175   do
27176       case "$module" in
27177          gthread)
27178              gtk_config_args="$gtk_config_args gthread"
27179          ;;
27180       esac
27181   done
27182
27183   if test x$gtk_config_exec_prefix != x ; then
27184      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27185      if test x${GTK_CONFIG+set} != xset ; then
27186         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27187      fi
27188   fi
27189   if test x$gtk_config_prefix != x ; then
27190      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27191      if test x${GTK_CONFIG+set} != xset ; then
27192         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27193      fi
27194   fi
27195
27196   # Extract the first word of "gtk-config", so it can be a program name with args.
27197 set dummy gtk-config; ac_word=$2
27198 echo "$as_me:$LINENO: checking for $ac_word" >&5
27199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27200 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27201   echo $ECHO_N "(cached) $ECHO_C" >&6
27202 else
27203   case $GTK_CONFIG in
27204   [\\/]* | ?:[\\/]*)
27205   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27206   ;;
27207   *)
27208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27209 for as_dir in $PATH
27210 do
27211   IFS=$as_save_IFS
27212   test -z "$as_dir" && as_dir=.
27213   for ac_exec_ext in '' $ac_executable_extensions; do
27214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27215     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27217     break 2
27218   fi
27219 done
27220 done
27221
27222   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27223   ;;
27224 esac
27225 fi
27226 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27227
27228 if test -n "$GTK_CONFIG"; then
27229   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27230 echo "${ECHO_T}$GTK_CONFIG" >&6
27231 else
27232   echo "$as_me:$LINENO: result: no" >&5
27233 echo "${ECHO_T}no" >&6
27234 fi
27235
27236   min_gtk_version=1.2.7
27237   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27238 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27239   no_gtk=""
27240   if test "$GTK_CONFIG" = "no" ; then
27241     no_gtk=yes
27242   else
27243     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27244     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27245     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27246            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27247     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27248            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27249     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27250            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27251     if test "x$enable_gtktest" = "xyes" ; then
27252       ac_save_CFLAGS="$CFLAGS"
27253       ac_save_LIBS="$LIBS"
27254       CFLAGS="$CFLAGS $GTK_CFLAGS"
27255       LIBS="$GTK_LIBS $LIBS"
27256       rm -f conf.gtktest
27257       if test "$cross_compiling" = yes; then
27258   echo $ac_n "cross compiling; assumed OK... $ac_c"
27259 else
27260   cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266
27267 #include <gtk/gtk.h>
27268 #include <stdio.h>
27269 #include <stdlib.h>
27270
27271 int
27272 main ()
27273 {
27274   int major, minor, micro;
27275   char *tmp_version;
27276
27277   system ("touch conf.gtktest");
27278
27279   /* HP/UX 9 (%@#!) writes to sscanf strings */
27280   tmp_version = g_strdup("$min_gtk_version");
27281   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27282      printf("%s, bad version string\n", "$min_gtk_version");
27283      exit(1);
27284    }
27285
27286   if ((gtk_major_version != $gtk_config_major_version) ||
27287       (gtk_minor_version != $gtk_config_minor_version) ||
27288       (gtk_micro_version != $gtk_config_micro_version))
27289     {
27290       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27291              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27292              gtk_major_version, gtk_minor_version, gtk_micro_version);
27293       printf ("*** was found! If gtk-config was correct, then it is best\n");
27294       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27295       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27296       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27297       printf("*** required on your system.\n");
27298       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27299       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27300       printf("*** before re-running configure\n");
27301     }
27302 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27303   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27304            (gtk_minor_version != GTK_MINOR_VERSION) ||
27305            (gtk_micro_version != GTK_MICRO_VERSION))
27306     {
27307       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27308              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27309       printf("*** library (version %d.%d.%d)\n",
27310              gtk_major_version, gtk_minor_version, gtk_micro_version);
27311     }
27312 #endif /* defined (GTK_MAJOR_VERSION) ... */
27313   else
27314     {
27315       if ((gtk_major_version > major) ||
27316         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27317         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27318       {
27319         return 0;
27320        }
27321      else
27322       {
27323         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27324                gtk_major_version, gtk_minor_version, gtk_micro_version);
27325         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27326                major, minor, micro);
27327         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27328         printf("***\n");
27329         printf("*** If you have already installed a sufficiently new version, this error\n");
27330         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27331         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27332         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27333         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27334         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27335         printf("*** so that the correct libraries are found at run-time))\n");
27336       }
27337     }
27338   return 1;
27339 }
27340
27341 _ACEOF
27342 rm -f conftest$ac_exeext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344   (eval $ac_link) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; }; then
27353   :
27354 else
27355   echo "$as_me: program exited with status $ac_status" >&5
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 ( exit $ac_status )
27360 no_gtk=yes
27361 fi
27362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27363 fi
27364        CFLAGS="$ac_save_CFLAGS"
27365        LIBS="$ac_save_LIBS"
27366      fi
27367   fi
27368   if test "x$no_gtk" = x ; then
27369      echo "$as_me:$LINENO: result: yes" >&5
27370 echo "${ECHO_T}yes" >&6
27371      wx_cv_lib_gtk=1.2.7
27372   else
27373      echo "$as_me:$LINENO: result: no" >&5
27374 echo "${ECHO_T}no" >&6
27375      if test "$GTK_CONFIG" = "no" ; then
27376        echo "*** The gtk-config script installed by GTK could not be found"
27377        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27378        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27379        echo "*** full path to gtk-config."
27380      else
27381        if test -f conf.gtktest ; then
27382         :
27383        else
27384           echo "*** Could not run GTK test program, checking why..."
27385           CFLAGS="$CFLAGS $GTK_CFLAGS"
27386           LIBS="$LIBS $GTK_LIBS"
27387           cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h.  */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h.  */
27393
27394 #include <gtk/gtk.h>
27395 #include <stdio.h>
27396
27397 int
27398 main ()
27399 {
27400  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 rm -f conftest.$ac_objext conftest$ac_exeext
27406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27407   (eval $ac_link) 2>conftest.er1
27408   ac_status=$?
27409   grep -v '^ *+' conftest.er1 >conftest.err
27410   rm -f conftest.er1
27411   cat conftest.err >&5
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); } &&
27414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416   (eval $ac_try) 2>&5
27417   ac_status=$?
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); }; } &&
27420          { ac_try='test -s conftest$ac_exeext'
27421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422   (eval $ac_try) 2>&5
27423   ac_status=$?
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); }; }; then
27426    echo "*** The test program compiled, but did not run. This usually means"
27427           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27428           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27429           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27430           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27431           echo "*** is required on your system"
27432           echo "***"
27433           echo "*** If you have an old version installed, it is best to remove it, although"
27434           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27435           echo "***"
27436           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27437           echo "*** came with the system with the command"
27438           echo "***"
27439           echo "***    rpm --erase --nodeps gtk gtk-devel"
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444  echo "*** The test program failed to compile or link. See the file config.log for the"
27445           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27446           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27447           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27448 fi
27449 rm -f conftest.err conftest.$ac_objext \
27450       conftest$ac_exeext conftest.$ac_ext
27451           CFLAGS="$ac_save_CFLAGS"
27452           LIBS="$ac_save_LIBS"
27453        fi
27454      fi
27455      GTK_CFLAGS=""
27456      GTK_LIBS=""
27457      :
27458   fi
27459
27460
27461   rm -f conf.gtktest
27462
27463
27464                         if test -z "$wx_cv_lib_gtk"; then
27465
27466 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27467 if test "${with_gtk_prefix+set}" = set; then
27468   withval="$with_gtk_prefix"
27469   gtk_config_prefix="$withval"
27470 else
27471   gtk_config_prefix=""
27472 fi;
27473
27474 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27475 if test "${with_gtk_exec_prefix+set}" = set; then
27476   withval="$with_gtk_exec_prefix"
27477   gtk_config_exec_prefix="$withval"
27478 else
27479   gtk_config_exec_prefix=""
27480 fi;
27481 # Check whether --enable-gtktest or --disable-gtktest was given.
27482 if test "${enable_gtktest+set}" = set; then
27483   enableval="$enable_gtktest"
27484
27485 else
27486   enable_gtktest=yes
27487 fi;
27488
27489   for module in . $GTK_MODULES
27490   do
27491       case "$module" in
27492          gthread)
27493              gtk_config_args="$gtk_config_args gthread"
27494          ;;
27495       esac
27496   done
27497
27498   if test x$gtk_config_exec_prefix != x ; then
27499      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27500      if test x${GTK_CONFIG+set} != xset ; then
27501         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27502      fi
27503   fi
27504   if test x$gtk_config_prefix != x ; then
27505      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27506      if test x${GTK_CONFIG+set} != xset ; then
27507         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27508      fi
27509   fi
27510
27511   # Extract the first word of "gtk-config", so it can be a program name with args.
27512 set dummy gtk-config; ac_word=$2
27513 echo "$as_me:$LINENO: checking for $ac_word" >&5
27514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27515 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27516   echo $ECHO_N "(cached) $ECHO_C" >&6
27517 else
27518   case $GTK_CONFIG in
27519   [\\/]* | ?:[\\/]*)
27520   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27521   ;;
27522   *)
27523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27524 for as_dir in $PATH
27525 do
27526   IFS=$as_save_IFS
27527   test -z "$as_dir" && as_dir=.
27528   for ac_exec_ext in '' $ac_executable_extensions; do
27529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27530     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27532     break 2
27533   fi
27534 done
27535 done
27536
27537   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27538   ;;
27539 esac
27540 fi
27541 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27542
27543 if test -n "$GTK_CONFIG"; then
27544   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27545 echo "${ECHO_T}$GTK_CONFIG" >&6
27546 else
27547   echo "$as_me:$LINENO: result: no" >&5
27548 echo "${ECHO_T}no" >&6
27549 fi
27550
27551   min_gtk_version=1.2.3
27552   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27553 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27554   no_gtk=""
27555   if test "$GTK_CONFIG" = "no" ; then
27556     no_gtk=yes
27557   else
27558     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27559     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27560     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27561            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27562     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27563            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27564     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27565            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27566     if test "x$enable_gtktest" = "xyes" ; then
27567       ac_save_CFLAGS="$CFLAGS"
27568       ac_save_LIBS="$LIBS"
27569       CFLAGS="$CFLAGS $GTK_CFLAGS"
27570       LIBS="$GTK_LIBS $LIBS"
27571       rm -f conf.gtktest
27572       if test "$cross_compiling" = yes; then
27573   echo $ac_n "cross compiling; assumed OK... $ac_c"
27574 else
27575   cat >conftest.$ac_ext <<_ACEOF
27576 /* confdefs.h.  */
27577 _ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h.  */
27581
27582 #include <gtk/gtk.h>
27583 #include <stdio.h>
27584 #include <stdlib.h>
27585
27586 int
27587 main ()
27588 {
27589   int major, minor, micro;
27590   char *tmp_version;
27591
27592   system ("touch conf.gtktest");
27593
27594   /* HP/UX 9 (%@#!) writes to sscanf strings */
27595   tmp_version = g_strdup("$min_gtk_version");
27596   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27597      printf("%s, bad version string\n", "$min_gtk_version");
27598      exit(1);
27599    }
27600
27601   if ((gtk_major_version != $gtk_config_major_version) ||
27602       (gtk_minor_version != $gtk_config_minor_version) ||
27603       (gtk_micro_version != $gtk_config_micro_version))
27604     {
27605       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27606              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27607              gtk_major_version, gtk_minor_version, gtk_micro_version);
27608       printf ("*** was found! If gtk-config was correct, then it is best\n");
27609       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27610       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27611       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27612       printf("*** required on your system.\n");
27613       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27614       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27615       printf("*** before re-running configure\n");
27616     }
27617 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27618   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27619            (gtk_minor_version != GTK_MINOR_VERSION) ||
27620            (gtk_micro_version != GTK_MICRO_VERSION))
27621     {
27622       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27623              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27624       printf("*** library (version %d.%d.%d)\n",
27625              gtk_major_version, gtk_minor_version, gtk_micro_version);
27626     }
27627 #endif /* defined (GTK_MAJOR_VERSION) ... */
27628   else
27629     {
27630       if ((gtk_major_version > major) ||
27631         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27632         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27633       {
27634         return 0;
27635        }
27636      else
27637       {
27638         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27639                gtk_major_version, gtk_minor_version, gtk_micro_version);
27640         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27641                major, minor, micro);
27642         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27643         printf("***\n");
27644         printf("*** If you have already installed a sufficiently new version, this error\n");
27645         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27646         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27647         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27648         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27649         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27650         printf("*** so that the correct libraries are found at run-time))\n");
27651       }
27652     }
27653   return 1;
27654 }
27655
27656 _ACEOF
27657 rm -f conftest$ac_exeext
27658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659   (eval $ac_link) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   :
27669 else
27670   echo "$as_me: program exited with status $ac_status" >&5
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27673
27674 ( exit $ac_status )
27675 no_gtk=yes
27676 fi
27677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27678 fi
27679        CFLAGS="$ac_save_CFLAGS"
27680        LIBS="$ac_save_LIBS"
27681      fi
27682   fi
27683   if test "x$no_gtk" = x ; then
27684      echo "$as_me:$LINENO: result: yes" >&5
27685 echo "${ECHO_T}yes" >&6
27686      wx_cv_lib_gtk=1.2.3
27687   else
27688      echo "$as_me:$LINENO: result: no" >&5
27689 echo "${ECHO_T}no" >&6
27690      if test "$GTK_CONFIG" = "no" ; then
27691        echo "*** The gtk-config script installed by GTK could not be found"
27692        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27693        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27694        echo "*** full path to gtk-config."
27695      else
27696        if test -f conf.gtktest ; then
27697         :
27698        else
27699           echo "*** Could not run GTK test program, checking why..."
27700           CFLAGS="$CFLAGS $GTK_CFLAGS"
27701           LIBS="$LIBS $GTK_LIBS"
27702           cat >conftest.$ac_ext <<_ACEOF
27703 /* confdefs.h.  */
27704 _ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h.  */
27708
27709 #include <gtk/gtk.h>
27710 #include <stdio.h>
27711
27712 int
27713 main ()
27714 {
27715  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27716   ;
27717   return 0;
27718 }
27719 _ACEOF
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27722   (eval $ac_link) 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } &&
27729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731   (eval $ac_try) 2>&5
27732   ac_status=$?
27733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734   (exit $ac_status); }; } &&
27735          { ac_try='test -s conftest$ac_exeext'
27736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737   (eval $ac_try) 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; }; then
27741    echo "*** The test program compiled, but did not run. This usually means"
27742           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27743           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27744           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27745           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27746           echo "*** is required on your system"
27747           echo "***"
27748           echo "*** If you have an old version installed, it is best to remove it, although"
27749           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27750           echo "***"
27751           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27752           echo "*** came with the system with the command"
27753           echo "***"
27754           echo "***    rpm --erase --nodeps gtk gtk-devel"
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759  echo "*** The test program failed to compile or link. See the file config.log for the"
27760           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27761           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27762           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27763 fi
27764 rm -f conftest.err conftest.$ac_objext \
27765       conftest$ac_exeext conftest.$ac_ext
27766           CFLAGS="$ac_save_CFLAGS"
27767           LIBS="$ac_save_LIBS"
27768        fi
27769      fi
27770      GTK_CFLAGS=""
27771      GTK_LIBS=""
27772      :
27773   fi
27774
27775
27776   rm -f conf.gtktest
27777
27778                         fi
27779                     fi
27780                 fi
27781
27782                 if test -z "$wx_cv_lib_gtk"; then
27783                                         wx_cv_lib_gtk=none
27784                 else
27785                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
27786                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
27787                 fi
27788
27789
27790 fi
27791
27792
27793                         if test "$gtk_version_cached" = 1; then
27794             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27795 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27796         fi
27797
27798         case "$wx_cv_lib_gtk" in
27799             2.0)    WXGTK20=1
27800                     TOOLKIT_VERSION=2
27801                     ;;
27802             1.2.7)  WXGTK127=1
27803                     WXGTK12=1
27804                     ;;
27805             1.2.3)  WXGTK12=1
27806                     ;;
27807             *)      { { echo "$as_me:$LINENO: error:
27808 The development files for GTK+ were not found. For GTK+ 2, please
27809 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27810 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27811 and that the version is 1.2.3 or above. Also check that the
27812 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27813 --libs' are in the LD_LIBRARY_PATH or equivalent.
27814                             " >&5
27815 echo "$as_me: error:
27816 The development files for GTK+ were not found. For GTK+ 2, please
27817 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27818 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27819 and that the version is 1.2.3 or above. Also check that the
27820 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27821 --libs' are in the LD_LIBRARY_PATH or equivalent.
27822                             " >&2;}
27823    { (exit 1); exit 1; }; }
27824                     ;;
27825         esac
27826
27827         if test "$WXGTK20" = 1; then
27828             save_CFLAGS="$CFLAGS"
27829             save_LIBS="$LIBS"
27830             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
27831             LIBS="$LIBS $wx_cv_libs_gtk"
27832
27833                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27834 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27835             cat >conftest.$ac_ext <<_ACEOF
27836 /* confdefs.h.  */
27837 _ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h.  */
27841
27842                             #include <gtk/gtk.h>
27843
27844 int
27845 main ()
27846 {
27847
27848                             void *f = gtk_icon_size_lookup;
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 rm -f conftest.$ac_objext
27855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27856   (eval $ac_compile) 2>conftest.er1
27857   ac_status=$?
27858   grep -v '^ *+' conftest.er1 >conftest.err
27859   rm -f conftest.er1
27860   cat conftest.err >&5
27861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862   (exit $ac_status); } &&
27863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865   (eval $ac_try) 2>&5
27866   ac_status=$?
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); }; } &&
27869          { ac_try='test -s conftest.$ac_objext'
27870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871   (eval $ac_try) 2>&5
27872   ac_status=$?
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); }; }; then
27875
27876                             echo "$as_me:$LINENO: result: no" >&5
27877 echo "${ECHO_T}no" >&6
27878
27879 else
27880   echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27882
27883
27884                             cat >>confdefs.h <<\_ACEOF
27885 #define NEED_GTK_ICON_SIZE_LOOKUP 1
27886 _ACEOF
27887
27888                             echo "$as_me:$LINENO: result: yes" >&5
27889 echo "${ECHO_T}yes" >&6
27890
27891 fi
27892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27893
27894                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
27895 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
27896             cat >conftest.$ac_ext <<_ACEOF
27897 /* confdefs.h.  */
27898 _ACEOF
27899 cat confdefs.h >>conftest.$ac_ext
27900 cat >>conftest.$ac_ext <<_ACEOF
27901 /* end confdefs.h.  */
27902
27903                             #include <gtk/gtk.h>
27904
27905 int
27906 main ()
27907 {
27908
27909                             #if !GTK_CHECK_VERSION(2,6,0)
27910                             Not GTK+ 2.6
27911                             #endif
27912
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27919   (eval $ac_compile) 2>conftest.er1
27920   ac_status=$?
27921   grep -v '^ *+' conftest.er1 >conftest.err
27922   rm -f conftest.er1
27923   cat conftest.err >&5
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); } &&
27926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27928   (eval $ac_try) 2>&5
27929   ac_status=$?
27930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931   (exit $ac_status); }; } &&
27932          { ac_try='test -s conftest.$ac_objext'
27933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27934   (eval $ac_try) 2>&5
27935   ac_status=$?
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); }; }; then
27938
27939                             cat >>confdefs.h <<\_ACEOF
27940 #define __WXGTK26__ 1
27941 _ACEOF
27942
27943                             cat >>confdefs.h <<\_ACEOF
27944 #define __WXGTK24__ 1
27945 _ACEOF
27946
27947                             echo "$as_me:$LINENO: result: yes" >&5
27948 echo "${ECHO_T}yes" >&6
27949                             ac_wxgtk26=1
27950
27951 else
27952   echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27954
27955
27956                             echo "$as_me:$LINENO: result: no" >&5
27957 echo "${ECHO_T}no" >&6
27958                             ac_wxgtk26=0
27959
27960 fi
27961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27962
27963             if test "$ac_wxgtk26" = 0; then
27964                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27965 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27966             cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972
27973                             #include <gtk/gtk.h>
27974
27975 int
27976 main ()
27977 {
27978
27979                             #if !GTK_CHECK_VERSION(2,4,0)
27980                             Not GTK+ 2.4
27981                             #endif
27982
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext
27988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27989   (eval $ac_compile) 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } &&
27996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27998   (eval $ac_try) 2>&5
27999   ac_status=$?
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); }; } &&
28002          { ac_try='test -s conftest.$ac_objext'
28003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004   (eval $ac_try) 2>&5
28005   ac_status=$?
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); }; }; then
28008
28009                             cat >>confdefs.h <<\_ACEOF
28010 #define __WXGTK24__ 1
28011 _ACEOF
28012
28013                             echo "$as_me:$LINENO: result: yes" >&5
28014 echo "${ECHO_T}yes" >&6
28015
28016 else
28017   echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28019
28020
28021                             echo "$as_me:$LINENO: result: no" >&5
28022 echo "${ECHO_T}no" >&6
28023
28024 fi
28025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28026             fi
28027
28028             CFLAGS="$save_CFLAGS"
28029             LIBS="$save_LIBS"
28030         else
28031             if test "$wxUSE_UNICODE" = "yes"; then
28032                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28033 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28034                 wxUSE_UNICODE=no
28035             fi
28036         fi
28037
28038         ac_ext=cc
28039 ac_cpp='$CXXCPP $CPPFLAGS'
28040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28043
28044
28045                         if test "$USE_DARWIN" != 1; then
28046
28047 for ac_func in poll
28048 do
28049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28050 echo "$as_me:$LINENO: checking for $ac_func" >&5
28051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28052 if eval "test \"\${$as_ac_var+set}\" = set"; then
28053   echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055   cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h.  */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h.  */
28061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28063 #define $ac_func innocuous_$ac_func
28064
28065 /* System header to define __stub macros and hopefully few prototypes,
28066     which can conflict with char $ac_func (); below.
28067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28068     <limits.h> exists even on freestanding compilers.  */
28069
28070 #ifdef __STDC__
28071 # include <limits.h>
28072 #else
28073 # include <assert.h>
28074 #endif
28075
28076 #undef $ac_func
28077
28078 /* Override any gcc2 internal prototype to avoid an error.  */
28079 #ifdef __cplusplus
28080 extern "C"
28081 {
28082 #endif
28083 /* We use char because int might match the return type of a gcc2
28084    builtin and then its argument prototype would still apply.  */
28085 char $ac_func ();
28086 /* The GNU C library defines this for functions which it implements
28087     to always fail with ENOSYS.  Some functions are actually named
28088     something starting with __ and the normal name is an alias.  */
28089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28090 choke me
28091 #else
28092 char (*f) () = $ac_func;
28093 #endif
28094 #ifdef __cplusplus
28095 }
28096 #endif
28097
28098 int
28099 main ()
28100 {
28101 return f != $ac_func;
28102   ;
28103   return 0;
28104 }
28105 _ACEOF
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28108   (eval $ac_link) 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117   (eval $ac_try) 2>&5
28118   ac_status=$?
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); }; } &&
28121          { ac_try='test -s conftest$ac_exeext'
28122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123   (eval $ac_try) 2>&5
28124   ac_status=$?
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); }; }; then
28127   eval "$as_ac_var=yes"
28128 else
28129   echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28131
28132 eval "$as_ac_var=no"
28133 fi
28134 rm -f conftest.err conftest.$ac_objext \
28135       conftest$ac_exeext conftest.$ac_ext
28136 fi
28137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28139 if test `eval echo '${'$as_ac_var'}'` = yes; then
28140   cat >>confdefs.h <<_ACEOF
28141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28142 _ACEOF
28143
28144 fi
28145 done
28146
28147         fi
28148
28149         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28150         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28151
28152         AFMINSTALL=afminstall
28153         TOOLKIT=GTK
28154         GUIDIST=GTK_DIST
28155
28156                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28157 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28158 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28159   echo $ECHO_N "(cached) $ECHO_C" >&6
28160 else
28161   ac_check_lib_save_LIBS=$LIBS
28162 LIBS="-lgdk  $LIBS"
28163 cat >conftest.$ac_ext <<_ACEOF
28164 /* confdefs.h.  */
28165 _ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h.  */
28169
28170 /* Override any gcc2 internal prototype to avoid an error.  */
28171 #ifdef __cplusplus
28172 extern "C"
28173 #endif
28174 /* We use char because int might match the return type of a gcc2
28175    builtin and then its argument prototype would still apply.  */
28176 char gdk_im_open ();
28177 int
28178 main ()
28179 {
28180 gdk_im_open ();
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest.$ac_objext conftest$ac_exeext
28186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28187   (eval $ac_link) 2>conftest.er1
28188   ac_status=$?
28189   grep -v '^ *+' conftest.er1 >conftest.err
28190   rm -f conftest.er1
28191   cat conftest.err >&5
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); } &&
28194          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196   (eval $ac_try) 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); }; } &&
28200          { ac_try='test -s conftest$ac_exeext'
28201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202   (eval $ac_try) 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); }; }; then
28206   ac_cv_lib_gdk_gdk_im_open=yes
28207 else
28208   echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211 ac_cv_lib_gdk_gdk_im_open=no
28212 fi
28213 rm -f conftest.err conftest.$ac_objext \
28214       conftest$ac_exeext conftest.$ac_ext
28215 LIBS=$ac_check_lib_save_LIBS
28216 fi
28217 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28218 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28219 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28220   cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_XIM 1
28222 _ACEOF
28223
28224 fi
28225
28226
28227
28228                 if test "$wxUSE_GPE" = "yes"; then
28229             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28230 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28231
28232   ac_find_libraries=
28233   for ac_dir in $SEARCH_LIB;
28234   do
28235     for ac_extension in a so sl dylib dll.a; do
28236       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28237         ac_find_libraries=$ac_dir
28238         break 2
28239       fi
28240     done
28241   done
28242
28243             if test "$ac_find_libraries" != "" ; then
28244
28245     if test "$ac_find_libraries" = "default location"; then
28246     ac_path_to_link=""
28247   else
28248     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28249     result=$?
28250     if test $result = 0; then
28251       ac_path_to_link=""
28252     else
28253       ac_path_to_link=" -L$ac_find_libraries"
28254     fi
28255   fi
28256
28257                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28258                 WXGPE=1
28259                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28260 echo "${ECHO_T}found in $ac_find_libraries" >&6
28261             else
28262                 echo "$as_me:$LINENO: result: not found" >&5
28263 echo "${ECHO_T}not found" >&6
28264             fi
28265
28266                                                                                                                     fi
28267     fi
28268
28269     if test "$wxUSE_MGL" = 1; then
28270        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28271 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28272         if test "x$MGL_ROOT" = x ; then
28273             echo "$as_me:$LINENO: result: not found" >&5
28274 echo "${ECHO_T}not found" >&6
28275             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28276 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28277    { (exit 1); exit 1; }; }
28278         else
28279             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28280 echo "${ECHO_T}$MGL_ROOT" >&6
28281         fi
28282
28283         echo "$as_me:$LINENO: checking for libmgl location" >&5
28284 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28285                                 case "${host}" in
28286             *-*-linux* )
28287                                           if test "x$wxUSE_SHARED" = xyes ; then
28288                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28289               else
28290                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28291               fi
28292               ;;
28293             *-pc-msdosdjgpp )
28294               mgl_os_candidates="dos32/dj2"
28295               ;;
28296             *)
28297               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28298 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28299    { (exit 1); exit 1; }; }
28300         esac
28301
28302         mgl_lib_type=""
28303         mgl_os=""
28304
28305         for mgl_os_i in $mgl_os_candidates ; do
28306             if test "x$mgl_os" = x ; then
28307                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28308                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28309                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28310                         mgl_lib_type=debug
28311                         mgl_os=$mgl_os_i
28312                     fi
28313                 fi
28314                 if test "x$mgl_lib_type" = x ; then
28315                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28316                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28317                         mgl_lib_type=release
28318                         mgl_os=$mgl_os_i
28319                     fi
28320                 fi
28321             fi
28322         done
28323
28324         if test "x$mgl_os" = x ; then
28325             echo "$as_me:$LINENO: result: not found" >&5
28326 echo "${ECHO_T}not found" >&6
28327             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28328 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28329    { (exit 1); exit 1; }; }
28330         fi
28331         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28332 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28333
28334         wxUSE_UNIVERSAL="yes"
28335
28336         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28337         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28338
28339         AFMINSTALL=afminstall
28340         TOOLKIT=MGL
28341         GUIDIST=MGL_DIST
28342     fi
28343
28344     if test "$wxUSE_MICROWIN" = 1; then
28345         echo "$as_me:$LINENO: checking for MicroWindows" >&5
28346 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28347         if test "x$MICROWINDOWS" = x ; then
28348             echo "$as_me:$LINENO: result: not found" >&5
28349 echo "${ECHO_T}not found" >&6
28350             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28351 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28352    { (exit 1); exit 1; }; }
28353         else
28354             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28355 echo "${ECHO_T}$MICROWINDOWS" >&6
28356         fi
28357
28358         if test -f $MICROWINDOWS/lib/libmwin.a; then
28359             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28360 echo "${ECHO_T}MicroWindows' libraries found." >&6
28361         else
28362             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28363 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28364    { (exit 1); exit 1; }; }
28365         fi
28366
28367         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28368         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28369
28370         wxUSE_UNIVERSAL="yes"
28371
28372         AFMINSTALL=afminstall
28373         TOOLKIT=MICROWIN
28374         GUIDIST=MICROWIN_DIST
28375
28376         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28377     fi
28378
28379         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28380
28381 if test "x$ac_path_x_has_been_run" != xyes; then
28382   echo "$as_me:$LINENO: checking for X" >&5
28383 echo $ECHO_N "checking for X... $ECHO_C" >&6
28384
28385 ac_path_x_has_been_run=yes
28386
28387 # Check whether --with-x or --without-x was given.
28388 if test "${with_x+set}" = set; then
28389   withval="$with_x"
28390
28391 fi;
28392 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28393 if test "x$with_x" = xno; then
28394   # The user explicitly disabled X.
28395   have_x=disabled
28396 else
28397   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28398     # Both variables are already set.
28399     have_x=yes
28400   else
28401     if test "${ac_cv_have_x+set}" = set; then
28402   echo $ECHO_N "(cached) $ECHO_C" >&6
28403 else
28404   # One or both of the vars are not set, and there is no cached value.
28405 ac_x_includes=no ac_x_libraries=no
28406 rm -fr conftest.dir
28407 if mkdir conftest.dir; then
28408   cd conftest.dir
28409   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28410   cat >Imakefile <<'_ACEOF'
28411 acfindx:
28412         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28413 _ACEOF
28414   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28415     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28416     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28417     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28418     for ac_extension in a so sl; do
28419       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28420          test -f $ac_im_libdir/libX11.$ac_extension; then
28421         ac_im_usrlibdir=$ac_im_libdir; break
28422       fi
28423     done
28424     # Screen out bogus values from the imake configuration.  They are
28425     # bogus both because they are the default anyway, and because
28426     # using them would break gcc on systems where it needs fixed includes.
28427     case $ac_im_incroot in
28428         /usr/include) ;;
28429         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28430     esac
28431     case $ac_im_usrlibdir in
28432         /usr/lib | /lib) ;;
28433         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28434     esac
28435   fi
28436   cd ..
28437   rm -fr conftest.dir
28438 fi
28439
28440 # Standard set of common directories for X headers.
28441 # Check X11 before X11Rn because it is often a symlink to the current release.
28442 ac_x_header_dirs='
28443 /usr/X11/include
28444 /usr/X11R6/include
28445 /usr/X11R5/include
28446 /usr/X11R4/include
28447
28448 /usr/include/X11
28449 /usr/include/X11R6
28450 /usr/include/X11R5
28451 /usr/include/X11R4
28452
28453 /usr/local/X11/include
28454 /usr/local/X11R6/include
28455 /usr/local/X11R5/include
28456 /usr/local/X11R4/include
28457
28458 /usr/local/include/X11
28459 /usr/local/include/X11R6
28460 /usr/local/include/X11R5
28461 /usr/local/include/X11R4
28462
28463 /usr/X386/include
28464 /usr/x386/include
28465 /usr/XFree86/include/X11
28466
28467 /usr/include
28468 /usr/local/include
28469 /usr/unsupported/include
28470 /usr/athena/include
28471 /usr/local/x11r5/include
28472 /usr/lpp/Xamples/include
28473
28474 /usr/openwin/include
28475 /usr/openwin/share/include'
28476
28477 if test "$ac_x_includes" = no; then
28478   # Guess where to find include files, by looking for a specified header file.
28479   # First, try using that file with no special directory specified.
28480   cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486 #include <X11/Intrinsic.h>
28487 _ACEOF
28488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } >/dev/null; then
28496   if test -s conftest.err; then
28497     ac_cpp_err=$ac_cxx_preproc_warn_flag
28498     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28499   else
28500     ac_cpp_err=
28501   fi
28502 else
28503   ac_cpp_err=yes
28504 fi
28505 if test -z "$ac_cpp_err"; then
28506   # We can compile using X headers with no special include directory.
28507 ac_x_includes=
28508 else
28509   echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512   for ac_dir in $ac_x_header_dirs; do
28513   if test -r "$ac_dir/X11/Intrinsic.h"; then
28514     ac_x_includes=$ac_dir
28515     break
28516   fi
28517 done
28518 fi
28519 rm -f conftest.err conftest.$ac_ext
28520 fi # $ac_x_includes = no
28521
28522 if test "$ac_x_libraries" = no; then
28523   # Check for the libraries.
28524   # See if we find them without any special options.
28525   # Don't add to $LIBS permanently.
28526   ac_save_LIBS=$LIBS
28527   LIBS="-lXt $LIBS"
28528   cat >conftest.$ac_ext <<_ACEOF
28529 /* confdefs.h.  */
28530 _ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h.  */
28534 #include <X11/Intrinsic.h>
28535 int
28536 main ()
28537 {
28538 XtMalloc (0)
28539   ;
28540   return 0;
28541 }
28542 _ACEOF
28543 rm -f conftest.$ac_objext conftest$ac_exeext
28544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28545   (eval $ac_link) 2>conftest.er1
28546   ac_status=$?
28547   grep -v '^ *+' conftest.er1 >conftest.err
28548   rm -f conftest.er1
28549   cat conftest.err >&5
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); } &&
28552          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554   (eval $ac_try) 2>&5
28555   ac_status=$?
28556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); }; } &&
28558          { ac_try='test -s conftest$ac_exeext'
28559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560   (eval $ac_try) 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); }; }; then
28564   LIBS=$ac_save_LIBS
28565 # We can link X programs with no special library path.
28566 ac_x_libraries=
28567 else
28568   echo "$as_me: failed program was:" >&5
28569 sed 's/^/| /' conftest.$ac_ext >&5
28570
28571 LIBS=$ac_save_LIBS
28572 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28573 do
28574   # Don't even attempt the hair of trying to link an X program!
28575   for ac_extension in a so sl; do
28576     if test -r $ac_dir/libXt.$ac_extension; then
28577       ac_x_libraries=$ac_dir
28578       break 2
28579     fi
28580   done
28581 done
28582 fi
28583 rm -f conftest.err conftest.$ac_objext \
28584       conftest$ac_exeext conftest.$ac_ext
28585 fi # $ac_x_libraries = no
28586
28587 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28588   # Didn't find X anywhere.  Cache the known absence of X.
28589   ac_cv_have_x="have_x=no"
28590 else
28591   # Record where we found X for the cache.
28592   ac_cv_have_x="have_x=yes \
28593                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28594 fi
28595 fi
28596
28597   fi
28598   eval "$ac_cv_have_x"
28599 fi # $with_x != no
28600
28601 if test "$have_x" != yes; then
28602   echo "$as_me:$LINENO: result: $have_x" >&5
28603 echo "${ECHO_T}$have_x" >&6
28604   no_x=yes
28605 else
28606   # If each of the values was on the command line, it overrides each guess.
28607   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28608   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28609   # Update the cache value to reflect the command line values.
28610   ac_cv_have_x="have_x=yes \
28611                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28612   # It might be that x_includes is empty (headers are found in the
28613   # standard search path. Then output the corresponding message
28614   ac_out_x_includes=$x_includes
28615   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28616   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28617 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
28618 fi
28619
28620 fi
28621 if test "$no_x" = yes; then
28622   # Not all programs may use this symbol, but it does not hurt to define it.
28623
28624 cat >>confdefs.h <<\_ACEOF
28625 #define X_DISPLAY_MISSING 1
28626 _ACEOF
28627
28628   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28629 else
28630   if test -n "$x_includes"; then
28631     X_CFLAGS="$X_CFLAGS -I$x_includes"
28632   fi
28633
28634   # It would also be nice to do this for all -L options, not just this one.
28635   if test -n "$x_libraries"; then
28636     X_LIBS="$X_LIBS -L$x_libraries"
28637     # For Solaris; some versions of Sun CC require a space after -R and
28638     # others require no space.  Words are not sufficient . . . .
28639     case `(uname -sr) 2>/dev/null` in
28640     "SunOS 5"*)
28641       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28642 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28643       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28644       cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h.  */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h.  */
28650
28651 int
28652 main ()
28653 {
28654
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_R_nospace=yes
28681 else
28682   echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28684
28685 ac_R_nospace=no
28686 fi
28687 rm -f conftest.err conftest.$ac_objext \
28688       conftest$ac_exeext conftest.$ac_ext
28689       if test $ac_R_nospace = yes; then
28690         echo "$as_me:$LINENO: result: no" >&5
28691 echo "${ECHO_T}no" >&6
28692         X_LIBS="$X_LIBS -R$x_libraries"
28693       else
28694         LIBS="$ac_xsave_LIBS -R $x_libraries"
28695         cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701
28702 int
28703 main ()
28704 {
28705
28706   ;
28707   return 0;
28708 }
28709 _ACEOF
28710 rm -f conftest.$ac_objext conftest$ac_exeext
28711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28712   (eval $ac_link) 2>conftest.er1
28713   ac_status=$?
28714   grep -v '^ *+' conftest.er1 >conftest.err
28715   rm -f conftest.er1
28716   cat conftest.err >&5
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); } &&
28719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721   (eval $ac_try) 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; } &&
28725          { ac_try='test -s conftest$ac_exeext'
28726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727   (eval $ac_try) 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; }; then
28731   ac_R_space=yes
28732 else
28733   echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28735
28736 ac_R_space=no
28737 fi
28738 rm -f conftest.err conftest.$ac_objext \
28739       conftest$ac_exeext conftest.$ac_ext
28740         if test $ac_R_space = yes; then
28741           echo "$as_me:$LINENO: result: yes" >&5
28742 echo "${ECHO_T}yes" >&6
28743           X_LIBS="$X_LIBS -R $x_libraries"
28744         else
28745           echo "$as_me:$LINENO: result: neither works" >&5
28746 echo "${ECHO_T}neither works" >&6
28747         fi
28748       fi
28749       LIBS=$ac_xsave_LIBS
28750     esac
28751   fi
28752
28753   # Check for system-dependent libraries X programs must link with.
28754   # Do this before checking for the system-independent R6 libraries
28755   # (-lICE), since we may need -lsocket or whatever for X linking.
28756
28757   if test "$ISC" = yes; then
28758     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28759   else
28760     # Martyn Johnson says this is needed for Ultrix, if the X
28761     # libraries were built with DECnet support.  And Karl Berry says
28762     # the Alpha needs dnet_stub (dnet does not exist).
28763     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28764     cat >conftest.$ac_ext <<_ACEOF
28765 /* confdefs.h.  */
28766 _ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h.  */
28770
28771 /* Override any gcc2 internal prototype to avoid an error.  */
28772 #ifdef __cplusplus
28773 extern "C"
28774 #endif
28775 /* We use char because int might match the return type of a gcc2
28776    builtin and then its argument prototype would still apply.  */
28777 char XOpenDisplay ();
28778 int
28779 main ()
28780 {
28781 XOpenDisplay ();
28782   ;
28783   return 0;
28784 }
28785 _ACEOF
28786 rm -f conftest.$ac_objext conftest$ac_exeext
28787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28788   (eval $ac_link) 2>conftest.er1
28789   ac_status=$?
28790   grep -v '^ *+' conftest.er1 >conftest.err
28791   rm -f conftest.er1
28792   cat conftest.err >&5
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); } &&
28795          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797   (eval $ac_try) 2>&5
28798   ac_status=$?
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); }; } &&
28801          { ac_try='test -s conftest$ac_exeext'
28802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803   (eval $ac_try) 2>&5
28804   ac_status=$?
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); }; }; then
28807   :
28808 else
28809   echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28813 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28814 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28815   echo $ECHO_N "(cached) $ECHO_C" >&6
28816 else
28817   ac_check_lib_save_LIBS=$LIBS
28818 LIBS="-ldnet  $LIBS"
28819 cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825
28826 /* Override any gcc2 internal prototype to avoid an error.  */
28827 #ifdef __cplusplus
28828 extern "C"
28829 #endif
28830 /* We use char because int might match the return type of a gcc2
28831    builtin and then its argument prototype would still apply.  */
28832 char dnet_ntoa ();
28833 int
28834 main ()
28835 {
28836 dnet_ntoa ();
28837   ;
28838   return 0;
28839 }
28840 _ACEOF
28841 rm -f conftest.$ac_objext conftest$ac_exeext
28842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28843   (eval $ac_link) 2>conftest.er1
28844   ac_status=$?
28845   grep -v '^ *+' conftest.er1 >conftest.err
28846   rm -f conftest.er1
28847   cat conftest.err >&5
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); } &&
28850          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; } &&
28856          { ac_try='test -s conftest$ac_exeext'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; }; then
28862   ac_cv_lib_dnet_dnet_ntoa=yes
28863 else
28864   echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867 ac_cv_lib_dnet_dnet_ntoa=no
28868 fi
28869 rm -f conftest.err conftest.$ac_objext \
28870       conftest$ac_exeext conftest.$ac_ext
28871 LIBS=$ac_check_lib_save_LIBS
28872 fi
28873 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28874 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28875 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28876   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28877 fi
28878
28879     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28880       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28881 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28882 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28883   echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885   ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-ldnet_stub  $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893
28894 /* Override any gcc2 internal prototype to avoid an error.  */
28895 #ifdef __cplusplus
28896 extern "C"
28897 #endif
28898 /* We use char because int might match the return type of a gcc2
28899    builtin and then its argument prototype would still apply.  */
28900 char dnet_ntoa ();
28901 int
28902 main ()
28903 {
28904 dnet_ntoa ();
28905   ;
28906   return 0;
28907 }
28908 _ACEOF
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28911   (eval $ac_link) 2>conftest.er1
28912   ac_status=$?
28913   grep -v '^ *+' conftest.er1 >conftest.err
28914   rm -f conftest.er1
28915   cat conftest.err >&5
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); } &&
28918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920   (eval $ac_try) 2>&5
28921   ac_status=$?
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); }; } &&
28924          { ac_try='test -s conftest$ac_exeext'
28925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926   (eval $ac_try) 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; }; then
28930   ac_cv_lib_dnet_stub_dnet_ntoa=yes
28931 else
28932   echo "$as_me: failed program was:" >&5
28933 sed 's/^/| /' conftest.$ac_ext >&5
28934
28935 ac_cv_lib_dnet_stub_dnet_ntoa=no
28936 fi
28937 rm -f conftest.err conftest.$ac_objext \
28938       conftest$ac_exeext conftest.$ac_ext
28939 LIBS=$ac_check_lib_save_LIBS
28940 fi
28941 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28942 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28943 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28944   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28945 fi
28946
28947     fi
28948 fi
28949 rm -f conftest.err conftest.$ac_objext \
28950       conftest$ac_exeext conftest.$ac_ext
28951     LIBS="$ac_xsave_LIBS"
28952
28953     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28954     # to get the SysV transport functions.
28955     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28956     # needs -lnsl.
28957     # The nsl library prevents programs from opening the X display
28958     # on Irix 5.2, according to T.E. Dickey.
28959     # The functions gethostbyname, getservbyname, and inet_addr are
28960     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28961     echo "$as_me:$LINENO: checking for gethostbyname" >&5
28962 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28963 if test "${ac_cv_func_gethostbyname+set}" = set; then
28964   echo $ECHO_N "(cached) $ECHO_C" >&6
28965 else
28966   cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28974 #define gethostbyname innocuous_gethostbyname
28975
28976 /* System header to define __stub macros and hopefully few prototypes,
28977     which can conflict with char gethostbyname (); below.
28978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28979     <limits.h> exists even on freestanding compilers.  */
28980
28981 #ifdef __STDC__
28982 # include <limits.h>
28983 #else
28984 # include <assert.h>
28985 #endif
28986
28987 #undef gethostbyname
28988
28989 /* Override any gcc2 internal prototype to avoid an error.  */
28990 #ifdef __cplusplus
28991 extern "C"
28992 {
28993 #endif
28994 /* We use char because int might match the return type of a gcc2
28995    builtin and then its argument prototype would still apply.  */
28996 char gethostbyname ();
28997 /* The GNU C library defines this for functions which it implements
28998     to always fail with ENOSYS.  Some functions are actually named
28999     something starting with __ and the normal name is an alias.  */
29000 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29001 choke me
29002 #else
29003 char (*f) () = gethostbyname;
29004 #endif
29005 #ifdef __cplusplus
29006 }
29007 #endif
29008
29009 int
29010 main ()
29011 {
29012 return f != gethostbyname;
29013   ;
29014   return 0;
29015 }
29016 _ACEOF
29017 rm -f conftest.$ac_objext conftest$ac_exeext
29018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29019   (eval $ac_link) 2>conftest.er1
29020   ac_status=$?
29021   grep -v '^ *+' conftest.er1 >conftest.err
29022   rm -f conftest.er1
29023   cat conftest.err >&5
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); } &&
29026          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; } &&
29032          { ac_try='test -s conftest$ac_exeext'
29033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034   (eval $ac_try) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ac_cv_func_gethostbyname=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 ac_cv_func_gethostbyname=no
29044 fi
29045 rm -f conftest.err conftest.$ac_objext \
29046       conftest$ac_exeext conftest.$ac_ext
29047 fi
29048 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29049 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29050
29051     if test $ac_cv_func_gethostbyname = no; then
29052       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29053 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29054 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   ac_check_lib_save_LIBS=$LIBS
29058 LIBS="-lnsl  $LIBS"
29059 cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065
29066 /* Override any gcc2 internal prototype to avoid an error.  */
29067 #ifdef __cplusplus
29068 extern "C"
29069 #endif
29070 /* We use char because int might match the return type of a gcc2
29071    builtin and then its argument prototype would still apply.  */
29072 char gethostbyname ();
29073 int
29074 main ()
29075 {
29076 gethostbyname ();
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext conftest$ac_exeext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29083   (eval $ac_link) 2>conftest.er1
29084   ac_status=$?
29085   grep -v '^ *+' conftest.er1 >conftest.err
29086   rm -f conftest.er1
29087   cat conftest.err >&5
29088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089   (exit $ac_status); } &&
29090          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092   (eval $ac_try) 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); }; } &&
29096          { ac_try='test -s conftest$ac_exeext'
29097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098   (eval $ac_try) 2>&5
29099   ac_status=$?
29100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); }; }; then
29102   ac_cv_lib_nsl_gethostbyname=yes
29103 else
29104   echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107 ac_cv_lib_nsl_gethostbyname=no
29108 fi
29109 rm -f conftest.err conftest.$ac_objext \
29110       conftest$ac_exeext conftest.$ac_ext
29111 LIBS=$ac_check_lib_save_LIBS
29112 fi
29113 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29114 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29115 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29116   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29117 fi
29118
29119       if test $ac_cv_lib_nsl_gethostbyname = no; then
29120         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29121 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29122 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   ac_check_lib_save_LIBS=$LIBS
29126 LIBS="-lbsd  $LIBS"
29127 cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133
29134 /* Override any gcc2 internal prototype to avoid an error.  */
29135 #ifdef __cplusplus
29136 extern "C"
29137 #endif
29138 /* We use char because int might match the return type of a gcc2
29139    builtin and then its argument prototype would still apply.  */
29140 char gethostbyname ();
29141 int
29142 main ()
29143 {
29144 gethostbyname ();
29145   ;
29146   return 0;
29147 }
29148 _ACEOF
29149 rm -f conftest.$ac_objext conftest$ac_exeext
29150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29151   (eval $ac_link) 2>conftest.er1
29152   ac_status=$?
29153   grep -v '^ *+' conftest.er1 >conftest.err
29154   rm -f conftest.er1
29155   cat conftest.err >&5
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } &&
29158          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160   (eval $ac_try) 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; } &&
29164          { ac_try='test -s conftest$ac_exeext'
29165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166   (eval $ac_try) 2>&5
29167   ac_status=$?
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); }; }; then
29170   ac_cv_lib_bsd_gethostbyname=yes
29171 else
29172   echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29174
29175 ac_cv_lib_bsd_gethostbyname=no
29176 fi
29177 rm -f conftest.err conftest.$ac_objext \
29178       conftest$ac_exeext conftest.$ac_ext
29179 LIBS=$ac_check_lib_save_LIBS
29180 fi
29181 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29182 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29183 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29184   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29185 fi
29186
29187       fi
29188     fi
29189
29190     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29191     # socket/setsockopt and other routines are undefined under SCO ODT
29192     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29193     # on later versions), says Simon Leinen: it contains gethostby*
29194     # variants that don't use the name server (or something).  -lsocket
29195     # must be given before -lnsl if both are needed.  We assume that
29196     # if connect needs -lnsl, so does gethostbyname.
29197     echo "$as_me:$LINENO: checking for connect" >&5
29198 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29199 if test "${ac_cv_func_connect+set}" = set; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202   cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29210 #define connect innocuous_connect
29211
29212 /* System header to define __stub macros and hopefully few prototypes,
29213     which can conflict with char connect (); below.
29214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215     <limits.h> exists even on freestanding compilers.  */
29216
29217 #ifdef __STDC__
29218 # include <limits.h>
29219 #else
29220 # include <assert.h>
29221 #endif
29222
29223 #undef connect
29224
29225 /* Override any gcc2 internal prototype to avoid an error.  */
29226 #ifdef __cplusplus
29227 extern "C"
29228 {
29229 #endif
29230 /* We use char because int might match the return type of a gcc2
29231    builtin and then its argument prototype would still apply.  */
29232 char connect ();
29233 /* The GNU C library defines this for functions which it implements
29234     to always fail with ENOSYS.  Some functions are actually named
29235     something starting with __ and the normal name is an alias.  */
29236 #if defined (__stub_connect) || defined (__stub___connect)
29237 choke me
29238 #else
29239 char (*f) () = connect;
29240 #endif
29241 #ifdef __cplusplus
29242 }
29243 #endif
29244
29245 int
29246 main ()
29247 {
29248 return f != connect;
29249   ;
29250   return 0;
29251 }
29252 _ACEOF
29253 rm -f conftest.$ac_objext conftest$ac_exeext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29255   (eval $ac_link) 2>conftest.er1
29256   ac_status=$?
29257   grep -v '^ *+' conftest.er1 >conftest.err
29258   rm -f conftest.er1
29259   cat conftest.err >&5
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); } &&
29262          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264   (eval $ac_try) 2>&5
29265   ac_status=$?
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); }; } &&
29268          { ac_try='test -s conftest$ac_exeext'
29269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270   (eval $ac_try) 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; }; then
29274   ac_cv_func_connect=yes
29275 else
29276   echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29278
29279 ac_cv_func_connect=no
29280 fi
29281 rm -f conftest.err conftest.$ac_objext \
29282       conftest$ac_exeext conftest.$ac_ext
29283 fi
29284 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29285 echo "${ECHO_T}$ac_cv_func_connect" >&6
29286
29287     if test $ac_cv_func_connect = no; then
29288       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29289 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29290 if test "${ac_cv_lib_socket_connect+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293   ac_check_lib_save_LIBS=$LIBS
29294 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29295 cat >conftest.$ac_ext <<_ACEOF
29296 /* confdefs.h.  */
29297 _ACEOF
29298 cat confdefs.h >>conftest.$ac_ext
29299 cat >>conftest.$ac_ext <<_ACEOF
29300 /* end confdefs.h.  */
29301
29302 /* Override any gcc2 internal prototype to avoid an error.  */
29303 #ifdef __cplusplus
29304 extern "C"
29305 #endif
29306 /* We use char because int might match the return type of a gcc2
29307    builtin and then its argument prototype would still apply.  */
29308 char connect ();
29309 int
29310 main ()
29311 {
29312 connect ();
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319   (eval $ac_link) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328   (eval $ac_try) 2>&5
29329   ac_status=$?
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); }; } &&
29332          { ac_try='test -s conftest$ac_exeext'
29333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334   (eval $ac_try) 2>&5
29335   ac_status=$?
29336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337   (exit $ac_status); }; }; then
29338   ac_cv_lib_socket_connect=yes
29339 else
29340   echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29342
29343 ac_cv_lib_socket_connect=no
29344 fi
29345 rm -f conftest.err conftest.$ac_objext \
29346       conftest$ac_exeext conftest.$ac_ext
29347 LIBS=$ac_check_lib_save_LIBS
29348 fi
29349 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29350 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29351 if test $ac_cv_lib_socket_connect = yes; then
29352   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29353 fi
29354
29355     fi
29356
29357     # Guillermo Gomez says -lposix is necessary on A/UX.
29358     echo "$as_me:$LINENO: checking for remove" >&5
29359 echo $ECHO_N "checking for remove... $ECHO_C" >&6
29360 if test "${ac_cv_func_remove+set}" = set; then
29361   echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363   cat >conftest.$ac_ext <<_ACEOF
29364 /* confdefs.h.  */
29365 _ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h.  */
29369 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
29370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29371 #define remove innocuous_remove
29372
29373 /* System header to define __stub macros and hopefully few prototypes,
29374     which can conflict with char remove (); below.
29375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29376     <limits.h> exists even on freestanding compilers.  */
29377
29378 #ifdef __STDC__
29379 # include <limits.h>
29380 #else
29381 # include <assert.h>
29382 #endif
29383
29384 #undef remove
29385
29386 /* Override any gcc2 internal prototype to avoid an error.  */
29387 #ifdef __cplusplus
29388 extern "C"
29389 {
29390 #endif
29391 /* We use char because int might match the return type of a gcc2
29392    builtin and then its argument prototype would still apply.  */
29393 char remove ();
29394 /* The GNU C library defines this for functions which it implements
29395     to always fail with ENOSYS.  Some functions are actually named
29396     something starting with __ and the normal name is an alias.  */
29397 #if defined (__stub_remove) || defined (__stub___remove)
29398 choke me
29399 #else
29400 char (*f) () = remove;
29401 #endif
29402 #ifdef __cplusplus
29403 }
29404 #endif
29405
29406 int
29407 main ()
29408 {
29409 return f != remove;
29410   ;
29411   return 0;
29412 }
29413 _ACEOF
29414 rm -f conftest.$ac_objext conftest$ac_exeext
29415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29416   (eval $ac_link) 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } &&
29423          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425   (eval $ac_try) 2>&5
29426   ac_status=$?
29427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428   (exit $ac_status); }; } &&
29429          { ac_try='test -s conftest$ac_exeext'
29430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431   (eval $ac_try) 2>&5
29432   ac_status=$?
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); }; }; then
29435   ac_cv_func_remove=yes
29436 else
29437   echo "$as_me: failed program was:" >&5
29438 sed 's/^/| /' conftest.$ac_ext >&5
29439
29440 ac_cv_func_remove=no
29441 fi
29442 rm -f conftest.err conftest.$ac_objext \
29443       conftest$ac_exeext conftest.$ac_ext
29444 fi
29445 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29446 echo "${ECHO_T}$ac_cv_func_remove" >&6
29447
29448     if test $ac_cv_func_remove = no; then
29449       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29450 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29451 if test "${ac_cv_lib_posix_remove+set}" = set; then
29452   echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454   ac_check_lib_save_LIBS=$LIBS
29455 LIBS="-lposix  $LIBS"
29456 cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462
29463 /* Override any gcc2 internal prototype to avoid an error.  */
29464 #ifdef __cplusplus
29465 extern "C"
29466 #endif
29467 /* We use char because int might match the return type of a gcc2
29468    builtin and then its argument prototype would still apply.  */
29469 char remove ();
29470 int
29471 main ()
29472 {
29473 remove ();
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29480   (eval $ac_link) 2>conftest.er1
29481   ac_status=$?
29482   grep -v '^ *+' conftest.er1 >conftest.err
29483   rm -f conftest.er1
29484   cat conftest.err >&5
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); } &&
29487          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489   (eval $ac_try) 2>&5
29490   ac_status=$?
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); }; } &&
29493          { ac_try='test -s conftest$ac_exeext'
29494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495   (eval $ac_try) 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; }; then
29499   ac_cv_lib_posix_remove=yes
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 ac_cv_lib_posix_remove=no
29505 fi
29506 rm -f conftest.err conftest.$ac_objext \
29507       conftest$ac_exeext conftest.$ac_ext
29508 LIBS=$ac_check_lib_save_LIBS
29509 fi
29510 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29511 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29512 if test $ac_cv_lib_posix_remove = yes; then
29513   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29514 fi
29515
29516     fi
29517
29518     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29519     echo "$as_me:$LINENO: checking for shmat" >&5
29520 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29521 if test "${ac_cv_func_shmat+set}" = set; then
29522   echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524   cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h.  */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h.  */
29530 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29532 #define shmat innocuous_shmat
29533
29534 /* System header to define __stub macros and hopefully few prototypes,
29535     which can conflict with char shmat (); below.
29536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29537     <limits.h> exists even on freestanding compilers.  */
29538
29539 #ifdef __STDC__
29540 # include <limits.h>
29541 #else
29542 # include <assert.h>
29543 #endif
29544
29545 #undef shmat
29546
29547 /* Override any gcc2 internal prototype to avoid an error.  */
29548 #ifdef __cplusplus
29549 extern "C"
29550 {
29551 #endif
29552 /* We use char because int might match the return type of a gcc2
29553    builtin and then its argument prototype would still apply.  */
29554 char shmat ();
29555 /* The GNU C library defines this for functions which it implements
29556     to always fail with ENOSYS.  Some functions are actually named
29557     something starting with __ and the normal name is an alias.  */
29558 #if defined (__stub_shmat) || defined (__stub___shmat)
29559 choke me
29560 #else
29561 char (*f) () = shmat;
29562 #endif
29563 #ifdef __cplusplus
29564 }
29565 #endif
29566
29567 int
29568 main ()
29569 {
29570 return f != shmat;
29571   ;
29572   return 0;
29573 }
29574 _ACEOF
29575 rm -f conftest.$ac_objext conftest$ac_exeext
29576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29577   (eval $ac_link) 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586   (eval $ac_try) 2>&5
29587   ac_status=$?
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; } &&
29590          { ac_try='test -s conftest$ac_exeext'
29591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592   (eval $ac_try) 2>&5
29593   ac_status=$?
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); }; }; then
29596   ac_cv_func_shmat=yes
29597 else
29598   echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29600
29601 ac_cv_func_shmat=no
29602 fi
29603 rm -f conftest.err conftest.$ac_objext \
29604       conftest$ac_exeext conftest.$ac_ext
29605 fi
29606 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29607 echo "${ECHO_T}$ac_cv_func_shmat" >&6
29608
29609     if test $ac_cv_func_shmat = no; then
29610       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29611 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29612 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29613   echo $ECHO_N "(cached) $ECHO_C" >&6
29614 else
29615   ac_check_lib_save_LIBS=$LIBS
29616 LIBS="-lipc  $LIBS"
29617 cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623
29624 /* Override any gcc2 internal prototype to avoid an error.  */
29625 #ifdef __cplusplus
29626 extern "C"
29627 #endif
29628 /* We use char because int might match the return type of a gcc2
29629    builtin and then its argument prototype would still apply.  */
29630 char shmat ();
29631 int
29632 main ()
29633 {
29634 shmat ();
29635   ;
29636   return 0;
29637 }
29638 _ACEOF
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29641   (eval $ac_link) 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } &&
29648          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650   (eval $ac_try) 2>&5
29651   ac_status=$?
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); }; } &&
29654          { ac_try='test -s conftest$ac_exeext'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; }; then
29660   ac_cv_lib_ipc_shmat=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665 ac_cv_lib_ipc_shmat=no
29666 fi
29667 rm -f conftest.err conftest.$ac_objext \
29668       conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_check_lib_save_LIBS
29670 fi
29671 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29672 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29673 if test $ac_cv_lib_ipc_shmat = yes; then
29674   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29675 fi
29676
29677     fi
29678   fi
29679
29680   # Check for libraries that X11R6 Xt/Xaw programs need.
29681   ac_save_LDFLAGS=$LDFLAGS
29682   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29683   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29684   # check for ICE first), but we must link in the order -lSM -lICE or
29685   # we get undefined symbols.  So assume we have SM if we have ICE.
29686   # These have to be linked with before -lX11, unlike the other
29687   # libraries we check for below, so use a different variable.
29688   # John Interrante, Karl Berry
29689   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29690 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29691 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29692   echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694   ac_check_lib_save_LIBS=$LIBS
29695 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29696 cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702
29703 /* Override any gcc2 internal prototype to avoid an error.  */
29704 #ifdef __cplusplus
29705 extern "C"
29706 #endif
29707 /* We use char because int might match the return type of a gcc2
29708    builtin and then its argument prototype would still apply.  */
29709 char IceConnectionNumber ();
29710 int
29711 main ()
29712 {
29713 IceConnectionNumber ();
29714   ;
29715   return 0;
29716 }
29717 _ACEOF
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29720   (eval $ac_link) 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } &&
29727          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729   (eval $ac_try) 2>&5
29730   ac_status=$?
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); }; } &&
29733          { ac_try='test -s conftest$ac_exeext'
29734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735   (eval $ac_try) 2>&5
29736   ac_status=$?
29737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738   (exit $ac_status); }; }; then
29739   ac_cv_lib_ICE_IceConnectionNumber=yes
29740 else
29741   echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29743
29744 ac_cv_lib_ICE_IceConnectionNumber=no
29745 fi
29746 rm -f conftest.err conftest.$ac_objext \
29747       conftest$ac_exeext conftest.$ac_ext
29748 LIBS=$ac_check_lib_save_LIBS
29749 fi
29750 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29751 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29752 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29753   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29754 fi
29755
29756   LDFLAGS=$ac_save_LDFLAGS
29757
29758 fi
29759
29760
29761         if test "$no_x" = "yes"; then
29762           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29763 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29764    { (exit 1); exit 1; }; }
29765         fi
29766
29767                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29768         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
29769         AFMINSTALL=afminstall
29770         COMPILED_X_PROGRAM=0
29771
29772     fi
29773
29774     if test "$wxUSE_X11" = 1; then
29775         if test "$wxUSE_NANOX" = "yes"; then
29776             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29777 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29778             if test "x$MICROWIN" = x ; then
29779                 echo "$as_me:$LINENO: result: not found" >&5
29780 echo "${ECHO_T}not found" >&6
29781                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29782 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29783    { (exit 1); exit 1; }; }
29784             else
29785                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29786 echo "${ECHO_T}$MICROWIN" >&6
29787                 cat >>confdefs.h <<\_ACEOF
29788 #define wxUSE_NANOX 1
29789 _ACEOF
29790
29791             fi
29792         fi
29793
29794         if test "$wxUSE_UNICODE" = "yes"; then
29795
29796   succeeded=no
29797
29798   if test -z "$PKG_CONFIG"; then
29799     # Extract the first word of "pkg-config", so it can be a program name with args.
29800 set dummy pkg-config; ac_word=$2
29801 echo "$as_me:$LINENO: checking for $ac_word" >&5
29802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29804   echo $ECHO_N "(cached) $ECHO_C" >&6
29805 else
29806   case $PKG_CONFIG in
29807   [\\/]* | ?:[\\/]*)
29808   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29809   ;;
29810   *)
29811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29812 for as_dir in $PATH
29813 do
29814   IFS=$as_save_IFS
29815   test -z "$as_dir" && as_dir=.
29816   for ac_exec_ext in '' $ac_executable_extensions; do
29817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29818     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29820     break 2
29821   fi
29822 done
29823 done
29824
29825   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29826   ;;
29827 esac
29828 fi
29829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29830
29831 if test -n "$PKG_CONFIG"; then
29832   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29833 echo "${ECHO_T}$PKG_CONFIG" >&6
29834 else
29835   echo "$as_me:$LINENO: result: no" >&5
29836 echo "${ECHO_T}no" >&6
29837 fi
29838
29839   fi
29840
29841   if test "$PKG_CONFIG" = "no" ; then
29842      echo "*** The pkg-config script could not be found. Make sure it is"
29843      echo "*** in your path, or set the PKG_CONFIG environment variable"
29844      echo "*** to the full path to pkg-config."
29845      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29846   else
29847      PKG_CONFIG_MIN_VERSION=0.9.0
29848      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29849         echo "$as_me:$LINENO: checking for pangox" >&5
29850 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29851
29852         if $PKG_CONFIG --exists "pangox" ; then
29853             echo "$as_me:$LINENO: result: yes" >&5
29854 echo "${ECHO_T}yes" >&6
29855             succeeded=yes
29856
29857             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29858 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29859             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29860             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29861 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29862
29863             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29864 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29865             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29866             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29867 echo "${ECHO_T}$PANGOX_LIBS" >&6
29868         else
29869             PANGOX_CFLAGS=""
29870             PANGOX_LIBS=""
29871             ## If we have a custom action on failure, don't print errors, but
29872             ## do set a variable so people can do so.
29873             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29874
29875         fi
29876
29877
29878
29879      else
29880         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29881         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29882      fi
29883   fi
29884
29885   if test $succeeded = yes; then
29886
29887                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
29888                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29889
29890   else
29891
29892                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29893 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29894    { (exit 1); exit 1; }; }
29895
29896
29897   fi
29898
29899
29900   succeeded=no
29901
29902   if test -z "$PKG_CONFIG"; then
29903     # Extract the first word of "pkg-config", so it can be a program name with args.
29904 set dummy pkg-config; ac_word=$2
29905 echo "$as_me:$LINENO: checking for $ac_word" >&5
29906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29907 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910   case $PKG_CONFIG in
29911   [\\/]* | ?:[\\/]*)
29912   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29913   ;;
29914   *)
29915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29916 for as_dir in $PATH
29917 do
29918   IFS=$as_save_IFS
29919   test -z "$as_dir" && as_dir=.
29920   for ac_exec_ext in '' $ac_executable_extensions; do
29921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29922     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29924     break 2
29925   fi
29926 done
29927 done
29928
29929   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29930   ;;
29931 esac
29932 fi
29933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29934
29935 if test -n "$PKG_CONFIG"; then
29936   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29937 echo "${ECHO_T}$PKG_CONFIG" >&6
29938 else
29939   echo "$as_me:$LINENO: result: no" >&5
29940 echo "${ECHO_T}no" >&6
29941 fi
29942
29943   fi
29944
29945   if test "$PKG_CONFIG" = "no" ; then
29946      echo "*** The pkg-config script could not be found. Make sure it is"
29947      echo "*** in your path, or set the PKG_CONFIG environment variable"
29948      echo "*** to the full path to pkg-config."
29949      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29950   else
29951      PKG_CONFIG_MIN_VERSION=0.9.0
29952      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29953         echo "$as_me:$LINENO: checking for pangoft2" >&5
29954 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29955
29956         if $PKG_CONFIG --exists "pangoft2" ; then
29957             echo "$as_me:$LINENO: result: yes" >&5
29958 echo "${ECHO_T}yes" >&6
29959             succeeded=yes
29960
29961             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29962 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29963             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29964             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29965 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29966
29967             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29968 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29969             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29970             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29971 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29972         else
29973             PANGOFT2_CFLAGS=""
29974             PANGOFT2_LIBS=""
29975             ## If we have a custom action on failure, don't print errors, but
29976             ## do set a variable so people can do so.
29977             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29978
29979         fi
29980
29981
29982
29983      else
29984         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29985         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29986      fi
29987   fi
29988
29989   if test $succeeded = yes; then
29990
29991                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
29992                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29993
29994   else
29995
29996                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29997 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29998                         wxUSE_PRINTING_ARCHITECTURE="no"
29999
30000
30001   fi
30002
30003
30004   succeeded=no
30005
30006   if test -z "$PKG_CONFIG"; then
30007     # Extract the first word of "pkg-config", so it can be a program name with args.
30008 set dummy pkg-config; ac_word=$2
30009 echo "$as_me:$LINENO: checking for $ac_word" >&5
30010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30012   echo $ECHO_N "(cached) $ECHO_C" >&6
30013 else
30014   case $PKG_CONFIG in
30015   [\\/]* | ?:[\\/]*)
30016   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30017   ;;
30018   *)
30019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30020 for as_dir in $PATH
30021 do
30022   IFS=$as_save_IFS
30023   test -z "$as_dir" && as_dir=.
30024   for ac_exec_ext in '' $ac_executable_extensions; do
30025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30026     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30028     break 2
30029   fi
30030 done
30031 done
30032
30033   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30034   ;;
30035 esac
30036 fi
30037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30038
30039 if test -n "$PKG_CONFIG"; then
30040   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30041 echo "${ECHO_T}$PKG_CONFIG" >&6
30042 else
30043   echo "$as_me:$LINENO: result: no" >&5
30044 echo "${ECHO_T}no" >&6
30045 fi
30046
30047   fi
30048
30049   if test "$PKG_CONFIG" = "no" ; then
30050      echo "*** The pkg-config script could not be found. Make sure it is"
30051      echo "*** in your path, or set the PKG_CONFIG environment variable"
30052      echo "*** to the full path to pkg-config."
30053      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30054   else
30055      PKG_CONFIG_MIN_VERSION=0.9.0
30056      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30057         echo "$as_me:$LINENO: checking for pangoxft" >&5
30058 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30059
30060         if $PKG_CONFIG --exists "pangoxft" ; then
30061             echo "$as_me:$LINENO: result: yes" >&5
30062 echo "${ECHO_T}yes" >&6
30063             succeeded=yes
30064
30065             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30066 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30067             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30068             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30069 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30070
30071             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30072 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30073             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30074             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30075 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30076         else
30077             PANGOXFT_CFLAGS=""
30078             PANGOXFT_LIBS=""
30079             ## If we have a custom action on failure, don't print errors, but
30080             ## do set a variable so people can do so.
30081             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30082
30083         fi
30084
30085
30086
30087      else
30088         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30089         echo "*** See http://www.freedesktop.org/software/pkgconfig"
30090      fi
30091   fi
30092
30093   if test $succeeded = yes; then
30094
30095                         cat >>confdefs.h <<\_ACEOF
30096 #define HAVE_PANGO_XFT 1
30097 _ACEOF
30098
30099                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30100                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30101
30102   else
30103
30104                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30105 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30106
30107
30108   fi
30109
30110                 save_CXXFLAGS="$CXXFLAGS"
30111                 save_LIBS="$LIBS"
30112                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30113                 LIBS="$LIBS $PANGOX_LIBS"
30114
30115 for ac_func in pango_font_family_is_monospace
30116 do
30117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30118 echo "$as_me:$LINENO: checking for $ac_func" >&5
30119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30120 if eval "test \"\${$as_ac_var+set}\" = set"; then
30121   echo $ECHO_N "(cached) $ECHO_C" >&6
30122 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30131 #define $ac_func innocuous_$ac_func
30132
30133 /* System header to define __stub macros and hopefully few prototypes,
30134     which can conflict with char $ac_func (); below.
30135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30136     <limits.h> exists even on freestanding compilers.  */
30137
30138 #ifdef __STDC__
30139 # include <limits.h>
30140 #else
30141 # include <assert.h>
30142 #endif
30143
30144 #undef $ac_func
30145
30146 /* Override any gcc2 internal prototype to avoid an error.  */
30147 #ifdef __cplusplus
30148 extern "C"
30149 {
30150 #endif
30151 /* We use char because int might match the return type of a gcc2
30152    builtin and then its argument prototype would still apply.  */
30153 char $ac_func ();
30154 /* The GNU C library defines this for functions which it implements
30155     to always fail with ENOSYS.  Some functions are actually named
30156     something starting with __ and the normal name is an alias.  */
30157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30158 choke me
30159 #else
30160 char (*f) () = $ac_func;
30161 #endif
30162 #ifdef __cplusplus
30163 }
30164 #endif
30165
30166 int
30167 main ()
30168 {
30169 return f != $ac_func;
30170   ;
30171   return 0;
30172 }
30173 _ACEOF
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30176   (eval $ac_link) 2>conftest.er1
30177   ac_status=$?
30178   grep -v '^ *+' conftest.er1 >conftest.err
30179   rm -f conftest.er1
30180   cat conftest.err >&5
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } &&
30183          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185   (eval $ac_try) 2>&5
30186   ac_status=$?
30187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188   (exit $ac_status); }; } &&
30189          { ac_try='test -s conftest$ac_exeext'
30190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191   (eval $ac_try) 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; }; then
30195   eval "$as_ac_var=yes"
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200 eval "$as_ac_var=no"
30201 fi
30202 rm -f conftest.err conftest.$ac_objext \
30203       conftest$ac_exeext conftest.$ac_ext
30204 fi
30205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30207 if test `eval echo '${'$as_ac_var'}'` = yes; then
30208   cat >>confdefs.h <<_ACEOF
30209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30210 _ACEOF
30211
30212 fi
30213 done
30214
30215                 CXXFLAGS="$save_CXXFLAGS"
30216                 LIBS="$save_LIBS"
30217         fi
30218
30219         wxUSE_UNIVERSAL="yes"
30220
30221         if test "$wxUSE_NANOX" = "yes"; then
30222             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30223             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"
30224             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30225         else
30226             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30227         fi
30228
30229         TOOLKIT=X11
30230         GUIDIST=X11_DIST
30231     fi
30232
30233     if test "$wxUSE_MOTIF" = 1; then
30234         if test "$wxUSE_UNICODE" = "yes"; then
30235             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30236 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30237    { (exit 1); exit 1; }; }
30238         fi
30239
30240         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30241 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
30242
30243 ac_find_includes=
30244 for ac_dir in $SEARCH_INCLUDE /usr/include;
30245   do
30246     if test -f "$ac_dir/Xm/Xm.h"; then
30247       ac_find_includes=$ac_dir
30248       break
30249     fi
30250   done
30251
30252         if test "$ac_find_includes" != "" ; then
30253             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30254 echo "${ECHO_T}found in $ac_find_includes" >&6
30255
30256     if test "x$ac_find_includes" = "x/usr/include"; then
30257     ac_path_to_include=""
30258   else
30259     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30260     result=$?
30261     if test $result = 0; then
30262       ac_path_to_include=""
30263     else
30264       ac_path_to_include=" -I$ac_find_includes"
30265     fi
30266   fi
30267
30268             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30269         else
30270             save_CXXFLAGS=$CXXFLAGS
30271             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30272
30273             cat >conftest.$ac_ext <<_ACEOF
30274 /* confdefs.h.  */
30275 _ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h.  */
30279
30280                     #include <Xm/Xm.h>
30281
30282 int
30283 main ()
30284 {
30285
30286                     int version;
30287                     version = xmUseVersion;
30288
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext
30294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30295   (eval $ac_compile) 2>conftest.er1
30296   ac_status=$?
30297   grep -v '^ *+' conftest.er1 >conftest.err
30298   rm -f conftest.er1
30299   cat conftest.err >&5
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); } &&
30302          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30304   (eval $ac_try) 2>&5
30305   ac_status=$?
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); }; } &&
30308          { ac_try='test -s conftest.$ac_objext'
30309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310   (eval $ac_try) 2>&5
30311   ac_status=$?
30312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313   (exit $ac_status); }; }; then
30314
30315                     echo "$as_me:$LINENO: result: found in default search path" >&5
30316 echo "${ECHO_T}found in default search path" >&6
30317                     COMPILED_X_PROGRAM=1
30318
30319 else
30320   echo "$as_me: failed program was:" >&5
30321 sed 's/^/| /' conftest.$ac_ext >&5
30322
30323
30324                     echo "$as_me:$LINENO: result: no" >&5
30325 echo "${ECHO_T}no" >&6
30326                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30327 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30328    { (exit 1); exit 1; }; }
30329
30330
30331 fi
30332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30333
30334             CXXFLAGS=$save_CXXFLAGS
30335         fi
30336
30337
30338         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30339 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30340
30341   ac_find_libraries=
30342   for ac_dir in $SEARCH_LIB;
30343   do
30344     for ac_extension in a so sl dylib dll.a; do
30345       if test -f "$ac_dir/libXm.$ac_extension"; then
30346         ac_find_libraries=$ac_dir
30347         break 2
30348       fi
30349     done
30350   done
30351
30352
30353         if test "x$ac_find_libraries" != "x" ; then
30354             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30355 echo "${ECHO_T}found in $ac_find_libraries" >&6
30356
30357
30358     if test "$ac_find_libraries" = "default location"; then
30359     ac_path_to_link=""
30360   else
30361     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30362     result=$?
30363     if test $result = 0; then
30364       ac_path_to_link=""
30365     else
30366       ac_path_to_link=" -L$ac_find_libraries"
30367     fi
30368   fi
30369
30370             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30371         else
30372                                                 save_CXXFLAGS=$CXXFLAGS
30373             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30374             save_LIBS="$LIBS"
30375             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30376
30377             cat >conftest.$ac_ext <<_ACEOF
30378 /* confdefs.h.  */
30379 _ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h.  */
30383
30384                     #include <Xm/Xm.h>
30385
30386 int
30387 main ()
30388 {
30389
30390                     int version;
30391                     version = xmUseVersion;
30392
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30399   (eval $ac_link) 2>conftest.er1
30400   ac_status=$?
30401   grep -v '^ *+' conftest.er1 >conftest.err
30402   rm -f conftest.er1
30403   cat conftest.err >&5
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); } &&
30406          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408   (eval $ac_try) 2>&5
30409   ac_status=$?
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); }; } &&
30412          { ac_try='test -s conftest$ac_exeext'
30413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414   (eval $ac_try) 2>&5
30415   ac_status=$?
30416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); }; }; then
30418
30419                     echo "$as_me:$LINENO: result: found in default search path" >&5
30420 echo "${ECHO_T}found in default search path" >&6
30421                     COMPILED_X_PROGRAM=1
30422
30423 else
30424   echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30426
30427
30428                     echo "$as_me:$LINENO: result: no" >&5
30429 echo "${ECHO_T}no" >&6
30430                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
30431 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30432    { (exit 1); exit 1; }; }
30433
30434
30435 fi
30436 rm -f conftest.err conftest.$ac_objext \
30437       conftest$ac_exeext conftest.$ac_ext
30438
30439             CXXFLAGS=$save_CXXFLAGS
30440             LIBS="$save_LIBS"
30441         fi
30442
30443         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30444 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30445         libp_link=""
30446         libsm_ice_link=""
30447         libs_found=0
30448         for libp in "" " -lXp"; do
30449             if test "$libs_found" = "0"; then
30450                 for libsm_ice in "" " -lSM -lICE"; do
30451                     if test "$libs_found" = "0"; then
30452                         save_LIBS="$LIBS"
30453                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
30454                         save_CXXFLAGS=$CXXFLAGS
30455                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30456
30457                         cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463
30464                                 #include <Xm/Xm.h>
30465                                 #include <Xm/List.h>
30466
30467 int
30468 main ()
30469 {
30470
30471                                 XmString string = NULL;
30472                                 Widget w = NULL;
30473                                 int position = 0;
30474                                 XmListAddItem(w, string, position);
30475
30476   ;
30477   return 0;
30478 }
30479 _ACEOF
30480 rm -f conftest.$ac_objext conftest$ac_exeext
30481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30482   (eval $ac_link) 2>conftest.er1
30483   ac_status=$?
30484   grep -v '^ *+' conftest.er1 >conftest.err
30485   rm -f conftest.er1
30486   cat conftest.err >&5
30487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488   (exit $ac_status); } &&
30489          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30491   (eval $ac_try) 2>&5
30492   ac_status=$?
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); }; } &&
30495          { ac_try='test -s conftest$ac_exeext'
30496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497   (eval $ac_try) 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; }; then
30501
30502                                 libp_link="$libp"
30503                                 libsm_ice_link="$libsm_ice"
30504                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30505 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30506                                 libs_found=1
30507
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512
30513
30514 fi
30515 rm -f conftest.err conftest.$ac_objext \
30516       conftest$ac_exeext conftest.$ac_ext
30517
30518                         LIBS="$save_LIBS"
30519                         CXXFLAGS=$save_CXXFLAGS
30520                     fi
30521                 done
30522             fi
30523         done
30524
30525         if test "$libs_found" = "0"; then
30526             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30527 echo "${ECHO_T}can't find the right libraries" >&6
30528             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30529 echo "$as_me: error: can't link a simple motif program" >&2;}
30530    { (exit 1); exit 1; }; }
30531         fi
30532
30533                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30534 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30535 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30536   echo $ECHO_N "(cached) $ECHO_C" >&6
30537 else
30538   ac_check_lib_save_LIBS=$LIBS
30539 LIBS="-lSgm  $LIBS"
30540 cat >conftest.$ac_ext <<_ACEOF
30541 /* confdefs.h.  */
30542 _ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h.  */
30546
30547 /* Override any gcc2 internal prototype to avoid an error.  */
30548 #ifdef __cplusplus
30549 extern "C"
30550 #endif
30551 /* We use char because int might match the return type of a gcc2
30552    builtin and then its argument prototype would still apply.  */
30553 char SgCreateList ();
30554 int
30555 main ()
30556 {
30557 SgCreateList ();
30558   ;
30559   return 0;
30560 }
30561 _ACEOF
30562 rm -f conftest.$ac_objext conftest$ac_exeext
30563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30564   (eval $ac_link) 2>conftest.er1
30565   ac_status=$?
30566   grep -v '^ *+' conftest.er1 >conftest.err
30567   rm -f conftest.er1
30568   cat conftest.err >&5
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); } &&
30571          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573   (eval $ac_try) 2>&5
30574   ac_status=$?
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); }; } &&
30577          { ac_try='test -s conftest$ac_exeext'
30578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579   (eval $ac_try) 2>&5
30580   ac_status=$?
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); }; }; then
30583   ac_cv_lib_Sgm_SgCreateList=yes
30584 else
30585   echo "$as_me: failed program was:" >&5
30586 sed 's/^/| /' conftest.$ac_ext >&5
30587
30588 ac_cv_lib_Sgm_SgCreateList=no
30589 fi
30590 rm -f conftest.err conftest.$ac_objext \
30591       conftest$ac_exeext conftest.$ac_ext
30592 LIBS=$ac_check_lib_save_LIBS
30593 fi
30594 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30595 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30596 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30597   libsgm_link=" -lSgm"
30598 fi
30599
30600
30601         save_CXXFLAGS=$CXXFLAGS
30602         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30603
30604         echo "$as_me:$LINENO: checking for Motif 2" >&5
30605 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
30606 if test "${wx_cv_lib_motif2+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   cat >conftest.$ac_ext <<_ACEOF
30610 /* confdefs.h.  */
30611 _ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h.  */
30615
30616                             #include <Xm/Xm.h>
30617
30618 int
30619 main ()
30620 {
30621
30622                             #if XmVersion < 2000
30623                             Not Motif 2
30624                             #endif
30625
30626   ;
30627   return 0;
30628 }
30629 _ACEOF
30630 rm -f conftest.$ac_objext
30631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30632   (eval $ac_compile) 2>conftest.er1
30633   ac_status=$?
30634   grep -v '^ *+' conftest.er1 >conftest.err
30635   rm -f conftest.er1
30636   cat conftest.err >&5
30637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638   (exit $ac_status); } &&
30639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641   (eval $ac_try) 2>&5
30642   ac_status=$?
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); }; } &&
30645          { ac_try='test -s conftest.$ac_objext'
30646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647   (eval $ac_try) 2>&5
30648   ac_status=$?
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); }; }; then
30651   wx_cv_lib_motif2="yes"
30652 else
30653   echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30655
30656 wx_cv_lib_motif2="no"
30657 fi
30658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30659 fi
30660 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30661 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30662         if test "$wx_cv_lib_motif2" = "yes"; then
30663             cat >>confdefs.h <<\_ACEOF
30664 #define __WXMOTIF20__ 1
30665 _ACEOF
30666
30667         else
30668             cat >>confdefs.h <<\_ACEOF
30669 #define __WXMOTIF20__ 0
30670 _ACEOF
30671
30672         fi
30673
30674         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30675 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
30676 if test "${wx_cv_lib_lesstif+set}" = set; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685
30686                             #include <Xm/Xm.h>
30687
30688 int
30689 main ()
30690 {
30691
30692                             #if !defined(LesstifVersion) || LesstifVersion <= 0
30693                             Not Lesstif
30694                             #endif
30695
30696   ;
30697   return 0;
30698 }
30699 _ACEOF
30700 rm -f conftest.$ac_objext
30701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30702   (eval $ac_compile) 2>conftest.er1
30703   ac_status=$?
30704   grep -v '^ *+' conftest.er1 >conftest.err
30705   rm -f conftest.er1
30706   cat conftest.err >&5
30707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708   (exit $ac_status); } &&
30709          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711   (eval $ac_try) 2>&5
30712   ac_status=$?
30713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714   (exit $ac_status); }; } &&
30715          { ac_try='test -s conftest.$ac_objext'
30716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717   (eval $ac_try) 2>&5
30718   ac_status=$?
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); }; }; then
30721   wx_cv_lib_lesstif="yes"
30722 else
30723   echo "$as_me: failed program was:" >&5
30724 sed 's/^/| /' conftest.$ac_ext >&5
30725
30726 wx_cv_lib_lesstif="no"
30727 fi
30728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30729
30730 fi
30731 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30732 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30733         if test "$wx_cv_lib_lesstif" = "yes"; then
30734             cat >>confdefs.h <<\_ACEOF
30735 #define __WXLESSTIF__ 1
30736 _ACEOF
30737
30738         else
30739             cat >>confdefs.h <<\_ACEOF
30740 #define __WXLESSTIF__ 0
30741 _ACEOF
30742
30743         fi
30744
30745         CXXFLAGS=$save_CXXFLAGS
30746
30747         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
30748         TOOLKIT=MOTIF
30749         GUIDIST=MOTIF_DIST
30750     fi
30751
30752         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30753                 if test "$wxUSE_LIBXPM" = "sys"; then
30754             echo "$as_me:$LINENO: checking for Xpm library" >&5
30755 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30756
30757   ac_find_libraries=
30758   for ac_dir in $SEARCH_LIB;
30759   do
30760     for ac_extension in a so sl dylib dll.a; do
30761       if test -f "$ac_dir/libXpm.$ac_extension"; then
30762         ac_find_libraries=$ac_dir
30763         break 2
30764       fi
30765     done
30766   done
30767
30768             if test "$ac_find_libraries" != "" ; then
30769
30770     if test "$ac_find_libraries" = "default location"; then
30771     ac_path_to_link=""
30772   else
30773     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30774     result=$?
30775     if test $result = 0; then
30776       ac_path_to_link=""
30777     else
30778       ac_path_to_link=" -L$ac_find_libraries"
30779     fi
30780   fi
30781
30782                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30783                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30784 echo "${ECHO_T}found in $ac_find_libraries" >&6
30785
30786                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30787 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30788 if test "${wx_cv_x11_xpm_h+set}" = set; then
30789   echo $ECHO_N "(cached) $ECHO_C" >&6
30790 else
30791
30792                         save_CXXFLAGS=$CXXFLAGS
30793                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30794
30795                         cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801
30802                                 #include <X11/xpm.h>
30803
30804 int
30805 main ()
30806 {
30807
30808                                 int version;
30809                                 version = XpmLibraryVersion();
30810
30811   ;
30812   return 0;
30813 }
30814 _ACEOF
30815 rm -f conftest.$ac_objext
30816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30817   (eval $ac_compile) 2>conftest.er1
30818   ac_status=$?
30819   grep -v '^ *+' conftest.er1 >conftest.err
30820   rm -f conftest.er1
30821   cat conftest.err >&5
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); } &&
30824          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30826   (eval $ac_try) 2>&5
30827   ac_status=$?
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); }; } &&
30830          { ac_try='test -s conftest.$ac_objext'
30831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30832   (eval $ac_try) 2>&5
30833   ac_status=$?
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); }; }; then
30836   wx_cv_x11_xpm_h=yes
30837 else
30838   echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841 wx_cv_x11_xpm_h=no
30842
30843 fi
30844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30845
30846                         CXXFLAGS=$save_CXXFLAGS
30847
30848
30849 fi
30850 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30851 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30852
30853                 if test $wx_cv_x11_xpm_h = "yes"; then
30854                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30855                     cat >>confdefs.h <<\_ACEOF
30856 #define wxHAVE_LIB_XPM 1
30857 _ACEOF
30858
30859                 else
30860                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30861 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30862                 fi
30863             fi
30864
30865         fi
30866
30867                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30868 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30869 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30870   echo $ECHO_N "(cached) $ECHO_C" >&6
30871 else
30872   ac_check_lib_save_LIBS=$LIBS
30873 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30874 cat >conftest.$ac_ext <<_ACEOF
30875 /* confdefs.h.  */
30876 _ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h.  */
30880
30881 /* Override any gcc2 internal prototype to avoid an error.  */
30882 #ifdef __cplusplus
30883 extern "C"
30884 #endif
30885 /* We use char because int might match the return type of a gcc2
30886    builtin and then its argument prototype would still apply.  */
30887 char XShapeQueryExtension ();
30888 int
30889 main ()
30890 {
30891 XShapeQueryExtension ();
30892   ;
30893   return 0;
30894 }
30895 _ACEOF
30896 rm -f conftest.$ac_objext conftest$ac_exeext
30897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30898   (eval $ac_link) 2>conftest.er1
30899   ac_status=$?
30900   grep -v '^ *+' conftest.er1 >conftest.err
30901   rm -f conftest.er1
30902   cat conftest.err >&5
30903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904   (exit $ac_status); } &&
30905          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907   (eval $ac_try) 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); }; } &&
30911          { ac_try='test -s conftest$ac_exeext'
30912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913   (eval $ac_try) 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; }; then
30917   ac_cv_lib_Xext_XShapeQueryExtension=yes
30918 else
30919   echo "$as_me: failed program was:" >&5
30920 sed 's/^/| /' conftest.$ac_ext >&5
30921
30922 ac_cv_lib_Xext_XShapeQueryExtension=no
30923 fi
30924 rm -f conftest.err conftest.$ac_objext \
30925       conftest$ac_exeext conftest.$ac_ext
30926 LIBS=$ac_check_lib_save_LIBS
30927 fi
30928 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30929 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30930 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30931
30932                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30933                       wxHAVE_XEXT_LIB=1
30934
30935 fi
30936
30937
30938         if test "$wxHAVE_XEXT_LIB" = 1; then
30939             save_CXXFLAGS="$CXXFLAGS"
30940             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30941
30942             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30943 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30944             cat >conftest.$ac_ext <<_ACEOF
30945 /* confdefs.h.  */
30946 _ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h.  */
30950
30951                             #include <X11/Xlib.h>
30952                             #include <X11/extensions/shape.h>
30953
30954 int
30955 main ()
30956 {
30957
30958                             int dummy1, dummy2;
30959                             XShapeQueryExtension((Display*)NULL,
30960                                                  (int*)NULL, (int*)NULL);
30961
30962   ;
30963   return 0;
30964 }
30965 _ACEOF
30966 rm -f conftest.$ac_objext
30967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30968   (eval $ac_compile) 2>conftest.er1
30969   ac_status=$?
30970   grep -v '^ *+' conftest.er1 >conftest.err
30971   rm -f conftest.er1
30972   cat conftest.err >&5
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); } &&
30975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977   (eval $ac_try) 2>&5
30978   ac_status=$?
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); }; } &&
30981          { ac_try='test -s conftest.$ac_objext'
30982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983   (eval $ac_try) 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; }; then
30987
30988                             cat >>confdefs.h <<\_ACEOF
30989 #define HAVE_XSHAPE 1
30990 _ACEOF
30991
30992                             echo "$as_me:$LINENO: result: found" >&5
30993 echo "${ECHO_T}found" >&6
30994
30995 else
30996   echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30998
30999
31000                             echo "$as_me:$LINENO: result: not found" >&5
31001 echo "${ECHO_T}not found" >&6
31002
31003 fi
31004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31005             CXXFLAGS="$save_CXXFLAGS"
31006
31007         fi
31008     fi
31009
31010     if test "$wxUSE_MAC" = 1; then
31011         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31012 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31013         if test "$GCC" = yes; then
31014             echo "$as_me:$LINENO: result: gcc" >&5
31015 echo "${ECHO_T}gcc" >&6
31016             CPPFLAGS_PASCAL="-fpascal-strings"
31017         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31018             echo "$as_me:$LINENO: result: xlc" >&5
31019 echo "${ECHO_T}xlc" >&6
31020             CPPFLAGS_PASCAL="-qmacpstr"
31021         else
31022             echo "$as_me:$LINENO: result: none" >&5
31023 echo "${ECHO_T}none" >&6
31024         fi
31025
31026         if test "x$wxUSE_UNIX" = "xyes"; then
31027             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31028         else
31029                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31030         fi
31031
31032         TOOLKIT=MAC
31033                 GUIDIST=MACX_DIST
31034                         WXBASEPORT="_carbon"
31035     fi
31036
31037     if test "$wxUSE_COCOA" = 1; then
31038         TOOLKIT=COCOA
31039         GUIDIST=COCOA_DIST
31040     fi
31041
31042     if test "$wxUSE_PM" = 1; then
31043         TOOLKIT=PM
31044         GUIDIST=PM_DIST
31045         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31046 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31047 if test "${wx_cv_spbcdata+set}" = set; then
31048   echo $ECHO_N "(cached) $ECHO_C" >&6
31049 else
31050
31051                 cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h.  */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h.  */
31057
31058                         #define INCL_PM
31059                         #include <os2.h>
31060
31061 int
31062 main ()
31063 {
31064
31065                         SPBCDATA test;
31066
31067   ;
31068   return 0;
31069 }
31070 _ACEOF
31071 rm -f conftest.$ac_objext
31072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31073   (eval $ac_compile) 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } &&
31080          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082   (eval $ac_try) 2>&5
31083   ac_status=$?
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); }; } &&
31086          { ac_try='test -s conftest.$ac_objext'
31087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31088   (eval $ac_try) 2>&5
31089   ac_status=$?
31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091   (exit $ac_status); }; }; then
31092   wx_cv_spbcdata=yes
31093 else
31094   echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097 wx_cv_spbcdata=no
31098
31099 fi
31100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31101
31102
31103 fi
31104 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31105 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31106
31107         if test $wx_cv_spbcdata = "yes"; then
31108             cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_SPBCDATA 1
31110 _ACEOF
31111
31112         fi
31113     fi
31114
31115         if test "$TOOLKIT" = "PM" ; then
31116         TOOLKIT_DIR="os2"
31117     else
31118         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31119     fi
31120
31121     if test "$wxUSE_UNIVERSAL" = "yes"; then
31122         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31123         WIDGET_SET=univ
31124     fi
31125
31126         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31127     DISTDIR="wx\$(TOOLKIT)"
31128 else
31129     USE_GUI=0
31130
31131             TOOLKIT_DIR="base"
31132
31133         if test "$USE_WIN32" = 1 ; then
31134                         TOOLKIT="MSW"
31135     fi
31136
31137         GUIDIST="BASE_DIST"
31138     DISTDIR="wxBase"
31139 fi
31140
31141
31142 if test "$wxUSE_GUI" = "yes"; then
31143     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31144
31145 for ac_header in X11/Xlib.h
31146 do
31147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31149   echo "$as_me:$LINENO: checking for $ac_header" >&5
31150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 fi
31154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31156 else
31157   # Is the header compilable?
31158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31160 cat >conftest.$ac_ext <<_ACEOF
31161 /* confdefs.h.  */
31162 _ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h.  */
31166 $ac_includes_default
31167 #include <$ac_header>
31168 _ACEOF
31169 rm -f conftest.$ac_objext
31170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31171   (eval $ac_compile) 2>conftest.er1
31172   ac_status=$?
31173   grep -v '^ *+' conftest.er1 >conftest.err
31174   rm -f conftest.er1
31175   cat conftest.err >&5
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); } &&
31178          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180   (eval $ac_try) 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; } &&
31184          { ac_try='test -s conftest.$ac_objext'
31185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186   (eval $ac_try) 2>&5
31187   ac_status=$?
31188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189   (exit $ac_status); }; }; then
31190   ac_header_compiler=yes
31191 else
31192   echo "$as_me: failed program was:" >&5
31193 sed 's/^/| /' conftest.$ac_ext >&5
31194
31195 ac_header_compiler=no
31196 fi
31197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31199 echo "${ECHO_T}$ac_header_compiler" >&6
31200
31201 # Is the header present?
31202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31204 cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210 #include <$ac_header>
31211 _ACEOF
31212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31214   ac_status=$?
31215   grep -v '^ *+' conftest.er1 >conftest.err
31216   rm -f conftest.er1
31217   cat conftest.err >&5
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); } >/dev/null; then
31220   if test -s conftest.err; then
31221     ac_cpp_err=$ac_cxx_preproc_warn_flag
31222     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31223   else
31224     ac_cpp_err=
31225   fi
31226 else
31227   ac_cpp_err=yes
31228 fi
31229 if test -z "$ac_cpp_err"; then
31230   ac_header_preproc=yes
31231 else
31232   echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31234
31235   ac_header_preproc=no
31236 fi
31237 rm -f conftest.err conftest.$ac_ext
31238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31239 echo "${ECHO_T}$ac_header_preproc" >&6
31240
31241 # So?  What about this header?
31242 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31243   yes:no: )
31244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31248     ac_header_preproc=yes
31249     ;;
31250   no:yes:* )
31251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31263     (
31264       cat <<\_ASBOX
31265 ## ----------------------------------------- ##
31266 ## Report this to wx-dev@lists.wxwidgets.org ##
31267 ## ----------------------------------------- ##
31268 _ASBOX
31269     ) |
31270       sed "s/^/$as_me: WARNING:     /" >&2
31271     ;;
31272 esac
31273 echo "$as_me:$LINENO: checking for $ac_header" >&5
31274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31276   echo $ECHO_N "(cached) $ECHO_C" >&6
31277 else
31278   eval "$as_ac_Header=\$ac_header_preproc"
31279 fi
31280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31282
31283 fi
31284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31285   cat >>confdefs.h <<_ACEOF
31286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31287 _ACEOF
31288
31289 fi
31290
31291 done
31292
31293
31294 for ac_header in X11/XKBlib.h
31295 do
31296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31297 echo "$as_me:$LINENO: checking for $ac_header" >&5
31298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31300   echo $ECHO_N "(cached) $ECHO_C" >&6
31301 else
31302   cat >conftest.$ac_ext <<_ACEOF
31303 /* confdefs.h.  */
31304 _ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h.  */
31308
31309                           #if HAVE_X11_XLIB_H
31310                             #include <X11/Xlib.h>
31311                           #endif
31312
31313
31314 #include <$ac_header>
31315 _ACEOF
31316 rm -f conftest.$ac_objext
31317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31318   (eval $ac_compile) 2>conftest.er1
31319   ac_status=$?
31320   grep -v '^ *+' conftest.er1 >conftest.err
31321   rm -f conftest.er1
31322   cat conftest.err >&5
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); } &&
31325          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31327   (eval $ac_try) 2>&5
31328   ac_status=$?
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); }; } &&
31331          { ac_try='test -s conftest.$ac_objext'
31332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31333   (eval $ac_try) 2>&5
31334   ac_status=$?
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); }; }; then
31337   eval "$as_ac_Header=yes"
31338 else
31339   echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31341
31342 eval "$as_ac_Header=no"
31343 fi
31344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31345 fi
31346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31349   cat >>confdefs.h <<_ACEOF
31350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31351 _ACEOF
31352
31353 fi
31354
31355 done
31356
31357     fi
31358 fi
31359
31360
31361
31362 IODBC_C_SRC=""
31363
31364
31365 if test "$TOOLKIT" != "MSW" ; then
31366
31367     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31368
31369         if test "${ac_cv_header_sql_h+set}" = set; then
31370   echo "$as_me:$LINENO: checking for sql.h" >&5
31371 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31372 if test "${ac_cv_header_sql_h+set}" = set; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 fi
31375 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31376 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31377 else
31378   # Is the header compilable?
31379 echo "$as_me:$LINENO: checking sql.h usability" >&5
31380 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31381 cat >conftest.$ac_ext <<_ACEOF
31382 /* confdefs.h.  */
31383 _ACEOF
31384 cat confdefs.h >>conftest.$ac_ext
31385 cat >>conftest.$ac_ext <<_ACEOF
31386 /* end confdefs.h.  */
31387 $ac_includes_default
31388 #include <sql.h>
31389 _ACEOF
31390 rm -f conftest.$ac_objext
31391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31392   (eval $ac_compile) 2>conftest.er1
31393   ac_status=$?
31394   grep -v '^ *+' conftest.er1 >conftest.err
31395   rm -f conftest.er1
31396   cat conftest.err >&5
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); } &&
31399          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401   (eval $ac_try) 2>&5
31402   ac_status=$?
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); }; } &&
31405          { ac_try='test -s conftest.$ac_objext'
31406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31407   (eval $ac_try) 2>&5
31408   ac_status=$?
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); }; }; then
31411   ac_header_compiler=yes
31412 else
31413   echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31415
31416 ac_header_compiler=no
31417 fi
31418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31420 echo "${ECHO_T}$ac_header_compiler" >&6
31421
31422 # Is the header present?
31423 echo "$as_me:$LINENO: checking sql.h presence" >&5
31424 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31425 cat >conftest.$ac_ext <<_ACEOF
31426 /* confdefs.h.  */
31427 _ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h.  */
31431 #include <sql.h>
31432 _ACEOF
31433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } >/dev/null; then
31441   if test -s conftest.err; then
31442     ac_cpp_err=$ac_cxx_preproc_warn_flag
31443     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31444   else
31445     ac_cpp_err=
31446   fi
31447 else
31448   ac_cpp_err=yes
31449 fi
31450 if test -z "$ac_cpp_err"; then
31451   ac_header_preproc=yes
31452 else
31453   echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31455
31456   ac_header_preproc=no
31457 fi
31458 rm -f conftest.err conftest.$ac_ext
31459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31460 echo "${ECHO_T}$ac_header_preproc" >&6
31461
31462 # So?  What about this header?
31463 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31464   yes:no: )
31465     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31466 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31467     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31468 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31469     ac_header_preproc=yes
31470     ;;
31471   no:yes:* )
31472     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31473 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
31474     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
31475 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
31476     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31477 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31478     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
31479 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31480     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31481 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
31482     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31483 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
31484     (
31485       cat <<\_ASBOX
31486 ## ----------------------------------------- ##
31487 ## Report this to wx-dev@lists.wxwidgets.org ##
31488 ## ----------------------------------------- ##
31489 _ASBOX
31490     ) |
31491       sed "s/^/$as_me: WARNING:     /" >&2
31492     ;;
31493 esac
31494 echo "$as_me:$LINENO: checking for sql.h" >&5
31495 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31496 if test "${ac_cv_header_sql_h+set}" = set; then
31497   echo $ECHO_N "(cached) $ECHO_C" >&6
31498 else
31499   ac_cv_header_sql_h=$ac_header_preproc
31500 fi
31501 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31502 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31503
31504 fi
31505 if test $ac_cv_header_sql_h = yes; then
31506   found_sql_h=1
31507 fi
31508
31509
31510         if test "x$found_sql_h" = "x1" ; then
31511             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31512 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31513 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31514   echo $ECHO_N "(cached) $ECHO_C" >&6
31515 else
31516   ac_check_lib_save_LIBS=$LIBS
31517 LIBS="-liodbc  $LIBS"
31518 cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h.  */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h.  */
31524
31525 /* Override any gcc2 internal prototype to avoid an error.  */
31526 #ifdef __cplusplus
31527 extern "C"
31528 #endif
31529 /* We use char because int might match the return type of a gcc2
31530    builtin and then its argument prototype would still apply.  */
31531 char SQLAllocEnv ();
31532 int
31533 main ()
31534 {
31535 SQLAllocEnv ();
31536   ;
31537   return 0;
31538 }
31539 _ACEOF
31540 rm -f conftest.$ac_objext conftest$ac_exeext
31541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31542   (eval $ac_link) 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } &&
31549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551   (eval $ac_try) 2>&5
31552   ac_status=$?
31553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554   (exit $ac_status); }; } &&
31555          { ac_try='test -s conftest$ac_exeext'
31556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557   (eval $ac_try) 2>&5
31558   ac_status=$?
31559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560   (exit $ac_status); }; }; then
31561   ac_cv_lib_iodbc_SQLAllocEnv=yes
31562 else
31563   echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31565
31566 ac_cv_lib_iodbc_SQLAllocEnv=no
31567 fi
31568 rm -f conftest.err conftest.$ac_objext \
31569       conftest$ac_exeext conftest.$ac_ext
31570 LIBS=$ac_check_lib_save_LIBS
31571 fi
31572 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31573 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31574 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31575   ODBC_LINK=" -liodbc"
31576 else
31577
31578                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31579 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31580 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583   ac_check_lib_save_LIBS=$LIBS
31584 LIBS="-lunixodbc  $LIBS"
31585 cat >conftest.$ac_ext <<_ACEOF
31586 /* confdefs.h.  */
31587 _ACEOF
31588 cat confdefs.h >>conftest.$ac_ext
31589 cat >>conftest.$ac_ext <<_ACEOF
31590 /* end confdefs.h.  */
31591
31592 /* Override any gcc2 internal prototype to avoid an error.  */
31593 #ifdef __cplusplus
31594 extern "C"
31595 #endif
31596 /* We use char because int might match the return type of a gcc2
31597    builtin and then its argument prototype would still apply.  */
31598 char SQLAllocEnv ();
31599 int
31600 main ()
31601 {
31602 SQLAllocEnv ();
31603   ;
31604   return 0;
31605 }
31606 _ACEOF
31607 rm -f conftest.$ac_objext conftest$ac_exeext
31608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31609   (eval $ac_link) 2>conftest.er1
31610   ac_status=$?
31611   grep -v '^ *+' conftest.er1 >conftest.err
31612   rm -f conftest.er1
31613   cat conftest.err >&5
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } &&
31616          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618   (eval $ac_try) 2>&5
31619   ac_status=$?
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); }; } &&
31622          { ac_try='test -s conftest$ac_exeext'
31623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624   (eval $ac_try) 2>&5
31625   ac_status=$?
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); }; }; then
31628   ac_cv_lib_unixodbc_SQLAllocEnv=yes
31629 else
31630   echo "$as_me: failed program was:" >&5
31631 sed 's/^/| /' conftest.$ac_ext >&5
31632
31633 ac_cv_lib_unixodbc_SQLAllocEnv=no
31634 fi
31635 rm -f conftest.err conftest.$ac_objext \
31636       conftest$ac_exeext conftest.$ac_ext
31637 LIBS=$ac_check_lib_save_LIBS
31638 fi
31639 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31640 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31641 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31642   ODBC_LINK=" -lunixodbc"
31643 else
31644
31645                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31646 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31647 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31648   echo $ECHO_N "(cached) $ECHO_C" >&6
31649 else
31650   ac_check_lib_save_LIBS=$LIBS
31651 LIBS="-lodbc  $LIBS"
31652 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658
31659 /* Override any gcc2 internal prototype to avoid an error.  */
31660 #ifdef __cplusplus
31661 extern "C"
31662 #endif
31663 /* We use char because int might match the return type of a gcc2
31664    builtin and then its argument prototype would still apply.  */
31665 char SQLAllocEnv ();
31666 int
31667 main ()
31668 {
31669 SQLAllocEnv ();
31670   ;
31671   return 0;
31672 }
31673 _ACEOF
31674 rm -f conftest.$ac_objext conftest$ac_exeext
31675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31676   (eval $ac_link) 2>conftest.er1
31677   ac_status=$?
31678   grep -v '^ *+' conftest.er1 >conftest.err
31679   rm -f conftest.er1
31680   cat conftest.err >&5
31681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682   (exit $ac_status); } &&
31683          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31685   (eval $ac_try) 2>&5
31686   ac_status=$?
31687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688   (exit $ac_status); }; } &&
31689          { ac_try='test -s conftest$ac_exeext'
31690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31691   (eval $ac_try) 2>&5
31692   ac_status=$?
31693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694   (exit $ac_status); }; }; then
31695   ac_cv_lib_odbc_SQLAllocEnv=yes
31696 else
31697   echo "$as_me: failed program was:" >&5
31698 sed 's/^/| /' conftest.$ac_ext >&5
31699
31700 ac_cv_lib_odbc_SQLAllocEnv=no
31701 fi
31702 rm -f conftest.err conftest.$ac_objext \
31703       conftest$ac_exeext conftest.$ac_ext
31704 LIBS=$ac_check_lib_save_LIBS
31705 fi
31706 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31707 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31708 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31709   ODBC_LINK=" -lodbc"
31710 fi
31711
31712
31713 fi
31714
31715
31716 fi
31717
31718         fi
31719         if test "x$ODBC_LINK" = "x" ; then
31720             if test "$wxUSE_ODBC" = "sys" ; then
31721                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31722 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31723    { (exit 1); exit 1; }; }
31724             else
31725                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31726 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31727                 wxUSE_ODBC=builtin
31728             fi
31729         else
31730                         wxUSE_ODBC=sys
31731         fi
31732     fi
31733
31734     if test "$wxUSE_ODBC" = "builtin" ; then
31735         cat >>confdefs.h <<\_ACEOF
31736 #define wxUSE_BUILTIN_IODBC 1
31737 _ACEOF
31738
31739     fi
31740 fi
31741
31742 if test "$wxUSE_ODBC" != "no" ; then
31743     cat >>confdefs.h <<\_ACEOF
31744 #define wxUSE_ODBC 1
31745 _ACEOF
31746
31747     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31748
31749         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
31750 fi
31751
31752
31753 if test "$wxUSE_DISPLAY" = "yes"; then
31754     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
31755         echo "$as_me:$LINENO: checking for Xinerama" >&5
31756 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31757
31758   ac_find_libraries=
31759   for ac_dir in $SEARCH_LIB;
31760   do
31761     for ac_extension in a so sl dylib dll.a; do
31762       if test -f "$ac_dir/libXinerama.$ac_extension"; then
31763         ac_find_libraries=$ac_dir
31764         break 2
31765       fi
31766     done
31767   done
31768
31769         if test "$ac_find_libraries" != "" ; then
31770
31771     if test "$ac_find_libraries" = "default location"; then
31772     ac_path_to_link=""
31773   else
31774     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31775     result=$?
31776     if test $result = 0; then
31777       ac_path_to_link=""
31778     else
31779       ac_path_to_link=" -L$ac_find_libraries"
31780     fi
31781   fi
31782
31783             if test "$ac_path_to_link" != " -L/usr/lib" ; then
31784                 LDFLAGS="$LDFLAGS $ac_path_to_link"
31785             fi
31786             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31787             echo "$as_me:$LINENO: result: yes" >&5
31788 echo "${ECHO_T}yes" >&6
31789
31790             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31791 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31792
31793   ac_find_libraries=
31794   for ac_dir in $SEARCH_LIB;
31795   do
31796     for ac_extension in a so sl dylib dll.a; do
31797       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31798         ac_find_libraries=$ac_dir
31799         break 2
31800       fi
31801     done
31802   done
31803
31804             if test "$ac_find_libraries" != "" ; then
31805                 echo "$as_me:$LINENO: result: yes" >&5
31806 echo "${ECHO_T}yes" >&6
31807
31808 for ac_header in X11/extensions/xf86vmode.h
31809 do
31810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31811 echo "$as_me:$LINENO: checking for $ac_header" >&5
31812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31814   echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816   cat >conftest.$ac_ext <<_ACEOF
31817 /* confdefs.h.  */
31818 _ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h.  */
31822
31823                                       #if HAVE_X11_XLIB_H
31824                                         #include <X11/Xlib.h>
31825                                       #endif
31826
31827
31828 #include <$ac_header>
31829 _ACEOF
31830 rm -f conftest.$ac_objext
31831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31832   (eval $ac_compile) 2>conftest.er1
31833   ac_status=$?
31834   grep -v '^ *+' conftest.er1 >conftest.err
31835   rm -f conftest.er1
31836   cat conftest.err >&5
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); } &&
31839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841   (eval $ac_try) 2>&5
31842   ac_status=$?
31843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844   (exit $ac_status); }; } &&
31845          { ac_try='test -s conftest.$ac_objext'
31846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847   (eval $ac_try) 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; }; then
31851   eval "$as_ac_Header=yes"
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856 eval "$as_ac_Header=no"
31857 fi
31858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31859 fi
31860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31863   cat >>confdefs.h <<_ACEOF
31864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31865 _ACEOF
31866
31867                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31868
31869 fi
31870
31871 done
31872
31873             else
31874                 echo "$as_me:$LINENO: result: no" >&5
31875 echo "${ECHO_T}no" >&6
31876             fi
31877
31878         else
31879             echo "$as_me:$LINENO: result: no" >&5
31880 echo "${ECHO_T}no" >&6
31881             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31882 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
31883             wxUSE_DISPLAY="no"
31884         fi
31885     elif test "$wxUSE_MSW" = 1; then
31886
31887 for ac_header in ddraw.h
31888 do
31889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31890 echo "$as_me:$LINENO: checking for $ac_header" >&5
31891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31893   echo $ECHO_N "(cached) $ECHO_C" >&6
31894 else
31895   cat >conftest.$ac_ext <<_ACEOF
31896 /* confdefs.h.  */
31897 _ACEOF
31898 cat confdefs.h >>conftest.$ac_ext
31899 cat >>conftest.$ac_ext <<_ACEOF
31900 /* end confdefs.h.  */
31901 #include <windows.h>
31902
31903 #include <$ac_header>
31904 _ACEOF
31905 rm -f conftest.$ac_objext
31906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31907   (eval $ac_compile) 2>conftest.er1
31908   ac_status=$?
31909   grep -v '^ *+' conftest.er1 >conftest.err
31910   rm -f conftest.er1
31911   cat conftest.err >&5
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); } &&
31914          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916   (eval $ac_try) 2>&5
31917   ac_status=$?
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); }; } &&
31920          { ac_try='test -s conftest.$ac_objext'
31921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922   (eval $ac_try) 2>&5
31923   ac_status=$?
31924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925   (exit $ac_status); }; }; then
31926   eval "$as_ac_Header=yes"
31927 else
31928   echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31930
31931 eval "$as_ac_Header=no"
31932 fi
31933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31934 fi
31935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31938   cat >>confdefs.h <<_ACEOF
31939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31940 _ACEOF
31941
31942 fi
31943
31944 done
31945
31946     fi
31947 fi
31948
31949
31950 USE_OPENGL=0
31951 if test "$wxUSE_OPENGL" = "yes"; then
31952     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31953         OPENGL_LIBS="-framework OpenGL -framework AGL"
31954     elif test "$wxUSE_MSW" = 1; then
31955         OPENGL_LIBS="-lopengl32 -lglu32"
31956     else
31957
31958
31959 ac_find_includes=
31960 for ac_dir in $SEARCH_INCLUDE /usr/include;
31961   do
31962     if test -f "$ac_dir/GL/gl.h"; then
31963       ac_find_includes=$ac_dir
31964       break
31965     fi
31966   done
31967
31968         if test "$ac_find_includes" != "" ; then
31969             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31970 echo "${ECHO_T}found in $ac_find_includes" >&6
31971
31972     if test "x$ac_find_includes" = "x/usr/include"; then
31973     ac_path_to_include=""
31974   else
31975     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31976     result=$?
31977     if test $result = 0; then
31978       ac_path_to_include=""
31979     else
31980       ac_path_to_include=" -I$ac_find_includes"
31981     fi
31982   fi
31983
31984             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
31985         fi
31986
31987         if test "${ac_cv_header_GL_gl_h+set}" = set; then
31988   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31989 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31990 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31991   echo $ECHO_N "(cached) $ECHO_C" >&6
31992 fi
31993 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31994 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31995 else
31996   # Is the header compilable?
31997 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31998 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31999 cat >conftest.$ac_ext <<_ACEOF
32000 /* confdefs.h.  */
32001 _ACEOF
32002 cat confdefs.h >>conftest.$ac_ext
32003 cat >>conftest.$ac_ext <<_ACEOF
32004 /* end confdefs.h.  */
32005 $ac_includes_default
32006 #include <GL/gl.h>
32007 _ACEOF
32008 rm -f conftest.$ac_objext
32009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32010   (eval $ac_compile) 2>conftest.er1
32011   ac_status=$?
32012   grep -v '^ *+' conftest.er1 >conftest.err
32013   rm -f conftest.er1
32014   cat conftest.err >&5
32015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); } &&
32017          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019   (eval $ac_try) 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; } &&
32023          { ac_try='test -s conftest.$ac_objext'
32024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025   (eval $ac_try) 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); }; }; then
32029   ac_header_compiler=yes
32030 else
32031   echo "$as_me: failed program was:" >&5
32032 sed 's/^/| /' conftest.$ac_ext >&5
32033
32034 ac_header_compiler=no
32035 fi
32036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32038 echo "${ECHO_T}$ac_header_compiler" >&6
32039
32040 # Is the header present?
32041 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32042 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32044 /* confdefs.h.  */
32045 _ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h.  */
32049 #include <GL/gl.h>
32050 _ACEOF
32051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32053   ac_status=$?
32054   grep -v '^ *+' conftest.er1 >conftest.err
32055   rm -f conftest.er1
32056   cat conftest.err >&5
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); } >/dev/null; then
32059   if test -s conftest.err; then
32060     ac_cpp_err=$ac_cxx_preproc_warn_flag
32061     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32062   else
32063     ac_cpp_err=
32064   fi
32065 else
32066   ac_cpp_err=yes
32067 fi
32068 if test -z "$ac_cpp_err"; then
32069   ac_header_preproc=yes
32070 else
32071   echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074   ac_header_preproc=no
32075 fi
32076 rm -f conftest.err conftest.$ac_ext
32077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32078 echo "${ECHO_T}$ac_header_preproc" >&6
32079
32080 # So?  What about this header?
32081 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32082   yes:no: )
32083     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32084 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32085     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32086 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32087     ac_header_preproc=yes
32088     ;;
32089   no:yes:* )
32090     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32091 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32092     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32093 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32094     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32095 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32096     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32097 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32098     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32099 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32100     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32101 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32102     (
32103       cat <<\_ASBOX
32104 ## ----------------------------------------- ##
32105 ## Report this to wx-dev@lists.wxwidgets.org ##
32106 ## ----------------------------------------- ##
32107 _ASBOX
32108     ) |
32109       sed "s/^/$as_me: WARNING:     /" >&2
32110     ;;
32111 esac
32112 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32113 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32114 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32115   echo $ECHO_N "(cached) $ECHO_C" >&6
32116 else
32117   ac_cv_header_GL_gl_h=$ac_header_preproc
32118 fi
32119 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32120 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32121
32122 fi
32123 if test $ac_cv_header_GL_gl_h = yes; then
32124
32125                 found_gl=0
32126
32127                 echo "$as_me:$LINENO: checking for -lGL" >&5
32128 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32129
32130   ac_find_libraries=
32131   for ac_dir in $SEARCH_LIB;
32132   do
32133     for ac_extension in a so sl dylib dll.a; do
32134       if test -f "$ac_dir/libGL.$ac_extension"; then
32135         ac_find_libraries=$ac_dir
32136         break 2
32137       fi
32138     done
32139   done
32140
32141                 if test "$ac_find_libraries" != "" ; then
32142                     echo "$as_me:$LINENO: result: yes" >&5
32143 echo "${ECHO_T}yes" >&6
32144
32145
32146     if test "$ac_find_libraries" = "default location"; then
32147     ac_path_to_link=""
32148   else
32149     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32150     result=$?
32151     if test $result = 0; then
32152       ac_path_to_link=""
32153     else
32154       ac_path_to_link=" -L$ac_find_libraries"
32155     fi
32156   fi
32157
32158                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32159                         LDFLAGS_GL="$ac_path_to_link"
32160                     fi
32161
32162                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
32163 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
32164
32165   ac_find_libraries=
32166   for ac_dir in $SEARCH_LIB;
32167   do
32168     for ac_extension in a so sl dylib dll.a; do
32169       if test -f "$ac_dir/libGLU.$ac_extension"; then
32170         ac_find_libraries=$ac_dir
32171         break 2
32172       fi
32173     done
32174   done
32175
32176                     if test "$ac_find_libraries" != "" ; then
32177
32178     if test "$ac_find_libraries" = "default location"; then
32179     ac_path_to_link=""
32180   else
32181     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32182     result=$?
32183     if test $result = 0; then
32184       ac_path_to_link=""
32185     else
32186       ac_path_to_link=" -L$ac_find_libraries"
32187     fi
32188   fi
32189
32190                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32191                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32192                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32193                         fi
32194
32195                         found_gl=1
32196                         OPENGL_LIBS="-lGL -lGLU"
32197                         echo "$as_me:$LINENO: result: yes" >&5
32198 echo "${ECHO_T}yes" >&6
32199                     else
32200                         echo "$as_me:$LINENO: result: no" >&5
32201 echo "${ECHO_T}no" >&6
32202                     fi
32203                 else
32204                     echo "$as_me:$LINENO: result: no" >&5
32205 echo "${ECHO_T}no" >&6
32206                 fi
32207
32208                 if test "$found_gl" != 1; then
32209                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32210 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32211
32212   ac_find_libraries=
32213   for ac_dir in $SEARCH_LIB;
32214   do
32215     for ac_extension in a so sl dylib dll.a; do
32216       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32217         ac_find_libraries=$ac_dir
32218         break 2
32219       fi
32220     done
32221   done
32222
32223                     if test "$ac_find_libraries" != "" ; then
32224
32225     if test "$ac_find_libraries" = "default location"; then
32226     ac_path_to_link=""
32227   else
32228     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32229     result=$?
32230     if test $result = 0; then
32231       ac_path_to_link=""
32232     else
32233       ac_path_to_link=" -L$ac_find_libraries"
32234     fi
32235   fi
32236
32237                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32238                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32239                         echo "$as_me:$LINENO: result: yes" >&5
32240 echo "${ECHO_T}yes" >&6
32241                     else
32242                         echo "$as_me:$LINENO: result: no" >&5
32243 echo "${ECHO_T}no" >&6
32244                     fi
32245                 fi
32246
32247 fi
32248
32249
32250
32251         if test "x$OPENGL_LIBS" = "x"; then
32252                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32253 echo "$as_me: error: OpenGL libraries not available" >&2;}
32254    { (exit 1); exit 1; }; }
32255         fi
32256     fi
32257
32258     if test "$wxUSE_OPENGL" = "yes"; then
32259         USE_OPENGL=1
32260         cat >>confdefs.h <<\_ACEOF
32261 #define wxUSE_OPENGL 1
32262 _ACEOF
32263
32264         cat >>confdefs.h <<\_ACEOF
32265 #define wxUSE_GLCANVAS 1
32266 _ACEOF
32267
32268         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32269     fi
32270 fi
32271
32272
32273 if test -n "$TOOLKIT" ; then
32274     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32275 fi
32276
32277
32278
32279 if test "$wxUSE_SHARED" = "yes"; then
32280     case "${host}" in
32281       *-pc-msdosdjgpp )
32282                 wxUSE_SHARED=no
32283         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32284 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32285       ;;
32286     esac
32287 fi
32288
32289 if test "$wxUSE_SHARED" = "yes"; then
32290
32291
32292   found_versioning=no
32293
32294
32295     if test $found_versioning = no ; then
32296       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32297 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32298 if test "${wx_cv_version_script+set}" = set; then
32299   echo $ECHO_N "(cached) $ECHO_C" >&6
32300 else
32301
32302         echo "VER_1 { *; };" >conftest.sym
32303         echo "int main() { return 0; }" >conftest.cpp
32304
32305         if { ac_try='
32306                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32307                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309   (eval $ac_try) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } ; then
32313           if test -s conftest.stderr ; then
32314               wx_cv_version_script=no
32315           else
32316               wx_cv_version_script=yes
32317           fi
32318         else
32319           wx_cv_version_script=no
32320         fi
32321
32322                                                                                                 if test $wx_cv_version_script = yes
32323         then
32324           echo "struct B { virtual ~B() { } }; \
32325                 struct D : public B { }; \
32326                 void F() { D d; }" > conftest.cpp
32327
32328           if { ac_try='
32329                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32330                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332   (eval $ac_try) 2>&5
32333   ac_status=$?
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); }; } &&
32336              { ac_try='
32337                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32338                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340   (eval $ac_try) 2>&5
32341   ac_status=$?
32342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); }; }
32344           then
32345             if { ac_try='
32346                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32347                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349   (eval $ac_try) 2>&5
32350   ac_status=$?
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); }; }
32353             then
32354               wx_cv_version_script=yes
32355             else
32356               wx_cv_version_script=no
32357             fi
32358           fi
32359         fi
32360
32361         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32362         rm -f conftest1.output conftest2.output conftest3.output
32363
32364 fi
32365 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32366 echo "${ECHO_T}$wx_cv_version_script" >&6
32367       if test $wx_cv_version_script = yes ; then
32368         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32369       fi
32370   fi
32371
32372
32373     case "${host}" in
32374       *-*-linux* | *-*-gnu* )
32375         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32376         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32377         ;;
32378
32379       *-*-solaris2* )
32380         if test "$GCC" = yes ; then
32381                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32382
32383                                     saveLdflags="$LDFLAGS"
32384             LDFLAGS="$saveLdflags -Wl,-rpath,/"
32385             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32386 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32387             cat >conftest.$ac_ext <<_ACEOF
32388 /* confdefs.h.  */
32389 _ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h.  */
32393
32394 int
32395 main ()
32396 {
32397
32398   ;
32399   return 0;
32400 }
32401 _ACEOF
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32404   (eval $ac_link) 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } &&
32411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32413   (eval $ac_try) 2>&5
32414   ac_status=$?
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); }; } &&
32417          { ac_try='test -s conftest$ac_exeext'
32418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419   (eval $ac_try) 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; }; then
32423
32424                     echo "$as_me:$LINENO: result: yes" >&5
32425 echo "${ECHO_T}yes" >&6
32426                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32427                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32428
32429 else
32430   echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32432
32433
32434                     echo "$as_me:$LINENO: result: no" >&5
32435 echo "${ECHO_T}no" >&6
32436                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32437 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32438                     LDFLAGS="$saveLdflags -Wl,-R,/"
32439                     cat >conftest.$ac_ext <<_ACEOF
32440 /* confdefs.h.  */
32441 _ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h.  */
32445
32446 int
32447 main ()
32448 {
32449
32450   ;
32451   return 0;
32452 }
32453 _ACEOF
32454 rm -f conftest.$ac_objext conftest$ac_exeext
32455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32456   (eval $ac_link) 2>conftest.er1
32457   ac_status=$?
32458   grep -v '^ *+' conftest.er1 >conftest.err
32459   rm -f conftest.er1
32460   cat conftest.err >&5
32461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462   (exit $ac_status); } &&
32463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465   (eval $ac_try) 2>&5
32466   ac_status=$?
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); }; } &&
32469          { ac_try='test -s conftest$ac_exeext'
32470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471   (eval $ac_try) 2>&5
32472   ac_status=$?
32473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474   (exit $ac_status); }; }; then
32475
32476                             echo "$as_me:$LINENO: result: yes" >&5
32477 echo "${ECHO_T}yes" >&6
32478                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32479                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
32480
32481 else
32482   echo "$as_me: failed program was:" >&5
32483 sed 's/^/| /' conftest.$ac_ext >&5
32484
32485
32486                             echo "$as_me:$LINENO: result: no" >&5
32487 echo "${ECHO_T}no" >&6
32488
32489 fi
32490 rm -f conftest.err conftest.$ac_objext \
32491       conftest$ac_exeext conftest.$ac_ext
32492
32493 fi
32494 rm -f conftest.err conftest.$ac_objext \
32495       conftest$ac_exeext conftest.$ac_ext
32496             LDFLAGS="$saveLdflags"
32497         else
32498             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
32499             WXCONFIG_RPATH="-R\$libdir"
32500         fi
32501       ;;
32502
32503       *-*-darwin* )
32504         install_name_tool=`which install_name_tool`
32505         if test "$install_name_tool" -a -x "$install_name_tool"; then
32506             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32507             cat <<EOF >change-install-names
32508 #!/bin/sh
32509 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32510 inst_cmd="install_name_tool "
32511 for i in \${libnames} ; do
32512     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32513 done
32514 \${inst_cmd} \${3}
32515 EOF
32516             chmod +x change-install-names
32517         fi
32518       ;;
32519
32520       *-*-cygwin* | *-*-mingw32* )
32521                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32522         ;;
32523
32524       *-*-hpux* )
32525         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32526         WXCONFIG_RPATH="-Wl,+b,\$libdir"
32527         ;;
32528
32529     esac
32530
32531     if test $wxUSE_RPATH = "no"; then
32532         SAMPLES_RPATH_FLAG=''
32533         SAMPLES_RPATH_POSTLINK=''
32534         WXCONFIG_RPATH=''
32535     fi
32536
32537     SHARED=1
32538
32539 else
32540
32541     config_linkage_component="-static"
32542     SHARED=0
32543
32544 fi
32545
32546
32547 UNICODE=0
32548 lib_unicode_suffix=
32549 WX_CHARTYPE="ansi"
32550 if test "$wxUSE_UNICODE" = "yes"; then
32551     lib_unicode_suffix=u
32552     WX_CHARTYPE="unicode"
32553     UNICODE=1
32554 fi
32555
32556 lib_debug_suffix=
32557 WX_DEBUGTYPE="release"
32558 DEBUG_FLAG=0
32559 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32560     lib_debug_suffix=d
32561     WX_DEBUGTYPE="debug"
32562     DEBUG_FLAG=1
32563 fi
32564
32565 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32566 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
32567
32568 DEBUG_INFO=0
32569 if test "$wxUSE_DEBUG_INFO" = "yes"; then
32570     DEBUG_INFO=1
32571 fi
32572
32573 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
32574
32575 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
32576
32577 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
32578
32579 if test "$cross_compiling" = "yes"; then
32580     HOST_SUFFIX="-$host_alias"
32581     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32582     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
32583 fi
32584
32585 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32586 if test "${TOOLKIT_DIR}" = "os2"; then
32587     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32588 else
32589     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32590 fi
32591
32592
32593
32594 if test "$wxUSE_COCOA" = 1; then
32595
32596
32597     ac_ext=c
32598 ac_cpp='$CPP $CPPFLAGS'
32599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602
32603 ac_ext=m
32604
32605     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32606 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32607     cat >conftest.$ac_ext <<_ACEOF
32608 /* confdefs.h.  */
32609 _ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h.  */
32613 #include <AppKit/NSEvent.h>
32614 #include <CoreFoundation/CoreFoundation.h>
32615
32616 int
32617 main ()
32618 {
32619
32620   ;
32621   return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32626   (eval $ac_compile) 2>conftest.er1
32627   ac_status=$?
32628   grep -v '^ *+' conftest.er1 >conftest.err
32629   rm -f conftest.er1
32630   cat conftest.err >&5
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); } &&
32633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635   (eval $ac_try) 2>&5
32636   ac_status=$?
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); }; } &&
32639          { ac_try='test -s conftest.$ac_objext'
32640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32641   (eval $ac_try) 2>&5
32642   ac_status=$?
32643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644   (exit $ac_status); }; }; then
32645   echo "$as_me:$LINENO: result: no" >&5
32646 echo "${ECHO_T}no" >&6
32647 else
32648   echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32650
32651 echo "$as_me:$LINENO: result: yes" >&5
32652 echo "${ECHO_T}yes" >&6
32653         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32654 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32655         cat >conftest.$ac_ext <<_ACEOF
32656 /* confdefs.h.  */
32657 _ACEOF
32658 cat confdefs.h >>conftest.$ac_ext
32659 cat >>conftest.$ac_ext <<_ACEOF
32660 /* end confdefs.h.  */
32661 #define __Point__ 1
32662 #include <AppKit/NSEvent.h>
32663 #include <CoreFoundation/CoreFoundation.h>
32664
32665 int
32666 main ()
32667 {
32668
32669   ;
32670   return 0;
32671 }
32672 _ACEOF
32673 rm -f conftest.$ac_objext
32674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32675   (eval $ac_compile) 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } &&
32682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684   (eval $ac_try) 2>&5
32685   ac_status=$?
32686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687   (exit $ac_status); }; } &&
32688          { ac_try='test -s conftest.$ac_objext'
32689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690   (eval $ac_try) 2>&5
32691   ac_status=$?
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); }; }; then
32694   echo "$as_me:$LINENO: result: yes" >&5
32695 echo "${ECHO_T}yes" >&6
32696             cat >>confdefs.h <<\_ACEOF
32697 #define __Point__ 1
32698 _ACEOF
32699
32700
32701 else
32702   echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32704
32705 { { echo "$as_me:$LINENO: error: no
32706 See \`config.log' for more details." >&5
32707 echo "$as_me: error: no
32708 See \`config.log' for more details." >&2;}
32709    { (exit 1); exit 1; }; }
32710
32711 fi
32712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32713
32714 fi
32715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32716     ac_ext=cc
32717 ac_cpp='$CXXCPP $CPPFLAGS'
32718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32721
32722 fi
32723
32724 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32725             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32726     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
32727
32728         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
32729
32730     # Extract the first word of "Rez", so it can be a program name with args.
32731 set dummy Rez; ac_word=$2
32732 echo "$as_me:$LINENO: checking for $ac_word" >&5
32733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32734 if test "${ac_cv_prog_REZ+set}" = set; then
32735   echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32737   if test -n "$REZ"; then
32738   ac_cv_prog_REZ="$REZ" # Let the user override the test.
32739 else
32740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32741 for as_dir in $PATH
32742 do
32743   IFS=$as_save_IFS
32744   test -z "$as_dir" && as_dir=.
32745   for ac_exec_ext in '' $ac_executable_extensions; do
32746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32747     ac_cv_prog_REZ="Rez"
32748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32749     break 2
32750   fi
32751 done
32752 done
32753
32754   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
32755 fi
32756 fi
32757 REZ=$ac_cv_prog_REZ
32758 if test -n "$REZ"; then
32759   echo "$as_me:$LINENO: result: $REZ" >&5
32760 echo "${ECHO_T}$REZ" >&6
32761 else
32762   echo "$as_me:$LINENO: result: no" >&5
32763 echo "${ECHO_T}no" >&6
32764 fi
32765
32766     # Extract the first word of "DeRez", so it can be a program name with args.
32767 set dummy DeRez; ac_word=$2
32768 echo "$as_me:$LINENO: checking for $ac_word" >&5
32769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32770 if test "${ac_cv_prog_DEREZ+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   if test -n "$DEREZ"; then
32774   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32775 else
32776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32777 for as_dir in $PATH
32778 do
32779   IFS=$as_save_IFS
32780   test -z "$as_dir" && as_dir=.
32781   for ac_exec_ext in '' $ac_executable_extensions; do
32782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32783     ac_cv_prog_DEREZ="DeRez"
32784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32785     break 2
32786   fi
32787 done
32788 done
32789
32790   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32791 fi
32792 fi
32793 DEREZ=$ac_cv_prog_DEREZ
32794 if test -n "$DEREZ"; then
32795   echo "$as_me:$LINENO: result: $DEREZ" >&5
32796 echo "${ECHO_T}$DEREZ" >&6
32797 else
32798   echo "$as_me:$LINENO: result: no" >&5
32799 echo "${ECHO_T}no" >&6
32800 fi
32801
32802     # Extract the first word of "SetFile", so it can be a program name with args.
32803 set dummy SetFile; ac_word=$2
32804 echo "$as_me:$LINENO: checking for $ac_word" >&5
32805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32806 if test "${ac_cv_prog_SETFILE+set}" = set; then
32807   echo $ECHO_N "(cached) $ECHO_C" >&6
32808 else
32809   if test -n "$SETFILE"; then
32810   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32811 else
32812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32813 for as_dir in $PATH
32814 do
32815   IFS=$as_save_IFS
32816   test -z "$as_dir" && as_dir=.
32817   for ac_exec_ext in '' $ac_executable_extensions; do
32818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32819     ac_cv_prog_SETFILE="SetFile"
32820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32821     break 2
32822   fi
32823 done
32824 done
32825
32826   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32827 fi
32828 fi
32829 SETFILE=$ac_cv_prog_SETFILE
32830 if test -n "$SETFILE"; then
32831   echo "$as_me:$LINENO: result: $SETFILE" >&5
32832 echo "${ECHO_T}$SETFILE" >&6
32833 else
32834   echo "$as_me:$LINENO: result: no" >&5
32835 echo "${ECHO_T}no" >&6
32836 fi
32837
32838
32839     MACSETFILE="\$(SETFILE)"
32840
32841             if test "$wxUSE_MAC" = 1; then
32842         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
32843         RESCOMP="$REZ"
32844         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
32845     else
32846         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32847         RESCOMP="echo -n \| $REZ"
32848         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
32849     fi
32850
32851 else
32852         MACSETFILE="@true"
32853
32854     if test "$wxUSE_PM" = 1; then
32855         RESCOMP="emxbind"
32856         WXCONFIG_RESFLAGS="-ep"
32857
32858                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
32859     else
32860         POSTLINK_COMMAND="@true"
32861     fi
32862
32863 fi
32864
32865
32866
32867 echo "$as_me:$LINENO: checking for mode_t" >&5
32868 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32869 if test "${ac_cv_type_mode_t+set}" = set; then
32870   echo $ECHO_N "(cached) $ECHO_C" >&6
32871 else
32872   cat >conftest.$ac_ext <<_ACEOF
32873 /* confdefs.h.  */
32874 _ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h.  */
32878 $ac_includes_default
32879 int
32880 main ()
32881 {
32882 if ((mode_t *) 0)
32883   return 0;
32884 if (sizeof (mode_t))
32885   return 0;
32886   ;
32887   return 0;
32888 }
32889 _ACEOF
32890 rm -f conftest.$ac_objext
32891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32892   (eval $ac_compile) 2>conftest.er1
32893   ac_status=$?
32894   grep -v '^ *+' conftest.er1 >conftest.err
32895   rm -f conftest.er1
32896   cat conftest.err >&5
32897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898   (exit $ac_status); } &&
32899          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901   (eval $ac_try) 2>&5
32902   ac_status=$?
32903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904   (exit $ac_status); }; } &&
32905          { ac_try='test -s conftest.$ac_objext'
32906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32907   (eval $ac_try) 2>&5
32908   ac_status=$?
32909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910   (exit $ac_status); }; }; then
32911   ac_cv_type_mode_t=yes
32912 else
32913   echo "$as_me: failed program was:" >&5
32914 sed 's/^/| /' conftest.$ac_ext >&5
32915
32916 ac_cv_type_mode_t=no
32917 fi
32918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32919 fi
32920 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32921 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32922 if test $ac_cv_type_mode_t = yes; then
32923   :
32924 else
32925
32926 cat >>confdefs.h <<_ACEOF
32927 #define mode_t int
32928 _ACEOF
32929
32930 fi
32931
32932 echo "$as_me:$LINENO: checking for off_t" >&5
32933 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32934 if test "${ac_cv_type_off_t+set}" = set; then
32935   echo $ECHO_N "(cached) $ECHO_C" >&6
32936 else
32937   cat >conftest.$ac_ext <<_ACEOF
32938 /* confdefs.h.  */
32939 _ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h.  */
32943 $ac_includes_default
32944 int
32945 main ()
32946 {
32947 if ((off_t *) 0)
32948   return 0;
32949 if (sizeof (off_t))
32950   return 0;
32951   ;
32952   return 0;
32953 }
32954 _ACEOF
32955 rm -f conftest.$ac_objext
32956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32957   (eval $ac_compile) 2>conftest.er1
32958   ac_status=$?
32959   grep -v '^ *+' conftest.er1 >conftest.err
32960   rm -f conftest.er1
32961   cat conftest.err >&5
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); } &&
32964          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966   (eval $ac_try) 2>&5
32967   ac_status=$?
32968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969   (exit $ac_status); }; } &&
32970          { ac_try='test -s conftest.$ac_objext'
32971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972   (eval $ac_try) 2>&5
32973   ac_status=$?
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); }; }; then
32976   ac_cv_type_off_t=yes
32977 else
32978   echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32980
32981 ac_cv_type_off_t=no
32982 fi
32983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32984 fi
32985 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32986 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32987 if test $ac_cv_type_off_t = yes; then
32988   :
32989 else
32990
32991 cat >>confdefs.h <<_ACEOF
32992 #define off_t long
32993 _ACEOF
32994
32995 fi
32996
32997 echo "$as_me:$LINENO: checking for pid_t" >&5
32998 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32999 if test "${ac_cv_type_pid_t+set}" = set; then
33000   echo $ECHO_N "(cached) $ECHO_C" >&6
33001 else
33002   cat >conftest.$ac_ext <<_ACEOF
33003 /* confdefs.h.  */
33004 _ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h.  */
33008 $ac_includes_default
33009 int
33010 main ()
33011 {
33012 if ((pid_t *) 0)
33013   return 0;
33014 if (sizeof (pid_t))
33015   return 0;
33016   ;
33017   return 0;
33018 }
33019 _ACEOF
33020 rm -f conftest.$ac_objext
33021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33022   (eval $ac_compile) 2>conftest.er1
33023   ac_status=$?
33024   grep -v '^ *+' conftest.er1 >conftest.err
33025   rm -f conftest.er1
33026   cat conftest.err >&5
33027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028   (exit $ac_status); } &&
33029          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33031   (eval $ac_try) 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); }; } &&
33035          { ac_try='test -s conftest.$ac_objext'
33036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037   (eval $ac_try) 2>&5
33038   ac_status=$?
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); }; }; then
33041   ac_cv_type_pid_t=yes
33042 else
33043   echo "$as_me: failed program was:" >&5
33044 sed 's/^/| /' conftest.$ac_ext >&5
33045
33046 ac_cv_type_pid_t=no
33047 fi
33048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33049 fi
33050 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33051 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33052 if test $ac_cv_type_pid_t = yes; then
33053   :
33054 else
33055
33056 cat >>confdefs.h <<_ACEOF
33057 #define pid_t int
33058 _ACEOF
33059
33060 fi
33061
33062 echo "$as_me:$LINENO: checking for size_t" >&5
33063 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33064 if test "${ac_cv_type_size_t+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067   cat >conftest.$ac_ext <<_ACEOF
33068 /* confdefs.h.  */
33069 _ACEOF
33070 cat confdefs.h >>conftest.$ac_ext
33071 cat >>conftest.$ac_ext <<_ACEOF
33072 /* end confdefs.h.  */
33073 $ac_includes_default
33074 int
33075 main ()
33076 {
33077 if ((size_t *) 0)
33078   return 0;
33079 if (sizeof (size_t))
33080   return 0;
33081   ;
33082   return 0;
33083 }
33084 _ACEOF
33085 rm -f conftest.$ac_objext
33086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33087   (eval $ac_compile) 2>conftest.er1
33088   ac_status=$?
33089   grep -v '^ *+' conftest.er1 >conftest.err
33090   rm -f conftest.er1
33091   cat conftest.err >&5
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); } &&
33094          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096   (eval $ac_try) 2>&5
33097   ac_status=$?
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); }; } &&
33100          { ac_try='test -s conftest.$ac_objext'
33101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102   (eval $ac_try) 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; }; then
33106   ac_cv_type_size_t=yes
33107 else
33108   echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111 ac_cv_type_size_t=no
33112 fi
33113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33114 fi
33115 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33116 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33117 if test $ac_cv_type_size_t = yes; then
33118   :
33119 else
33120
33121 cat >>confdefs.h <<_ACEOF
33122 #define size_t unsigned
33123 _ACEOF
33124
33125 fi
33126
33127 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33128 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33129 if test "${ac_cv_type_uid_t+set}" = set; then
33130   echo $ECHO_N "(cached) $ECHO_C" >&6
33131 else
33132   cat >conftest.$ac_ext <<_ACEOF
33133 /* confdefs.h.  */
33134 _ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h.  */
33138 #include <sys/types.h>
33139
33140 _ACEOF
33141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33142   $EGREP "uid_t" >/dev/null 2>&1; then
33143   ac_cv_type_uid_t=yes
33144 else
33145   ac_cv_type_uid_t=no
33146 fi
33147 rm -f conftest*
33148
33149 fi
33150 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33151 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33152 if test $ac_cv_type_uid_t = no; then
33153
33154 cat >>confdefs.h <<\_ACEOF
33155 #define uid_t int
33156 _ACEOF
33157
33158
33159 cat >>confdefs.h <<\_ACEOF
33160 #define gid_t int
33161 _ACEOF
33162
33163 fi
33164
33165
33166 echo "$as_me:$LINENO: checking for ssize_t" >&5
33167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33168 if test "${ac_cv_type_ssize_t+set}" = set; then
33169   echo $ECHO_N "(cached) $ECHO_C" >&6
33170 else
33171   cat >conftest.$ac_ext <<_ACEOF
33172 /* confdefs.h.  */
33173 _ACEOF
33174 cat confdefs.h >>conftest.$ac_ext
33175 cat >>conftest.$ac_ext <<_ACEOF
33176 /* end confdefs.h.  */
33177 $ac_includes_default
33178 int
33179 main ()
33180 {
33181 if ((ssize_t *) 0)
33182   return 0;
33183 if (sizeof (ssize_t))
33184   return 0;
33185   ;
33186   return 0;
33187 }
33188 _ACEOF
33189 rm -f conftest.$ac_objext
33190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33191   (eval $ac_compile) 2>conftest.er1
33192   ac_status=$?
33193   grep -v '^ *+' conftest.er1 >conftest.err
33194   rm -f conftest.er1
33195   cat conftest.err >&5
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); } &&
33198          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200   (eval $ac_try) 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; } &&
33204          { ac_try='test -s conftest.$ac_objext'
33205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206   (eval $ac_try) 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_type_ssize_t=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_type_ssize_t=no
33216 fi
33217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33218 fi
33219 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33220 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33221 if test $ac_cv_type_ssize_t = yes; then
33222
33223 cat >>confdefs.h <<_ACEOF
33224 #define HAVE_SSIZE_T 1
33225 _ACEOF
33226
33227
33228 fi
33229
33230
33231 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33232 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33233 if test "${wx_cv_size_t_is_uint+set}" = set; then
33234   echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236
33237                             cat >conftest.$ac_ext <<_ACEOF
33238 /* confdefs.h.  */
33239 _ACEOF
33240 cat confdefs.h >>conftest.$ac_ext
33241 cat >>conftest.$ac_ext <<_ACEOF
33242 /* end confdefs.h.  */
33243 #include <stddef.h>
33244 int
33245 main ()
33246 {
33247
33248             return 0; }
33249
33250             struct Foo { void foo(size_t); void foo(unsigned int); };
33251
33252             int bar() {
33253
33254   ;
33255   return 0;
33256 }
33257 _ACEOF
33258 rm -f conftest.$ac_objext
33259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33260   (eval $ac_compile) 2>conftest.er1
33261   ac_status=$?
33262   grep -v '^ *+' conftest.er1 >conftest.err
33263   rm -f conftest.er1
33264   cat conftest.err >&5
33265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266   (exit $ac_status); } &&
33267          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269   (eval $ac_try) 2>&5
33270   ac_status=$?
33271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272   (exit $ac_status); }; } &&
33273          { ac_try='test -s conftest.$ac_objext'
33274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275   (eval $ac_try) 2>&5
33276   ac_status=$?
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); }; }; then
33279   wx_cv_size_t_is_uint=no
33280 else
33281   echo "$as_me: failed program was:" >&5
33282 sed 's/^/| /' conftest.$ac_ext >&5
33283
33284 wx_cv_size_t_is_uint=yes
33285
33286 fi
33287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33288
33289
33290 fi
33291 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33292 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33293
33294 if test "$wx_cv_size_t_is_uint" = "yes"; then
33295     cat >>confdefs.h <<\_ACEOF
33296 #define wxSIZE_T_IS_UINT 1
33297 _ACEOF
33298
33299 else
33300     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33301 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33302 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33303   echo $ECHO_N "(cached) $ECHO_C" >&6
33304 else
33305   cat >conftest.$ac_ext <<_ACEOF
33306 /* confdefs.h.  */
33307 _ACEOF
33308 cat confdefs.h >>conftest.$ac_ext
33309 cat >>conftest.$ac_ext <<_ACEOF
33310 /* end confdefs.h.  */
33311 #include <stddef.h>
33312 int
33313 main ()
33314 {
33315
33316                 return 0; }
33317
33318                 struct Foo { void foo(size_t); void foo(unsigned long); };
33319
33320                 int bar() {
33321
33322   ;
33323   return 0;
33324 }
33325 _ACEOF
33326 rm -f conftest.$ac_objext
33327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33328   (eval $ac_compile) 2>conftest.er1
33329   ac_status=$?
33330   grep -v '^ *+' conftest.er1 >conftest.err
33331   rm -f conftest.er1
33332   cat conftest.err >&5
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); } &&
33335          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337   (eval $ac_try) 2>&5
33338   ac_status=$?
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); }; } &&
33341          { ac_try='test -s conftest.$ac_objext'
33342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343   (eval $ac_try) 2>&5
33344   ac_status=$?
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); }; }; then
33347   wx_cv_size_t_is_ulong=no
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352 wx_cv_size_t_is_ulong=yes
33353
33354 fi
33355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33356
33357 fi
33358 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33359 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33360
33361     if test "$wx_cv_size_t_is_ulong" = "yes"; then
33362         cat >>confdefs.h <<\_ACEOF
33363 #define wxSIZE_T_IS_ULONG 1
33364 _ACEOF
33365
33366     fi
33367 fi
33368
33369
33370 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33371 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33372 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33373   echo $ECHO_N "(cached) $ECHO_C" >&6
33374 else
33375
33376         cat >conftest.$ac_ext <<_ACEOF
33377 /* confdefs.h.  */
33378 _ACEOF
33379 cat confdefs.h >>conftest.$ac_ext
33380 cat >>conftest.$ac_ext <<_ACEOF
33381 /* end confdefs.h.  */
33382 #include <pwd.h>
33383 int
33384 main ()
33385 {
33386
33387                 char *p;
33388                 struct passwd *pw;
33389                 p = pw->pw_gecos;
33390
33391   ;
33392   return 0;
33393 }
33394 _ACEOF
33395 rm -f conftest.$ac_objext
33396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33397   (eval $ac_compile) 2>conftest.er1
33398   ac_status=$?
33399   grep -v '^ *+' conftest.er1 >conftest.err
33400   rm -f conftest.er1
33401   cat conftest.err >&5
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); } &&
33404          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406   (eval $ac_try) 2>&5
33407   ac_status=$?
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); }; } &&
33410          { ac_try='test -s conftest.$ac_objext'
33411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412   (eval $ac_try) 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; }; then
33416
33417                 wx_cv_struct_pw_gecos=yes
33418
33419 else
33420   echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33422
33423
33424                 wx_cv_struct_pw_gecos=no
33425
33426
33427 fi
33428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33429
33430
33431 fi
33432 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33433 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33434
33435 if test "$wx_cv_struct_pw_gecos" = "yes"; then
33436     cat >>confdefs.h <<\_ACEOF
33437 #define HAVE_PW_GECOS 1
33438 _ACEOF
33439
33440 fi
33441
33442
33443 if test "$wxUSE_WCHAR_T" = "yes"; then
33444     cat >>confdefs.h <<\_ACEOF
33445 #define wxUSE_WCHAR_T 1
33446 _ACEOF
33447
33448
33449         WCSLEN_FOUND=0
33450     WCHAR_LINK=
33451
33452 for ac_func in wcslen
33453 do
33454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33455 echo "$as_me:$LINENO: checking for $ac_func" >&5
33456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33457 if eval "test \"\${$as_ac_var+set}\" = set"; then
33458   echo $ECHO_N "(cached) $ECHO_C" >&6
33459 else
33460   cat >conftest.$ac_ext <<_ACEOF
33461 /* confdefs.h.  */
33462 _ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h.  */
33466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33468 #define $ac_func innocuous_$ac_func
33469
33470 /* System header to define __stub macros and hopefully few prototypes,
33471     which can conflict with char $ac_func (); below.
33472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33473     <limits.h> exists even on freestanding compilers.  */
33474
33475 #ifdef __STDC__
33476 # include <limits.h>
33477 #else
33478 # include <assert.h>
33479 #endif
33480
33481 #undef $ac_func
33482
33483 /* Override any gcc2 internal prototype to avoid an error.  */
33484 #ifdef __cplusplus
33485 extern "C"
33486 {
33487 #endif
33488 /* We use char because int might match the return type of a gcc2
33489    builtin and then its argument prototype would still apply.  */
33490 char $ac_func ();
33491 /* The GNU C library defines this for functions which it implements
33492     to always fail with ENOSYS.  Some functions are actually named
33493     something starting with __ and the normal name is an alias.  */
33494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33495 choke me
33496 #else
33497 char (*f) () = $ac_func;
33498 #endif
33499 #ifdef __cplusplus
33500 }
33501 #endif
33502
33503 int
33504 main ()
33505 {
33506 return f != $ac_func;
33507   ;
33508   return 0;
33509 }
33510 _ACEOF
33511 rm -f conftest.$ac_objext conftest$ac_exeext
33512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33513   (eval $ac_link) 2>conftest.er1
33514   ac_status=$?
33515   grep -v '^ *+' conftest.er1 >conftest.err
33516   rm -f conftest.er1
33517   cat conftest.err >&5
33518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519   (exit $ac_status); } &&
33520          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522   (eval $ac_try) 2>&5
33523   ac_status=$?
33524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525   (exit $ac_status); }; } &&
33526          { ac_try='test -s conftest$ac_exeext'
33527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528   (eval $ac_try) 2>&5
33529   ac_status=$?
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); }; }; then
33532   eval "$as_ac_var=yes"
33533 else
33534   echo "$as_me: failed program was:" >&5
33535 sed 's/^/| /' conftest.$ac_ext >&5
33536
33537 eval "$as_ac_var=no"
33538 fi
33539 rm -f conftest.err conftest.$ac_objext \
33540       conftest$ac_exeext conftest.$ac_ext
33541 fi
33542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33544 if test `eval echo '${'$as_ac_var'}'` = yes; then
33545   cat >>confdefs.h <<_ACEOF
33546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33547 _ACEOF
33548  WCSLEN_FOUND=1
33549 fi
33550 done
33551
33552
33553     if test "$WCSLEN_FOUND" = 0; then
33554         if test "$TOOLKIT" = "MSW"; then
33555             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33556 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33557 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33558   echo $ECHO_N "(cached) $ECHO_C" >&6
33559 else
33560   ac_check_lib_save_LIBS=$LIBS
33561 LIBS="-lmsvcrt  $LIBS"
33562 cat >conftest.$ac_ext <<_ACEOF
33563 /* confdefs.h.  */
33564 _ACEOF
33565 cat confdefs.h >>conftest.$ac_ext
33566 cat >>conftest.$ac_ext <<_ACEOF
33567 /* end confdefs.h.  */
33568
33569 /* Override any gcc2 internal prototype to avoid an error.  */
33570 #ifdef __cplusplus
33571 extern "C"
33572 #endif
33573 /* We use char because int might match the return type of a gcc2
33574    builtin and then its argument prototype would still apply.  */
33575 char wcslen ();
33576 int
33577 main ()
33578 {
33579 wcslen ();
33580   ;
33581   return 0;
33582 }
33583 _ACEOF
33584 rm -f conftest.$ac_objext conftest$ac_exeext
33585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33586   (eval $ac_link) 2>conftest.er1
33587   ac_status=$?
33588   grep -v '^ *+' conftest.er1 >conftest.err
33589   rm -f conftest.er1
33590   cat conftest.err >&5
33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592   (exit $ac_status); } &&
33593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595   (eval $ac_try) 2>&5
33596   ac_status=$?
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); }; } &&
33599          { ac_try='test -s conftest$ac_exeext'
33600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601   (eval $ac_try) 2>&5
33602   ac_status=$?
33603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604   (exit $ac_status); }; }; then
33605   ac_cv_lib_msvcrt_wcslen=yes
33606 else
33607   echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33609
33610 ac_cv_lib_msvcrt_wcslen=no
33611 fi
33612 rm -f conftest.err conftest.$ac_objext \
33613       conftest$ac_exeext conftest.$ac_ext
33614 LIBS=$ac_check_lib_save_LIBS
33615 fi
33616 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33617 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33618 if test $ac_cv_lib_msvcrt_wcslen = yes; then
33619   WCHAR_OK=1
33620 fi
33621
33622         else
33623             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33624 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33625 if test "${ac_cv_lib_w_wcslen+set}" = set; then
33626   echo $ECHO_N "(cached) $ECHO_C" >&6
33627 else
33628   ac_check_lib_save_LIBS=$LIBS
33629 LIBS="-lw  $LIBS"
33630 cat >conftest.$ac_ext <<_ACEOF
33631 /* confdefs.h.  */
33632 _ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h.  */
33636
33637 /* Override any gcc2 internal prototype to avoid an error.  */
33638 #ifdef __cplusplus
33639 extern "C"
33640 #endif
33641 /* We use char because int might match the return type of a gcc2
33642    builtin and then its argument prototype would still apply.  */
33643 char wcslen ();
33644 int
33645 main ()
33646 {
33647 wcslen ();
33648   ;
33649   return 0;
33650 }
33651 _ACEOF
33652 rm -f conftest.$ac_objext conftest$ac_exeext
33653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33654   (eval $ac_link) 2>conftest.er1
33655   ac_status=$?
33656   grep -v '^ *+' conftest.er1 >conftest.err
33657   rm -f conftest.er1
33658   cat conftest.err >&5
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); } &&
33661          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663   (eval $ac_try) 2>&5
33664   ac_status=$?
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); }; } &&
33667          { ac_try='test -s conftest$ac_exeext'
33668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33669   (eval $ac_try) 2>&5
33670   ac_status=$?
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); }; }; then
33673   ac_cv_lib_w_wcslen=yes
33674 else
33675   echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33677
33678 ac_cv_lib_w_wcslen=no
33679 fi
33680 rm -f conftest.err conftest.$ac_objext \
33681       conftest$ac_exeext conftest.$ac_ext
33682 LIBS=$ac_check_lib_save_LIBS
33683 fi
33684 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33685 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33686 if test $ac_cv_lib_w_wcslen = yes; then
33687
33688                             WCHAR_LINK=" -lw"
33689                             WCSLEN_FOUND=1
33690
33691 fi
33692
33693         fi
33694     fi
33695
33696     if test "$WCSLEN_FOUND" = 1; then
33697         cat >>confdefs.h <<\_ACEOF
33698 #define HAVE_WCSLEN 1
33699 _ACEOF
33700
33701     fi
33702
33703                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
33704         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
33705     fi
33706
33707                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33708 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33709 if test "${ac_cv_type_mbstate_t+set}" = set; then
33710   echo $ECHO_N "(cached) $ECHO_C" >&6
33711 else
33712   cat >conftest.$ac_ext <<_ACEOF
33713 /* confdefs.h.  */
33714 _ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h.  */
33718 #include <wchar.h>
33719
33720 int
33721 main ()
33722 {
33723 if ((mbstate_t *) 0)
33724   return 0;
33725 if (sizeof (mbstate_t))
33726   return 0;
33727   ;
33728   return 0;
33729 }
33730 _ACEOF
33731 rm -f conftest.$ac_objext
33732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33733   (eval $ac_compile) 2>conftest.er1
33734   ac_status=$?
33735   grep -v '^ *+' conftest.er1 >conftest.err
33736   rm -f conftest.er1
33737   cat conftest.err >&5
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); } &&
33740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33742   (eval $ac_try) 2>&5
33743   ac_status=$?
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); }; } &&
33746          { ac_try='test -s conftest.$ac_objext'
33747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748   (eval $ac_try) 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; }; then
33752   ac_cv_type_mbstate_t=yes
33753 else
33754   echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33756
33757 ac_cv_type_mbstate_t=no
33758 fi
33759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33760 fi
33761 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33762 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33763 if test $ac_cv_type_mbstate_t = yes; then
33764
33765 cat >>confdefs.h <<_ACEOF
33766 #define HAVE_MBSTATE_T 1
33767 _ACEOF
33768
33769
33770 for ac_func in wcsrtombs
33771 do
33772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33773 echo "$as_me:$LINENO: checking for $ac_func" >&5
33774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33775 if eval "test \"\${$as_ac_var+set}\" = set"; then
33776   echo $ECHO_N "(cached) $ECHO_C" >&6
33777 else
33778   cat >conftest.$ac_ext <<_ACEOF
33779 /* confdefs.h.  */
33780 _ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h.  */
33784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33786 #define $ac_func innocuous_$ac_func
33787
33788 /* System header to define __stub macros and hopefully few prototypes,
33789     which can conflict with char $ac_func (); below.
33790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33791     <limits.h> exists even on freestanding compilers.  */
33792
33793 #ifdef __STDC__
33794 # include <limits.h>
33795 #else
33796 # include <assert.h>
33797 #endif
33798
33799 #undef $ac_func
33800
33801 /* Override any gcc2 internal prototype to avoid an error.  */
33802 #ifdef __cplusplus
33803 extern "C"
33804 {
33805 #endif
33806 /* We use char because int might match the return type of a gcc2
33807    builtin and then its argument prototype would still apply.  */
33808 char $ac_func ();
33809 /* The GNU C library defines this for functions which it implements
33810     to always fail with ENOSYS.  Some functions are actually named
33811     something starting with __ and the normal name is an alias.  */
33812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33813 choke me
33814 #else
33815 char (*f) () = $ac_func;
33816 #endif
33817 #ifdef __cplusplus
33818 }
33819 #endif
33820
33821 int
33822 main ()
33823 {
33824 return f != $ac_func;
33825   ;
33826   return 0;
33827 }
33828 _ACEOF
33829 rm -f conftest.$ac_objext conftest$ac_exeext
33830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33831   (eval $ac_link) 2>conftest.er1
33832   ac_status=$?
33833   grep -v '^ *+' conftest.er1 >conftest.err
33834   rm -f conftest.er1
33835   cat conftest.err >&5
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); } &&
33838          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33840   (eval $ac_try) 2>&5
33841   ac_status=$?
33842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843   (exit $ac_status); }; } &&
33844          { ac_try='test -s conftest$ac_exeext'
33845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33846   (eval $ac_try) 2>&5
33847   ac_status=$?
33848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849   (exit $ac_status); }; }; then
33850   eval "$as_ac_var=yes"
33851 else
33852   echo "$as_me: failed program was:" >&5
33853 sed 's/^/| /' conftest.$ac_ext >&5
33854
33855 eval "$as_ac_var=no"
33856 fi
33857 rm -f conftest.err conftest.$ac_objext \
33858       conftest$ac_exeext conftest.$ac_ext
33859 fi
33860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33862 if test `eval echo '${'$as_ac_var'}'` = yes; then
33863   cat >>confdefs.h <<_ACEOF
33864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33865 _ACEOF
33866
33867 fi
33868 done
33869
33870 fi
33871
33872 else
33873     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33874 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33875 fi
33876
33877
33878
33879 for ac_func in snprintf vsnprintf
33880 do
33881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33882 echo "$as_me:$LINENO: checking for $ac_func" >&5
33883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33884 if eval "test \"\${$as_ac_var+set}\" = set"; then
33885   echo $ECHO_N "(cached) $ECHO_C" >&6
33886 else
33887   cat >conftest.$ac_ext <<_ACEOF
33888 /* confdefs.h.  */
33889 _ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h.  */
33893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33895 #define $ac_func innocuous_$ac_func
33896
33897 /* System header to define __stub macros and hopefully few prototypes,
33898     which can conflict with char $ac_func (); below.
33899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33900     <limits.h> exists even on freestanding compilers.  */
33901
33902 #ifdef __STDC__
33903 # include <limits.h>
33904 #else
33905 # include <assert.h>
33906 #endif
33907
33908 #undef $ac_func
33909
33910 /* Override any gcc2 internal prototype to avoid an error.  */
33911 #ifdef __cplusplus
33912 extern "C"
33913 {
33914 #endif
33915 /* We use char because int might match the return type of a gcc2
33916    builtin and then its argument prototype would still apply.  */
33917 char $ac_func ();
33918 /* The GNU C library defines this for functions which it implements
33919     to always fail with ENOSYS.  Some functions are actually named
33920     something starting with __ and the normal name is an alias.  */
33921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33922 choke me
33923 #else
33924 char (*f) () = $ac_func;
33925 #endif
33926 #ifdef __cplusplus
33927 }
33928 #endif
33929
33930 int
33931 main ()
33932 {
33933 return f != $ac_func;
33934   ;
33935   return 0;
33936 }
33937 _ACEOF
33938 rm -f conftest.$ac_objext conftest$ac_exeext
33939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33940   (eval $ac_link) 2>conftest.er1
33941   ac_status=$?
33942   grep -v '^ *+' conftest.er1 >conftest.err
33943   rm -f conftest.er1
33944   cat conftest.err >&5
33945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946   (exit $ac_status); } &&
33947          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949   (eval $ac_try) 2>&5
33950   ac_status=$?
33951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); }; } &&
33953          { ac_try='test -s conftest$ac_exeext'
33954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955   (eval $ac_try) 2>&5
33956   ac_status=$?
33957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958   (exit $ac_status); }; }; then
33959   eval "$as_ac_var=yes"
33960 else
33961   echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33963
33964 eval "$as_ac_var=no"
33965 fi
33966 rm -f conftest.err conftest.$ac_objext \
33967       conftest$ac_exeext conftest.$ac_ext
33968 fi
33969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33971 if test `eval echo '${'$as_ac_var'}'` = yes; then
33972   cat >>confdefs.h <<_ACEOF
33973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33974 _ACEOF
33975
33976 fi
33977 done
33978
33979
33980 if test "$ac_cv_func_vsnprintf" = "yes"; then
33981         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33982 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33983 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33984   echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986
33987                                                             cat >conftest.$ac_ext <<_ACEOF
33988 /* confdefs.h.  */
33989 _ACEOF
33990 cat confdefs.h >>conftest.$ac_ext
33991 cat >>conftest.$ac_ext <<_ACEOF
33992 /* end confdefs.h.  */
33993
33994                     #include <stdio.h>
33995                     #include <stdarg.h>
33996                     #ifdef __MSL__
33997                     #if __MSL__ >= 0x6000
33998                     namespace std {}
33999                     using namespace std;
34000                     #endif
34001                     #endif
34002
34003 int
34004 main ()
34005 {
34006
34007                     char *buf;
34008                     va_list ap;
34009                     vsnprintf(buf, 10u, "%s", ap);
34010
34011   ;
34012   return 0;
34013 }
34014 _ACEOF
34015 rm -f conftest.$ac_objext
34016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34017   (eval $ac_compile) 2>conftest.er1
34018   ac_status=$?
34019   grep -v '^ *+' conftest.er1 >conftest.err
34020   rm -f conftest.er1
34021   cat conftest.err >&5
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); } &&
34024          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026   (eval $ac_try) 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; } &&
34030          { ac_try='test -s conftest.$ac_objext'
34031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032   (eval $ac_try) 2>&5
34033   ac_status=$?
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); }; }; then
34036   wx_cv_func_vsnprintf_decl=yes
34037 else
34038   echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 wx_cv_func_vsnprintf_decl=no
34042
34043 fi
34044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34045
34046
34047 fi
34048 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34049 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34050
34051     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34052         cat >>confdefs.h <<\_ACEOF
34053 #define HAVE_VSNPRINTF_DECL 1
34054 _ACEOF
34055
34056
34057                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34058 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34059 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34060   echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062
34063                 cat >conftest.$ac_ext <<_ACEOF
34064 /* confdefs.h.  */
34065 _ACEOF
34066 cat confdefs.h >>conftest.$ac_ext
34067 cat >>conftest.$ac_ext <<_ACEOF
34068 /* end confdefs.h.  */
34069
34070                         #include <stdio.h>
34071                         #include <stdarg.h>
34072                         #ifdef __MSL__
34073                         #if __MSL__ >= 0x6000
34074                         namespace std {}
34075                         using namespace std;
34076                         #endif
34077                         #endif
34078
34079 int
34080 main ()
34081 {
34082
34083                         char *buf;
34084                         va_list ap;
34085                         const char *fmt = "%s";
34086                         vsnprintf(buf, 10u, fmt, ap);
34087
34088   ;
34089   return 0;
34090 }
34091 _ACEOF
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094   (eval $ac_compile) 2>conftest.er1
34095   ac_status=$?
34096   grep -v '^ *+' conftest.er1 >conftest.err
34097   rm -f conftest.er1
34098   cat conftest.err >&5
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); } &&
34101          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103   (eval $ac_try) 2>&5
34104   ac_status=$?
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); }; } &&
34107          { ac_try='test -s conftest.$ac_objext'
34108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109   (eval $ac_try) 2>&5
34110   ac_status=$?
34111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); }; }; then
34113   wx_cv_func_broken_vsnprintf_decl=no
34114 else
34115   echo "$as_me: failed program was:" >&5
34116 sed 's/^/| /' conftest.$ac_ext >&5
34117
34118 wx_cv_func_broken_vsnprintf_decl=yes
34119
34120 fi
34121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34122
34123
34124 fi
34125 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34126 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34127
34128         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34129             cat >>confdefs.h <<\_ACEOF
34130 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34131 _ACEOF
34132
34133         fi
34134     fi
34135 fi
34136
34137 if test "$ac_cv_func_snprintf" = "yes"; then
34138     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34139 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34140 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34141   echo $ECHO_N "(cached) $ECHO_C" >&6
34142 else
34143
34144             cat >conftest.$ac_ext <<_ACEOF
34145 /* confdefs.h.  */
34146 _ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h.  */
34150
34151                     #include <stdio.h>
34152                     #include <stdarg.h>
34153                     #ifdef __MSL__
34154                     #if __MSL__ >= 0x6000
34155                     namespace std {}
34156                     using namespace std;
34157                     #endif
34158                     #endif
34159
34160 int
34161 main ()
34162 {
34163
34164                     char *buf;
34165                     snprintf(buf, 10u, "%s", "wx");
34166
34167   ;
34168   return 0;
34169 }
34170 _ACEOF
34171 rm -f conftest.$ac_objext
34172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34173   (eval $ac_compile) 2>conftest.er1
34174   ac_status=$?
34175   grep -v '^ *+' conftest.er1 >conftest.err
34176   rm -f conftest.er1
34177   cat conftest.err >&5
34178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); } &&
34180          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34182   (eval $ac_try) 2>&5
34183   ac_status=$?
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); }; } &&
34186          { ac_try='test -s conftest.$ac_objext'
34187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188   (eval $ac_try) 2>&5
34189   ac_status=$?
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); }; }; then
34192   wx_cv_func_snprintf_decl=yes
34193 else
34194   echo "$as_me: failed program was:" >&5
34195 sed 's/^/| /' conftest.$ac_ext >&5
34196
34197 wx_cv_func_snprintf_decl=no
34198
34199 fi
34200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34201
34202
34203 fi
34204 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34205 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34206
34207     if test "$wx_cv_func_snprintf_decl" = "yes"; then
34208         cat >>confdefs.h <<\_ACEOF
34209 #define HAVE_SNPRINTF_DECL 1
34210 _ACEOF
34211
34212
34213                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34214 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34215 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34216   echo $ECHO_N "(cached) $ECHO_C" >&6
34217 else
34218
34219                 cat >conftest.$ac_ext <<_ACEOF
34220 /* confdefs.h.  */
34221 _ACEOF
34222 cat confdefs.h >>conftest.$ac_ext
34223 cat >>conftest.$ac_ext <<_ACEOF
34224 /* end confdefs.h.  */
34225
34226                         #include <stdio.h>
34227                         #include <stdarg.h>
34228                         #ifdef __MSL__
34229                         #if __MSL__ >= 0x6000
34230                         namespace std {}
34231                         using namespace std;
34232                         #endif
34233                         #endif
34234
34235 int
34236 main ()
34237 {
34238
34239                         char *buf;
34240                         const char *fmt = "%s";
34241                         snprintf(buf, 10u, fmt, "wx");
34242
34243   ;
34244   return 0;
34245 }
34246 _ACEOF
34247 rm -f conftest.$ac_objext
34248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34249   (eval $ac_compile) 2>conftest.er1
34250   ac_status=$?
34251   grep -v '^ *+' conftest.er1 >conftest.err
34252   rm -f conftest.er1
34253   cat conftest.err >&5
34254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255   (exit $ac_status); } &&
34256          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258   (eval $ac_try) 2>&5
34259   ac_status=$?
34260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261   (exit $ac_status); }; } &&
34262          { ac_try='test -s conftest.$ac_objext'
34263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264   (eval $ac_try) 2>&5
34265   ac_status=$?
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); }; }; then
34268   wx_cv_func_broken_snprintf_decl=no
34269 else
34270   echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34272
34273 wx_cv_func_broken_snprintf_decl=yes
34274
34275 fi
34276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34277
34278
34279 fi
34280 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34281 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34282
34283         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34284             cat >>confdefs.h <<\_ACEOF
34285 #define HAVE_BROKEN_SNPRINTF_DECL 1
34286 _ACEOF
34287
34288         fi
34289     fi
34290 fi
34291
34292 if test "$wxUSE_UNICODE" = yes; then
34293
34294
34295
34296
34297
34298
34299 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34300 do
34301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34302 echo "$as_me:$LINENO: checking for $ac_func" >&5
34303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34304 if eval "test \"\${$as_ac_var+set}\" = set"; then
34305   echo $ECHO_N "(cached) $ECHO_C" >&6
34306 else
34307   cat >conftest.$ac_ext <<_ACEOF
34308 /* confdefs.h.  */
34309 _ACEOF
34310 cat confdefs.h >>conftest.$ac_ext
34311 cat >>conftest.$ac_ext <<_ACEOF
34312 /* end confdefs.h.  */
34313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34315 #define $ac_func innocuous_$ac_func
34316
34317 /* System header to define __stub macros and hopefully few prototypes,
34318     which can conflict with char $ac_func (); below.
34319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34320     <limits.h> exists even on freestanding compilers.  */
34321
34322 #ifdef __STDC__
34323 # include <limits.h>
34324 #else
34325 # include <assert.h>
34326 #endif
34327
34328 #undef $ac_func
34329
34330 /* Override any gcc2 internal prototype to avoid an error.  */
34331 #ifdef __cplusplus
34332 extern "C"
34333 {
34334 #endif
34335 /* We use char because int might match the return type of a gcc2
34336    builtin and then its argument prototype would still apply.  */
34337 char $ac_func ();
34338 /* The GNU C library defines this for functions which it implements
34339     to always fail with ENOSYS.  Some functions are actually named
34340     something starting with __ and the normal name is an alias.  */
34341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34342 choke me
34343 #else
34344 char (*f) () = $ac_func;
34345 #endif
34346 #ifdef __cplusplus
34347 }
34348 #endif
34349
34350 int
34351 main ()
34352 {
34353 return f != $ac_func;
34354   ;
34355   return 0;
34356 }
34357 _ACEOF
34358 rm -f conftest.$ac_objext conftest$ac_exeext
34359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34360   (eval $ac_link) 2>conftest.er1
34361   ac_status=$?
34362   grep -v '^ *+' conftest.er1 >conftest.err
34363   rm -f conftest.er1
34364   cat conftest.err >&5
34365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366   (exit $ac_status); } &&
34367          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369   (eval $ac_try) 2>&5
34370   ac_status=$?
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); }; } &&
34373          { ac_try='test -s conftest$ac_exeext'
34374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375   (eval $ac_try) 2>&5
34376   ac_status=$?
34377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378   (exit $ac_status); }; }; then
34379   eval "$as_ac_var=yes"
34380 else
34381   echo "$as_me: failed program was:" >&5
34382 sed 's/^/| /' conftest.$ac_ext >&5
34383
34384 eval "$as_ac_var=no"
34385 fi
34386 rm -f conftest.err conftest.$ac_objext \
34387       conftest$ac_exeext conftest.$ac_ext
34388 fi
34389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34391 if test `eval echo '${'$as_ac_var'}'` = yes; then
34392   cat >>confdefs.h <<_ACEOF
34393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34394 _ACEOF
34395
34396 fi
34397 done
34398
34399
34400                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34401 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34402     cat >conftest.$ac_ext <<_ACEOF
34403 /* confdefs.h.  */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h.  */
34408 #include <wchar.h>
34409 int
34410 main ()
34411 {
34412 &_vsnwprintf;
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34419   (eval $ac_compile) 2>conftest.er1
34420   ac_status=$?
34421   grep -v '^ *+' conftest.er1 >conftest.err
34422   rm -f conftest.er1
34423   cat conftest.err >&5
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); } &&
34426          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428   (eval $ac_try) 2>&5
34429   ac_status=$?
34430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431   (exit $ac_status); }; } &&
34432          { ac_try='test -s conftest.$ac_objext'
34433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434   (eval $ac_try) 2>&5
34435   ac_status=$?
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); }; }; then
34438   echo "$as_me:$LINENO: result: yes" >&5
34439 echo "${ECHO_T}yes" >&6
34440                     cat >>confdefs.h <<\_ACEOF
34441 #define HAVE__VSNWPRINTF 1
34442 _ACEOF
34443
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448 echo "$as_me:$LINENO: result: no" >&5
34449 echo "${ECHO_T}no" >&6
34450 fi
34451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
34452 fi
34453
34454 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34455
34456 for ac_func in fnmatch
34457 do
34458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34459 echo "$as_me:$LINENO: checking for $ac_func" >&5
34460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34461 if eval "test \"\${$as_ac_var+set}\" = set"; then
34462   echo $ECHO_N "(cached) $ECHO_C" >&6
34463 else
34464   cat >conftest.$ac_ext <<_ACEOF
34465 /* confdefs.h.  */
34466 _ACEOF
34467 cat confdefs.h >>conftest.$ac_ext
34468 cat >>conftest.$ac_ext <<_ACEOF
34469 /* end confdefs.h.  */
34470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34472 #define $ac_func innocuous_$ac_func
34473
34474 /* System header to define __stub macros and hopefully few prototypes,
34475     which can conflict with char $ac_func (); below.
34476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34477     <limits.h> exists even on freestanding compilers.  */
34478
34479 #ifdef __STDC__
34480 # include <limits.h>
34481 #else
34482 # include <assert.h>
34483 #endif
34484
34485 #undef $ac_func
34486
34487 /* Override any gcc2 internal prototype to avoid an error.  */
34488 #ifdef __cplusplus
34489 extern "C"
34490 {
34491 #endif
34492 /* We use char because int might match the return type of a gcc2
34493    builtin and then its argument prototype would still apply.  */
34494 char $ac_func ();
34495 /* The GNU C library defines this for functions which it implements
34496     to always fail with ENOSYS.  Some functions are actually named
34497     something starting with __ and the normal name is an alias.  */
34498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34499 choke me
34500 #else
34501 char (*f) () = $ac_func;
34502 #endif
34503 #ifdef __cplusplus
34504 }
34505 #endif
34506
34507 int
34508 main ()
34509 {
34510 return f != $ac_func;
34511   ;
34512   return 0;
34513 }
34514 _ACEOF
34515 rm -f conftest.$ac_objext conftest$ac_exeext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517   (eval $ac_link) 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } &&
34524          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526   (eval $ac_try) 2>&5
34527   ac_status=$?
34528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529   (exit $ac_status); }; } &&
34530          { ac_try='test -s conftest$ac_exeext'
34531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532   (eval $ac_try) 2>&5
34533   ac_status=$?
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); }; }; then
34536   eval "$as_ac_var=yes"
34537 else
34538   echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34540
34541 eval "$as_ac_var=no"
34542 fi
34543 rm -f conftest.err conftest.$ac_objext \
34544       conftest$ac_exeext conftest.$ac_ext
34545 fi
34546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34548 if test `eval echo '${'$as_ac_var'}'` = yes; then
34549   cat >>confdefs.h <<_ACEOF
34550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34551 _ACEOF
34552
34553 fi
34554 done
34555
34556 fi
34557
34558 if test "$wxUSE_FILE" = "yes"; then
34559
34560 for ac_func in fsync
34561 do
34562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34563 echo "$as_me:$LINENO: checking for $ac_func" >&5
34564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34565 if eval "test \"\${$as_ac_var+set}\" = set"; then
34566   echo $ECHO_N "(cached) $ECHO_C" >&6
34567 else
34568   cat >conftest.$ac_ext <<_ACEOF
34569 /* confdefs.h.  */
34570 _ACEOF
34571 cat confdefs.h >>conftest.$ac_ext
34572 cat >>conftest.$ac_ext <<_ACEOF
34573 /* end confdefs.h.  */
34574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34576 #define $ac_func innocuous_$ac_func
34577
34578 /* System header to define __stub macros and hopefully few prototypes,
34579     which can conflict with char $ac_func (); below.
34580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34581     <limits.h> exists even on freestanding compilers.  */
34582
34583 #ifdef __STDC__
34584 # include <limits.h>
34585 #else
34586 # include <assert.h>
34587 #endif
34588
34589 #undef $ac_func
34590
34591 /* Override any gcc2 internal prototype to avoid an error.  */
34592 #ifdef __cplusplus
34593 extern "C"
34594 {
34595 #endif
34596 /* We use char because int might match the return type of a gcc2
34597    builtin and then its argument prototype would still apply.  */
34598 char $ac_func ();
34599 /* The GNU C library defines this for functions which it implements
34600     to always fail with ENOSYS.  Some functions are actually named
34601     something starting with __ and the normal name is an alias.  */
34602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34603 choke me
34604 #else
34605 char (*f) () = $ac_func;
34606 #endif
34607 #ifdef __cplusplus
34608 }
34609 #endif
34610
34611 int
34612 main ()
34613 {
34614 return f != $ac_func;
34615   ;
34616   return 0;
34617 }
34618 _ACEOF
34619 rm -f conftest.$ac_objext conftest$ac_exeext
34620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34621   (eval $ac_link) 2>conftest.er1
34622   ac_status=$?
34623   grep -v '^ *+' conftest.er1 >conftest.err
34624   rm -f conftest.er1
34625   cat conftest.err >&5
34626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627   (exit $ac_status); } &&
34628          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630   (eval $ac_try) 2>&5
34631   ac_status=$?
34632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); }; } &&
34634          { ac_try='test -s conftest$ac_exeext'
34635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636   (eval $ac_try) 2>&5
34637   ac_status=$?
34638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639   (exit $ac_status); }; }; then
34640   eval "$as_ac_var=yes"
34641 else
34642   echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34644
34645 eval "$as_ac_var=no"
34646 fi
34647 rm -f conftest.err conftest.$ac_objext \
34648       conftest$ac_exeext conftest.$ac_ext
34649 fi
34650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34652 if test `eval echo '${'$as_ac_var'}'` = yes; then
34653   cat >>confdefs.h <<_ACEOF
34654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34655 _ACEOF
34656
34657 fi
34658 done
34659
34660 fi
34661
34662
34663 if test "$TOOLKIT" != "MSW"; then
34664
34665
34666
34667
34668
34669 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34670 if test "${with_libiconv_prefix+set}" = set; then
34671   withval="$with_libiconv_prefix"
34672
34673     for dir in `echo "$withval" | tr : ' '`; do
34674       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34675       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34676     done
34677
34678 fi;
34679
34680   echo "$as_me:$LINENO: checking for iconv" >&5
34681 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34682 if test "${am_cv_func_iconv+set}" = set; then
34683   echo $ECHO_N "(cached) $ECHO_C" >&6
34684 else
34685
34686     am_cv_func_iconv="no, consider installing GNU libiconv"
34687     am_cv_lib_iconv=no
34688     cat >conftest.$ac_ext <<_ACEOF
34689 /* confdefs.h.  */
34690 _ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h.  */
34694 #include <stdlib.h>
34695 #include <iconv.h>
34696 int
34697 main ()
34698 {
34699 iconv_t cd = iconv_open("","");
34700        iconv(cd,NULL,NULL,NULL,NULL);
34701        iconv_close(cd);
34702   ;
34703   return 0;
34704 }
34705 _ACEOF
34706 rm -f conftest.$ac_objext conftest$ac_exeext
34707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34708   (eval $ac_link) 2>conftest.er1
34709   ac_status=$?
34710   grep -v '^ *+' conftest.er1 >conftest.err
34711   rm -f conftest.er1
34712   cat conftest.err >&5
34713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714   (exit $ac_status); } &&
34715          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717   (eval $ac_try) 2>&5
34718   ac_status=$?
34719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720   (exit $ac_status); }; } &&
34721          { ac_try='test -s conftest$ac_exeext'
34722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723   (eval $ac_try) 2>&5
34724   ac_status=$?
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); }; }; then
34727   am_cv_func_iconv=yes
34728 else
34729   echo "$as_me: failed program was:" >&5
34730 sed 's/^/| /' conftest.$ac_ext >&5
34731
34732 fi
34733 rm -f conftest.err conftest.$ac_objext \
34734       conftest$ac_exeext conftest.$ac_ext
34735     if test "$am_cv_func_iconv" != yes; then
34736       am_save_LIBS="$LIBS"
34737       LIBS="$LIBS -liconv"
34738       cat >conftest.$ac_ext <<_ACEOF
34739 /* confdefs.h.  */
34740 _ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h.  */
34744 #include <stdlib.h>
34745 #include <iconv.h>
34746 int
34747 main ()
34748 {
34749 iconv_t cd = iconv_open("","");
34750          iconv(cd,NULL,NULL,NULL,NULL);
34751          iconv_close(cd);
34752   ;
34753   return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest.$ac_objext conftest$ac_exeext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34758   (eval $ac_link) 2>conftest.er1
34759   ac_status=$?
34760   grep -v '^ *+' conftest.er1 >conftest.err
34761   rm -f conftest.er1
34762   cat conftest.err >&5
34763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764   (exit $ac_status); } &&
34765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767   (eval $ac_try) 2>&5
34768   ac_status=$?
34769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770   (exit $ac_status); }; } &&
34771          { ac_try='test -s conftest$ac_exeext'
34772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773   (eval $ac_try) 2>&5
34774   ac_status=$?
34775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776   (exit $ac_status); }; }; then
34777   am_cv_lib_iconv=yes
34778         am_cv_func_iconv=yes
34779 else
34780   echo "$as_me: failed program was:" >&5
34781 sed 's/^/| /' conftest.$ac_ext >&5
34782
34783 fi
34784 rm -f conftest.err conftest.$ac_objext \
34785       conftest$ac_exeext conftest.$ac_ext
34786       LIBS="$am_save_LIBS"
34787     fi
34788
34789 fi
34790 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34791 echo "${ECHO_T}$am_cv_func_iconv" >&6
34792   if test "$am_cv_func_iconv" = yes; then
34793
34794 cat >>confdefs.h <<\_ACEOF
34795 #define HAVE_ICONV 1
34796 _ACEOF
34797
34798     echo "$as_me:$LINENO: checking if iconv needs const" >&5
34799 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34800 if test "${wx_cv_func_iconv_const+set}" = set; then
34801   echo $ECHO_N "(cached) $ECHO_C" >&6
34802 else
34803   cat >conftest.$ac_ext <<_ACEOF
34804 /* confdefs.h.  */
34805 _ACEOF
34806 cat confdefs.h >>conftest.$ac_ext
34807 cat >>conftest.$ac_ext <<_ACEOF
34808 /* end confdefs.h.  */
34809
34810 #include <stdlib.h>
34811 #include <iconv.h>
34812 extern
34813 #ifdef __cplusplus
34814 "C"
34815 #endif
34816 #if defined(__STDC__) || defined(__cplusplus)
34817 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34818 #else
34819 size_t iconv();
34820 #endif
34821
34822 int
34823 main ()
34824 {
34825
34826   ;
34827   return 0;
34828 }
34829 _ACEOF
34830 rm -f conftest.$ac_objext
34831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34832   (eval $ac_compile) 2>conftest.er1
34833   ac_status=$?
34834   grep -v '^ *+' conftest.er1 >conftest.err
34835   rm -f conftest.er1
34836   cat conftest.err >&5
34837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838   (exit $ac_status); } &&
34839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841   (eval $ac_try) 2>&5
34842   ac_status=$?
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); }; } &&
34845          { ac_try='test -s conftest.$ac_objext'
34846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34847   (eval $ac_try) 2>&5
34848   ac_status=$?
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); }; }; then
34851   wx_cv_func_iconv_const="no"
34852 else
34853   echo "$as_me: failed program was:" >&5
34854 sed 's/^/| /' conftest.$ac_ext >&5
34855
34856 wx_cv_func_iconv_const="yes"
34857
34858 fi
34859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34860
34861 fi
34862 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34863 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34864
34865     iconv_const=
34866     if test "x$wx_cv_func_iconv_const" = "xyes"; then
34867         iconv_const="const"
34868     fi
34869
34870
34871 cat >>confdefs.h <<_ACEOF
34872 #define ICONV_CONST $iconv_const
34873 _ACEOF
34874
34875   fi
34876   LIBICONV=
34877   if test "$am_cv_lib_iconv" = yes; then
34878     LIBICONV="-liconv"
34879   fi
34880
34881
34882 LIBS="$LIBICONV $LIBS"
34883
34884 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34885
34886 for ac_func in sigaction
34887 do
34888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34889 echo "$as_me:$LINENO: checking for $ac_func" >&5
34890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34891 if eval "test \"\${$as_ac_var+set}\" = set"; then
34892   echo $ECHO_N "(cached) $ECHO_C" >&6
34893 else
34894   cat >conftest.$ac_ext <<_ACEOF
34895 /* confdefs.h.  */
34896 _ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h.  */
34900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34902 #define $ac_func innocuous_$ac_func
34903
34904 /* System header to define __stub macros and hopefully few prototypes,
34905     which can conflict with char $ac_func (); below.
34906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34907     <limits.h> exists even on freestanding compilers.  */
34908
34909 #ifdef __STDC__
34910 # include <limits.h>
34911 #else
34912 # include <assert.h>
34913 #endif
34914
34915 #undef $ac_func
34916
34917 /* Override any gcc2 internal prototype to avoid an error.  */
34918 #ifdef __cplusplus
34919 extern "C"
34920 {
34921 #endif
34922 /* We use char because int might match the return type of a gcc2
34923    builtin and then its argument prototype would still apply.  */
34924 char $ac_func ();
34925 /* The GNU C library defines this for functions which it implements
34926     to always fail with ENOSYS.  Some functions are actually named
34927     something starting with __ and the normal name is an alias.  */
34928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34929 choke me
34930 #else
34931 char (*f) () = $ac_func;
34932 #endif
34933 #ifdef __cplusplus
34934 }
34935 #endif
34936
34937 int
34938 main ()
34939 {
34940 return f != $ac_func;
34941   ;
34942   return 0;
34943 }
34944 _ACEOF
34945 rm -f conftest.$ac_objext conftest$ac_exeext
34946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34947   (eval $ac_link) 2>conftest.er1
34948   ac_status=$?
34949   grep -v '^ *+' conftest.er1 >conftest.err
34950   rm -f conftest.er1
34951   cat conftest.err >&5
34952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953   (exit $ac_status); } &&
34954          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34956   (eval $ac_try) 2>&5
34957   ac_status=$?
34958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959   (exit $ac_status); }; } &&
34960          { ac_try='test -s conftest$ac_exeext'
34961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962   (eval $ac_try) 2>&5
34963   ac_status=$?
34964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); }; }; then
34966   eval "$as_ac_var=yes"
34967 else
34968   echo "$as_me: failed program was:" >&5
34969 sed 's/^/| /' conftest.$ac_ext >&5
34970
34971 eval "$as_ac_var=no"
34972 fi
34973 rm -f conftest.err conftest.$ac_objext \
34974       conftest$ac_exeext conftest.$ac_ext
34975 fi
34976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34978 if test `eval echo '${'$as_ac_var'}'` = yes; then
34979   cat >>confdefs.h <<_ACEOF
34980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34981 _ACEOF
34982
34983 fi
34984 done
34985
34986
34987     if test "$ac_cv_func_sigaction" = "no"; then
34988         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34989 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34990         wxUSE_ON_FATAL_EXCEPTION=no
34991     fi
34992
34993     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34994       echo "$as_me:$LINENO: checking for sa_handler type" >&5
34995 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34996 if test "${wx_cv_type_sa_handler+set}" = set; then
34997   echo $ECHO_N "(cached) $ECHO_C" >&6
34998 else
34999
35000         cat >conftest.$ac_ext <<_ACEOF
35001 /* confdefs.h.  */
35002 _ACEOF
35003 cat confdefs.h >>conftest.$ac_ext
35004 cat >>conftest.$ac_ext <<_ACEOF
35005 /* end confdefs.h.  */
35006 #include <signal.h>
35007 int
35008 main ()
35009 {
35010
35011                         extern void testSigHandler(int);
35012
35013                         struct sigaction sa;
35014                         sa.sa_handler = testSigHandler;
35015
35016   ;
35017   return 0;
35018 }
35019 _ACEOF
35020 rm -f conftest.$ac_objext
35021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35022   (eval $ac_compile) 2>conftest.er1
35023   ac_status=$?
35024   grep -v '^ *+' conftest.er1 >conftest.err
35025   rm -f conftest.er1
35026   cat conftest.err >&5
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } &&
35029          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031   (eval $ac_try) 2>&5
35032   ac_status=$?
35033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034   (exit $ac_status); }; } &&
35035          { ac_try='test -s conftest.$ac_objext'
35036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037   (eval $ac_try) 2>&5
35038   ac_status=$?
35039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040   (exit $ac_status); }; }; then
35041
35042                         wx_cv_type_sa_handler=int
35043
35044 else
35045   echo "$as_me: failed program was:" >&5
35046 sed 's/^/| /' conftest.$ac_ext >&5
35047
35048
35049                         wx_cv_type_sa_handler=void
35050
35051 fi
35052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35053
35054 fi
35055 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35056 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35057
35058       cat >>confdefs.h <<_ACEOF
35059 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35060 _ACEOF
35061
35062     fi
35063 fi
35064
35065 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35066     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35067 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35068 if test "${wx_cv_func_backtrace+set}" = set; then
35069   echo $ECHO_N "(cached) $ECHO_C" >&6
35070 else
35071
35072             cat >conftest.$ac_ext <<_ACEOF
35073 /* confdefs.h.  */
35074 _ACEOF
35075 cat confdefs.h >>conftest.$ac_ext
35076 cat >>conftest.$ac_ext <<_ACEOF
35077 /* end confdefs.h.  */
35078 #include <execinfo.h>
35079 int
35080 main ()
35081 {
35082
35083                     void *trace[1];
35084                     char **messages;
35085
35086                     backtrace(trace, 1);
35087                     messages = backtrace_symbols(trace, 1);
35088
35089   ;
35090   return 0;
35091 }
35092 _ACEOF
35093 rm -f conftest.$ac_objext
35094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35095   (eval $ac_compile) 2>conftest.er1
35096   ac_status=$?
35097   grep -v '^ *+' conftest.er1 >conftest.err
35098   rm -f conftest.er1
35099   cat conftest.err >&5
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); } &&
35102          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104   (eval $ac_try) 2>&5
35105   ac_status=$?
35106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107   (exit $ac_status); }; } &&
35108          { ac_try='test -s conftest.$ac_objext'
35109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110   (eval $ac_try) 2>&5
35111   ac_status=$?
35112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113   (exit $ac_status); }; }; then
35114   wx_cv_func_backtrace=yes
35115 else
35116   echo "$as_me: failed program was:" >&5
35117 sed 's/^/| /' conftest.$ac_ext >&5
35118
35119 wx_cv_func_backtrace=no
35120
35121 fi
35122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35123
35124
35125 fi
35126 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35127 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35128
35129
35130     if test "$wx_cv_func_backtrace" = "no"; then
35131         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35132 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35133         wxUSE_STACKWALKER=no
35134     else
35135         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35136 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35137 if test "${wx_cv_func_cxa_demangle+set}" = set; then
35138   echo $ECHO_N "(cached) $ECHO_C" >&6
35139 else
35140
35141                 cat >conftest.$ac_ext <<_ACEOF
35142 /* confdefs.h.  */
35143 _ACEOF
35144 cat confdefs.h >>conftest.$ac_ext
35145 cat >>conftest.$ac_ext <<_ACEOF
35146 /* end confdefs.h.  */
35147 #include <cxxabi.h>
35148 int
35149 main ()
35150 {
35151
35152                         int rc;
35153                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35154
35155   ;
35156   return 0;
35157 }
35158 _ACEOF
35159 rm -f conftest.$ac_objext conftest$ac_exeext
35160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35161   (eval $ac_link) 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } &&
35168          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170   (eval $ac_try) 2>&5
35171   ac_status=$?
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); }; } &&
35174          { ac_try='test -s conftest$ac_exeext'
35175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176   (eval $ac_try) 2>&5
35177   ac_status=$?
35178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179   (exit $ac_status); }; }; then
35180   wx_cv_func_cxa_demangle=yes
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185 wx_cv_func_cxa_demangle=no
35186
35187 fi
35188 rm -f conftest.err conftest.$ac_objext \
35189       conftest$ac_exeext conftest.$ac_ext
35190
35191
35192 fi
35193 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35194 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35195
35196         if test "$wx_cv_func_cxa_demangle" = "yes"; then
35197             cat >>confdefs.h <<\_ACEOF
35198 #define HAVE_CXA_DEMANGLE 1
35199 _ACEOF
35200
35201         fi
35202     fi
35203 fi
35204
35205 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35206     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35207 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35208     wxUSE_STACKWALKER=no
35209 fi
35210
35211
35212
35213
35214 for ac_func in mkstemp mktemp
35215 do
35216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35217 echo "$as_me:$LINENO: checking for $ac_func" >&5
35218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35219 if eval "test \"\${$as_ac_var+set}\" = set"; then
35220   echo $ECHO_N "(cached) $ECHO_C" >&6
35221 else
35222   cat >conftest.$ac_ext <<_ACEOF
35223 /* confdefs.h.  */
35224 _ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h.  */
35228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35230 #define $ac_func innocuous_$ac_func
35231
35232 /* System header to define __stub macros and hopefully few prototypes,
35233     which can conflict with char $ac_func (); below.
35234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35235     <limits.h> exists even on freestanding compilers.  */
35236
35237 #ifdef __STDC__
35238 # include <limits.h>
35239 #else
35240 # include <assert.h>
35241 #endif
35242
35243 #undef $ac_func
35244
35245 /* Override any gcc2 internal prototype to avoid an error.  */
35246 #ifdef __cplusplus
35247 extern "C"
35248 {
35249 #endif
35250 /* We use char because int might match the return type of a gcc2
35251    builtin and then its argument prototype would still apply.  */
35252 char $ac_func ();
35253 /* The GNU C library defines this for functions which it implements
35254     to always fail with ENOSYS.  Some functions are actually named
35255     something starting with __ and the normal name is an alias.  */
35256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35257 choke me
35258 #else
35259 char (*f) () = $ac_func;
35260 #endif
35261 #ifdef __cplusplus
35262 }
35263 #endif
35264
35265 int
35266 main ()
35267 {
35268 return f != $ac_func;
35269   ;
35270   return 0;
35271 }
35272 _ACEOF
35273 rm -f conftest.$ac_objext conftest$ac_exeext
35274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35275   (eval $ac_link) 2>conftest.er1
35276   ac_status=$?
35277   grep -v '^ *+' conftest.er1 >conftest.err
35278   rm -f conftest.er1
35279   cat conftest.err >&5
35280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281   (exit $ac_status); } &&
35282          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284   (eval $ac_try) 2>&5
35285   ac_status=$?
35286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287   (exit $ac_status); }; } &&
35288          { ac_try='test -s conftest$ac_exeext'
35289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290   (eval $ac_try) 2>&5
35291   ac_status=$?
35292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293   (exit $ac_status); }; }; then
35294   eval "$as_ac_var=yes"
35295 else
35296   echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35298
35299 eval "$as_ac_var=no"
35300 fi
35301 rm -f conftest.err conftest.$ac_objext \
35302       conftest$ac_exeext conftest.$ac_ext
35303 fi
35304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35306 if test `eval echo '${'$as_ac_var'}'` = yes; then
35307   cat >>confdefs.h <<_ACEOF
35308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35309 _ACEOF
35310  break
35311 fi
35312 done
35313
35314
35315 echo "$as_me:$LINENO: checking for statfs" >&5
35316 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35317 if test "${wx_cv_func_statfs+set}" = set; then
35318   echo $ECHO_N "(cached) $ECHO_C" >&6
35319 else
35320   cat >conftest.$ac_ext <<_ACEOF
35321 /* confdefs.h.  */
35322 _ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h.  */
35326
35327              #if defined(__BSD__)
35328              #include <sys/param.h>
35329              #include <sys/mount.h>
35330              #else
35331              #include <sys/vfs.h>
35332              #endif
35333
35334 int
35335 main ()
35336 {
35337
35338              long l;
35339              struct statfs fs;
35340              statfs("/", &fs);
35341              l = fs.f_bsize;
35342              l += fs.f_blocks;
35343              l += fs.f_bavail;
35344
35345   ;
35346   return 0;
35347 }
35348 _ACEOF
35349 rm -f conftest.$ac_objext
35350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35351   (eval $ac_compile) 2>conftest.er1
35352   ac_status=$?
35353   grep -v '^ *+' conftest.er1 >conftest.err
35354   rm -f conftest.er1
35355   cat conftest.err >&5
35356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357   (exit $ac_status); } &&
35358          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360   (eval $ac_try) 2>&5
35361   ac_status=$?
35362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363   (exit $ac_status); }; } &&
35364          { ac_try='test -s conftest.$ac_objext'
35365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366   (eval $ac_try) 2>&5
35367   ac_status=$?
35368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369   (exit $ac_status); }; }; then
35370   wx_cv_func_statfs=yes
35371 else
35372   echo "$as_me: failed program was:" >&5
35373 sed 's/^/| /' conftest.$ac_ext >&5
35374
35375 wx_cv_func_statfs=no
35376
35377 fi
35378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35379
35380 fi
35381 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35382 echo "${ECHO_T}$wx_cv_func_statfs" >&6
35383
35384 if test "$wx_cv_func_statfs" = "yes"; then
35385         echo "$as_me:$LINENO: checking for statfs declaration" >&5
35386 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35387 if test "${wx_cv_func_statfs_decl+set}" = set; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   cat >conftest.$ac_ext <<_ACEOF
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396
35397                  #if defined(__BSD__)
35398                  #include <sys/param.h>
35399                  #include <sys/mount.h>
35400                  #else
35401                  #include <sys/vfs.h>
35402                  #endif
35403
35404 int
35405 main ()
35406 {
35407
35408                 struct statfs fs;
35409                 statfs("", &fs);
35410
35411   ;
35412   return 0;
35413 }
35414 _ACEOF
35415 rm -f conftest.$ac_objext
35416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35417   (eval $ac_compile) 2>conftest.er1
35418   ac_status=$?
35419   grep -v '^ *+' conftest.er1 >conftest.err
35420   rm -f conftest.er1
35421   cat conftest.err >&5
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } &&
35424          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426   (eval $ac_try) 2>&5
35427   ac_status=$?
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); }; } &&
35430          { ac_try='test -s conftest.$ac_objext'
35431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432   (eval $ac_try) 2>&5
35433   ac_status=$?
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); }; }; then
35436   wx_cv_func_statfs_decl=yes
35437 else
35438   echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35440
35441 wx_cv_func_statfs_decl=no
35442
35443 fi
35444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35445
35446 fi
35447 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35448 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
35449
35450     if test "$wx_cv_func_statfs_decl" = "yes"; then
35451         cat >>confdefs.h <<\_ACEOF
35452 #define HAVE_STATFS_DECL 1
35453 _ACEOF
35454
35455     fi
35456
35457     wx_cv_type_statvfs_t="struct statfs"
35458     cat >>confdefs.h <<\_ACEOF
35459 #define HAVE_STATFS 1
35460 _ACEOF
35461
35462 else
35463     echo "$as_me:$LINENO: checking for statvfs" >&5
35464 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35465 if test "${wx_cv_func_statvfs+set}" = set; then
35466   echo $ECHO_N "(cached) $ECHO_C" >&6
35467 else
35468   cat >conftest.$ac_ext <<_ACEOF
35469 /* confdefs.h.  */
35470 _ACEOF
35471 cat confdefs.h >>conftest.$ac_ext
35472 cat >>conftest.$ac_ext <<_ACEOF
35473 /* end confdefs.h.  */
35474
35475                 #include <stddef.h>
35476                 #include <sys/statvfs.h>
35477
35478 int
35479 main ()
35480 {
35481
35482                 statvfs("/", NULL);
35483
35484   ;
35485   return 0;
35486 }
35487 _ACEOF
35488 rm -f conftest.$ac_objext
35489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35490   (eval $ac_compile) 2>conftest.er1
35491   ac_status=$?
35492   grep -v '^ *+' conftest.er1 >conftest.err
35493   rm -f conftest.er1
35494   cat conftest.err >&5
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); } &&
35497          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499   (eval $ac_try) 2>&5
35500   ac_status=$?
35501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502   (exit $ac_status); }; } &&
35503          { ac_try='test -s conftest.$ac_objext'
35504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505   (eval $ac_try) 2>&5
35506   ac_status=$?
35507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508   (exit $ac_status); }; }; then
35509   wx_cv_func_statvfs=yes
35510 else
35511   echo "$as_me: failed program was:" >&5
35512 sed 's/^/| /' conftest.$ac_ext >&5
35513
35514 wx_cv_func_statvfs=no
35515
35516 fi
35517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35518
35519 fi
35520 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35521 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35522
35523     if test "$wx_cv_func_statvfs" = "yes"; then
35524                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
35525 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35526 if test "${wx_cv_type_statvfs_t+set}" = set; then
35527   echo $ECHO_N "(cached) $ECHO_C" >&6
35528 else
35529   cat >conftest.$ac_ext <<_ACEOF
35530 /* confdefs.h.  */
35531 _ACEOF
35532 cat confdefs.h >>conftest.$ac_ext
35533 cat >>conftest.$ac_ext <<_ACEOF
35534 /* end confdefs.h.  */
35535
35536                     #include <sys/statvfs.h>
35537
35538 int
35539 main ()
35540 {
35541
35542                     long l;
35543                     statvfs_t fs;
35544                     statvfs("/", &fs);
35545                     l = fs.f_bsize;
35546                     l += fs.f_blocks;
35547                     l += fs.f_bavail;
35548
35549   ;
35550   return 0;
35551 }
35552 _ACEOF
35553 rm -f conftest.$ac_objext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35555   (eval $ac_compile) 2>conftest.er1
35556   ac_status=$?
35557   grep -v '^ *+' conftest.er1 >conftest.err
35558   rm -f conftest.er1
35559   cat conftest.err >&5
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); } &&
35562          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564   (eval $ac_try) 2>&5
35565   ac_status=$?
35566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567   (exit $ac_status); }; } &&
35568          { ac_try='test -s conftest.$ac_objext'
35569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570   (eval $ac_try) 2>&5
35571   ac_status=$?
35572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573   (exit $ac_status); }; }; then
35574   wx_cv_type_statvfs_t=statvfs_t
35575 else
35576   echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35578
35579
35580                     cat >conftest.$ac_ext <<_ACEOF
35581 /* confdefs.h.  */
35582 _ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h.  */
35586
35587                             #include <sys/statvfs.h>
35588
35589 int
35590 main ()
35591 {
35592
35593                             long l;
35594                             struct statvfs fs;
35595                             statvfs("/", &fs);
35596                             l = fs.f_bsize;
35597                             l += fs.f_blocks;
35598                             l += fs.f_bavail;
35599
35600   ;
35601   return 0;
35602 }
35603 _ACEOF
35604 rm -f conftest.$ac_objext
35605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35606   (eval $ac_compile) 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_objext'
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   wx_cv_type_statvfs_t="struct statvfs"
35626 else
35627   echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630 wx_cv_type_statvfs_t="unknown"
35631
35632 fi
35633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35634
35635
35636 fi
35637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35638
35639 fi
35640 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35641 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35642
35643         if test "$wx_cv_type_statvfs_t" != "unknown"; then
35644             cat >>confdefs.h <<\_ACEOF
35645 #define HAVE_STATVFS 1
35646 _ACEOF
35647
35648         fi
35649     else
35650                 wx_cv_type_statvfs_t="unknown"
35651     fi
35652 fi
35653
35654 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35655     cat >>confdefs.h <<_ACEOF
35656 #define WX_STATFS_T $wx_cv_type_statvfs_t
35657 _ACEOF
35658
35659 else
35660     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35661 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35662 fi
35663
35664 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35665
35666
35667 for ac_func in fcntl flock
35668 do
35669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35670 echo "$as_me:$LINENO: checking for $ac_func" >&5
35671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35672 if eval "test \"\${$as_ac_var+set}\" = set"; then
35673   echo $ECHO_N "(cached) $ECHO_C" >&6
35674 else
35675   cat >conftest.$ac_ext <<_ACEOF
35676 /* confdefs.h.  */
35677 _ACEOF
35678 cat confdefs.h >>conftest.$ac_ext
35679 cat >>conftest.$ac_ext <<_ACEOF
35680 /* end confdefs.h.  */
35681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35683 #define $ac_func innocuous_$ac_func
35684
35685 /* System header to define __stub macros and hopefully few prototypes,
35686     which can conflict with char $ac_func (); below.
35687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35688     <limits.h> exists even on freestanding compilers.  */
35689
35690 #ifdef __STDC__
35691 # include <limits.h>
35692 #else
35693 # include <assert.h>
35694 #endif
35695
35696 #undef $ac_func
35697
35698 /* Override any gcc2 internal prototype to avoid an error.  */
35699 #ifdef __cplusplus
35700 extern "C"
35701 {
35702 #endif
35703 /* We use char because int might match the return type of a gcc2
35704    builtin and then its argument prototype would still apply.  */
35705 char $ac_func ();
35706 /* The GNU C library defines this for functions which it implements
35707     to always fail with ENOSYS.  Some functions are actually named
35708     something starting with __ and the normal name is an alias.  */
35709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35710 choke me
35711 #else
35712 char (*f) () = $ac_func;
35713 #endif
35714 #ifdef __cplusplus
35715 }
35716 #endif
35717
35718 int
35719 main ()
35720 {
35721 return f != $ac_func;
35722   ;
35723   return 0;
35724 }
35725 _ACEOF
35726 rm -f conftest.$ac_objext conftest$ac_exeext
35727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35728   (eval $ac_link) 2>conftest.er1
35729   ac_status=$?
35730   grep -v '^ *+' conftest.er1 >conftest.err
35731   rm -f conftest.er1
35732   cat conftest.err >&5
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); } &&
35735          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737   (eval $ac_try) 2>&5
35738   ac_status=$?
35739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740   (exit $ac_status); }; } &&
35741          { ac_try='test -s conftest$ac_exeext'
35742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35743   (eval $ac_try) 2>&5
35744   ac_status=$?
35745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746   (exit $ac_status); }; }; then
35747   eval "$as_ac_var=yes"
35748 else
35749   echo "$as_me: failed program was:" >&5
35750 sed 's/^/| /' conftest.$ac_ext >&5
35751
35752 eval "$as_ac_var=no"
35753 fi
35754 rm -f conftest.err conftest.$ac_objext \
35755       conftest$ac_exeext conftest.$ac_ext
35756 fi
35757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35759 if test `eval echo '${'$as_ac_var'}'` = yes; then
35760   cat >>confdefs.h <<_ACEOF
35761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35762 _ACEOF
35763  break
35764 fi
35765 done
35766
35767
35768     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35769         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35770 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35771         wxUSE_SNGLINST_CHECKER=no
35772     fi
35773 fi
35774
35775
35776 for ac_func in timegm
35777 do
35778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35779 echo "$as_me:$LINENO: checking for $ac_func" >&5
35780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35781 if eval "test \"\${$as_ac_var+set}\" = set"; then
35782   echo $ECHO_N "(cached) $ECHO_C" >&6
35783 else
35784   cat >conftest.$ac_ext <<_ACEOF
35785 /* confdefs.h.  */
35786 _ACEOF
35787 cat confdefs.h >>conftest.$ac_ext
35788 cat >>conftest.$ac_ext <<_ACEOF
35789 /* end confdefs.h.  */
35790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35792 #define $ac_func innocuous_$ac_func
35793
35794 /* System header to define __stub macros and hopefully few prototypes,
35795     which can conflict with char $ac_func (); below.
35796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35797     <limits.h> exists even on freestanding compilers.  */
35798
35799 #ifdef __STDC__
35800 # include <limits.h>
35801 #else
35802 # include <assert.h>
35803 #endif
35804
35805 #undef $ac_func
35806
35807 /* Override any gcc2 internal prototype to avoid an error.  */
35808 #ifdef __cplusplus
35809 extern "C"
35810 {
35811 #endif
35812 /* We use char because int might match the return type of a gcc2
35813    builtin and then its argument prototype would still apply.  */
35814 char $ac_func ();
35815 /* The GNU C library defines this for functions which it implements
35816     to always fail with ENOSYS.  Some functions are actually named
35817     something starting with __ and the normal name is an alias.  */
35818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35819 choke me
35820 #else
35821 char (*f) () = $ac_func;
35822 #endif
35823 #ifdef __cplusplus
35824 }
35825 #endif
35826
35827 int
35828 main ()
35829 {
35830 return f != $ac_func;
35831   ;
35832   return 0;
35833 }
35834 _ACEOF
35835 rm -f conftest.$ac_objext conftest$ac_exeext
35836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35837   (eval $ac_link) 2>conftest.er1
35838   ac_status=$?
35839   grep -v '^ *+' conftest.er1 >conftest.err
35840   rm -f conftest.er1
35841   cat conftest.err >&5
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); } &&
35844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846   (eval $ac_try) 2>&5
35847   ac_status=$?
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); }; } &&
35850          { ac_try='test -s conftest$ac_exeext'
35851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852   (eval $ac_try) 2>&5
35853   ac_status=$?
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); }; }; then
35856   eval "$as_ac_var=yes"
35857 else
35858   echo "$as_me: failed program was:" >&5
35859 sed 's/^/| /' conftest.$ac_ext >&5
35860
35861 eval "$as_ac_var=no"
35862 fi
35863 rm -f conftest.err conftest.$ac_objext \
35864       conftest$ac_exeext conftest.$ac_ext
35865 fi
35866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35868 if test `eval echo '${'$as_ac_var'}'` = yes; then
35869   cat >>confdefs.h <<_ACEOF
35870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35871 _ACEOF
35872
35873 fi
35874 done
35875
35876
35877
35878
35879 for ac_func in putenv setenv
35880 do
35881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35882 echo "$as_me:$LINENO: checking for $ac_func" >&5
35883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35884 if eval "test \"\${$as_ac_var+set}\" = set"; then
35885   echo $ECHO_N "(cached) $ECHO_C" >&6
35886 else
35887   cat >conftest.$ac_ext <<_ACEOF
35888 /* confdefs.h.  */
35889 _ACEOF
35890 cat confdefs.h >>conftest.$ac_ext
35891 cat >>conftest.$ac_ext <<_ACEOF
35892 /* end confdefs.h.  */
35893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35895 #define $ac_func innocuous_$ac_func
35896
35897 /* System header to define __stub macros and hopefully few prototypes,
35898     which can conflict with char $ac_func (); below.
35899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35900     <limits.h> exists even on freestanding compilers.  */
35901
35902 #ifdef __STDC__
35903 # include <limits.h>
35904 #else
35905 # include <assert.h>
35906 #endif
35907
35908 #undef $ac_func
35909
35910 /* Override any gcc2 internal prototype to avoid an error.  */
35911 #ifdef __cplusplus
35912 extern "C"
35913 {
35914 #endif
35915 /* We use char because int might match the return type of a gcc2
35916    builtin and then its argument prototype would still apply.  */
35917 char $ac_func ();
35918 /* The GNU C library defines this for functions which it implements
35919     to always fail with ENOSYS.  Some functions are actually named
35920     something starting with __ and the normal name is an alias.  */
35921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35922 choke me
35923 #else
35924 char (*f) () = $ac_func;
35925 #endif
35926 #ifdef __cplusplus
35927 }
35928 #endif
35929
35930 int
35931 main ()
35932 {
35933 return f != $ac_func;
35934   ;
35935   return 0;
35936 }
35937 _ACEOF
35938 rm -f conftest.$ac_objext conftest$ac_exeext
35939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35940   (eval $ac_link) 2>conftest.er1
35941   ac_status=$?
35942   grep -v '^ *+' conftest.er1 >conftest.err
35943   rm -f conftest.er1
35944   cat conftest.err >&5
35945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946   (exit $ac_status); } &&
35947          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949   (eval $ac_try) 2>&5
35950   ac_status=$?
35951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952   (exit $ac_status); }; } &&
35953          { ac_try='test -s conftest$ac_exeext'
35954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955   (eval $ac_try) 2>&5
35956   ac_status=$?
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); }; }; then
35959   eval "$as_ac_var=yes"
35960 else
35961   echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35963
35964 eval "$as_ac_var=no"
35965 fi
35966 rm -f conftest.err conftest.$ac_objext \
35967       conftest$ac_exeext conftest.$ac_ext
35968 fi
35969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35971 if test `eval echo '${'$as_ac_var'}'` = yes; then
35972   cat >>confdefs.h <<_ACEOF
35973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35974 _ACEOF
35975  break
35976 fi
35977 done
35978
35979
35980 HAVE_SOME_SLEEP_FUNC=0
35981 if test "$USE_BEOS" = 1; then
35982             cat >>confdefs.h <<\_ACEOF
35983 #define HAVE_SLEEP 1
35984 _ACEOF
35985
35986     HAVE_SOME_SLEEP_FUNC=1
35987 fi
35988
35989 if test "$USE_DARWIN" = 1; then
35990             cat >>confdefs.h <<\_ACEOF
35991 #define HAVE_USLEEP 1
35992 _ACEOF
35993
35994     HAVE_SOME_SLEEP_FUNC=1
35995 fi
35996
35997 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35998         POSIX4_LINK=
35999
36000 for ac_func in nanosleep
36001 do
36002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36003 echo "$as_me:$LINENO: checking for $ac_func" >&5
36004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36005 if eval "test \"\${$as_ac_var+set}\" = set"; then
36006   echo $ECHO_N "(cached) $ECHO_C" >&6
36007 else
36008   cat >conftest.$ac_ext <<_ACEOF
36009 /* confdefs.h.  */
36010 _ACEOF
36011 cat confdefs.h >>conftest.$ac_ext
36012 cat >>conftest.$ac_ext <<_ACEOF
36013 /* end confdefs.h.  */
36014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36016 #define $ac_func innocuous_$ac_func
36017
36018 /* System header to define __stub macros and hopefully few prototypes,
36019     which can conflict with char $ac_func (); below.
36020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36021     <limits.h> exists even on freestanding compilers.  */
36022
36023 #ifdef __STDC__
36024 # include <limits.h>
36025 #else
36026 # include <assert.h>
36027 #endif
36028
36029 #undef $ac_func
36030
36031 /* Override any gcc2 internal prototype to avoid an error.  */
36032 #ifdef __cplusplus
36033 extern "C"
36034 {
36035 #endif
36036 /* We use char because int might match the return type of a gcc2
36037    builtin and then its argument prototype would still apply.  */
36038 char $ac_func ();
36039 /* The GNU C library defines this for functions which it implements
36040     to always fail with ENOSYS.  Some functions are actually named
36041     something starting with __ and the normal name is an alias.  */
36042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36043 choke me
36044 #else
36045 char (*f) () = $ac_func;
36046 #endif
36047 #ifdef __cplusplus
36048 }
36049 #endif
36050
36051 int
36052 main ()
36053 {
36054 return f != $ac_func;
36055   ;
36056   return 0;
36057 }
36058 _ACEOF
36059 rm -f conftest.$ac_objext conftest$ac_exeext
36060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36061   (eval $ac_link) 2>conftest.er1
36062   ac_status=$?
36063   grep -v '^ *+' conftest.er1 >conftest.err
36064   rm -f conftest.er1
36065   cat conftest.err >&5
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); } &&
36068          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070   (eval $ac_try) 2>&5
36071   ac_status=$?
36072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073   (exit $ac_status); }; } &&
36074          { ac_try='test -s conftest$ac_exeext'
36075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076   (eval $ac_try) 2>&5
36077   ac_status=$?
36078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079   (exit $ac_status); }; }; then
36080   eval "$as_ac_var=yes"
36081 else
36082   echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36084
36085 eval "$as_ac_var=no"
36086 fi
36087 rm -f conftest.err conftest.$ac_objext \
36088       conftest$ac_exeext conftest.$ac_ext
36089 fi
36090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36092 if test `eval echo '${'$as_ac_var'}'` = yes; then
36093   cat >>confdefs.h <<_ACEOF
36094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36095 _ACEOF
36096  cat >>confdefs.h <<\_ACEOF
36097 #define HAVE_NANOSLEEP 1
36098 _ACEOF
36099
36100 else
36101
36102             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36103 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36104 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36105   echo $ECHO_N "(cached) $ECHO_C" >&6
36106 else
36107   ac_check_lib_save_LIBS=$LIBS
36108 LIBS="-lposix4  $LIBS"
36109 cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115
36116 /* Override any gcc2 internal prototype to avoid an error.  */
36117 #ifdef __cplusplus
36118 extern "C"
36119 #endif
36120 /* We use char because int might match the return type of a gcc2
36121    builtin and then its argument prototype would still apply.  */
36122 char nanosleep ();
36123 int
36124 main ()
36125 {
36126 nanosleep ();
36127   ;
36128   return 0;
36129 }
36130 _ACEOF
36131 rm -f conftest.$ac_objext conftest$ac_exeext
36132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36133   (eval $ac_link) 2>conftest.er1
36134   ac_status=$?
36135   grep -v '^ *+' conftest.er1 >conftest.err
36136   rm -f conftest.er1
36137   cat conftest.err >&5
36138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139   (exit $ac_status); } &&
36140          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142   (eval $ac_try) 2>&5
36143   ac_status=$?
36144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145   (exit $ac_status); }; } &&
36146          { ac_try='test -s conftest$ac_exeext'
36147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36148   (eval $ac_try) 2>&5
36149   ac_status=$?
36150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151   (exit $ac_status); }; }; then
36152   ac_cv_lib_posix4_nanosleep=yes
36153 else
36154   echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36156
36157 ac_cv_lib_posix4_nanosleep=no
36158 fi
36159 rm -f conftest.err conftest.$ac_objext \
36160       conftest$ac_exeext conftest.$ac_ext
36161 LIBS=$ac_check_lib_save_LIBS
36162 fi
36163 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36164 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36165 if test $ac_cv_lib_posix4_nanosleep = yes; then
36166
36167                     cat >>confdefs.h <<\_ACEOF
36168 #define HAVE_NANOSLEEP 1
36169 _ACEOF
36170
36171                     POSIX4_LINK=" -lposix4"
36172
36173 else
36174
36175
36176 for ac_func in usleep
36177 do
36178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36179 echo "$as_me:$LINENO: checking for $ac_func" >&5
36180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36181 if eval "test \"\${$as_ac_var+set}\" = set"; then
36182   echo $ECHO_N "(cached) $ECHO_C" >&6
36183 else
36184   cat >conftest.$ac_ext <<_ACEOF
36185 /* confdefs.h.  */
36186 _ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h.  */
36190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36192 #define $ac_func innocuous_$ac_func
36193
36194 /* System header to define __stub macros and hopefully few prototypes,
36195     which can conflict with char $ac_func (); below.
36196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36197     <limits.h> exists even on freestanding compilers.  */
36198
36199 #ifdef __STDC__
36200 # include <limits.h>
36201 #else
36202 # include <assert.h>
36203 #endif
36204
36205 #undef $ac_func
36206
36207 /* Override any gcc2 internal prototype to avoid an error.  */
36208 #ifdef __cplusplus
36209 extern "C"
36210 {
36211 #endif
36212 /* We use char because int might match the return type of a gcc2
36213    builtin and then its argument prototype would still apply.  */
36214 char $ac_func ();
36215 /* The GNU C library defines this for functions which it implements
36216     to always fail with ENOSYS.  Some functions are actually named
36217     something starting with __ and the normal name is an alias.  */
36218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36219 choke me
36220 #else
36221 char (*f) () = $ac_func;
36222 #endif
36223 #ifdef __cplusplus
36224 }
36225 #endif
36226
36227 int
36228 main ()
36229 {
36230 return f != $ac_func;
36231   ;
36232   return 0;
36233 }
36234 _ACEOF
36235 rm -f conftest.$ac_objext conftest$ac_exeext
36236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36237   (eval $ac_link) 2>conftest.er1
36238   ac_status=$?
36239   grep -v '^ *+' conftest.er1 >conftest.err
36240   rm -f conftest.er1
36241   cat conftest.err >&5
36242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243   (exit $ac_status); } &&
36244          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246   (eval $ac_try) 2>&5
36247   ac_status=$?
36248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249   (exit $ac_status); }; } &&
36250          { ac_try='test -s conftest$ac_exeext'
36251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252   (eval $ac_try) 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); }; }; then
36256   eval "$as_ac_var=yes"
36257 else
36258   echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36260
36261 eval "$as_ac_var=no"
36262 fi
36263 rm -f conftest.err conftest.$ac_objext \
36264       conftest$ac_exeext conftest.$ac_ext
36265 fi
36266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36268 if test `eval echo '${'$as_ac_var'}'` = yes; then
36269   cat >>confdefs.h <<_ACEOF
36270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36271 _ACEOF
36272  cat >>confdefs.h <<\_ACEOF
36273 #define HAVE_USLEEP 1
36274 _ACEOF
36275
36276 else
36277   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36278 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36279
36280 fi
36281 done
36282
36283
36284
36285 fi
36286
36287
36288
36289 fi
36290 done
36291
36292 fi
36293
36294
36295
36296 for ac_func in uname gethostname
36297 do
36298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36299 echo "$as_me:$LINENO: checking for $ac_func" >&5
36300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36301 if eval "test \"\${$as_ac_var+set}\" = set"; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36312 #define $ac_func innocuous_$ac_func
36313
36314 /* System header to define __stub macros and hopefully few prototypes,
36315     which can conflict with char $ac_func (); below.
36316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36317     <limits.h> exists even on freestanding compilers.  */
36318
36319 #ifdef __STDC__
36320 # include <limits.h>
36321 #else
36322 # include <assert.h>
36323 #endif
36324
36325 #undef $ac_func
36326
36327 /* Override any gcc2 internal prototype to avoid an error.  */
36328 #ifdef __cplusplus
36329 extern "C"
36330 {
36331 #endif
36332 /* We use char because int might match the return type of a gcc2
36333    builtin and then its argument prototype would still apply.  */
36334 char $ac_func ();
36335 /* The GNU C library defines this for functions which it implements
36336     to always fail with ENOSYS.  Some functions are actually named
36337     something starting with __ and the normal name is an alias.  */
36338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36339 choke me
36340 #else
36341 char (*f) () = $ac_func;
36342 #endif
36343 #ifdef __cplusplus
36344 }
36345 #endif
36346
36347 int
36348 main ()
36349 {
36350 return f != $ac_func;
36351   ;
36352   return 0;
36353 }
36354 _ACEOF
36355 rm -f conftest.$ac_objext conftest$ac_exeext
36356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36357   (eval $ac_link) 2>conftest.er1
36358   ac_status=$?
36359   grep -v '^ *+' conftest.er1 >conftest.err
36360   rm -f conftest.er1
36361   cat conftest.err >&5
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); } &&
36364          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366   (eval $ac_try) 2>&5
36367   ac_status=$?
36368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369   (exit $ac_status); }; } &&
36370          { ac_try='test -s conftest$ac_exeext'
36371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372   (eval $ac_try) 2>&5
36373   ac_status=$?
36374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375   (exit $ac_status); }; }; then
36376   eval "$as_ac_var=yes"
36377 else
36378   echo "$as_me: failed program was:" >&5
36379 sed 's/^/| /' conftest.$ac_ext >&5
36380
36381 eval "$as_ac_var=no"
36382 fi
36383 rm -f conftest.err conftest.$ac_objext \
36384       conftest$ac_exeext conftest.$ac_ext
36385 fi
36386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36388 if test `eval echo '${'$as_ac_var'}'` = yes; then
36389   cat >>confdefs.h <<_ACEOF
36390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36391 _ACEOF
36392  break
36393 fi
36394 done
36395
36396
36397
36398 for ac_func in strtok_r
36399 do
36400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36401 echo "$as_me:$LINENO: checking for $ac_func" >&5
36402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36403 if eval "test \"\${$as_ac_var+set}\" = set"; then
36404   echo $ECHO_N "(cached) $ECHO_C" >&6
36405 else
36406   cat >conftest.$ac_ext <<_ACEOF
36407 /* confdefs.h.  */
36408 _ACEOF
36409 cat confdefs.h >>conftest.$ac_ext
36410 cat >>conftest.$ac_ext <<_ACEOF
36411 /* end confdefs.h.  */
36412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36414 #define $ac_func innocuous_$ac_func
36415
36416 /* System header to define __stub macros and hopefully few prototypes,
36417     which can conflict with char $ac_func (); below.
36418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36419     <limits.h> exists even on freestanding compilers.  */
36420
36421 #ifdef __STDC__
36422 # include <limits.h>
36423 #else
36424 # include <assert.h>
36425 #endif
36426
36427 #undef $ac_func
36428
36429 /* Override any gcc2 internal prototype to avoid an error.  */
36430 #ifdef __cplusplus
36431 extern "C"
36432 {
36433 #endif
36434 /* We use char because int might match the return type of a gcc2
36435    builtin and then its argument prototype would still apply.  */
36436 char $ac_func ();
36437 /* The GNU C library defines this for functions which it implements
36438     to always fail with ENOSYS.  Some functions are actually named
36439     something starting with __ and the normal name is an alias.  */
36440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36441 choke me
36442 #else
36443 char (*f) () = $ac_func;
36444 #endif
36445 #ifdef __cplusplus
36446 }
36447 #endif
36448
36449 int
36450 main ()
36451 {
36452 return f != $ac_func;
36453   ;
36454   return 0;
36455 }
36456 _ACEOF
36457 rm -f conftest.$ac_objext conftest$ac_exeext
36458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36459   (eval $ac_link) 2>conftest.er1
36460   ac_status=$?
36461   grep -v '^ *+' conftest.er1 >conftest.err
36462   rm -f conftest.er1
36463   cat conftest.err >&5
36464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465   (exit $ac_status); } &&
36466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468   (eval $ac_try) 2>&5
36469   ac_status=$?
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); }; } &&
36472          { ac_try='test -s conftest$ac_exeext'
36473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474   (eval $ac_try) 2>&5
36475   ac_status=$?
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); }; }; then
36478   eval "$as_ac_var=yes"
36479 else
36480   echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36482
36483 eval "$as_ac_var=no"
36484 fi
36485 rm -f conftest.err conftest.$ac_objext \
36486       conftest$ac_exeext conftest.$ac_ext
36487 fi
36488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36490 if test `eval echo '${'$as_ac_var'}'` = yes; then
36491   cat >>confdefs.h <<_ACEOF
36492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36493 _ACEOF
36494
36495 fi
36496 done
36497
36498
36499 INET_LINK=
36500
36501 for ac_func in inet_addr
36502 do
36503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36504 echo "$as_me:$LINENO: checking for $ac_func" >&5
36505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36506 if eval "test \"\${$as_ac_var+set}\" = set"; then
36507   echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509   cat >conftest.$ac_ext <<_ACEOF
36510 /* confdefs.h.  */
36511 _ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h.  */
36515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36517 #define $ac_func innocuous_$ac_func
36518
36519 /* System header to define __stub macros and hopefully few prototypes,
36520     which can conflict with char $ac_func (); below.
36521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36522     <limits.h> exists even on freestanding compilers.  */
36523
36524 #ifdef __STDC__
36525 # include <limits.h>
36526 #else
36527 # include <assert.h>
36528 #endif
36529
36530 #undef $ac_func
36531
36532 /* Override any gcc2 internal prototype to avoid an error.  */
36533 #ifdef __cplusplus
36534 extern "C"
36535 {
36536 #endif
36537 /* We use char because int might match the return type of a gcc2
36538    builtin and then its argument prototype would still apply.  */
36539 char $ac_func ();
36540 /* The GNU C library defines this for functions which it implements
36541     to always fail with ENOSYS.  Some functions are actually named
36542     something starting with __ and the normal name is an alias.  */
36543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36544 choke me
36545 #else
36546 char (*f) () = $ac_func;
36547 #endif
36548 #ifdef __cplusplus
36549 }
36550 #endif
36551
36552 int
36553 main ()
36554 {
36555 return f != $ac_func;
36556   ;
36557   return 0;
36558 }
36559 _ACEOF
36560 rm -f conftest.$ac_objext conftest$ac_exeext
36561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36562   (eval $ac_link) 2>conftest.er1
36563   ac_status=$?
36564   grep -v '^ *+' conftest.er1 >conftest.err
36565   rm -f conftest.er1
36566   cat conftest.err >&5
36567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568   (exit $ac_status); } &&
36569          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571   (eval $ac_try) 2>&5
36572   ac_status=$?
36573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574   (exit $ac_status); }; } &&
36575          { ac_try='test -s conftest$ac_exeext'
36576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577   (eval $ac_try) 2>&5
36578   ac_status=$?
36579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580   (exit $ac_status); }; }; then
36581   eval "$as_ac_var=yes"
36582 else
36583   echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36585
36586 eval "$as_ac_var=no"
36587 fi
36588 rm -f conftest.err conftest.$ac_objext \
36589       conftest$ac_exeext conftest.$ac_ext
36590 fi
36591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36593 if test `eval echo '${'$as_ac_var'}'` = yes; then
36594   cat >>confdefs.h <<_ACEOF
36595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36596 _ACEOF
36597  cat >>confdefs.h <<\_ACEOF
36598 #define HAVE_INET_ADDR 1
36599 _ACEOF
36600
36601 else
36602
36603         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36604 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36605 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36606   echo $ECHO_N "(cached) $ECHO_C" >&6
36607 else
36608   ac_check_lib_save_LIBS=$LIBS
36609 LIBS="-lnsl  $LIBS"
36610 cat >conftest.$ac_ext <<_ACEOF
36611 /* confdefs.h.  */
36612 _ACEOF
36613 cat confdefs.h >>conftest.$ac_ext
36614 cat >>conftest.$ac_ext <<_ACEOF
36615 /* end confdefs.h.  */
36616
36617 /* Override any gcc2 internal prototype to avoid an error.  */
36618 #ifdef __cplusplus
36619 extern "C"
36620 #endif
36621 /* We use char because int might match the return type of a gcc2
36622    builtin and then its argument prototype would still apply.  */
36623 char inet_addr ();
36624 int
36625 main ()
36626 {
36627 inet_addr ();
36628   ;
36629   return 0;
36630 }
36631 _ACEOF
36632 rm -f conftest.$ac_objext conftest$ac_exeext
36633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36634   (eval $ac_link) 2>conftest.er1
36635   ac_status=$?
36636   grep -v '^ *+' conftest.er1 >conftest.err
36637   rm -f conftest.er1
36638   cat conftest.err >&5
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); } &&
36641          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643   (eval $ac_try) 2>&5
36644   ac_status=$?
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); }; } &&
36647          { ac_try='test -s conftest$ac_exeext'
36648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649   (eval $ac_try) 2>&5
36650   ac_status=$?
36651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652   (exit $ac_status); }; }; then
36653   ac_cv_lib_nsl_inet_addr=yes
36654 else
36655   echo "$as_me: failed program was:" >&5
36656 sed 's/^/| /' conftest.$ac_ext >&5
36657
36658 ac_cv_lib_nsl_inet_addr=no
36659 fi
36660 rm -f conftest.err conftest.$ac_objext \
36661       conftest$ac_exeext conftest.$ac_ext
36662 LIBS=$ac_check_lib_save_LIBS
36663 fi
36664 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36665 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36666 if test $ac_cv_lib_nsl_inet_addr = yes; then
36667   INET_LINK="nsl"
36668 else
36669
36670                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36671 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36672 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36673   echo $ECHO_N "(cached) $ECHO_C" >&6
36674 else
36675   ac_check_lib_save_LIBS=$LIBS
36676 LIBS="-lresolv  $LIBS"
36677 cat >conftest.$ac_ext <<_ACEOF
36678 /* confdefs.h.  */
36679 _ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h.  */
36683
36684 /* Override any gcc2 internal prototype to avoid an error.  */
36685 #ifdef __cplusplus
36686 extern "C"
36687 #endif
36688 /* We use char because int might match the return type of a gcc2
36689    builtin and then its argument prototype would still apply.  */
36690 char inet_addr ();
36691 int
36692 main ()
36693 {
36694 inet_addr ();
36695   ;
36696   return 0;
36697 }
36698 _ACEOF
36699 rm -f conftest.$ac_objext conftest$ac_exeext
36700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36701   (eval $ac_link) 2>conftest.er1
36702   ac_status=$?
36703   grep -v '^ *+' conftest.er1 >conftest.err
36704   rm -f conftest.er1
36705   cat conftest.err >&5
36706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); } &&
36708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710   (eval $ac_try) 2>&5
36711   ac_status=$?
36712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713   (exit $ac_status); }; } &&
36714          { ac_try='test -s conftest$ac_exeext'
36715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716   (eval $ac_try) 2>&5
36717   ac_status=$?
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); }; }; then
36720   ac_cv_lib_resolv_inet_addr=yes
36721 else
36722   echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36724
36725 ac_cv_lib_resolv_inet_addr=no
36726 fi
36727 rm -f conftest.err conftest.$ac_objext \
36728       conftest$ac_exeext conftest.$ac_ext
36729 LIBS=$ac_check_lib_save_LIBS
36730 fi
36731 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36732 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36733 if test $ac_cv_lib_resolv_inet_addr = yes; then
36734   INET_LINK="resolv"
36735 else
36736
36737                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36738 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36739 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36740   echo $ECHO_N "(cached) $ECHO_C" >&6
36741 else
36742   ac_check_lib_save_LIBS=$LIBS
36743 LIBS="-lsocket  $LIBS"
36744 cat >conftest.$ac_ext <<_ACEOF
36745 /* confdefs.h.  */
36746 _ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h.  */
36750
36751 /* Override any gcc2 internal prototype to avoid an error.  */
36752 #ifdef __cplusplus
36753 extern "C"
36754 #endif
36755 /* We use char because int might match the return type of a gcc2
36756    builtin and then its argument prototype would still apply.  */
36757 char inet_addr ();
36758 int
36759 main ()
36760 {
36761 inet_addr ();
36762   ;
36763   return 0;
36764 }
36765 _ACEOF
36766 rm -f conftest.$ac_objext conftest$ac_exeext
36767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36768   (eval $ac_link) 2>conftest.er1
36769   ac_status=$?
36770   grep -v '^ *+' conftest.er1 >conftest.err
36771   rm -f conftest.er1
36772   cat conftest.err >&5
36773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774   (exit $ac_status); } &&
36775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777   (eval $ac_try) 2>&5
36778   ac_status=$?
36779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780   (exit $ac_status); }; } &&
36781          { ac_try='test -s conftest$ac_exeext'
36782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36783   (eval $ac_try) 2>&5
36784   ac_status=$?
36785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786   (exit $ac_status); }; }; then
36787   ac_cv_lib_socket_inet_addr=yes
36788 else
36789   echo "$as_me: failed program was:" >&5
36790 sed 's/^/| /' conftest.$ac_ext >&5
36791
36792 ac_cv_lib_socket_inet_addr=no
36793 fi
36794 rm -f conftest.err conftest.$ac_objext \
36795       conftest$ac_exeext conftest.$ac_ext
36796 LIBS=$ac_check_lib_save_LIBS
36797 fi
36798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36799 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36800 if test $ac_cv_lib_socket_inet_addr = yes; then
36801   INET_LINK="socket"
36802
36803 fi
36804
36805
36806
36807 fi
36808
36809
36810
36811 fi
36812
36813
36814
36815 fi
36816 done
36817
36818
36819
36820 for ac_func in inet_aton
36821 do
36822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36823 echo "$as_me:$LINENO: checking for $ac_func" >&5
36824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36825 if eval "test \"\${$as_ac_var+set}\" = set"; then
36826   echo $ECHO_N "(cached) $ECHO_C" >&6
36827 else
36828   cat >conftest.$ac_ext <<_ACEOF
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36836 #define $ac_func innocuous_$ac_func
36837
36838 /* System header to define __stub macros and hopefully few prototypes,
36839     which can conflict with char $ac_func (); below.
36840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36841     <limits.h> exists even on freestanding compilers.  */
36842
36843 #ifdef __STDC__
36844 # include <limits.h>
36845 #else
36846 # include <assert.h>
36847 #endif
36848
36849 #undef $ac_func
36850
36851 /* Override any gcc2 internal prototype to avoid an error.  */
36852 #ifdef __cplusplus
36853 extern "C"
36854 {
36855 #endif
36856 /* We use char because int might match the return type of a gcc2
36857    builtin and then its argument prototype would still apply.  */
36858 char $ac_func ();
36859 /* The GNU C library defines this for functions which it implements
36860     to always fail with ENOSYS.  Some functions are actually named
36861     something starting with __ and the normal name is an alias.  */
36862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36863 choke me
36864 #else
36865 char (*f) () = $ac_func;
36866 #endif
36867 #ifdef __cplusplus
36868 }
36869 #endif
36870
36871 int
36872 main ()
36873 {
36874 return f != $ac_func;
36875   ;
36876   return 0;
36877 }
36878 _ACEOF
36879 rm -f conftest.$ac_objext conftest$ac_exeext
36880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36881   (eval $ac_link) 2>conftest.er1
36882   ac_status=$?
36883   grep -v '^ *+' conftest.er1 >conftest.err
36884   rm -f conftest.er1
36885   cat conftest.err >&5
36886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887   (exit $ac_status); } &&
36888          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890   (eval $ac_try) 2>&5
36891   ac_status=$?
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); }; } &&
36894          { ac_try='test -s conftest$ac_exeext'
36895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36896   (eval $ac_try) 2>&5
36897   ac_status=$?
36898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899   (exit $ac_status); }; }; then
36900   eval "$as_ac_var=yes"
36901 else
36902   echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905 eval "$as_ac_var=no"
36906 fi
36907 rm -f conftest.err conftest.$ac_objext \
36908       conftest$ac_exeext conftest.$ac_ext
36909 fi
36910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36912 if test `eval echo '${'$as_ac_var'}'` = yes; then
36913   cat >>confdefs.h <<_ACEOF
36914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36915 _ACEOF
36916  cat >>confdefs.h <<\_ACEOF
36917 #define HAVE_INET_ATON 1
36918 _ACEOF
36919
36920 else
36921
36922                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36923 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36924 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36925 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36926   echo $ECHO_N "(cached) $ECHO_C" >&6
36927 else
36928   ac_check_lib_save_LIBS=$LIBS
36929 LIBS="-l$INET_LINK  $LIBS"
36930 cat >conftest.$ac_ext <<_ACEOF
36931 /* confdefs.h.  */
36932 _ACEOF
36933 cat confdefs.h >>conftest.$ac_ext
36934 cat >>conftest.$ac_ext <<_ACEOF
36935 /* end confdefs.h.  */
36936
36937 /* Override any gcc2 internal prototype to avoid an error.  */
36938 #ifdef __cplusplus
36939 extern "C"
36940 #endif
36941 /* We use char because int might match the return type of a gcc2
36942    builtin and then its argument prototype would still apply.  */
36943 char inet_aton ();
36944 int
36945 main ()
36946 {
36947 inet_aton ();
36948   ;
36949   return 0;
36950 }
36951 _ACEOF
36952 rm -f conftest.$ac_objext conftest$ac_exeext
36953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36954   (eval $ac_link) 2>conftest.er1
36955   ac_status=$?
36956   grep -v '^ *+' conftest.er1 >conftest.err
36957   rm -f conftest.er1
36958   cat conftest.err >&5
36959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960   (exit $ac_status); } &&
36961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963   (eval $ac_try) 2>&5
36964   ac_status=$?
36965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966   (exit $ac_status); }; } &&
36967          { ac_try='test -s conftest$ac_exeext'
36968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969   (eval $ac_try) 2>&5
36970   ac_status=$?
36971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972   (exit $ac_status); }; }; then
36973   eval "$as_ac_Lib=yes"
36974 else
36975   echo "$as_me: failed program was:" >&5
36976 sed 's/^/| /' conftest.$ac_ext >&5
36977
36978 eval "$as_ac_Lib=no"
36979 fi
36980 rm -f conftest.err conftest.$ac_objext \
36981       conftest$ac_exeext conftest.$ac_ext
36982 LIBS=$ac_check_lib_save_LIBS
36983 fi
36984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36985 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36986 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36987   cat >>confdefs.h <<\_ACEOF
36988 #define HAVE_INET_ATON 1
36989 _ACEOF
36990
36991 fi
36992
36993
36994 fi
36995 done
36996
36997
36998 if test "x$INET_LINK" != "x"; then
36999     cat >>confdefs.h <<\_ACEOF
37000 #define HAVE_INET_ADDR 1
37001 _ACEOF
37002
37003     INET_LINK=" -l$INET_LINK"
37004 fi
37005
37006 fi
37007
37008
37009
37010 EXTRALIBS_ESD=
37011 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37012 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37013 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37014   echo $ECHO_N "(cached) $ECHO_C" >&6
37015 else
37016   ac_check_lib_save_LIBS=$LIBS
37017 LIBS="-lesd  $LIBS"
37018 cat >conftest.$ac_ext <<_ACEOF
37019 /* confdefs.h.  */
37020 _ACEOF
37021 cat confdefs.h >>conftest.$ac_ext
37022 cat >>conftest.$ac_ext <<_ACEOF
37023 /* end confdefs.h.  */
37024
37025 /* Override any gcc2 internal prototype to avoid an error.  */
37026 #ifdef __cplusplus
37027 extern "C"
37028 #endif
37029 /* We use char because int might match the return type of a gcc2
37030    builtin and then its argument prototype would still apply.  */
37031 char esd_close ();
37032 int
37033 main ()
37034 {
37035 esd_close ();
37036   ;
37037   return 0;
37038 }
37039 _ACEOF
37040 rm -f conftest.$ac_objext conftest$ac_exeext
37041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37042   (eval $ac_link) 2>conftest.er1
37043   ac_status=$?
37044   grep -v '^ *+' conftest.er1 >conftest.err
37045   rm -f conftest.er1
37046   cat conftest.err >&5
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); } &&
37049          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051   (eval $ac_try) 2>&5
37052   ac_status=$?
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; } &&
37055          { ac_try='test -s conftest$ac_exeext'
37056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057   (eval $ac_try) 2>&5
37058   ac_status=$?
37059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060   (exit $ac_status); }; }; then
37061   ac_cv_lib_esd_esd_close=yes
37062 else
37063   echo "$as_me: failed program was:" >&5
37064 sed 's/^/| /' conftest.$ac_ext >&5
37065
37066 ac_cv_lib_esd_esd_close=no
37067 fi
37068 rm -f conftest.err conftest.$ac_objext \
37069       conftest$ac_exeext conftest.$ac_ext
37070 LIBS=$ac_check_lib_save_LIBS
37071 fi
37072 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37073 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37074 if test $ac_cv_lib_esd_esd_close = yes; then
37075
37076
37077 for ac_header in esd.h
37078 do
37079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37081   echo "$as_me:$LINENO: checking for $ac_header" >&5
37082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37084   echo $ECHO_N "(cached) $ECHO_C" >&6
37085 fi
37086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37088 else
37089   # Is the header compilable?
37090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37092 cat >conftest.$ac_ext <<_ACEOF
37093 /* confdefs.h.  */
37094 _ACEOF
37095 cat confdefs.h >>conftest.$ac_ext
37096 cat >>conftest.$ac_ext <<_ACEOF
37097 /* end confdefs.h.  */
37098 $ac_includes_default
37099 #include <$ac_header>
37100 _ACEOF
37101 rm -f conftest.$ac_objext
37102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37103   (eval $ac_compile) 2>conftest.er1
37104   ac_status=$?
37105   grep -v '^ *+' conftest.er1 >conftest.err
37106   rm -f conftest.er1
37107   cat conftest.err >&5
37108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109   (exit $ac_status); } &&
37110          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112   (eval $ac_try) 2>&5
37113   ac_status=$?
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); }; } &&
37116          { ac_try='test -s conftest.$ac_objext'
37117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37118   (eval $ac_try) 2>&5
37119   ac_status=$?
37120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121   (exit $ac_status); }; }; then
37122   ac_header_compiler=yes
37123 else
37124   echo "$as_me: failed program was:" >&5
37125 sed 's/^/| /' conftest.$ac_ext >&5
37126
37127 ac_header_compiler=no
37128 fi
37129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37131 echo "${ECHO_T}$ac_header_compiler" >&6
37132
37133 # Is the header present?
37134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37136 cat >conftest.$ac_ext <<_ACEOF
37137 /* confdefs.h.  */
37138 _ACEOF
37139 cat confdefs.h >>conftest.$ac_ext
37140 cat >>conftest.$ac_ext <<_ACEOF
37141 /* end confdefs.h.  */
37142 #include <$ac_header>
37143 _ACEOF
37144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37146   ac_status=$?
37147   grep -v '^ *+' conftest.er1 >conftest.err
37148   rm -f conftest.er1
37149   cat conftest.err >&5
37150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151   (exit $ac_status); } >/dev/null; then
37152   if test -s conftest.err; then
37153     ac_cpp_err=$ac_cxx_preproc_warn_flag
37154     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37155   else
37156     ac_cpp_err=
37157   fi
37158 else
37159   ac_cpp_err=yes
37160 fi
37161 if test -z "$ac_cpp_err"; then
37162   ac_header_preproc=yes
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167   ac_header_preproc=no
37168 fi
37169 rm -f conftest.err conftest.$ac_ext
37170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37171 echo "${ECHO_T}$ac_header_preproc" >&6
37172
37173 # So?  What about this header?
37174 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37175   yes:no: )
37176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37180     ac_header_preproc=yes
37181     ;;
37182   no:yes:* )
37183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37195     (
37196       cat <<\_ASBOX
37197 ## ----------------------------------------- ##
37198 ## Report this to wx-dev@lists.wxwidgets.org ##
37199 ## ----------------------------------------- ##
37200 _ASBOX
37201     ) |
37202       sed "s/^/$as_me: WARNING:     /" >&2
37203     ;;
37204 esac
37205 echo "$as_me:$LINENO: checking for $ac_header" >&5
37206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37208   echo $ECHO_N "(cached) $ECHO_C" >&6
37209 else
37210   eval "$as_ac_Header=\$ac_header_preproc"
37211 fi
37212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37214
37215 fi
37216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37217   cat >>confdefs.h <<_ACEOF
37218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37219 _ACEOF
37220
37221     EXTRALIBS_ESD="-lesd"
37222
37223 fi
37224
37225 done
37226
37227
37228 fi
37229
37230
37231
37232 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37233 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37234 cat >conftest.$ac_ext <<_ACEOF
37235 /* confdefs.h.  */
37236 _ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h.  */
37240 #ifdef __linux__
37241                 #include <linux/cdrom.h>
37242                 #else
37243                 /* For Solaris */
37244                 #include <sys/cdio.h>
37245                 #endif
37246
37247 int
37248 main ()
37249 {
37250 struct cdrom_tocentry entry, old_entry;
37251   ;
37252   return 0;
37253 }
37254 _ACEOF
37255 rm -f conftest.$ac_objext
37256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37257   (eval $ac_compile) 2>conftest.er1
37258   ac_status=$?
37259   grep -v '^ *+' conftest.er1 >conftest.err
37260   rm -f conftest.er1
37261   cat conftest.err >&5
37262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263   (exit $ac_status); } &&
37264          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37266   (eval $ac_try) 2>&5
37267   ac_status=$?
37268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269   (exit $ac_status); }; } &&
37270          { ac_try='test -s conftest.$ac_objext'
37271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37272   (eval $ac_try) 2>&5
37273   ac_status=$?
37274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275   (exit $ac_status); }; }; then
37276   echo "$as_me:$LINENO: result: yes" >&5
37277 echo "${ECHO_T}yes" >&6
37278                 cat >>confdefs.h <<\_ACEOF
37279 #define HAVE_KNOWN_CDROM_INTERFACE 1
37280 _ACEOF
37281
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286 echo "$as_me:$LINENO: result: no" >&5
37287 echo "${ECHO_T}no" >&6
37288 fi
37289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37290
37291
37292 cat >confcache <<\_ACEOF
37293 # This file is a shell script that caches the results of configure
37294 # tests run on this system so they can be shared between configure
37295 # scripts and configure runs, see configure's option --config-cache.
37296 # It is not useful on other systems.  If it contains results you don't
37297 # want to keep, you may remove or edit it.
37298 #
37299 # config.status only pays attention to the cache file if you give it
37300 # the --recheck option to rerun configure.
37301 #
37302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37304 # following values.
37305
37306 _ACEOF
37307
37308 # The following way of writing the cache mishandles newlines in values,
37309 # but we know of no workaround that is simple, portable, and efficient.
37310 # So, don't put newlines in cache variables' values.
37311 # Ultrix sh set writes to stderr and can't be redirected directly,
37312 # and sets the high bit in the cache file unless we assign to the vars.
37313 {
37314   (set) 2>&1 |
37315     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37316     *ac_space=\ *)
37317       # `set' does not quote correctly, so add quotes (double-quote
37318       # substitution turns \\\\ into \\, and sed turns \\ into \).
37319       sed -n \
37320         "s/'/'\\\\''/g;
37321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37322       ;;
37323     *)
37324       # `set' quotes correctly as required by POSIX, so do not add quotes.
37325       sed -n \
37326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37327       ;;
37328     esac;
37329 } |
37330   sed '
37331      t clear
37332      : clear
37333      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37334      t end
37335      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37336      : end' >>confcache
37337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37338   if test -w $cache_file; then
37339     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37340     cat confcache >$cache_file
37341   else
37342     echo "not updating unwritable cache $cache_file"
37343   fi
37344 fi
37345 rm -f confcache
37346
37347
37348 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37349
37350
37351     THREADS_LINK=
37352     THREADS_CXXFLAGS=
37353
37354     if test "$wxUSE_THREADS" = "yes" ; then
37355         if test "$USE_BEOS" = 1; then
37356             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37357 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37358             wxUSE_THREADS="no"
37359         fi
37360     fi
37361
37362     if test "$wxUSE_THREADS" = "yes" ; then
37363
37364
37365                                 THREAD_OPTS="-pthread"
37366         case "${host}" in
37367           *-*-solaris2* | *-*-sunos4* )
37368                 if test "x$GCC" = "xyes"; then
37369                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
37370                 else
37371                     THREAD_OPTS="-mt $THREAD_OPTS"
37372                 fi
37373                 ;;
37374           *-*-freebsd*)
37375                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37376                 ;;
37377           *-*-darwin* | *-*-cygwin* )
37378                                                 THREAD_OPTS=""
37379                 ;;
37380           *-*-aix*)
37381                                 THREAD_OPTS="pthreads"
37382                 ;;
37383           *-hp-hpux* )
37384                 if test "x$GCC" = "xyes"; then
37385                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37386                         THREAD_OPTS=""
37387                 else
37388                                                             THREAD_OPTS="-mt"
37389                 fi
37390                 ;;
37391
37392           *-*-irix* )
37393                                                                 if test "x$GCC" = "xyes"; then
37394                     THREAD_OPTS=""
37395                 fi
37396                 ;;
37397
37398           *-*-*UnixWare*)
37399                                 if test "x$GCC" != "xyes"; then
37400                     THREAD_OPTS="-Ethread"
37401                 fi
37402                 ;;
37403         esac
37404
37405                                 THREAD_OPTS="$THREAD_OPTS pthread none"
37406
37407                 THREADS_OK=no
37408         for flag in $THREAD_OPTS; do
37409             case $flag in
37410                 none)
37411                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37412 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37413                     ;;
37414
37415                 -*)
37416                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37417 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37418                     THREADS_CXXFLAGS="$flag"
37419                     ;;
37420
37421                 *)
37422                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37423 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37424                     THREADS_LINK="-l$flag"
37425                     ;;
37426               esac
37427
37428               save_LIBS="$LIBS"
37429               save_CXXFLAGS="$CXXFLAGS"
37430               LIBS="$THREADS_LINK $LIBS"
37431               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
37432
37433               cat >conftest.$ac_ext <<_ACEOF
37434 /* confdefs.h.  */
37435 _ACEOF
37436 cat confdefs.h >>conftest.$ac_ext
37437 cat >>conftest.$ac_ext <<_ACEOF
37438 /* end confdefs.h.  */
37439 #include <pthread.h>
37440 int
37441 main ()
37442 {
37443 pthread_create(0,0,0,0);
37444   ;
37445   return 0;
37446 }
37447 _ACEOF
37448 rm -f conftest.$ac_objext conftest$ac_exeext
37449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37450   (eval $ac_link) 2>conftest.er1
37451   ac_status=$?
37452   grep -v '^ *+' conftest.er1 >conftest.err
37453   rm -f conftest.er1
37454   cat conftest.err >&5
37455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456   (exit $ac_status); } &&
37457          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37459   (eval $ac_try) 2>&5
37460   ac_status=$?
37461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462   (exit $ac_status); }; } &&
37463          { ac_try='test -s conftest$ac_exeext'
37464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465   (eval $ac_try) 2>&5
37466   ac_status=$?
37467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); }; }; then
37469   THREADS_OK=yes
37470 else
37471   echo "$as_me: failed program was:" >&5
37472 sed 's/^/| /' conftest.$ac_ext >&5
37473
37474 fi
37475 rm -f conftest.err conftest.$ac_objext \
37476       conftest$ac_exeext conftest.$ac_ext
37477
37478               LIBS="$save_LIBS"
37479               CXXFLAGS="$save_CXXFLAGS"
37480
37481               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37482 echo "${ECHO_T}$THREADS_OK" >&6
37483               if test "x$THREADS_OK" = "xyes"; then
37484                       break;
37485               fi
37486
37487               THREADS_LINK=""
37488               THREADS_CXXFLAGS=""
37489       done
37490
37491       if test "x$THREADS_OK" != "xyes"; then
37492           wxUSE_THREADS=no
37493           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37494 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37495       else
37496                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
37497           LIBS="$THREADS_LINK $LIBS"
37498
37499           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37500 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37501           flag=no
37502           case "${host}" in
37503             *-aix*)
37504                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37505                 flag="-D_THREAD_SAFE"
37506                 ;;
37507             *-freebsd*)
37508                 flag="-D_THREAD_SAFE"
37509                 ;;
37510             *-hp-hpux* )
37511                 flag="-D_REENTRANT"
37512                 if test "x$GCC" != "xyes"; then
37513                                         flag="$flag -D_RWSTD_MULTI_THREAD"
37514                 fi
37515                 ;;
37516             *solaris* | alpha*-osf*)
37517                 flag="-D_REENTRANT"
37518                 ;;
37519           esac
37520           echo "$as_me:$LINENO: result: ${flag}" >&5
37521 echo "${ECHO_T}${flag}" >&6
37522           if test "x$flag" != xno; then
37523               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
37524           fi
37525
37526                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
37527       fi
37528     fi
37529
37530         if test "$wxUSE_THREADS" = "yes" ; then
37531
37532 for ac_func in thr_setconcurrency
37533 do
37534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37535 echo "$as_me:$LINENO: checking for $ac_func" >&5
37536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37537 if eval "test \"\${$as_ac_var+set}\" = set"; then
37538   echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540   cat >conftest.$ac_ext <<_ACEOF
37541 /* confdefs.h.  */
37542 _ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h.  */
37546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37548 #define $ac_func innocuous_$ac_func
37549
37550 /* System header to define __stub macros and hopefully few prototypes,
37551     which can conflict with char $ac_func (); below.
37552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37553     <limits.h> exists even on freestanding compilers.  */
37554
37555 #ifdef __STDC__
37556 # include <limits.h>
37557 #else
37558 # include <assert.h>
37559 #endif
37560
37561 #undef $ac_func
37562
37563 /* Override any gcc2 internal prototype to avoid an error.  */
37564 #ifdef __cplusplus
37565 extern "C"
37566 {
37567 #endif
37568 /* We use char because int might match the return type of a gcc2
37569    builtin and then its argument prototype would still apply.  */
37570 char $ac_func ();
37571 /* The GNU C library defines this for functions which it implements
37572     to always fail with ENOSYS.  Some functions are actually named
37573     something starting with __ and the normal name is an alias.  */
37574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37575 choke me
37576 #else
37577 char (*f) () = $ac_func;
37578 #endif
37579 #ifdef __cplusplus
37580 }
37581 #endif
37582
37583 int
37584 main ()
37585 {
37586 return f != $ac_func;
37587   ;
37588   return 0;
37589 }
37590 _ACEOF
37591 rm -f conftest.$ac_objext conftest$ac_exeext
37592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37593   (eval $ac_link) 2>conftest.er1
37594   ac_status=$?
37595   grep -v '^ *+' conftest.er1 >conftest.err
37596   rm -f conftest.er1
37597   cat conftest.err >&5
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); } &&
37600          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602   (eval $ac_try) 2>&5
37603   ac_status=$?
37604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); }; } &&
37606          { ac_try='test -s conftest$ac_exeext'
37607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608   (eval $ac_try) 2>&5
37609   ac_status=$?
37610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611   (exit $ac_status); }; }; then
37612   eval "$as_ac_var=yes"
37613 else
37614   echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37616
37617 eval "$as_ac_var=no"
37618 fi
37619 rm -f conftest.err conftest.$ac_objext \
37620       conftest$ac_exeext conftest.$ac_ext
37621 fi
37622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37624 if test `eval echo '${'$as_ac_var'}'` = yes; then
37625   cat >>confdefs.h <<_ACEOF
37626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37627 _ACEOF
37628
37629 fi
37630 done
37631
37632
37633                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37634 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37635 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37636   echo $ECHO_N "(cached) $ECHO_C" >&6
37637 else
37638
37639         cat >conftest.$ac_ext <<_ACEOF
37640 /* confdefs.h.  */
37641 _ACEOF
37642 cat confdefs.h >>conftest.$ac_ext
37643 cat >>conftest.$ac_ext <<_ACEOF
37644 /* end confdefs.h.  */
37645 #include <pthread.h>
37646                void ThreadCleanupFunc(void *p);
37647
37648 int
37649 main ()
37650 {
37651
37652                 void *p;
37653                 pthread_cleanup_push(ThreadCleanupFunc, p);
37654                 pthread_cleanup_pop(0);
37655
37656   ;
37657   return 0;
37658 }
37659 _ACEOF
37660 rm -f conftest.$ac_objext
37661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37662   (eval $ac_compile) 2>conftest.er1
37663   ac_status=$?
37664   grep -v '^ *+' conftest.er1 >conftest.err
37665   rm -f conftest.er1
37666   cat conftest.err >&5
37667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668   (exit $ac_status); } &&
37669          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671   (eval $ac_try) 2>&5
37672   ac_status=$?
37673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674   (exit $ac_status); }; } &&
37675          { ac_try='test -s conftest.$ac_objext'
37676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677   (eval $ac_try) 2>&5
37678   ac_status=$?
37679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680   (exit $ac_status); }; }; then
37681
37682                wx_cv_func_pthread_cleanup=yes
37683
37684 else
37685   echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37687
37688
37689                wx_cv_func_pthread_cleanup=no
37690
37691
37692 fi
37693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37694
37695 fi
37696 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37697 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37698       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37699         cat >>confdefs.h <<\_ACEOF
37700 #define wxHAVE_PTHREAD_CLEANUP 1
37701 _ACEOF
37702
37703       fi
37704
37705
37706 for ac_header in sched.h
37707 do
37708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37710   echo "$as_me:$LINENO: checking for $ac_header" >&5
37711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37713   echo $ECHO_N "(cached) $ECHO_C" >&6
37714 fi
37715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37717 else
37718   # Is the header compilable?
37719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37721 cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727 $ac_includes_default
37728 #include <$ac_header>
37729 _ACEOF
37730 rm -f conftest.$ac_objext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37732   (eval $ac_compile) 2>conftest.er1
37733   ac_status=$?
37734   grep -v '^ *+' conftest.er1 >conftest.err
37735   rm -f conftest.er1
37736   cat conftest.err >&5
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } &&
37739          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741   (eval $ac_try) 2>&5
37742   ac_status=$?
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); }; } &&
37745          { ac_try='test -s conftest.$ac_objext'
37746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747   (eval $ac_try) 2>&5
37748   ac_status=$?
37749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750   (exit $ac_status); }; }; then
37751   ac_header_compiler=yes
37752 else
37753   echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37755
37756 ac_header_compiler=no
37757 fi
37758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37760 echo "${ECHO_T}$ac_header_compiler" >&6
37761
37762 # Is the header present?
37763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37765 cat >conftest.$ac_ext <<_ACEOF
37766 /* confdefs.h.  */
37767 _ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h.  */
37771 #include <$ac_header>
37772 _ACEOF
37773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37775   ac_status=$?
37776   grep -v '^ *+' conftest.er1 >conftest.err
37777   rm -f conftest.er1
37778   cat conftest.err >&5
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); } >/dev/null; then
37781   if test -s conftest.err; then
37782     ac_cpp_err=$ac_cxx_preproc_warn_flag
37783     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37784   else
37785     ac_cpp_err=
37786   fi
37787 else
37788   ac_cpp_err=yes
37789 fi
37790 if test -z "$ac_cpp_err"; then
37791   ac_header_preproc=yes
37792 else
37793   echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37795
37796   ac_header_preproc=no
37797 fi
37798 rm -f conftest.err conftest.$ac_ext
37799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37800 echo "${ECHO_T}$ac_header_preproc" >&6
37801
37802 # So?  What about this header?
37803 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37804   yes:no: )
37805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37809     ac_header_preproc=yes
37810     ;;
37811   no:yes:* )
37812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37824     (
37825       cat <<\_ASBOX
37826 ## ----------------------------------------- ##
37827 ## Report this to wx-dev@lists.wxwidgets.org ##
37828 ## ----------------------------------------- ##
37829 _ASBOX
37830     ) |
37831       sed "s/^/$as_me: WARNING:     /" >&2
37832     ;;
37833 esac
37834 echo "$as_me:$LINENO: checking for $ac_header" >&5
37835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37837   echo $ECHO_N "(cached) $ECHO_C" >&6
37838 else
37839   eval "$as_ac_Header=\$ac_header_preproc"
37840 fi
37841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37843
37844 fi
37845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37846   cat >>confdefs.h <<_ACEOF
37847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37848 _ACEOF
37849
37850 fi
37851
37852 done
37853
37854       if test "$ac_cv_header_sched_h" = "yes"; then
37855           echo "$as_me:$LINENO: checking for sched_yield" >&5
37856 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37857 if test "${ac_cv_func_sched_yield+set}" = set; then
37858   echo $ECHO_N "(cached) $ECHO_C" >&6
37859 else
37860   cat >conftest.$ac_ext <<_ACEOF
37861 /* confdefs.h.  */
37862 _ACEOF
37863 cat confdefs.h >>conftest.$ac_ext
37864 cat >>conftest.$ac_ext <<_ACEOF
37865 /* end confdefs.h.  */
37866 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37868 #define sched_yield innocuous_sched_yield
37869
37870 /* System header to define __stub macros and hopefully few prototypes,
37871     which can conflict with char sched_yield (); below.
37872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37873     <limits.h> exists even on freestanding compilers.  */
37874
37875 #ifdef __STDC__
37876 # include <limits.h>
37877 #else
37878 # include <assert.h>
37879 #endif
37880
37881 #undef sched_yield
37882
37883 /* Override any gcc2 internal prototype to avoid an error.  */
37884 #ifdef __cplusplus
37885 extern "C"
37886 {
37887 #endif
37888 /* We use char because int might match the return type of a gcc2
37889    builtin and then its argument prototype would still apply.  */
37890 char sched_yield ();
37891 /* The GNU C library defines this for functions which it implements
37892     to always fail with ENOSYS.  Some functions are actually named
37893     something starting with __ and the normal name is an alias.  */
37894 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37895 choke me
37896 #else
37897 char (*f) () = sched_yield;
37898 #endif
37899 #ifdef __cplusplus
37900 }
37901 #endif
37902
37903 int
37904 main ()
37905 {
37906 return f != sched_yield;
37907   ;
37908   return 0;
37909 }
37910 _ACEOF
37911 rm -f conftest.$ac_objext conftest$ac_exeext
37912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37913   (eval $ac_link) 2>conftest.er1
37914   ac_status=$?
37915   grep -v '^ *+' conftest.er1 >conftest.err
37916   rm -f conftest.er1
37917   cat conftest.err >&5
37918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919   (exit $ac_status); } &&
37920          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37922   (eval $ac_try) 2>&5
37923   ac_status=$?
37924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925   (exit $ac_status); }; } &&
37926          { ac_try='test -s conftest$ac_exeext'
37927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928   (eval $ac_try) 2>&5
37929   ac_status=$?
37930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931   (exit $ac_status); }; }; then
37932   ac_cv_func_sched_yield=yes
37933 else
37934   echo "$as_me: failed program was:" >&5
37935 sed 's/^/| /' conftest.$ac_ext >&5
37936
37937 ac_cv_func_sched_yield=no
37938 fi
37939 rm -f conftest.err conftest.$ac_objext \
37940       conftest$ac_exeext conftest.$ac_ext
37941 fi
37942 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37943 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37944 if test $ac_cv_func_sched_yield = yes; then
37945   cat >>confdefs.h <<\_ACEOF
37946 #define HAVE_SCHED_YIELD 1
37947 _ACEOF
37948
37949 else
37950
37951                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37952 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37953 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37954   echo $ECHO_N "(cached) $ECHO_C" >&6
37955 else
37956   ac_check_lib_save_LIBS=$LIBS
37957 LIBS="-lposix4  $LIBS"
37958 cat >conftest.$ac_ext <<_ACEOF
37959 /* confdefs.h.  */
37960 _ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h.  */
37964
37965 /* Override any gcc2 internal prototype to avoid an error.  */
37966 #ifdef __cplusplus
37967 extern "C"
37968 #endif
37969 /* We use char because int might match the return type of a gcc2
37970    builtin and then its argument prototype would still apply.  */
37971 char sched_yield ();
37972 int
37973 main ()
37974 {
37975 sched_yield ();
37976   ;
37977   return 0;
37978 }
37979 _ACEOF
37980 rm -f conftest.$ac_objext conftest$ac_exeext
37981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37982   (eval $ac_link) 2>conftest.er1
37983   ac_status=$?
37984   grep -v '^ *+' conftest.er1 >conftest.err
37985   rm -f conftest.er1
37986   cat conftest.err >&5
37987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988   (exit $ac_status); } &&
37989          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991   (eval $ac_try) 2>&5
37992   ac_status=$?
37993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994   (exit $ac_status); }; } &&
37995          { ac_try='test -s conftest$ac_exeext'
37996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997   (eval $ac_try) 2>&5
37998   ac_status=$?
37999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000   (exit $ac_status); }; }; then
38001   ac_cv_lib_posix4_sched_yield=yes
38002 else
38003   echo "$as_me: failed program was:" >&5
38004 sed 's/^/| /' conftest.$ac_ext >&5
38005
38006 ac_cv_lib_posix4_sched_yield=no
38007 fi
38008 rm -f conftest.err conftest.$ac_objext \
38009       conftest$ac_exeext conftest.$ac_ext
38010 LIBS=$ac_check_lib_save_LIBS
38011 fi
38012 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38013 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38014 if test $ac_cv_lib_posix4_sched_yield = yes; then
38015   cat >>confdefs.h <<\_ACEOF
38016 #define HAVE_SCHED_YIELD 1
38017 _ACEOF
38018  POSIX4_LINK=" -lposix4"
38019 else
38020   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38021 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38022
38023 fi
38024
38025
38026
38027 fi
38028
38029       fi
38030
38031                                           HAVE_PRIOR_FUNCS=0
38032       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38033 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38034 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38035   echo $ECHO_N "(cached) $ECHO_C" >&6
38036 else
38037   cat >conftest.$ac_ext <<_ACEOF
38038 /* confdefs.h.  */
38039 _ACEOF
38040 cat confdefs.h >>conftest.$ac_ext
38041 cat >>conftest.$ac_ext <<_ACEOF
38042 /* end confdefs.h.  */
38043 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38045 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38046
38047 /* System header to define __stub macros and hopefully few prototypes,
38048     which can conflict with char pthread_attr_getschedpolicy (); below.
38049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38050     <limits.h> exists even on freestanding compilers.  */
38051
38052 #ifdef __STDC__
38053 # include <limits.h>
38054 #else
38055 # include <assert.h>
38056 #endif
38057
38058 #undef pthread_attr_getschedpolicy
38059
38060 /* Override any gcc2 internal prototype to avoid an error.  */
38061 #ifdef __cplusplus
38062 extern "C"
38063 {
38064 #endif
38065 /* We use char because int might match the return type of a gcc2
38066    builtin and then its argument prototype would still apply.  */
38067 char pthread_attr_getschedpolicy ();
38068 /* The GNU C library defines this for functions which it implements
38069     to always fail with ENOSYS.  Some functions are actually named
38070     something starting with __ and the normal name is an alias.  */
38071 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38072 choke me
38073 #else
38074 char (*f) () = pthread_attr_getschedpolicy;
38075 #endif
38076 #ifdef __cplusplus
38077 }
38078 #endif
38079
38080 int
38081 main ()
38082 {
38083 return f != pthread_attr_getschedpolicy;
38084   ;
38085   return 0;
38086 }
38087 _ACEOF
38088 rm -f conftest.$ac_objext conftest$ac_exeext
38089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38090   (eval $ac_link) 2>conftest.er1
38091   ac_status=$?
38092   grep -v '^ *+' conftest.er1 >conftest.err
38093   rm -f conftest.er1
38094   cat conftest.err >&5
38095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096   (exit $ac_status); } &&
38097          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099   (eval $ac_try) 2>&5
38100   ac_status=$?
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); }; } &&
38103          { ac_try='test -s conftest$ac_exeext'
38104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105   (eval $ac_try) 2>&5
38106   ac_status=$?
38107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); }; }; then
38109   ac_cv_func_pthread_attr_getschedpolicy=yes
38110 else
38111   echo "$as_me: failed program was:" >&5
38112 sed 's/^/| /' conftest.$ac_ext >&5
38113
38114 ac_cv_func_pthread_attr_getschedpolicy=no
38115 fi
38116 rm -f conftest.err conftest.$ac_objext \
38117       conftest$ac_exeext conftest.$ac_ext
38118 fi
38119 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38120 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38121 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38122   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38123 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38124 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38125   echo $ECHO_N "(cached) $ECHO_C" >&6
38126 else
38127   cat >conftest.$ac_ext <<_ACEOF
38128 /* confdefs.h.  */
38129 _ACEOF
38130 cat confdefs.h >>conftest.$ac_ext
38131 cat >>conftest.$ac_ext <<_ACEOF
38132 /* end confdefs.h.  */
38133 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38135 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38136
38137 /* System header to define __stub macros and hopefully few prototypes,
38138     which can conflict with char pthread_attr_setschedparam (); below.
38139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38140     <limits.h> exists even on freestanding compilers.  */
38141
38142 #ifdef __STDC__
38143 # include <limits.h>
38144 #else
38145 # include <assert.h>
38146 #endif
38147
38148 #undef pthread_attr_setschedparam
38149
38150 /* Override any gcc2 internal prototype to avoid an error.  */
38151 #ifdef __cplusplus
38152 extern "C"
38153 {
38154 #endif
38155 /* We use char because int might match the return type of a gcc2
38156    builtin and then its argument prototype would still apply.  */
38157 char pthread_attr_setschedparam ();
38158 /* The GNU C library defines this for functions which it implements
38159     to always fail with ENOSYS.  Some functions are actually named
38160     something starting with __ and the normal name is an alias.  */
38161 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38162 choke me
38163 #else
38164 char (*f) () = pthread_attr_setschedparam;
38165 #endif
38166 #ifdef __cplusplus
38167 }
38168 #endif
38169
38170 int
38171 main ()
38172 {
38173 return f != pthread_attr_setschedparam;
38174   ;
38175   return 0;
38176 }
38177 _ACEOF
38178 rm -f conftest.$ac_objext conftest$ac_exeext
38179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38180   (eval $ac_link) 2>conftest.er1
38181   ac_status=$?
38182   grep -v '^ *+' conftest.er1 >conftest.err
38183   rm -f conftest.er1
38184   cat conftest.err >&5
38185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186   (exit $ac_status); } &&
38187          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189   (eval $ac_try) 2>&5
38190   ac_status=$?
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); }; } &&
38193          { ac_try='test -s conftest$ac_exeext'
38194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195   (eval $ac_try) 2>&5
38196   ac_status=$?
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); }; }; then
38199   ac_cv_func_pthread_attr_setschedparam=yes
38200 else
38201   echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38203
38204 ac_cv_func_pthread_attr_setschedparam=no
38205 fi
38206 rm -f conftest.err conftest.$ac_objext \
38207       conftest$ac_exeext conftest.$ac_ext
38208 fi
38209 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38210 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38211 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38212   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38213 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38214 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38215   echo $ECHO_N "(cached) $ECHO_C" >&6
38216 else
38217   cat >conftest.$ac_ext <<_ACEOF
38218 /* confdefs.h.  */
38219 _ACEOF
38220 cat confdefs.h >>conftest.$ac_ext
38221 cat >>conftest.$ac_ext <<_ACEOF
38222 /* end confdefs.h.  */
38223 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38225 #define sched_get_priority_max innocuous_sched_get_priority_max
38226
38227 /* System header to define __stub macros and hopefully few prototypes,
38228     which can conflict with char sched_get_priority_max (); below.
38229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38230     <limits.h> exists even on freestanding compilers.  */
38231
38232 #ifdef __STDC__
38233 # include <limits.h>
38234 #else
38235 # include <assert.h>
38236 #endif
38237
38238 #undef sched_get_priority_max
38239
38240 /* Override any gcc2 internal prototype to avoid an error.  */
38241 #ifdef __cplusplus
38242 extern "C"
38243 {
38244 #endif
38245 /* We use char because int might match the return type of a gcc2
38246    builtin and then its argument prototype would still apply.  */
38247 char sched_get_priority_max ();
38248 /* The GNU C library defines this for functions which it implements
38249     to always fail with ENOSYS.  Some functions are actually named
38250     something starting with __ and the normal name is an alias.  */
38251 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38252 choke me
38253 #else
38254 char (*f) () = sched_get_priority_max;
38255 #endif
38256 #ifdef __cplusplus
38257 }
38258 #endif
38259
38260 int
38261 main ()
38262 {
38263 return f != sched_get_priority_max;
38264   ;
38265   return 0;
38266 }
38267 _ACEOF
38268 rm -f conftest.$ac_objext conftest$ac_exeext
38269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38270   (eval $ac_link) 2>conftest.er1
38271   ac_status=$?
38272   grep -v '^ *+' conftest.er1 >conftest.err
38273   rm -f conftest.er1
38274   cat conftest.err >&5
38275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276   (exit $ac_status); } &&
38277          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279   (eval $ac_try) 2>&5
38280   ac_status=$?
38281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); }; } &&
38283          { ac_try='test -s conftest$ac_exeext'
38284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285   (eval $ac_try) 2>&5
38286   ac_status=$?
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); }; }; then
38289   ac_cv_func_sched_get_priority_max=yes
38290 else
38291   echo "$as_me: failed program was:" >&5
38292 sed 's/^/| /' conftest.$ac_ext >&5
38293
38294 ac_cv_func_sched_get_priority_max=no
38295 fi
38296 rm -f conftest.err conftest.$ac_objext \
38297       conftest$ac_exeext conftest.$ac_ext
38298 fi
38299 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38300 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38301 if test $ac_cv_func_sched_get_priority_max = yes; then
38302   HAVE_PRIOR_FUNCS=1
38303 else
38304   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38305 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38306 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38307   echo $ECHO_N "(cached) $ECHO_C" >&6
38308 else
38309   ac_check_lib_save_LIBS=$LIBS
38310 LIBS="-lposix4  $LIBS"
38311 cat >conftest.$ac_ext <<_ACEOF
38312 /* confdefs.h.  */
38313 _ACEOF
38314 cat confdefs.h >>conftest.$ac_ext
38315 cat >>conftest.$ac_ext <<_ACEOF
38316 /* end confdefs.h.  */
38317
38318 /* Override any gcc2 internal prototype to avoid an error.  */
38319 #ifdef __cplusplus
38320 extern "C"
38321 #endif
38322 /* We use char because int might match the return type of a gcc2
38323    builtin and then its argument prototype would still apply.  */
38324 char sched_get_priority_max ();
38325 int
38326 main ()
38327 {
38328 sched_get_priority_max ();
38329   ;
38330   return 0;
38331 }
38332 _ACEOF
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38335   (eval $ac_link) 2>conftest.er1
38336   ac_status=$?
38337   grep -v '^ *+' conftest.er1 >conftest.err
38338   rm -f conftest.er1
38339   cat conftest.err >&5
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); } &&
38342          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38344   (eval $ac_try) 2>&5
38345   ac_status=$?
38346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38347   (exit $ac_status); }; } &&
38348          { ac_try='test -s conftest$ac_exeext'
38349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350   (eval $ac_try) 2>&5
38351   ac_status=$?
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); }; }; then
38354   ac_cv_lib_posix4_sched_get_priority_max=yes
38355 else
38356   echo "$as_me: failed program was:" >&5
38357 sed 's/^/| /' conftest.$ac_ext >&5
38358
38359 ac_cv_lib_posix4_sched_get_priority_max=no
38360 fi
38361 rm -f conftest.err conftest.$ac_objext \
38362       conftest$ac_exeext conftest.$ac_ext
38363 LIBS=$ac_check_lib_save_LIBS
38364 fi
38365 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38366 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38367 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38368
38369                                 HAVE_PRIOR_FUNCS=1
38370                                 POSIX4_LINK=" -lposix4"
38371
38372 fi
38373
38374
38375 fi
38376
38377
38378 fi
38379
38380
38381 fi
38382
38383
38384       if test "$HAVE_PRIOR_FUNCS" = 1; then
38385         cat >>confdefs.h <<\_ACEOF
38386 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38387 _ACEOF
38388
38389       else
38390         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38391 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38392       fi
38393
38394       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38395 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38396 if test "${ac_cv_func_pthread_cancel+set}" = set; then
38397   echo $ECHO_N "(cached) $ECHO_C" >&6
38398 else
38399   cat >conftest.$ac_ext <<_ACEOF
38400 /* confdefs.h.  */
38401 _ACEOF
38402 cat confdefs.h >>conftest.$ac_ext
38403 cat >>conftest.$ac_ext <<_ACEOF
38404 /* end confdefs.h.  */
38405 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38407 #define pthread_cancel innocuous_pthread_cancel
38408
38409 /* System header to define __stub macros and hopefully few prototypes,
38410     which can conflict with char pthread_cancel (); below.
38411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38412     <limits.h> exists even on freestanding compilers.  */
38413
38414 #ifdef __STDC__
38415 # include <limits.h>
38416 #else
38417 # include <assert.h>
38418 #endif
38419
38420 #undef pthread_cancel
38421
38422 /* Override any gcc2 internal prototype to avoid an error.  */
38423 #ifdef __cplusplus
38424 extern "C"
38425 {
38426 #endif
38427 /* We use char because int might match the return type of a gcc2
38428    builtin and then its argument prototype would still apply.  */
38429 char pthread_cancel ();
38430 /* The GNU C library defines this for functions which it implements
38431     to always fail with ENOSYS.  Some functions are actually named
38432     something starting with __ and the normal name is an alias.  */
38433 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38434 choke me
38435 #else
38436 char (*f) () = pthread_cancel;
38437 #endif
38438 #ifdef __cplusplus
38439 }
38440 #endif
38441
38442 int
38443 main ()
38444 {
38445 return f != pthread_cancel;
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38452   (eval $ac_link) 2>conftest.er1
38453   ac_status=$?
38454   grep -v '^ *+' conftest.er1 >conftest.err
38455   rm -f conftest.er1
38456   cat conftest.err >&5
38457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458   (exit $ac_status); } &&
38459          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38461   (eval $ac_try) 2>&5
38462   ac_status=$?
38463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464   (exit $ac_status); }; } &&
38465          { ac_try='test -s conftest$ac_exeext'
38466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38467   (eval $ac_try) 2>&5
38468   ac_status=$?
38469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470   (exit $ac_status); }; }; then
38471   ac_cv_func_pthread_cancel=yes
38472 else
38473   echo "$as_me: failed program was:" >&5
38474 sed 's/^/| /' conftest.$ac_ext >&5
38475
38476 ac_cv_func_pthread_cancel=no
38477 fi
38478 rm -f conftest.err conftest.$ac_objext \
38479       conftest$ac_exeext conftest.$ac_ext
38480 fi
38481 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38482 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38483 if test $ac_cv_func_pthread_cancel = yes; then
38484   cat >>confdefs.h <<\_ACEOF
38485 #define HAVE_PTHREAD_CANCEL 1
38486 _ACEOF
38487
38488 else
38489   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38490 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38491 fi
38492
38493
38494       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38495 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38496 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38497   echo $ECHO_N "(cached) $ECHO_C" >&6
38498 else
38499   cat >conftest.$ac_ext <<_ACEOF
38500 /* confdefs.h.  */
38501 _ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h.  */
38505 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38507 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38508
38509 /* System header to define __stub macros and hopefully few prototypes,
38510     which can conflict with char pthread_attr_setstacksize (); below.
38511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38512     <limits.h> exists even on freestanding compilers.  */
38513
38514 #ifdef __STDC__
38515 # include <limits.h>
38516 #else
38517 # include <assert.h>
38518 #endif
38519
38520 #undef pthread_attr_setstacksize
38521
38522 /* Override any gcc2 internal prototype to avoid an error.  */
38523 #ifdef __cplusplus
38524 extern "C"
38525 {
38526 #endif
38527 /* We use char because int might match the return type of a gcc2
38528    builtin and then its argument prototype would still apply.  */
38529 char pthread_attr_setstacksize ();
38530 /* The GNU C library defines this for functions which it implements
38531     to always fail with ENOSYS.  Some functions are actually named
38532     something starting with __ and the normal name is an alias.  */
38533 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38534 choke me
38535 #else
38536 char (*f) () = pthread_attr_setstacksize;
38537 #endif
38538 #ifdef __cplusplus
38539 }
38540 #endif
38541
38542 int
38543 main ()
38544 {
38545 return f != pthread_attr_setstacksize;
38546   ;
38547   return 0;
38548 }
38549 _ACEOF
38550 rm -f conftest.$ac_objext conftest$ac_exeext
38551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38552   (eval $ac_link) 2>conftest.er1
38553   ac_status=$?
38554   grep -v '^ *+' conftest.er1 >conftest.err
38555   rm -f conftest.er1
38556   cat conftest.err >&5
38557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558   (exit $ac_status); } &&
38559          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561   (eval $ac_try) 2>&5
38562   ac_status=$?
38563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564   (exit $ac_status); }; } &&
38565          { ac_try='test -s conftest$ac_exeext'
38566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567   (eval $ac_try) 2>&5
38568   ac_status=$?
38569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570   (exit $ac_status); }; }; then
38571   ac_cv_func_pthread_attr_setstacksize=yes
38572 else
38573   echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38575
38576 ac_cv_func_pthread_attr_setstacksize=no
38577 fi
38578 rm -f conftest.err conftest.$ac_objext \
38579       conftest$ac_exeext conftest.$ac_ext
38580 fi
38581 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38582 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38583 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38584   cat >>confdefs.h <<\_ACEOF
38585 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38586 _ACEOF
38587
38588 fi
38589
38590
38591
38592       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38593 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38594 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38595   echo $ECHO_N "(cached) $ECHO_C" >&6
38596 else
38597
38598         cat >conftest.$ac_ext <<_ACEOF
38599 /* confdefs.h.  */
38600 _ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h.  */
38604 #include <pthread.h>
38605 int
38606 main ()
38607 {
38608
38609                pthread_mutexattr_t attr;
38610                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38611
38612   ;
38613   return 0;
38614 }
38615 _ACEOF
38616 rm -f conftest.$ac_objext
38617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38618   (eval $ac_compile) 2>conftest.er1
38619   ac_status=$?
38620   grep -v '^ *+' conftest.er1 >conftest.err
38621   rm -f conftest.er1
38622   cat conftest.err >&5
38623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624   (exit $ac_status); } &&
38625          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627   (eval $ac_try) 2>&5
38628   ac_status=$?
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); }; } &&
38631          { ac_try='test -s conftest.$ac_objext'
38632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633   (eval $ac_try) 2>&5
38634   ac_status=$?
38635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636   (exit $ac_status); }; }; then
38637   wx_cv_type_pthread_mutexattr_t=yes
38638 else
38639   echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642 wx_cv_type_pthread_mutexattr_t=no
38643
38644 fi
38645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38646
38647 fi
38648 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38649 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38650
38651       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38652         cat >>confdefs.h <<\_ACEOF
38653 #define HAVE_PTHREAD_MUTEXATTR_T 1
38654 _ACEOF
38655
38656
38657                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38658 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38659 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38660   echo $ECHO_N "(cached) $ECHO_C" >&6
38661 else
38662
38663                        cat >conftest.$ac_ext <<_ACEOF
38664 /* confdefs.h.  */
38665 _ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h.  */
38669 #include <pthread.h>
38670 int
38671 main ()
38672 {
38673
38674                                pthread_mutexattr_t attr;
38675                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38676
38677   ;
38678   return 0;
38679 }
38680 _ACEOF
38681 rm -f conftest.$ac_objext
38682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38683   (eval $ac_compile) 2>conftest.er1
38684   ac_status=$?
38685   grep -v '^ *+' conftest.er1 >conftest.err
38686   rm -f conftest.er1
38687   cat conftest.err >&5
38688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689   (exit $ac_status); } &&
38690          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38692   (eval $ac_try) 2>&5
38693   ac_status=$?
38694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695   (exit $ac_status); }; } &&
38696          { ac_try='test -s conftest.$ac_objext'
38697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698   (eval $ac_try) 2>&5
38699   ac_status=$?
38700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701   (exit $ac_status); }; }; then
38702   wx_cv_func_pthread_mutexattr_settype_decl=yes
38703 else
38704   echo "$as_me: failed program was:" >&5
38705 sed 's/^/| /' conftest.$ac_ext >&5
38706
38707 wx_cv_func_pthread_mutexattr_settype_decl=no
38708
38709 fi
38710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38711
38712 fi
38713 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38714 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38715         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38716             cat >>confdefs.h <<\_ACEOF
38717 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38718 _ACEOF
38719
38720         fi
38721       else
38722                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38723 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38724 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727
38728             cat >conftest.$ac_ext <<_ACEOF
38729 /* confdefs.h.  */
38730 _ACEOF
38731 cat confdefs.h >>conftest.$ac_ext
38732 cat >>conftest.$ac_ext <<_ACEOF
38733 /* end confdefs.h.  */
38734 #include <pthread.h>
38735 int
38736 main ()
38737 {
38738
38739                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38740
38741   ;
38742   return 0;
38743 }
38744 _ACEOF
38745 rm -f conftest.$ac_objext
38746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38747   (eval $ac_compile) 2>conftest.er1
38748   ac_status=$?
38749   grep -v '^ *+' conftest.er1 >conftest.err
38750   rm -f conftest.er1
38751   cat conftest.err >&5
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); } &&
38754          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756   (eval $ac_try) 2>&5
38757   ac_status=$?
38758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759   (exit $ac_status); }; } &&
38760          { ac_try='test -s conftest.$ac_objext'
38761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38762   (eval $ac_try) 2>&5
38763   ac_status=$?
38764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765   (exit $ac_status); }; }; then
38766
38767                     wx_cv_type_pthread_rec_mutex_init=yes
38768
38769 else
38770   echo "$as_me: failed program was:" >&5
38771 sed 's/^/| /' conftest.$ac_ext >&5
38772
38773
38774                     wx_cv_type_pthread_rec_mutex_init=no
38775
38776
38777 fi
38778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38779
38780 fi
38781 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38782 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38783         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38784           cat >>confdefs.h <<\_ACEOF
38785 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38786 _ACEOF
38787
38788         else
38789                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38790 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38791         fi
38792       fi
38793     fi
38794
38795 else
38796     if test "$wxUSE_THREADS" = "yes" ; then
38797       case "${host}" in
38798         *-*-mingw32* )
38799                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38800 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38801 if test "${wx_cv_cflags_mthread+set}" = set; then
38802   echo $ECHO_N "(cached) $ECHO_C" >&6
38803 else
38804
38805                     CXXFLAGS_OLD="$CXXFLAGS"
38806                     CXXFLAGS="-mthreads $CXXFLAGS"
38807                     cat >conftest.$ac_ext <<_ACEOF
38808 /* confdefs.h.  */
38809 _ACEOF
38810 cat confdefs.h >>conftest.$ac_ext
38811 cat >>conftest.$ac_ext <<_ACEOF
38812 /* end confdefs.h.  */
38813
38814 int
38815 main ()
38816 {
38817
38818   ;
38819   return 0;
38820 }
38821 _ACEOF
38822 rm -f conftest.$ac_objext
38823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38824   (eval $ac_compile) 2>conftest.er1
38825   ac_status=$?
38826   grep -v '^ *+' conftest.er1 >conftest.err
38827   rm -f conftest.er1
38828   cat conftest.err >&5
38829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830   (exit $ac_status); } &&
38831          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833   (eval $ac_try) 2>&5
38834   ac_status=$?
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); }; } &&
38837          { ac_try='test -s conftest.$ac_objext'
38838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839   (eval $ac_try) 2>&5
38840   ac_status=$?
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); }; }; then
38843   wx_cv_cflags_mthread=yes
38844 else
38845   echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38847
38848 wx_cv_cflags_mthread=no
38849
38850 fi
38851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38852
38853
38854 fi
38855 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38856 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38857
38858             if test "$wx_cv_cflags_mthread" = "yes"; then
38859                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
38860                 LDFLAGS="$LDFLAGS -mthreads"
38861             else
38862                                 CXXFLAGS="$CXXFLAGS_OLD"
38863             fi
38864         ;;
38865         *-pc-os2*emx )
38866             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38867             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
38868             LDFLAGS="$LDFLAGS -Zmt"
38869         ;;
38870       esac
38871     fi
38872 fi
38873
38874 echo "$as_me:$LINENO: checking for localtime_r" >&5
38875 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38876 if test "${ac_cv_func_localtime_r+set}" = set; then
38877   echo $ECHO_N "(cached) $ECHO_C" >&6
38878 else
38879   cat >conftest.$ac_ext <<_ACEOF
38880 /* confdefs.h.  */
38881 _ACEOF
38882 cat confdefs.h >>conftest.$ac_ext
38883 cat >>conftest.$ac_ext <<_ACEOF
38884 /* end confdefs.h.  */
38885 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
38886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38887 #define localtime_r innocuous_localtime_r
38888
38889 /* System header to define __stub macros and hopefully few prototypes,
38890     which can conflict with char localtime_r (); below.
38891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38892     <limits.h> exists even on freestanding compilers.  */
38893
38894 #ifdef __STDC__
38895 # include <limits.h>
38896 #else
38897 # include <assert.h>
38898 #endif
38899
38900 #undef localtime_r
38901
38902 /* Override any gcc2 internal prototype to avoid an error.  */
38903 #ifdef __cplusplus
38904 extern "C"
38905 {
38906 #endif
38907 /* We use char because int might match the return type of a gcc2
38908    builtin and then its argument prototype would still apply.  */
38909 char localtime_r ();
38910 /* The GNU C library defines this for functions which it implements
38911     to always fail with ENOSYS.  Some functions are actually named
38912     something starting with __ and the normal name is an alias.  */
38913 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
38914 choke me
38915 #else
38916 char (*f) () = localtime_r;
38917 #endif
38918 #ifdef __cplusplus
38919 }
38920 #endif
38921
38922 int
38923 main ()
38924 {
38925 return f != localtime_r;
38926   ;
38927   return 0;
38928 }
38929 _ACEOF
38930 rm -f conftest.$ac_objext conftest$ac_exeext
38931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38932   (eval $ac_link) 2>conftest.er1
38933   ac_status=$?
38934   grep -v '^ *+' conftest.er1 >conftest.err
38935   rm -f conftest.er1
38936   cat conftest.err >&5
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); } &&
38939          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38941   (eval $ac_try) 2>&5
38942   ac_status=$?
38943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944   (exit $ac_status); }; } &&
38945          { ac_try='test -s conftest$ac_exeext'
38946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947   (eval $ac_try) 2>&5
38948   ac_status=$?
38949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950   (exit $ac_status); }; }; then
38951   ac_cv_func_localtime_r=yes
38952 else
38953   echo "$as_me: failed program was:" >&5
38954 sed 's/^/| /' conftest.$ac_ext >&5
38955
38956 ac_cv_func_localtime_r=no
38957 fi
38958 rm -f conftest.err conftest.$ac_objext \
38959       conftest$ac_exeext conftest.$ac_ext
38960 fi
38961 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38962 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38963 if test $ac_cv_func_localtime_r = yes; then
38964    cat >>confdefs.h <<\_ACEOF
38965 #define HAVE_LOCALTIME_R 1
38966 _ACEOF
38967
38968 fi
38969
38970 echo "$as_me:$LINENO: checking for gmtime_r" >&5
38971 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38972 if test "${ac_cv_func_gmtime_r+set}" = set; then
38973   echo $ECHO_N "(cached) $ECHO_C" >&6
38974 else
38975   cat >conftest.$ac_ext <<_ACEOF
38976 /* confdefs.h.  */
38977 _ACEOF
38978 cat confdefs.h >>conftest.$ac_ext
38979 cat >>conftest.$ac_ext <<_ACEOF
38980 /* end confdefs.h.  */
38981 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38983 #define gmtime_r innocuous_gmtime_r
38984
38985 /* System header to define __stub macros and hopefully few prototypes,
38986     which can conflict with char gmtime_r (); below.
38987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38988     <limits.h> exists even on freestanding compilers.  */
38989
38990 #ifdef __STDC__
38991 # include <limits.h>
38992 #else
38993 # include <assert.h>
38994 #endif
38995
38996 #undef gmtime_r
38997
38998 /* Override any gcc2 internal prototype to avoid an error.  */
38999 #ifdef __cplusplus
39000 extern "C"
39001 {
39002 #endif
39003 /* We use char because int might match the return type of a gcc2
39004    builtin and then its argument prototype would still apply.  */
39005 char gmtime_r ();
39006 /* The GNU C library defines this for functions which it implements
39007     to always fail with ENOSYS.  Some functions are actually named
39008     something starting with __ and the normal name is an alias.  */
39009 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39010 choke me
39011 #else
39012 char (*f) () = gmtime_r;
39013 #endif
39014 #ifdef __cplusplus
39015 }
39016 #endif
39017
39018 int
39019 main ()
39020 {
39021 return f != gmtime_r;
39022   ;
39023   return 0;
39024 }
39025 _ACEOF
39026 rm -f conftest.$ac_objext conftest$ac_exeext
39027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39028   (eval $ac_link) 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } &&
39035          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037   (eval $ac_try) 2>&5
39038   ac_status=$?
39039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040   (exit $ac_status); }; } &&
39041          { ac_try='test -s conftest$ac_exeext'
39042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043   (eval $ac_try) 2>&5
39044   ac_status=$?
39045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046   (exit $ac_status); }; }; then
39047   ac_cv_func_gmtime_r=yes
39048 else
39049   echo "$as_me: failed program was:" >&5
39050 sed 's/^/| /' conftest.$ac_ext >&5
39051
39052 ac_cv_func_gmtime_r=no
39053 fi
39054 rm -f conftest.err conftest.$ac_objext \
39055       conftest$ac_exeext conftest.$ac_ext
39056 fi
39057 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39058 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39059 if test $ac_cv_func_gmtime_r = yes; then
39060    cat >>confdefs.h <<\_ACEOF
39061 #define HAVE_GMTIME_R 1
39062 _ACEOF
39063
39064 fi
39065
39066 echo "$as_me:$LINENO: checking for readdir_r" >&5
39067 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39068 if test "${ac_cv_func_readdir_r+set}" = set; then
39069   echo $ECHO_N "(cached) $ECHO_C" >&6
39070 else
39071   cat >conftest.$ac_ext <<_ACEOF
39072 /* confdefs.h.  */
39073 _ACEOF
39074 cat confdefs.h >>conftest.$ac_ext
39075 cat >>conftest.$ac_ext <<_ACEOF
39076 /* end confdefs.h.  */
39077 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39079 #define readdir_r innocuous_readdir_r
39080
39081 /* System header to define __stub macros and hopefully few prototypes,
39082     which can conflict with char readdir_r (); below.
39083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39084     <limits.h> exists even on freestanding compilers.  */
39085
39086 #ifdef __STDC__
39087 # include <limits.h>
39088 #else
39089 # include <assert.h>
39090 #endif
39091
39092 #undef readdir_r
39093
39094 /* Override any gcc2 internal prototype to avoid an error.  */
39095 #ifdef __cplusplus
39096 extern "C"
39097 {
39098 #endif
39099 /* We use char because int might match the return type of a gcc2
39100    builtin and then its argument prototype would still apply.  */
39101 char readdir_r ();
39102 /* The GNU C library defines this for functions which it implements
39103     to always fail with ENOSYS.  Some functions are actually named
39104     something starting with __ and the normal name is an alias.  */
39105 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39106 choke me
39107 #else
39108 char (*f) () = readdir_r;
39109 #endif
39110 #ifdef __cplusplus
39111 }
39112 #endif
39113
39114 int
39115 main ()
39116 {
39117 return f != readdir_r;
39118   ;
39119   return 0;
39120 }
39121 _ACEOF
39122 rm -f conftest.$ac_objext conftest$ac_exeext
39123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39124   (eval $ac_link) 2>conftest.er1
39125   ac_status=$?
39126   grep -v '^ *+' conftest.er1 >conftest.err
39127   rm -f conftest.er1
39128   cat conftest.err >&5
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); } &&
39131          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133   (eval $ac_try) 2>&5
39134   ac_status=$?
39135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136   (exit $ac_status); }; } &&
39137          { ac_try='test -s conftest$ac_exeext'
39138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139   (eval $ac_try) 2>&5
39140   ac_status=$?
39141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142   (exit $ac_status); }; }; then
39143   ac_cv_func_readdir_r=yes
39144 else
39145   echo "$as_me: failed program was:" >&5
39146 sed 's/^/| /' conftest.$ac_ext >&5
39147
39148 ac_cv_func_readdir_r=no
39149 fi
39150 rm -f conftest.err conftest.$ac_objext \
39151       conftest$ac_exeext conftest.$ac_ext
39152 fi
39153 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39154 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39155 if test $ac_cv_func_readdir_r = yes; then
39156    cat >>confdefs.h <<\_ACEOF
39157 #define HAVE_READDIR_R 1
39158 _ACEOF
39159
39160 fi
39161
39162
39163
39164
39165     ac_ext=c
39166 ac_cpp='$CPP $CPPFLAGS'
39167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39170
39171     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39172 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39173
39174     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39175   echo $ECHO_N "(cached) $ECHO_C" >&6
39176 else
39177
39178
39179
39180 ac_cv_func_which_gethostbyname_r=unknown
39181
39182 #
39183 # ONE ARGUMENT (sanity check)
39184 #
39185
39186 # This should fail, as there is no variant of gethostbyname_r() that takes
39187 # a single argument. If it actually compiles, then we can assume that
39188 # netdb.h is not declaring the function, and the compiler is thereby
39189 # assuming an implicit prototype. In which case, we're out of luck.
39190 #
39191 cat >conftest.$ac_ext <<_ACEOF
39192 /* confdefs.h.  */
39193 _ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h.  */
39197 #include <netdb.h>
39198 int
39199 main ()
39200 {
39201
39202             char *name = "www.gnu.org";
39203             (void)gethostbyname_r(name) /* ; */
39204
39205   ;
39206   return 0;
39207 }
39208 _ACEOF
39209 rm -f conftest.$ac_objext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211   (eval $ac_compile) 2>conftest.er1
39212   ac_status=$?
39213   grep -v '^ *+' conftest.er1 >conftest.err
39214   rm -f conftest.er1
39215   cat conftest.err >&5
39216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217   (exit $ac_status); } &&
39218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39220   (eval $ac_try) 2>&5
39221   ac_status=$?
39222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223   (exit $ac_status); }; } &&
39224          { ac_try='test -s conftest.$ac_objext'
39225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39226   (eval $ac_try) 2>&5
39227   ac_status=$?
39228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229   (exit $ac_status); }; }; then
39230   ac_cv_func_which_gethostbyname_r=no
39231 else
39232   echo "$as_me: failed program was:" >&5
39233 sed 's/^/| /' conftest.$ac_ext >&5
39234
39235 fi
39236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39237
39238 #
39239 # SIX ARGUMENTS
39240 # (e.g. Linux)
39241 #
39242
39243 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39244
39245 cat >conftest.$ac_ext <<_ACEOF
39246 /* confdefs.h.  */
39247 _ACEOF
39248 cat confdefs.h >>conftest.$ac_ext
39249 cat >>conftest.$ac_ext <<_ACEOF
39250 /* end confdefs.h.  */
39251 #include <netdb.h>
39252 int
39253 main ()
39254 {
39255
39256             char *name = "www.gnu.org";
39257             struct hostent ret, *retp;
39258             char buf[1024];
39259             int buflen = 1024;
39260             int my_h_errno;
39261             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39262
39263   ;
39264   return 0;
39265 }
39266 _ACEOF
39267 rm -f conftest.$ac_objext
39268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39269   (eval $ac_compile) 2>conftest.er1
39270   ac_status=$?
39271   grep -v '^ *+' conftest.er1 >conftest.err
39272   rm -f conftest.er1
39273   cat conftest.err >&5
39274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275   (exit $ac_status); } &&
39276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39278   (eval $ac_try) 2>&5
39279   ac_status=$?
39280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281   (exit $ac_status); }; } &&
39282          { ac_try='test -s conftest.$ac_objext'
39283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284   (eval $ac_try) 2>&5
39285   ac_status=$?
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); }; }; then
39288   ac_cv_func_which_gethostbyname_r=six
39289 else
39290   echo "$as_me: failed program was:" >&5
39291 sed 's/^/| /' conftest.$ac_ext >&5
39292
39293 fi
39294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39295
39296 fi
39297
39298 #
39299 # FIVE ARGUMENTS
39300 # (e.g. Solaris)
39301 #
39302
39303 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39304
39305 cat >conftest.$ac_ext <<_ACEOF
39306 /* confdefs.h.  */
39307 _ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h.  */
39311 #include <netdb.h>
39312 int
39313 main ()
39314 {
39315
39316             char *name = "www.gnu.org";
39317             struct hostent ret;
39318             char buf[1024];
39319             int buflen = 1024;
39320             int my_h_errno;
39321             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39322
39323   ;
39324   return 0;
39325 }
39326 _ACEOF
39327 rm -f conftest.$ac_objext
39328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39329   (eval $ac_compile) 2>conftest.er1
39330   ac_status=$?
39331   grep -v '^ *+' conftest.er1 >conftest.err
39332   rm -f conftest.er1
39333   cat conftest.err >&5
39334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335   (exit $ac_status); } &&
39336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39338   (eval $ac_try) 2>&5
39339   ac_status=$?
39340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341   (exit $ac_status); }; } &&
39342          { ac_try='test -s conftest.$ac_objext'
39343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39344   (eval $ac_try) 2>&5
39345   ac_status=$?
39346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39347   (exit $ac_status); }; }; then
39348   ac_cv_func_which_gethostbyname_r=five
39349 else
39350   echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39352
39353 fi
39354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39355
39356 fi
39357
39358 #
39359 # THREE ARGUMENTS
39360 # (e.g. AIX, HP-UX, Tru64)
39361 #
39362
39363 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39364
39365 cat >conftest.$ac_ext <<_ACEOF
39366 /* confdefs.h.  */
39367 _ACEOF
39368 cat confdefs.h >>conftest.$ac_ext
39369 cat >>conftest.$ac_ext <<_ACEOF
39370 /* end confdefs.h.  */
39371 #include <netdb.h>
39372 int
39373 main ()
39374 {
39375
39376             char *name = "www.gnu.org";
39377             struct hostent ret;
39378             struct hostent_data data;
39379             (void)gethostbyname_r(name, &ret, &data) /* ; */
39380
39381   ;
39382   return 0;
39383 }
39384 _ACEOF
39385 rm -f conftest.$ac_objext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39387   (eval $ac_compile) 2>conftest.er1
39388   ac_status=$?
39389   grep -v '^ *+' conftest.er1 >conftest.err
39390   rm -f conftest.er1
39391   cat conftest.err >&5
39392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393   (exit $ac_status); } &&
39394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
39400          { ac_try='test -s conftest.$ac_objext'
39401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39402   (eval $ac_try) 2>&5
39403   ac_status=$?
39404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39405   (exit $ac_status); }; }; then
39406   ac_cv_func_which_gethostbyname_r=three
39407 else
39408   echo "$as_me: failed program was:" >&5
39409 sed 's/^/| /' conftest.$ac_ext >&5
39410
39411 fi
39412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39413
39414 fi
39415
39416
39417
39418 fi
39419
39420 case "$ac_cv_func_which_gethostbyname_r" in
39421     three)
39422     echo "$as_me:$LINENO: result: three" >&5
39423 echo "${ECHO_T}three" >&6
39424     cat >>confdefs.h <<\_ACEOF
39425 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39426 _ACEOF
39427
39428     ;;
39429
39430     five)
39431     echo "$as_me:$LINENO: result: five" >&5
39432 echo "${ECHO_T}five" >&6
39433     cat >>confdefs.h <<\_ACEOF
39434 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39435 _ACEOF
39436
39437     ;;
39438
39439     six)
39440     echo "$as_me:$LINENO: result: six" >&5
39441 echo "${ECHO_T}six" >&6
39442     cat >>confdefs.h <<\_ACEOF
39443 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39444 _ACEOF
39445
39446     ;;
39447
39448     no)
39449     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39450 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39451     ;;
39452
39453     unknown)
39454     echo "$as_me:$LINENO: result: can't tell" >&5
39455 echo "${ECHO_T}can't tell" >&6
39456     ;;
39457
39458     *)
39459     { { echo "$as_me:$LINENO: error: internal error" >&5
39460 echo "$as_me: error: internal error" >&2;}
39461    { (exit 1); exit 1; }; }
39462     ;;
39463 esac
39464
39465 ac_ext=cc
39466 ac_cpp='$CXXCPP $CPPFLAGS'
39467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39470
39471
39472
39473       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39474               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39475           echo "$as_me:$LINENO: checking for gethostbyname" >&5
39476 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39477 if test "${ac_cv_func_gethostbyname+set}" = set; then
39478   echo $ECHO_N "(cached) $ECHO_C" >&6
39479 else
39480   cat >conftest.$ac_ext <<_ACEOF
39481 /* confdefs.h.  */
39482 _ACEOF
39483 cat confdefs.h >>conftest.$ac_ext
39484 cat >>conftest.$ac_ext <<_ACEOF
39485 /* end confdefs.h.  */
39486 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39488 #define gethostbyname innocuous_gethostbyname
39489
39490 /* System header to define __stub macros and hopefully few prototypes,
39491     which can conflict with char gethostbyname (); below.
39492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39493     <limits.h> exists even on freestanding compilers.  */
39494
39495 #ifdef __STDC__
39496 # include <limits.h>
39497 #else
39498 # include <assert.h>
39499 #endif
39500
39501 #undef gethostbyname
39502
39503 /* Override any gcc2 internal prototype to avoid an error.  */
39504 #ifdef __cplusplus
39505 extern "C"
39506 {
39507 #endif
39508 /* We use char because int might match the return type of a gcc2
39509    builtin and then its argument prototype would still apply.  */
39510 char gethostbyname ();
39511 /* The GNU C library defines this for functions which it implements
39512     to always fail with ENOSYS.  Some functions are actually named
39513     something starting with __ and the normal name is an alias.  */
39514 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39515 choke me
39516 #else
39517 char (*f) () = gethostbyname;
39518 #endif
39519 #ifdef __cplusplus
39520 }
39521 #endif
39522
39523 int
39524 main ()
39525 {
39526 return f != gethostbyname;
39527   ;
39528   return 0;
39529 }
39530 _ACEOF
39531 rm -f conftest.$ac_objext conftest$ac_exeext
39532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39533   (eval $ac_link) 2>conftest.er1
39534   ac_status=$?
39535   grep -v '^ *+' conftest.er1 >conftest.err
39536   rm -f conftest.er1
39537   cat conftest.err >&5
39538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539   (exit $ac_status); } &&
39540          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39542   (eval $ac_try) 2>&5
39543   ac_status=$?
39544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545   (exit $ac_status); }; } &&
39546          { ac_try='test -s conftest$ac_exeext'
39547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39548   (eval $ac_try) 2>&5
39549   ac_status=$?
39550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551   (exit $ac_status); }; }; then
39552   ac_cv_func_gethostbyname=yes
39553 else
39554   echo "$as_me: failed program was:" >&5
39555 sed 's/^/| /' conftest.$ac_ext >&5
39556
39557 ac_cv_func_gethostbyname=no
39558 fi
39559 rm -f conftest.err conftest.$ac_objext \
39560       conftest$ac_exeext conftest.$ac_ext
39561 fi
39562 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39563 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39564 if test $ac_cv_func_gethostbyname = yes; then
39565    cat >>confdefs.h <<\_ACEOF
39566 #define HAVE_GETHOSTBYNAME 1
39567 _ACEOF
39568
39569 fi
39570
39571       fi
39572                               echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39573 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
39574 if test "${ac_cv_func_getservbyname_r+set}" = set; then
39575   echo $ECHO_N "(cached) $ECHO_C" >&6
39576 else
39577   cat >conftest.$ac_ext <<_ACEOF
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39585 #define getservbyname_r innocuous_getservbyname_r
39586
39587 /* System header to define __stub macros and hopefully few prototypes,
39588     which can conflict with char getservbyname_r (); below.
39589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39590     <limits.h> exists even on freestanding compilers.  */
39591
39592 #ifdef __STDC__
39593 # include <limits.h>
39594 #else
39595 # include <assert.h>
39596 #endif
39597
39598 #undef getservbyname_r
39599
39600 /* Override any gcc2 internal prototype to avoid an error.  */
39601 #ifdef __cplusplus
39602 extern "C"
39603 {
39604 #endif
39605 /* We use char because int might match the return type of a gcc2
39606    builtin and then its argument prototype would still apply.  */
39607 char getservbyname_r ();
39608 /* The GNU C library defines this for functions which it implements
39609     to always fail with ENOSYS.  Some functions are actually named
39610     something starting with __ and the normal name is an alias.  */
39611 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39612 choke me
39613 #else
39614 char (*f) () = getservbyname_r;
39615 #endif
39616 #ifdef __cplusplus
39617 }
39618 #endif
39619
39620 int
39621 main ()
39622 {
39623 return f != getservbyname_r;
39624   ;
39625   return 0;
39626 }
39627 _ACEOF
39628 rm -f conftest.$ac_objext conftest$ac_exeext
39629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39630   (eval $ac_link) 2>conftest.er1
39631   ac_status=$?
39632   grep -v '^ *+' conftest.er1 >conftest.err
39633   rm -f conftest.er1
39634   cat conftest.err >&5
39635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636   (exit $ac_status); } &&
39637          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39639   (eval $ac_try) 2>&5
39640   ac_status=$?
39641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642   (exit $ac_status); }; } &&
39643          { ac_try='test -s conftest$ac_exeext'
39644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39645   (eval $ac_try) 2>&5
39646   ac_status=$?
39647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648   (exit $ac_status); }; }; then
39649   ac_cv_func_getservbyname_r=yes
39650 else
39651   echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39653
39654 ac_cv_func_getservbyname_r=no
39655 fi
39656 rm -f conftest.err conftest.$ac_objext \
39657       conftest$ac_exeext conftest.$ac_ext
39658 fi
39659 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39660 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39661 if test $ac_cv_func_getservbyname_r = yes; then
39662   cat >conftest.$ac_ext <<_ACEOF
39663 /* confdefs.h.  */
39664 _ACEOF
39665 cat confdefs.h >>conftest.$ac_ext
39666 cat >>conftest.$ac_ext <<_ACEOF
39667 /* end confdefs.h.  */
39668 #include <netdb.h>
39669 int
39670 main ()
39671 {
39672
39673             char *name;
39674             char *proto;
39675             struct servent *se;
39676             struct servent_data data;
39677             (void) getservbyname_r(name, proto, se, &data);
39678
39679   ;
39680   return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685   (eval $ac_compile) 2>conftest.er1
39686   ac_status=$?
39687   grep -v '^ *+' conftest.er1 >conftest.err
39688   rm -f conftest.er1
39689   cat conftest.err >&5
39690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691   (exit $ac_status); } &&
39692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694   (eval $ac_try) 2>&5
39695   ac_status=$?
39696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697   (exit $ac_status); }; } &&
39698          { ac_try='test -s conftest.$ac_objext'
39699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700   (eval $ac_try) 2>&5
39701   ac_status=$?
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); }; }; then
39704   ac_cv_func_which_getservbyname_r=four
39705 else
39706   echo "$as_me: failed program was:" >&5
39707 sed 's/^/| /' conftest.$ac_ext >&5
39708
39709 cat >conftest.$ac_ext <<_ACEOF
39710 /* confdefs.h.  */
39711 _ACEOF
39712 cat confdefs.h >>conftest.$ac_ext
39713 cat >>conftest.$ac_ext <<_ACEOF
39714 /* end confdefs.h.  */
39715 #include <netdb.h>
39716 int
39717 main ()
39718 {
39719
39720                 char *name;
39721                 char *proto;
39722                 struct servent *se, *res;
39723                 char buffer[2048];
39724                 int buflen = 2048;
39725                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
39726
39727   ;
39728   return 0;
39729 }
39730 _ACEOF
39731 rm -f conftest.$ac_objext
39732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39733   (eval $ac_compile) 2>conftest.er1
39734   ac_status=$?
39735   grep -v '^ *+' conftest.er1 >conftest.err
39736   rm -f conftest.er1
39737   cat conftest.err >&5
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); } &&
39740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39742   (eval $ac_try) 2>&5
39743   ac_status=$?
39744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745   (exit $ac_status); }; } &&
39746          { ac_try='test -s conftest.$ac_objext'
39747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748   (eval $ac_try) 2>&5
39749   ac_status=$?
39750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751   (exit $ac_status); }; }; then
39752   ac_cv_func_which_getservbyname_r=six
39753 else
39754   echo "$as_me: failed program was:" >&5
39755 sed 's/^/| /' conftest.$ac_ext >&5
39756
39757 cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h.  */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h.  */
39763 #include <netdb.h>
39764 int
39765 main ()
39766 {
39767
39768                     char *name;
39769                     char *proto;
39770                     struct servent *se;
39771                     char buffer[2048];
39772                     int buflen = 2048;
39773                     (void) getservbyname_r(name, proto, se, buffer, buflen)
39774
39775   ;
39776   return 0;
39777 }
39778 _ACEOF
39779 rm -f conftest.$ac_objext
39780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39781   (eval $ac_compile) 2>conftest.er1
39782   ac_status=$?
39783   grep -v '^ *+' conftest.er1 >conftest.err
39784   rm -f conftest.er1
39785   cat conftest.err >&5
39786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787   (exit $ac_status); } &&
39788          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790   (eval $ac_try) 2>&5
39791   ac_status=$?
39792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793   (exit $ac_status); }; } &&
39794          { ac_try='test -s conftest.$ac_objext'
39795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39796   (eval $ac_try) 2>&5
39797   ac_status=$?
39798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799   (exit $ac_status); }; }; then
39800   ac_cv_func_which_getservbyname_r=five
39801 else
39802   echo "$as_me: failed program was:" >&5
39803 sed 's/^/| /' conftest.$ac_ext >&5
39804
39805 ac_cv_func_which_getservbyname_r=no
39806
39807 fi
39808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39809
39810 fi
39811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39812
39813 fi
39814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39815 else
39816   ac_cv_func_which_getservbyname_r=no
39817 fi
39818
39819
39820 if test $ac_cv_func_which_getservbyname_r = six; then
39821   cat >>confdefs.h <<\_ACEOF
39822 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
39823 _ACEOF
39824
39825 elif test $ac_cv_func_which_getservbyname_r = five; then
39826   cat >>confdefs.h <<\_ACEOF
39827 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
39828 _ACEOF
39829
39830 elif test $ac_cv_func_which_getservbyname_r = four; then
39831   cat >>confdefs.h <<\_ACEOF
39832 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
39833 _ACEOF
39834
39835 fi
39836
39837
39838       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39839               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39840
39841 for ac_func in getservbyname
39842 do
39843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39844 echo "$as_me:$LINENO: checking for $ac_func" >&5
39845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39846 if eval "test \"\${$as_ac_var+set}\" = set"; then
39847   echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849   cat >conftest.$ac_ext <<_ACEOF
39850 /* confdefs.h.  */
39851 _ACEOF
39852 cat confdefs.h >>conftest.$ac_ext
39853 cat >>conftest.$ac_ext <<_ACEOF
39854 /* end confdefs.h.  */
39855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39857 #define $ac_func innocuous_$ac_func
39858
39859 /* System header to define __stub macros and hopefully few prototypes,
39860     which can conflict with char $ac_func (); below.
39861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39862     <limits.h> exists even on freestanding compilers.  */
39863
39864 #ifdef __STDC__
39865 # include <limits.h>
39866 #else
39867 # include <assert.h>
39868 #endif
39869
39870 #undef $ac_func
39871
39872 /* Override any gcc2 internal prototype to avoid an error.  */
39873 #ifdef __cplusplus
39874 extern "C"
39875 {
39876 #endif
39877 /* We use char because int might match the return type of a gcc2
39878    builtin and then its argument prototype would still apply.  */
39879 char $ac_func ();
39880 /* The GNU C library defines this for functions which it implements
39881     to always fail with ENOSYS.  Some functions are actually named
39882     something starting with __ and the normal name is an alias.  */
39883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39884 choke me
39885 #else
39886 char (*f) () = $ac_func;
39887 #endif
39888 #ifdef __cplusplus
39889 }
39890 #endif
39891
39892 int
39893 main ()
39894 {
39895 return f != $ac_func;
39896   ;
39897   return 0;
39898 }
39899 _ACEOF
39900 rm -f conftest.$ac_objext conftest$ac_exeext
39901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39902   (eval $ac_link) 2>conftest.er1
39903   ac_status=$?
39904   grep -v '^ *+' conftest.er1 >conftest.err
39905   rm -f conftest.er1
39906   cat conftest.err >&5
39907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908   (exit $ac_status); } &&
39909          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911   (eval $ac_try) 2>&5
39912   ac_status=$?
39913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914   (exit $ac_status); }; } &&
39915          { ac_try='test -s conftest$ac_exeext'
39916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917   (eval $ac_try) 2>&5
39918   ac_status=$?
39919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); }; }; then
39921   eval "$as_ac_var=yes"
39922 else
39923   echo "$as_me: failed program was:" >&5
39924 sed 's/^/| /' conftest.$ac_ext >&5
39925
39926 eval "$as_ac_var=no"
39927 fi
39928 rm -f conftest.err conftest.$ac_objext \
39929       conftest$ac_exeext conftest.$ac_ext
39930 fi
39931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39933 if test `eval echo '${'$as_ac_var'}'` = yes; then
39934   cat >>confdefs.h <<_ACEOF
39935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39936 _ACEOF
39937   cat >>confdefs.h <<\_ACEOF
39938 #define HAVE_GETSERVBYNAME 1
39939 _ACEOF
39940
39941 fi
39942 done
39943
39944       fi
39945
39946 if test "$wxUSE_THREADS" = "yes"; then
39947   cat >>confdefs.h <<\_ACEOF
39948 #define wxUSE_THREADS 1
39949 _ACEOF
39950
39951
39952   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39953 else
39954       if test "$ac_cv_func_strtok_r" = "yes"; then
39955     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39956 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39957     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39958         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39959         echo "$as_me:$LINENO: result: yes" >&5
39960 echo "${ECHO_T}yes" >&6
39961     else
39962         echo "$as_me:$LINENO: result: no" >&5
39963 echo "${ECHO_T}no" >&6
39964     fi
39965   fi
39966 fi
39967
39968 if test "$WXGTK20" = 1 ; then
39969   cat >>confdefs.h <<_ACEOF
39970 #define __WXGTK20__ $WXGTK20
39971 _ACEOF
39972
39973   WXGTK12=1
39974 fi
39975
39976 if test "$WXGTK12" = 1 ; then
39977   cat >>confdefs.h <<_ACEOF
39978 #define __WXGTK12__ $WXGTK12
39979 _ACEOF
39980
39981 fi
39982
39983 if test "$WXGTK127" = 1 ; then
39984   cat >>confdefs.h <<_ACEOF
39985 #define __WXGTK127__ $WXGTK127
39986 _ACEOF
39987
39988 fi
39989
39990 if test "$WXGPE" = 1 ; then
39991   cat >>confdefs.h <<_ACEOF
39992 #define __WXGPE__ $WXGPE
39993 _ACEOF
39994
39995 fi
39996
39997 DEBUG_CFLAGS=
39998 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39999     DEBUG_CFLAGS="-g"
40000     wxUSE_OPTIMISE=no
40001 fi
40002
40003 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40004     wxUSE_DEBUG_INFO=yes
40005     if test "$GCC" = yes; then
40006         DEBUG_CFLAGS="-ggdb"
40007     fi
40008 fi
40009
40010 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40011     cat >>confdefs.h <<\_ACEOF
40012 #define WXDEBUG 1
40013 _ACEOF
40014
40015     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40016 else
40017     if test "$wxUSE_GTK" = 1 ; then
40018         if test "x$wxGTK_VERSION" = "x1" ; then
40019             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40020         fi
40021     fi
40022 fi
40023
40024 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40025     cat >>confdefs.h <<\_ACEOF
40026 #define wxUSE_MEMORY_TRACING 1
40027 _ACEOF
40028
40029     cat >>confdefs.h <<\_ACEOF
40030 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40031 _ACEOF
40032
40033     cat >>confdefs.h <<\_ACEOF
40034 #define wxUSE_DEBUG_NEW_ALWAYS 1
40035 _ACEOF
40036
40037     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40038 fi
40039
40040 if test "$wxUSE_DMALLOC" = "yes" ; then
40041     DMALLOC_LIBS="-ldmallocthcxx"
40042 fi
40043
40044 PROFILE_FLAGS=
40045 if test "$wxUSE_PROFILE" = "yes" ; then
40046     PROFILE_FLAGS=" -pg"
40047 fi
40048
40049 if test "$GCC" = "yes" ; then
40050     if test "$wxUSE_NO_RTTI" = "yes" ; then
40051         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40052     fi
40053     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40054         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40055     fi
40056     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40057         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40058     fi
40059
40060                                                 case "${host}" in
40061       powerpc*-*-aix* )
40062         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40063         ;;
40064       *-hppa* )
40065         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40066         ;;
40067     esac
40068 fi
40069
40070 OPTIMISE_CFLAGS=
40071 if test "$wxUSE_OPTIMISE" = "no" ; then
40072     if test "$GCC" = yes ; then
40073                         OPTIMISE_CFLAGS="-O0"
40074     fi
40075 else
40076     if test "$GCC" = yes ; then
40077         case "${host}" in
40078             *-pc-os2_emx | *-pc-os2-emx )
40079                                                 OPTIMISE_CFLAGS="-O2"
40080             ;;
40081             *)
40082                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40083             ;;
40084         esac
40085     else
40086         OPTIMISE_CFLAGS="-O"
40087     fi
40088 fi
40089
40090
40091 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40092     cat >>confdefs.h <<\_ACEOF
40093 #define WXWIN_COMPATIBILITY_2_4 1
40094 _ACEOF
40095
40096
40097     WXWIN_COMPATIBILITY_2_6="yes"
40098 fi
40099
40100 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40101     cat >>confdefs.h <<\_ACEOF
40102 #define WXWIN_COMPATIBILITY_2_6 1
40103 _ACEOF
40104
40105 fi
40106
40107
40108 if test "$wxUSE_GUI" = "yes"; then
40109     cat >>confdefs.h <<\_ACEOF
40110 #define wxUSE_GUI 1
40111 _ACEOF
40112
40113
40114                                             fi
40115
40116
40117 if test "$wxUSE_UNIX" = "yes"; then
40118   cat >>confdefs.h <<\_ACEOF
40119 #define wxUSE_UNIX 1
40120 _ACEOF
40121
40122 fi
40123
40124
40125 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40126
40127     HAVE_DL_FUNCS=0
40128     HAVE_SHL_FUNCS=0
40129     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40130         if test "$USE_DARWIN" = 1; then
40131                         HAVE_DL_FUNCS=1
40132         elif test "$USE_DOS" = 1; then
40133             HAVE_DL_FUNCS=0
40134         else
40135
40136 for ac_func in dlopen
40137 do
40138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40139 echo "$as_me:$LINENO: checking for $ac_func" >&5
40140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40141 if eval "test \"\${$as_ac_var+set}\" = set"; then
40142   echo $ECHO_N "(cached) $ECHO_C" >&6
40143 else
40144   cat >conftest.$ac_ext <<_ACEOF
40145 /* confdefs.h.  */
40146 _ACEOF
40147 cat confdefs.h >>conftest.$ac_ext
40148 cat >>conftest.$ac_ext <<_ACEOF
40149 /* end confdefs.h.  */
40150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40152 #define $ac_func innocuous_$ac_func
40153
40154 /* System header to define __stub macros and hopefully few prototypes,
40155     which can conflict with char $ac_func (); below.
40156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40157     <limits.h> exists even on freestanding compilers.  */
40158
40159 #ifdef __STDC__
40160 # include <limits.h>
40161 #else
40162 # include <assert.h>
40163 #endif
40164
40165 #undef $ac_func
40166
40167 /* Override any gcc2 internal prototype to avoid an error.  */
40168 #ifdef __cplusplus
40169 extern "C"
40170 {
40171 #endif
40172 /* We use char because int might match the return type of a gcc2
40173    builtin and then its argument prototype would still apply.  */
40174 char $ac_func ();
40175 /* The GNU C library defines this for functions which it implements
40176     to always fail with ENOSYS.  Some functions are actually named
40177     something starting with __ and the normal name is an alias.  */
40178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40179 choke me
40180 #else
40181 char (*f) () = $ac_func;
40182 #endif
40183 #ifdef __cplusplus
40184 }
40185 #endif
40186
40187 int
40188 main ()
40189 {
40190 return f != $ac_func;
40191   ;
40192   return 0;
40193 }
40194 _ACEOF
40195 rm -f conftest.$ac_objext conftest$ac_exeext
40196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40197   (eval $ac_link) 2>conftest.er1
40198   ac_status=$?
40199   grep -v '^ *+' conftest.er1 >conftest.err
40200   rm -f conftest.er1
40201   cat conftest.err >&5
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); } &&
40204          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206   (eval $ac_try) 2>&5
40207   ac_status=$?
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); }; } &&
40210          { ac_try='test -s conftest$ac_exeext'
40211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212   (eval $ac_try) 2>&5
40213   ac_status=$?
40214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215   (exit $ac_status); }; }; then
40216   eval "$as_ac_var=yes"
40217 else
40218   echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40220
40221 eval "$as_ac_var=no"
40222 fi
40223 rm -f conftest.err conftest.$ac_objext \
40224       conftest$ac_exeext conftest.$ac_ext
40225 fi
40226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40228 if test `eval echo '${'$as_ac_var'}'` = yes; then
40229   cat >>confdefs.h <<_ACEOF
40230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40231 _ACEOF
40232
40233                 cat >>confdefs.h <<\_ACEOF
40234 #define HAVE_DLOPEN 1
40235 _ACEOF
40236
40237                 HAVE_DL_FUNCS=1
40238
40239 else
40240
40241                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40244   echo $ECHO_N "(cached) $ECHO_C" >&6
40245 else
40246   ac_check_lib_save_LIBS=$LIBS
40247 LIBS="-ldl  $LIBS"
40248 cat >conftest.$ac_ext <<_ACEOF
40249 /* confdefs.h.  */
40250 _ACEOF
40251 cat confdefs.h >>conftest.$ac_ext
40252 cat >>conftest.$ac_ext <<_ACEOF
40253 /* end confdefs.h.  */
40254
40255 /* Override any gcc2 internal prototype to avoid an error.  */
40256 #ifdef __cplusplus
40257 extern "C"
40258 #endif
40259 /* We use char because int might match the return type of a gcc2
40260    builtin and then its argument prototype would still apply.  */
40261 char dlopen ();
40262 int
40263 main ()
40264 {
40265 dlopen ();
40266   ;
40267   return 0;
40268 }
40269 _ACEOF
40270 rm -f conftest.$ac_objext conftest$ac_exeext
40271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40272   (eval $ac_link) 2>conftest.er1
40273   ac_status=$?
40274   grep -v '^ *+' conftest.er1 >conftest.err
40275   rm -f conftest.er1
40276   cat conftest.err >&5
40277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278   (exit $ac_status); } &&
40279          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281   (eval $ac_try) 2>&5
40282   ac_status=$?
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); }; } &&
40285          { ac_try='test -s conftest$ac_exeext'
40286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287   (eval $ac_try) 2>&5
40288   ac_status=$?
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); }; }; then
40291   ac_cv_lib_dl_dlopen=yes
40292 else
40293   echo "$as_me: failed program was:" >&5
40294 sed 's/^/| /' conftest.$ac_ext >&5
40295
40296 ac_cv_lib_dl_dlopen=no
40297 fi
40298 rm -f conftest.err conftest.$ac_objext \
40299       conftest$ac_exeext conftest.$ac_ext
40300 LIBS=$ac_check_lib_save_LIBS
40301 fi
40302 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40303 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40304 if test $ac_cv_lib_dl_dlopen = yes; then
40305
40306                                 cat >>confdefs.h <<\_ACEOF
40307 #define HAVE_DLOPEN 1
40308 _ACEOF
40309
40310                                 HAVE_DL_FUNCS=1
40311                                 DL_LINK=" -ldl$DL_LINK"
40312
40313 else
40314
40315
40316 for ac_func in shl_load
40317 do
40318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40319 echo "$as_me:$LINENO: checking for $ac_func" >&5
40320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40321 if eval "test \"\${$as_ac_var+set}\" = set"; then
40322   echo $ECHO_N "(cached) $ECHO_C" >&6
40323 else
40324   cat >conftest.$ac_ext <<_ACEOF
40325 /* confdefs.h.  */
40326 _ACEOF
40327 cat confdefs.h >>conftest.$ac_ext
40328 cat >>conftest.$ac_ext <<_ACEOF
40329 /* end confdefs.h.  */
40330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40332 #define $ac_func innocuous_$ac_func
40333
40334 /* System header to define __stub macros and hopefully few prototypes,
40335     which can conflict with char $ac_func (); below.
40336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40337     <limits.h> exists even on freestanding compilers.  */
40338
40339 #ifdef __STDC__
40340 # include <limits.h>
40341 #else
40342 # include <assert.h>
40343 #endif
40344
40345 #undef $ac_func
40346
40347 /* Override any gcc2 internal prototype to avoid an error.  */
40348 #ifdef __cplusplus
40349 extern "C"
40350 {
40351 #endif
40352 /* We use char because int might match the return type of a gcc2
40353    builtin and then its argument prototype would still apply.  */
40354 char $ac_func ();
40355 /* The GNU C library defines this for functions which it implements
40356     to always fail with ENOSYS.  Some functions are actually named
40357     something starting with __ and the normal name is an alias.  */
40358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40359 choke me
40360 #else
40361 char (*f) () = $ac_func;
40362 #endif
40363 #ifdef __cplusplus
40364 }
40365 #endif
40366
40367 int
40368 main ()
40369 {
40370 return f != $ac_func;
40371   ;
40372   return 0;
40373 }
40374 _ACEOF
40375 rm -f conftest.$ac_objext conftest$ac_exeext
40376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40377   (eval $ac_link) 2>conftest.er1
40378   ac_status=$?
40379   grep -v '^ *+' conftest.er1 >conftest.err
40380   rm -f conftest.er1
40381   cat conftest.err >&5
40382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383   (exit $ac_status); } &&
40384          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40386   (eval $ac_try) 2>&5
40387   ac_status=$?
40388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40389   (exit $ac_status); }; } &&
40390          { ac_try='test -s conftest$ac_exeext'
40391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40392   (eval $ac_try) 2>&5
40393   ac_status=$?
40394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395   (exit $ac_status); }; }; then
40396   eval "$as_ac_var=yes"
40397 else
40398   echo "$as_me: failed program was:" >&5
40399 sed 's/^/| /' conftest.$ac_ext >&5
40400
40401 eval "$as_ac_var=no"
40402 fi
40403 rm -f conftest.err conftest.$ac_objext \
40404       conftest$ac_exeext conftest.$ac_ext
40405 fi
40406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40408 if test `eval echo '${'$as_ac_var'}'` = yes; then
40409   cat >>confdefs.h <<_ACEOF
40410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40411 _ACEOF
40412
40413                                                 cat >>confdefs.h <<\_ACEOF
40414 #define HAVE_SHL_LOAD 1
40415 _ACEOF
40416
40417                                                 HAVE_SHL_FUNCS=1
40418
40419 else
40420
40421                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40422 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40423 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40424   echo $ECHO_N "(cached) $ECHO_C" >&6
40425 else
40426   ac_check_lib_save_LIBS=$LIBS
40427 LIBS="-lshl_load  $LIBS"
40428 cat >conftest.$ac_ext <<_ACEOF
40429 /* confdefs.h.  */
40430 _ACEOF
40431 cat confdefs.h >>conftest.$ac_ext
40432 cat >>conftest.$ac_ext <<_ACEOF
40433 /* end confdefs.h.  */
40434
40435 /* Override any gcc2 internal prototype to avoid an error.  */
40436 #ifdef __cplusplus
40437 extern "C"
40438 #endif
40439 /* We use char because int might match the return type of a gcc2
40440    builtin and then its argument prototype would still apply.  */
40441 char dld ();
40442 int
40443 main ()
40444 {
40445 dld ();
40446   ;
40447   return 0;
40448 }
40449 _ACEOF
40450 rm -f conftest.$ac_objext conftest$ac_exeext
40451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40452   (eval $ac_link) 2>conftest.er1
40453   ac_status=$?
40454   grep -v '^ *+' conftest.er1 >conftest.err
40455   rm -f conftest.er1
40456   cat conftest.err >&5
40457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458   (exit $ac_status); } &&
40459          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40461   (eval $ac_try) 2>&5
40462   ac_status=$?
40463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464   (exit $ac_status); }; } &&
40465          { ac_try='test -s conftest$ac_exeext'
40466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40467   (eval $ac_try) 2>&5
40468   ac_status=$?
40469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470   (exit $ac_status); }; }; then
40471   ac_cv_lib_shl_load_dld=yes
40472 else
40473   echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.$ac_ext >&5
40475
40476 ac_cv_lib_shl_load_dld=no
40477 fi
40478 rm -f conftest.err conftest.$ac_objext \
40479       conftest$ac_exeext conftest.$ac_ext
40480 LIBS=$ac_check_lib_save_LIBS
40481 fi
40482 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40483 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40484 if test $ac_cv_lib_shl_load_dld = yes; then
40485
40486                                                                 HAVE_SHL_FUNCS=1
40487                                                                 DL_LINK=" -ldld$DL_LINK"
40488
40489 fi
40490
40491
40492 fi
40493 done
40494
40495
40496 fi
40497
40498
40499 fi
40500 done
40501
40502
40503                 if test "$HAVE_DL_FUNCS" = 1; then
40504
40505 for ac_func in dlerror
40506 do
40507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40508 echo "$as_me:$LINENO: checking for $ac_func" >&5
40509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40510 if eval "test \"\${$as_ac_var+set}\" = set"; then
40511   echo $ECHO_N "(cached) $ECHO_C" >&6
40512 else
40513   cat >conftest.$ac_ext <<_ACEOF
40514 /* confdefs.h.  */
40515 _ACEOF
40516 cat confdefs.h >>conftest.$ac_ext
40517 cat >>conftest.$ac_ext <<_ACEOF
40518 /* end confdefs.h.  */
40519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40521 #define $ac_func innocuous_$ac_func
40522
40523 /* System header to define __stub macros and hopefully few prototypes,
40524     which can conflict with char $ac_func (); below.
40525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40526     <limits.h> exists even on freestanding compilers.  */
40527
40528 #ifdef __STDC__
40529 # include <limits.h>
40530 #else
40531 # include <assert.h>
40532 #endif
40533
40534 #undef $ac_func
40535
40536 /* Override any gcc2 internal prototype to avoid an error.  */
40537 #ifdef __cplusplus
40538 extern "C"
40539 {
40540 #endif
40541 /* We use char because int might match the return type of a gcc2
40542    builtin and then its argument prototype would still apply.  */
40543 char $ac_func ();
40544 /* The GNU C library defines this for functions which it implements
40545     to always fail with ENOSYS.  Some functions are actually named
40546     something starting with __ and the normal name is an alias.  */
40547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40548 choke me
40549 #else
40550 char (*f) () = $ac_func;
40551 #endif
40552 #ifdef __cplusplus
40553 }
40554 #endif
40555
40556 int
40557 main ()
40558 {
40559 return f != $ac_func;
40560   ;
40561   return 0;
40562 }
40563 _ACEOF
40564 rm -f conftest.$ac_objext conftest$ac_exeext
40565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40566   (eval $ac_link) 2>conftest.er1
40567   ac_status=$?
40568   grep -v '^ *+' conftest.er1 >conftest.err
40569   rm -f conftest.er1
40570   cat conftest.err >&5
40571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572   (exit $ac_status); } &&
40573          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575   (eval $ac_try) 2>&5
40576   ac_status=$?
40577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578   (exit $ac_status); }; } &&
40579          { ac_try='test -s conftest$ac_exeext'
40580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40581   (eval $ac_try) 2>&5
40582   ac_status=$?
40583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584   (exit $ac_status); }; }; then
40585   eval "$as_ac_var=yes"
40586 else
40587   echo "$as_me: failed program was:" >&5
40588 sed 's/^/| /' conftest.$ac_ext >&5
40589
40590 eval "$as_ac_var=no"
40591 fi
40592 rm -f conftest.err conftest.$ac_objext \
40593       conftest$ac_exeext conftest.$ac_ext
40594 fi
40595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40597 if test `eval echo '${'$as_ac_var'}'` = yes; then
40598   cat >>confdefs.h <<_ACEOF
40599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40600 _ACEOF
40601  cat >>confdefs.h <<\_ACEOF
40602 #define HAVE_DLERROR 1
40603 _ACEOF
40604
40605 else
40606
40607                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40608 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40609 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40610   echo $ECHO_N "(cached) $ECHO_C" >&6
40611 else
40612   ac_check_lib_save_LIBS=$LIBS
40613 LIBS="-ldl  $LIBS"
40614 cat >conftest.$ac_ext <<_ACEOF
40615 /* confdefs.h.  */
40616 _ACEOF
40617 cat confdefs.h >>conftest.$ac_ext
40618 cat >>conftest.$ac_ext <<_ACEOF
40619 /* end confdefs.h.  */
40620
40621 /* Override any gcc2 internal prototype to avoid an error.  */
40622 #ifdef __cplusplus
40623 extern "C"
40624 #endif
40625 /* We use char because int might match the return type of a gcc2
40626    builtin and then its argument prototype would still apply.  */
40627 char dlerror ();
40628 int
40629 main ()
40630 {
40631 dlerror ();
40632   ;
40633   return 0;
40634 }
40635 _ACEOF
40636 rm -f conftest.$ac_objext conftest$ac_exeext
40637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40638   (eval $ac_link) 2>conftest.er1
40639   ac_status=$?
40640   grep -v '^ *+' conftest.er1 >conftest.err
40641   rm -f conftest.er1
40642   cat conftest.err >&5
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); } &&
40645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647   (eval $ac_try) 2>&5
40648   ac_status=$?
40649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650   (exit $ac_status); }; } &&
40651          { ac_try='test -s conftest$ac_exeext'
40652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40653   (eval $ac_try) 2>&5
40654   ac_status=$?
40655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656   (exit $ac_status); }; }; then
40657   ac_cv_lib_dl_dlerror=yes
40658 else
40659   echo "$as_me: failed program was:" >&5
40660 sed 's/^/| /' conftest.$ac_ext >&5
40661
40662 ac_cv_lib_dl_dlerror=no
40663 fi
40664 rm -f conftest.err conftest.$ac_objext \
40665       conftest$ac_exeext conftest.$ac_ext
40666 LIBS=$ac_check_lib_save_LIBS
40667 fi
40668 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40669 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40670 if test $ac_cv_lib_dl_dlerror = yes; then
40671   cat >>confdefs.h <<\_ACEOF
40672 #define HAVE_DLERROR 1
40673 _ACEOF
40674
40675 fi
40676
40677
40678
40679 fi
40680 done
40681
40682         fi
40683         fi
40684
40685         if test "$HAVE_DL_FUNCS" = 0; then
40686             if test "$HAVE_SHL_FUNCS" = 0; then
40687               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
40688                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40689 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40690                   wxUSE_DYNAMIC_LOADER=no
40691                   wxUSE_DYNLIB_CLASS=no
40692               else
40693                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40694 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40695               fi
40696             fi
40697         fi
40698     fi
40699 fi
40700
40701 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40702     cat >>confdefs.h <<\_ACEOF
40703 #define wxUSE_DYNAMIC_LOADER 1
40704 _ACEOF
40705
40706 fi
40707 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40708     cat >>confdefs.h <<\_ACEOF
40709 #define wxUSE_DYNLIB_CLASS 1
40710 _ACEOF
40711
40712 fi
40713
40714
40715
40716 if test "$wxUSE_PLUGINS" = "yes" ; then
40717     if test "$wxUSE_SHARED" = "no" ; then
40718         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40719 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40720         wxUSE_PLUGINS=no
40721     fi
40722     if test "$wxUSE_MONOLITHIC" = "yes" ; then
40723         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40724 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40725         wxUSE_PLUGINS=no
40726     fi
40727     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40728         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40729 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40730         wxUSE_PLUGINS=no
40731     fi
40732     if test "$wxUSE_PLUGINS" = "yes" ; then
40733         cat >>confdefs.h <<\_ACEOF
40734 #define wxUSE_PLUGINS 1
40735 _ACEOF
40736
40737     fi
40738 fi
40739
40740
40741 if test "$wxUSE_STL" = "yes"; then
40742   cat >>confdefs.h <<\_ACEOF
40743 #define wxUSE_STL 1
40744 _ACEOF
40745
40746 fi
40747
40748 if test "$wxUSE_APPLE_IEEE" = "yes"; then
40749   cat >>confdefs.h <<\_ACEOF
40750 #define wxUSE_APPLE_IEEE 1
40751 _ACEOF
40752
40753 fi
40754
40755 if test "$wxUSE_TIMER" = "yes"; then
40756   cat >>confdefs.h <<\_ACEOF
40757 #define wxUSE_TIMER 1
40758 _ACEOF
40759
40760 fi
40761
40762 if test "$USE_UNIX" = "1" ; then
40763                 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40764 echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40765 if test "${ac_cv_header_sys_soundcard+set}" = set; then
40766   echo $ECHO_N "(cached) $ECHO_C" >&6
40767 else
40768
40769         cat >conftest.$ac_ext <<_ACEOF
40770 /* confdefs.h.  */
40771 _ACEOF
40772 cat confdefs.h >>conftest.$ac_ext
40773 cat >>conftest.$ac_ext <<_ACEOF
40774 /* end confdefs.h.  */
40775
40776                 #include <sys/soundcard.h>
40777
40778 int
40779 main ()
40780 {
40781
40782                 ioctl(0, SNDCTL_DSP_SYNC, 0);
40783
40784   ;
40785   return 0;
40786 }
40787 _ACEOF
40788 rm -f conftest.$ac_objext conftest$ac_exeext
40789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40790   (eval $ac_link) 2>conftest.er1
40791   ac_status=$?
40792   grep -v '^ *+' conftest.er1 >conftest.err
40793   rm -f conftest.er1
40794   cat conftest.err >&5
40795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796   (exit $ac_status); } &&
40797          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40799   (eval $ac_try) 2>&5
40800   ac_status=$?
40801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802   (exit $ac_status); }; } &&
40803          { ac_try='test -s conftest$ac_exeext'
40804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40805   (eval $ac_try) 2>&5
40806   ac_status=$?
40807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808   (exit $ac_status); }; }; then
40809   ac_cv_header_sys_soundcard=yes
40810 else
40811   echo "$as_me: failed program was:" >&5
40812 sed 's/^/| /' conftest.$ac_ext >&5
40813
40814
40815                 saveLibs="$LIBS"
40816                 LIBS="$saveLibs -lossaudio"
40817                 cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823
40824                         #include <sys/soundcard.h>
40825
40826 int
40827 main ()
40828 {
40829
40830                         ioctl(0, SNDCTL_DSP_SYNC, 0);
40831
40832   ;
40833   return 0;
40834 }
40835 _ACEOF
40836 rm -f conftest.$ac_objext conftest$ac_exeext
40837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40838   (eval $ac_link) 2>conftest.er1
40839   ac_status=$?
40840   grep -v '^ *+' conftest.er1 >conftest.err
40841   rm -f conftest.er1
40842   cat conftest.err >&5
40843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844   (exit $ac_status); } &&
40845          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847   (eval $ac_try) 2>&5
40848   ac_status=$?
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); }; } &&
40851          { ac_try='test -s conftest$ac_exeext'
40852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853   (eval $ac_try) 2>&5
40854   ac_status=$?
40855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856   (exit $ac_status); }; }; then
40857   ac_cv_header_sys_soundcard=yes
40858 else
40859   echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40861
40862
40863                         LIBS="$saveLibs"
40864                         ac_cv_header_sys_soundcard=no
40865
40866
40867 fi
40868 rm -f conftest.err conftest.$ac_objext \
40869       conftest$ac_exeext conftest.$ac_ext
40870
40871
40872 fi
40873 rm -f conftest.err conftest.$ac_objext \
40874       conftest$ac_exeext conftest.$ac_ext
40875
40876 fi
40877 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40878 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
40879
40880     if test "$ac_cv_header_sys_soundcard" = "yes"; then
40881         cat >>confdefs.h <<\_ACEOF
40882 #define HAVE_SYS_SOUNDCARD_H 1
40883 _ACEOF
40884
40885     else
40886         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40887     fi
40888 fi
40889 WITH_PLUGIN_SDL=0
40890 if test "$wxUSE_SOUND" = "yes"; then
40891   if test "$USE_UNIX" = "1" ; then
40892     if test "$wxUSE_LIBSDL" != "no"; then
40893
40894 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40895 if test "${with_sdl_prefix+set}" = set; then
40896   withval="$with_sdl_prefix"
40897   sdl_prefix="$withval"
40898 else
40899   sdl_prefix=""
40900 fi;
40901
40902 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40903 if test "${with_sdl_exec_prefix+set}" = set; then
40904   withval="$with_sdl_exec_prefix"
40905   sdl_exec_prefix="$withval"
40906 else
40907   sdl_exec_prefix=""
40908 fi;
40909 # Check whether --enable-sdltest or --disable-sdltest was given.
40910 if test "${enable_sdltest+set}" = set; then
40911   enableval="$enable_sdltest"
40912
40913 else
40914   enable_sdltest=yes
40915 fi;
40916
40917   if test x$sdl_exec_prefix != x ; then
40918      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40919      if test x${SDL_CONFIG+set} != xset ; then
40920         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40921      fi
40922   fi
40923   if test x$sdl_prefix != x ; then
40924      sdl_args="$sdl_args --prefix=$sdl_prefix"
40925      if test x${SDL_CONFIG+set} != xset ; then
40926         SDL_CONFIG=$sdl_prefix/bin/sdl-config
40927      fi
40928   fi
40929
40930
40931   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40932   # Extract the first word of "sdl-config", so it can be a program name with args.
40933 set dummy sdl-config; ac_word=$2
40934 echo "$as_me:$LINENO: checking for $ac_word" >&5
40935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40936 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40937   echo $ECHO_N "(cached) $ECHO_C" >&6
40938 else
40939   case $SDL_CONFIG in
40940   [\\/]* | ?:[\\/]*)
40941   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40942   ;;
40943   *)
40944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40945 for as_dir in $PATH
40946 do
40947   IFS=$as_save_IFS
40948   test -z "$as_dir" && as_dir=.
40949   for ac_exec_ext in '' $ac_executable_extensions; do
40950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40951     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40953     break 2
40954   fi
40955 done
40956 done
40957
40958   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40959   ;;
40960 esac
40961 fi
40962 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40963
40964 if test -n "$SDL_CONFIG"; then
40965   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40966 echo "${ECHO_T}$SDL_CONFIG" >&6
40967 else
40968   echo "$as_me:$LINENO: result: no" >&5
40969 echo "${ECHO_T}no" >&6
40970 fi
40971
40972   min_sdl_version=1.2.0
40973   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40974 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40975   no_sdl=""
40976   if test "$SDL_CONFIG" = "no" ; then
40977     no_sdl=yes
40978   else
40979     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40980     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40981
40982     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40984     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40985            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40986     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40987            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40988     if test "x$enable_sdltest" = "xyes" ; then
40989       ac_save_CFLAGS="$CFLAGS"
40990       ac_save_CXXFLAGS="$CXXFLAGS"
40991       ac_save_LIBS="$LIBS"
40992       CFLAGS="$CFLAGS $SDL_CFLAGS"
40993       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
40994       LIBS="$LIBS $SDL_LIBS"
40995       rm -f conf.sdltest
40996       if test "$cross_compiling" = yes; then
40997   echo $ac_n "cross compiling; assumed OK... $ac_c"
40998 else
40999   cat >conftest.$ac_ext <<_ACEOF
41000 /* confdefs.h.  */
41001 _ACEOF
41002 cat confdefs.h >>conftest.$ac_ext
41003 cat >>conftest.$ac_ext <<_ACEOF
41004 /* end confdefs.h.  */
41005
41006 #include <stdio.h>
41007 #include <stdlib.h>
41008 #include <string.h>
41009 #include "SDL.h"
41010
41011 char*
41012 my_strdup (char *str)
41013 {
41014   char *new_str;
41015
41016   if (str)
41017     {
41018       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41019       strcpy (new_str, str);
41020     }
41021   else
41022     new_str = NULL;
41023
41024   return new_str;
41025 }
41026
41027 int main (int argc, char *argv[])
41028 {
41029   int major, minor, micro;
41030   char *tmp_version;
41031
41032   /* This hangs on some systems (?)
41033   system ("touch conf.sdltest");
41034   */
41035   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41036
41037   /* HP/UX 9 (%@#!) writes to sscanf strings */
41038   tmp_version = my_strdup("$min_sdl_version");
41039   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41040      printf("%s, bad version string\n", "$min_sdl_version");
41041      exit(1);
41042    }
41043
41044    if (($sdl_major_version > major) ||
41045       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41046       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41047     {
41048       return 0;
41049     }
41050   else
41051     {
41052       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41053       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41054       printf("*** best to upgrade to the required version.\n");
41055       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41056       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41057       printf("*** config.cache before re-running configure\n");
41058       return 1;
41059     }
41060 }
41061
41062
41063 _ACEOF
41064 rm -f conftest$ac_exeext
41065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41066   (eval $ac_link) 2>&5
41067   ac_status=$?
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071   (eval $ac_try) 2>&5
41072   ac_status=$?
41073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074   (exit $ac_status); }; }; then
41075   :
41076 else
41077   echo "$as_me: program exited with status $ac_status" >&5
41078 echo "$as_me: failed program was:" >&5
41079 sed 's/^/| /' conftest.$ac_ext >&5
41080
41081 ( exit $ac_status )
41082 no_sdl=yes
41083 fi
41084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41085 fi
41086        CFLAGS="$ac_save_CFLAGS"
41087        CXXFLAGS="$ac_save_CXXFLAGS"
41088        LIBS="$ac_save_LIBS"
41089      fi
41090   fi
41091   if test "x$no_sdl" = x ; then
41092      echo "$as_me:$LINENO: result: yes" >&5
41093 echo "${ECHO_T}yes" >&6
41094
41095                     EXTRALIBS_SDL="$SDL_LIBS"
41096                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41097                     cat >>confdefs.h <<\_ACEOF
41098 #define wxUSE_LIBSDL 1
41099 _ACEOF
41100
41101
41102   else
41103      echo "$as_me:$LINENO: result: no" >&5
41104 echo "${ECHO_T}no" >&6
41105      if test "$SDL_CONFIG" = "no" ; then
41106        echo "*** The sdl-config script installed by SDL could not be found"
41107        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41108        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41109        echo "*** full path to sdl-config."
41110      else
41111        if test -f conf.sdltest ; then
41112         :
41113        else
41114           echo "*** Could not run SDL test program, checking why..."
41115           CFLAGS="$CFLAGS $SDL_CFLAGS"
41116           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41117           LIBS="$LIBS $SDL_LIBS"
41118           cat >conftest.$ac_ext <<_ACEOF
41119 /* confdefs.h.  */
41120 _ACEOF
41121 cat confdefs.h >>conftest.$ac_ext
41122 cat >>conftest.$ac_ext <<_ACEOF
41123 /* end confdefs.h.  */
41124
41125 #include <stdio.h>
41126 #include "SDL.h"
41127
41128 int main(int argc, char *argv[])
41129 { return 0; }
41130 #undef  main
41131 #define main K_and_R_C_main
41132
41133 int
41134 main ()
41135 {
41136  return 0;
41137   ;
41138   return 0;
41139 }
41140 _ACEOF
41141 rm -f conftest.$ac_objext conftest$ac_exeext
41142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41143   (eval $ac_link) 2>conftest.er1
41144   ac_status=$?
41145   grep -v '^ *+' conftest.er1 >conftest.err
41146   rm -f conftest.er1
41147   cat conftest.err >&5
41148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149   (exit $ac_status); } &&
41150          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152   (eval $ac_try) 2>&5
41153   ac_status=$?
41154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155   (exit $ac_status); }; } &&
41156          { ac_try='test -s conftest$ac_exeext'
41157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158   (eval $ac_try) 2>&5
41159   ac_status=$?
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); }; }; then
41162    echo "*** The test program compiled, but did not run. This usually means"
41163           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41164           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41165           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41166           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41167           echo "*** is required on your system"
41168           echo "***"
41169           echo "*** If you have an old version installed, it is best to remove it, although"
41170           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41171 else
41172   echo "$as_me: failed program was:" >&5
41173 sed 's/^/| /' conftest.$ac_ext >&5
41174
41175  echo "*** The test program failed to compile or link. See the file config.log for the"
41176           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41177           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41178           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41179 fi
41180 rm -f conftest.err conftest.$ac_objext \
41181       conftest$ac_exeext conftest.$ac_ext
41182           CFLAGS="$ac_save_CFLAGS"
41183           CXXFLAGS="$ac_save_CXXFLAGS"
41184           LIBS="$ac_save_LIBS"
41185        fi
41186      fi
41187      SDL_CFLAGS=""
41188      SDL_LIBS=""
41189      wxUSE_LIBSDL="no"
41190   fi
41191
41192
41193   rm -f conf.sdltest
41194
41195       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41196         WITH_PLUGIN_SDL=1
41197       fi
41198     fi
41199   fi
41200
41201   cat >>confdefs.h <<\_ACEOF
41202 #define wxUSE_SOUND 1
41203 _ACEOF
41204
41205   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41206 fi
41207
41208 if test "$WXGTK20" = 1; then
41209     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41210         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41211
41212
41213   succeeded=no
41214
41215   if test -z "$PKG_CONFIG"; then
41216     # Extract the first word of "pkg-config", so it can be a program name with args.
41217 set dummy pkg-config; ac_word=$2
41218 echo "$as_me:$LINENO: checking for $ac_word" >&5
41219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41221   echo $ECHO_N "(cached) $ECHO_C" >&6
41222 else
41223   case $PKG_CONFIG in
41224   [\\/]* | ?:[\\/]*)
41225   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41226   ;;
41227   *)
41228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41229 for as_dir in $PATH
41230 do
41231   IFS=$as_save_IFS
41232   test -z "$as_dir" && as_dir=.
41233   for ac_exec_ext in '' $ac_executable_extensions; do
41234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41235     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41237     break 2
41238   fi
41239 done
41240 done
41241
41242   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41243   ;;
41244 esac
41245 fi
41246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41247
41248 if test -n "$PKG_CONFIG"; then
41249   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41250 echo "${ECHO_T}$PKG_CONFIG" >&6
41251 else
41252   echo "$as_me:$LINENO: result: no" >&5
41253 echo "${ECHO_T}no" >&6
41254 fi
41255
41256   fi
41257
41258   if test "$PKG_CONFIG" = "no" ; then
41259      echo "*** The pkg-config script could not be found. Make sure it is"
41260      echo "*** in your path, or set the PKG_CONFIG environment variable"
41261      echo "*** to the full path to pkg-config."
41262      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41263   else
41264      PKG_CONFIG_MIN_VERSION=0.9.0
41265      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41266         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41267 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
41268
41269         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
41270             echo "$as_me:$LINENO: result: yes" >&5
41271 echo "${ECHO_T}yes" >&6
41272             succeeded=yes
41273
41274             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41275 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
41276             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
41277             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41278 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41279
41280             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41281 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
41282             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
41283             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41284 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41285         else
41286             LIBGNOMEPRINTUI_CFLAGS=""
41287             LIBGNOMEPRINTUI_LIBS=""
41288             ## If we have a custom action on failure, don't print errors, but
41289             ## do set a variable so people can do so.
41290             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41291
41292         fi
41293
41294
41295
41296      else
41297         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41298         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41299      fi
41300   fi
41301
41302   if test $succeeded = yes; then
41303
41304                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41305                         cat >>confdefs.h <<\_ACEOF
41306 #define wxUSE_LIBGNOMEPRINT 1
41307 _ACEOF
41308
41309
41310   else
41311
41312                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41313 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41314                         wxUSE_LIBGNOMEPRINT="no"
41315
41316
41317   fi
41318
41319         fi
41320     fi
41321 fi
41322
41323 if test "$WXGTK20" = 1; then
41324     if test "$wxUSE_MIMETYPE" = "yes" ; then
41325         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41326
41327
41328   succeeded=no
41329
41330   if test -z "$PKG_CONFIG"; then
41331     # Extract the first word of "pkg-config", so it can be a program name with args.
41332 set dummy pkg-config; ac_word=$2
41333 echo "$as_me:$LINENO: checking for $ac_word" >&5
41334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41335 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41336   echo $ECHO_N "(cached) $ECHO_C" >&6
41337 else
41338   case $PKG_CONFIG in
41339   [\\/]* | ?:[\\/]*)
41340   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41341   ;;
41342   *)
41343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41344 for as_dir in $PATH
41345 do
41346   IFS=$as_save_IFS
41347   test -z "$as_dir" && as_dir=.
41348   for ac_exec_ext in '' $ac_executable_extensions; do
41349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41350     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41352     break 2
41353   fi
41354 done
41355 done
41356
41357   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41358   ;;
41359 esac
41360 fi
41361 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41362
41363 if test -n "$PKG_CONFIG"; then
41364   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41365 echo "${ECHO_T}$PKG_CONFIG" >&6
41366 else
41367   echo "$as_me:$LINENO: result: no" >&5
41368 echo "${ECHO_T}no" >&6
41369 fi
41370
41371   fi
41372
41373   if test "$PKG_CONFIG" = "no" ; then
41374      echo "*** The pkg-config script could not be found. Make sure it is"
41375      echo "*** in your path, or set the PKG_CONFIG environment variable"
41376      echo "*** to the full path to pkg-config."
41377      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41378   else
41379      PKG_CONFIG_MIN_VERSION=0.9.0
41380      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41381         echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41382 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41383
41384         if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41385             echo "$as_me:$LINENO: result: yes" >&5
41386 echo "${ECHO_T}yes" >&6
41387             succeeded=yes
41388
41389             echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41390 echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41391             GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41392             echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41393 echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41394
41395             echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41396 echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41397             GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41398             echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41399 echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41400         else
41401             GNOMEVFS_CFLAGS=""
41402             GNOMEVFS_LIBS=""
41403             ## If we have a custom action on failure, don't print errors, but
41404             ## do set a variable so people can do so.
41405             GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41406
41407         fi
41408
41409
41410
41411      else
41412         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41413         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41414      fi
41415   fi
41416
41417   if test $succeeded = yes; then
41418
41419                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41420                         cat >>confdefs.h <<\_ACEOF
41421 #define wxUSE_LIBGNOMEVFS 1
41422 _ACEOF
41423
41424
41425   else
41426
41427                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41428 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41429                         wxUSE_LIBGNOMEVFS="no"
41430
41431
41432   fi
41433
41434         fi
41435     fi
41436 fi
41437
41438 if test "$WXGTK20" = 1; then
41439     if test "$wxUSE_LIBHILDON" = "yes" ; then
41440
41441   succeeded=no
41442
41443   if test -z "$PKG_CONFIG"; then
41444     # Extract the first word of "pkg-config", so it can be a program name with args.
41445 set dummy pkg-config; ac_word=$2
41446 echo "$as_me:$LINENO: checking for $ac_word" >&5
41447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41448 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 else
41451   case $PKG_CONFIG in
41452   [\\/]* | ?:[\\/]*)
41453   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41454   ;;
41455   *)
41456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41457 for as_dir in $PATH
41458 do
41459   IFS=$as_save_IFS
41460   test -z "$as_dir" && as_dir=.
41461   for ac_exec_ext in '' $ac_executable_extensions; do
41462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41463     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41465     break 2
41466   fi
41467 done
41468 done
41469
41470   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41471   ;;
41472 esac
41473 fi
41474 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41475
41476 if test -n "$PKG_CONFIG"; then
41477   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41478 echo "${ECHO_T}$PKG_CONFIG" >&6
41479 else
41480   echo "$as_me:$LINENO: result: no" >&5
41481 echo "${ECHO_T}no" >&6
41482 fi
41483
41484   fi
41485
41486   if test "$PKG_CONFIG" = "no" ; then
41487      echo "*** The pkg-config script could not be found. Make sure it is"
41488      echo "*** in your path, or set the PKG_CONFIG environment variable"
41489      echo "*** to the full path to pkg-config."
41490      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41491   else
41492      PKG_CONFIG_MIN_VERSION=0.9.0
41493      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41494         echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41495 echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41496
41497         if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41498             echo "$as_me:$LINENO: result: yes" >&5
41499 echo "${ECHO_T}yes" >&6
41500             succeeded=yes
41501
41502             echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41503 echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41504             HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41505             echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41506 echo "${ECHO_T}$HILDON_CFLAGS" >&6
41507
41508             echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41509 echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41510             HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41511             echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41512 echo "${ECHO_T}$HILDON_LIBS" >&6
41513         else
41514             HILDON_CFLAGS=""
41515             HILDON_LIBS=""
41516             ## If we have a custom action on failure, don't print errors, but
41517             ## do set a variable so people can do so.
41518             HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41519
41520         fi
41521
41522
41523
41524      else
41525         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41526         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41527      fi
41528   fi
41529
41530   if test $succeeded = yes; then
41531
41532                 EXTRALIBS_HILDON="$HILDON_LIBS"
41533                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41534                 cat >>confdefs.h <<\_ACEOF
41535 #define wxUSE_LIBHILDON 1
41536 _ACEOF
41537
41538
41539   else
41540
41541                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41542 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41543                         wxUSE_LIBHILDON="no"
41544
41545
41546   fi
41547
41548     fi
41549 fi
41550
41551 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41552   cat >>confdefs.h <<\_ACEOF
41553 #define wxUSE_CMDLINE_PARSER 1
41554 _ACEOF
41555
41556 fi
41557
41558 if test "$wxUSE_STOPWATCH" = "yes"; then
41559   cat >>confdefs.h <<\_ACEOF
41560 #define wxUSE_STOPWATCH 1
41561 _ACEOF
41562
41563 fi
41564
41565 if test "$wxUSE_DATETIME" = "yes"; then
41566   cat >>confdefs.h <<\_ACEOF
41567 #define wxUSE_DATETIME 1
41568 _ACEOF
41569
41570 fi
41571
41572 if test "$wxUSE_FILE" = "yes"; then
41573   cat >>confdefs.h <<\_ACEOF
41574 #define wxUSE_FILE 1
41575 _ACEOF
41576
41577 fi
41578
41579 if test "$wxUSE_FFILE" = "yes"; then
41580   cat >>confdefs.h <<\_ACEOF
41581 #define wxUSE_FFILE 1
41582 _ACEOF
41583
41584 fi
41585
41586 if test "$wxUSE_FILESYSTEM" = "yes"; then
41587   cat >>confdefs.h <<\_ACEOF
41588 #define wxUSE_FILESYSTEM 1
41589 _ACEOF
41590
41591 fi
41592
41593 if test "$wxUSE_FS_ZIP" = "yes"; then
41594   cat >>confdefs.h <<\_ACEOF
41595 #define wxUSE_FS_ZIP 1
41596 _ACEOF
41597
41598 fi
41599
41600 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
41601   cat >>confdefs.h <<\_ACEOF
41602 #define wxUSE_ARCHIVE_STREAMS 1
41603 _ACEOF
41604
41605 fi
41606
41607 if test "$wxUSE_ZIPSTREAM" = "yes"; then
41608   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
41609     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41610 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41611   elif test "$wxUSE_ZLIB" = "no"; then
41612     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41613 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41614   else
41615     cat >>confdefs.h <<\_ACEOF
41616 #define wxUSE_ZIPSTREAM 1
41617 _ACEOF
41618
41619   fi
41620 fi
41621
41622 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41623   if test "$USE_UNIX" != 1; then
41624     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41625 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41626     wxUSE_ON_FATAL_EXCEPTION=no
41627   else
41628     cat >>confdefs.h <<\_ACEOF
41629 #define wxUSE_ON_FATAL_EXCEPTION 1
41630 _ACEOF
41631
41632   fi
41633 fi
41634
41635 if test "$wxUSE_STACKWALKER" = "yes"; then
41636     cat >>confdefs.h <<\_ACEOF
41637 #define wxUSE_STACKWALKER 1
41638 _ACEOF
41639
41640 fi
41641
41642 if test "$wxUSE_DEBUGREPORT" = "yes"; then
41643     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41644         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41645 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
41646         wxUSE_DEBUGREPORT=no
41647     else
41648         cat >>confdefs.h <<\_ACEOF
41649 #define wxUSE_DEBUGREPORT 1
41650 _ACEOF
41651
41652         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41653             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41654         fi
41655     fi
41656 fi
41657
41658 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41659   cat >>confdefs.h <<\_ACEOF
41660 #define wxUSE_SNGLINST_CHECKER 1
41661 _ACEOF
41662
41663 fi
41664
41665 if test "$wxUSE_BUSYINFO" = "yes"; then
41666   cat >>confdefs.h <<\_ACEOF
41667 #define wxUSE_BUSYINFO 1
41668 _ACEOF
41669
41670 fi
41671
41672 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41673   cat >>confdefs.h <<\_ACEOF
41674 #define wxUSE_STD_IOSTREAM 1
41675 _ACEOF
41676
41677 fi
41678
41679 if test "$wxUSE_STD_STRING" = "yes"; then
41680   cat >>confdefs.h <<\_ACEOF
41681 #define wxUSE_STD_STRING 1
41682 _ACEOF
41683
41684 fi
41685
41686 if test "$wxUSE_STDPATHS" = "yes"; then
41687   cat >>confdefs.h <<\_ACEOF
41688 #define wxUSE_STDPATHS 1
41689 _ACEOF
41690
41691 fi
41692
41693 if test "$wxUSE_TEXTBUFFER" = "yes"; then
41694     cat >>confdefs.h <<\_ACEOF
41695 #define wxUSE_TEXTBUFFER 1
41696 _ACEOF
41697
41698 fi
41699
41700 if test "$wxUSE_TEXTFILE" = "yes"; then
41701   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41702     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41703 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41704   else
41705     cat >>confdefs.h <<\_ACEOF
41706 #define wxUSE_TEXTFILE 1
41707 _ACEOF
41708
41709   fi
41710 fi
41711
41712 if test "$wxUSE_CONFIG" = "yes" ; then
41713   if test "$wxUSE_TEXTFILE" != "yes"; then
41714     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41715 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41716   else
41717     cat >>confdefs.h <<\_ACEOF
41718 #define wxUSE_CONFIG 1
41719 _ACEOF
41720
41721     cat >>confdefs.h <<\_ACEOF
41722 #define wxUSE_CONFIG_NATIVE 1
41723 _ACEOF
41724
41725     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41726   fi
41727 fi
41728
41729 if test "$wxUSE_INTL" = "yes" ; then
41730   if test "$wxUSE_FILE" != "yes"; then
41731     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41732 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41733   else
41734     cat >>confdefs.h <<\_ACEOF
41735 #define wxUSE_INTL 1
41736 _ACEOF
41737
41738     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41739     GUIDIST="$GUIDIST INTL_DIST"
41740   fi
41741 fi
41742
41743 if test "$wxUSE_LOG" = "yes"; then
41744   cat >>confdefs.h <<\_ACEOF
41745 #define wxUSE_LOG 1
41746 _ACEOF
41747
41748
41749     if test "$wxUSE_LOGGUI" = "yes"; then
41750       cat >>confdefs.h <<\_ACEOF
41751 #define wxUSE_LOGGUI 1
41752 _ACEOF
41753
41754     fi
41755
41756     if test "$wxUSE_LOGWINDOW" = "yes"; then
41757       cat >>confdefs.h <<\_ACEOF
41758 #define wxUSE_LOGWINDOW 1
41759 _ACEOF
41760
41761     fi
41762
41763     if test "$wxUSE_LOGDIALOG" = "yes"; then
41764       cat >>confdefs.h <<\_ACEOF
41765 #define wxUSE_LOG_DIALOG 1
41766 _ACEOF
41767
41768     fi
41769
41770         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
41771 fi
41772
41773 if test "$wxUSE_LONGLONG" = "yes"; then
41774   cat >>confdefs.h <<\_ACEOF
41775 #define wxUSE_LONGLONG 1
41776 _ACEOF
41777
41778 fi
41779
41780 if test "$wxUSE_GEOMETRY" = "yes"; then
41781   cat >>confdefs.h <<\_ACEOF
41782 #define wxUSE_GEOMETRY 1
41783 _ACEOF
41784
41785 fi
41786
41787 if test "$wxUSE_STREAMS" = "yes" ; then
41788   cat >>confdefs.h <<\_ACEOF
41789 #define wxUSE_STREAMS 1
41790 _ACEOF
41791
41792 fi
41793
41794
41795 if test "$wxUSE_DATETIME" = "yes"; then
41796
41797 for ac_func in strptime
41798 do
41799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41800 echo "$as_me:$LINENO: checking for $ac_func" >&5
41801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41802 if eval "test \"\${$as_ac_var+set}\" = set"; then
41803   echo $ECHO_N "(cached) $ECHO_C" >&6
41804 else
41805   cat >conftest.$ac_ext <<_ACEOF
41806 /* confdefs.h.  */
41807 _ACEOF
41808 cat confdefs.h >>conftest.$ac_ext
41809 cat >>conftest.$ac_ext <<_ACEOF
41810 /* end confdefs.h.  */
41811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41813 #define $ac_func innocuous_$ac_func
41814
41815 /* System header to define __stub macros and hopefully few prototypes,
41816     which can conflict with char $ac_func (); below.
41817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41818     <limits.h> exists even on freestanding compilers.  */
41819
41820 #ifdef __STDC__
41821 # include <limits.h>
41822 #else
41823 # include <assert.h>
41824 #endif
41825
41826 #undef $ac_func
41827
41828 /* Override any gcc2 internal prototype to avoid an error.  */
41829 #ifdef __cplusplus
41830 extern "C"
41831 {
41832 #endif
41833 /* We use char because int might match the return type of a gcc2
41834    builtin and then its argument prototype would still apply.  */
41835 char $ac_func ();
41836 /* The GNU C library defines this for functions which it implements
41837     to always fail with ENOSYS.  Some functions are actually named
41838     something starting with __ and the normal name is an alias.  */
41839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41840 choke me
41841 #else
41842 char (*f) () = $ac_func;
41843 #endif
41844 #ifdef __cplusplus
41845 }
41846 #endif
41847
41848 int
41849 main ()
41850 {
41851 return f != $ac_func;
41852   ;
41853   return 0;
41854 }
41855 _ACEOF
41856 rm -f conftest.$ac_objext conftest$ac_exeext
41857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41858   (eval $ac_link) 2>conftest.er1
41859   ac_status=$?
41860   grep -v '^ *+' conftest.er1 >conftest.err
41861   rm -f conftest.er1
41862   cat conftest.err >&5
41863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864   (exit $ac_status); } &&
41865          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867   (eval $ac_try) 2>&5
41868   ac_status=$?
41869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870   (exit $ac_status); }; } &&
41871          { ac_try='test -s conftest$ac_exeext'
41872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41873   (eval $ac_try) 2>&5
41874   ac_status=$?
41875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876   (exit $ac_status); }; }; then
41877   eval "$as_ac_var=yes"
41878 else
41879   echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41881
41882 eval "$as_ac_var=no"
41883 fi
41884 rm -f conftest.err conftest.$ac_objext \
41885       conftest$ac_exeext conftest.$ac_ext
41886 fi
41887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41889 if test `eval echo '${'$as_ac_var'}'` = yes; then
41890   cat >>confdefs.h <<_ACEOF
41891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41892 _ACEOF
41893
41894 fi
41895 done
41896
41897     if test "$ac_cv_func_strptime" = "yes"; then
41898         echo "$as_me:$LINENO: checking for strptime declaration" >&5
41899 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41900 if test "${wx_cv_func_strptime_decl+set}" = set; then
41901   echo $ECHO_N "(cached) $ECHO_C" >&6
41902 else
41903
41904                 cat >conftest.$ac_ext <<_ACEOF
41905 /* confdefs.h.  */
41906 _ACEOF
41907 cat confdefs.h >>conftest.$ac_ext
41908 cat >>conftest.$ac_ext <<_ACEOF
41909 /* end confdefs.h.  */
41910
41911                         #include <time.h>
41912
41913 int
41914 main ()
41915 {
41916
41917                         struct tm t;
41918                         strptime("foo", "bar", &t);
41919
41920   ;
41921   return 0;
41922 }
41923 _ACEOF
41924 rm -f conftest.$ac_objext
41925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41926   (eval $ac_compile) 2>conftest.er1
41927   ac_status=$?
41928   grep -v '^ *+' conftest.er1 >conftest.err
41929   rm -f conftest.er1
41930   cat conftest.err >&5
41931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41932   (exit $ac_status); } &&
41933          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41935   (eval $ac_try) 2>&5
41936   ac_status=$?
41937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938   (exit $ac_status); }; } &&
41939          { ac_try='test -s conftest.$ac_objext'
41940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41941   (eval $ac_try) 2>&5
41942   ac_status=$?
41943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944   (exit $ac_status); }; }; then
41945   wx_cv_func_strptime_decl=yes
41946 else
41947   echo "$as_me: failed program was:" >&5
41948 sed 's/^/| /' conftest.$ac_ext >&5
41949
41950 wx_cv_func_strptime_decl=no
41951
41952 fi
41953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41954
41955
41956 fi
41957 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41958 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41959     fi
41960     if test "$wx_cv_func_strptime_decl" = "yes"; then
41961         cat >>confdefs.h <<\_ACEOF
41962 #define HAVE_STRPTIME_DECL 1
41963 _ACEOF
41964
41965     fi
41966
41967             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41968 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41969 if test "${wx_cv_var_timezone+set}" = set; then
41970   echo $ECHO_N "(cached) $ECHO_C" >&6
41971 else
41972
41973                         cat >conftest.$ac_ext <<_ACEOF
41974 /* confdefs.h.  */
41975 _ACEOF
41976 cat confdefs.h >>conftest.$ac_ext
41977 cat >>conftest.$ac_ext <<_ACEOF
41978 /* end confdefs.h.  */
41979
41980                                 #include <time.h>
41981
41982 int
41983 main ()
41984 {
41985
41986                                 int tz;
41987                                 tz = timezone;
41988
41989   ;
41990   return 0;
41991 }
41992 _ACEOF
41993 rm -f conftest.$ac_objext
41994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41995   (eval $ac_compile) 2>conftest.er1
41996   ac_status=$?
41997   grep -v '^ *+' conftest.er1 >conftest.err
41998   rm -f conftest.er1
41999   cat conftest.err >&5
42000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001   (exit $ac_status); } &&
42002          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42004   (eval $ac_try) 2>&5
42005   ac_status=$?
42006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007   (exit $ac_status); }; } &&
42008          { ac_try='test -s conftest.$ac_objext'
42009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42010   (eval $ac_try) 2>&5
42011   ac_status=$?
42012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42013   (exit $ac_status); }; }; then
42014
42015                                 wx_cv_var_timezone=timezone
42016
42017 else
42018   echo "$as_me: failed program was:" >&5
42019 sed 's/^/| /' conftest.$ac_ext >&5
42020
42021
42022                                 cat >conftest.$ac_ext <<_ACEOF
42023 /* confdefs.h.  */
42024 _ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h.  */
42028
42029                                         #include <time.h>
42030
42031 int
42032 main ()
42033 {
42034
42035                                         int tz;
42036                                         tz = _timezone;
42037
42038   ;
42039   return 0;
42040 }
42041 _ACEOF
42042 rm -f conftest.$ac_objext
42043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42044   (eval $ac_compile) 2>conftest.er1
42045   ac_status=$?
42046   grep -v '^ *+' conftest.er1 >conftest.err
42047   rm -f conftest.er1
42048   cat conftest.err >&5
42049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050   (exit $ac_status); } &&
42051          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053   (eval $ac_try) 2>&5
42054   ac_status=$?
42055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056   (exit $ac_status); }; } &&
42057          { ac_try='test -s conftest.$ac_objext'
42058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42059   (eval $ac_try) 2>&5
42060   ac_status=$?
42061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062   (exit $ac_status); }; }; then
42063
42064                                         wx_cv_var_timezone=_timezone
42065
42066 else
42067   echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42069
42070
42071                                         cat >conftest.$ac_ext <<_ACEOF
42072 /* confdefs.h.  */
42073 _ACEOF
42074 cat confdefs.h >>conftest.$ac_ext
42075 cat >>conftest.$ac_ext <<_ACEOF
42076 /* end confdefs.h.  */
42077
42078                                                 #include <time.h>
42079
42080 int
42081 main ()
42082 {
42083
42084                                                 int tz;
42085                                                 tz = __timezone;
42086
42087   ;
42088   return 0;
42089 }
42090 _ACEOF
42091 rm -f conftest.$ac_objext
42092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42093   (eval $ac_compile) 2>conftest.er1
42094   ac_status=$?
42095   grep -v '^ *+' conftest.er1 >conftest.err
42096   rm -f conftest.er1
42097   cat conftest.err >&5
42098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099   (exit $ac_status); } &&
42100          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42102   (eval $ac_try) 2>&5
42103   ac_status=$?
42104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); }; } &&
42106          { ac_try='test -s conftest.$ac_objext'
42107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42108   (eval $ac_try) 2>&5
42109   ac_status=$?
42110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42111   (exit $ac_status); }; }; then
42112
42113                                                 wx_cv_var_timezone=__timezone
42114
42115 else
42116   echo "$as_me: failed program was:" >&5
42117 sed 's/^/| /' conftest.$ac_ext >&5
42118
42119
42120                                                 if test "$USE_DOS" = 0 ; then
42121                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42122 echo "$as_me: WARNING: no timezone variable" >&2;}
42123                                                 fi
42124
42125
42126 fi
42127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42128
42129
42130 fi
42131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42132
42133
42134 fi
42135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42136
42137
42138 fi
42139 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42140 echo "${ECHO_T}$wx_cv_var_timezone" >&6
42141
42142         if test "x$wx_cv_var_timezone" != x ; then
42143         cat >>confdefs.h <<_ACEOF
42144 #define WX_TIMEZONE $wx_cv_var_timezone
42145 _ACEOF
42146
42147     fi
42148
42149
42150 for ac_func in localtime
42151 do
42152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42153 echo "$as_me:$LINENO: checking for $ac_func" >&5
42154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42155 if eval "test \"\${$as_ac_var+set}\" = set"; then
42156   echo $ECHO_N "(cached) $ECHO_C" >&6
42157 else
42158   cat >conftest.$ac_ext <<_ACEOF
42159 /* confdefs.h.  */
42160 _ACEOF
42161 cat confdefs.h >>conftest.$ac_ext
42162 cat >>conftest.$ac_ext <<_ACEOF
42163 /* end confdefs.h.  */
42164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42166 #define $ac_func innocuous_$ac_func
42167
42168 /* System header to define __stub macros and hopefully few prototypes,
42169     which can conflict with char $ac_func (); below.
42170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42171     <limits.h> exists even on freestanding compilers.  */
42172
42173 #ifdef __STDC__
42174 # include <limits.h>
42175 #else
42176 # include <assert.h>
42177 #endif
42178
42179 #undef $ac_func
42180
42181 /* Override any gcc2 internal prototype to avoid an error.  */
42182 #ifdef __cplusplus
42183 extern "C"
42184 {
42185 #endif
42186 /* We use char because int might match the return type of a gcc2
42187    builtin and then its argument prototype would still apply.  */
42188 char $ac_func ();
42189 /* The GNU C library defines this for functions which it implements
42190     to always fail with ENOSYS.  Some functions are actually named
42191     something starting with __ and the normal name is an alias.  */
42192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42193 choke me
42194 #else
42195 char (*f) () = $ac_func;
42196 #endif
42197 #ifdef __cplusplus
42198 }
42199 #endif
42200
42201 int
42202 main ()
42203 {
42204 return f != $ac_func;
42205   ;
42206   return 0;
42207 }
42208 _ACEOF
42209 rm -f conftest.$ac_objext conftest$ac_exeext
42210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42211   (eval $ac_link) 2>conftest.er1
42212   ac_status=$?
42213   grep -v '^ *+' conftest.er1 >conftest.err
42214   rm -f conftest.er1
42215   cat conftest.err >&5
42216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217   (exit $ac_status); } &&
42218          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220   (eval $ac_try) 2>&5
42221   ac_status=$?
42222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223   (exit $ac_status); }; } &&
42224          { ac_try='test -s conftest$ac_exeext'
42225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226   (eval $ac_try) 2>&5
42227   ac_status=$?
42228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229   (exit $ac_status); }; }; then
42230   eval "$as_ac_var=yes"
42231 else
42232   echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42234
42235 eval "$as_ac_var=no"
42236 fi
42237 rm -f conftest.err conftest.$ac_objext \
42238       conftest$ac_exeext conftest.$ac_ext
42239 fi
42240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42242 if test `eval echo '${'$as_ac_var'}'` = yes; then
42243   cat >>confdefs.h <<_ACEOF
42244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42245 _ACEOF
42246
42247 fi
42248 done
42249
42250
42251     if test "$ac_cv_func_localtime" = "yes"; then
42252         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42253 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42254 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42255   echo $ECHO_N "(cached) $ECHO_C" >&6
42256 else
42257
42258             cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h.  */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h.  */
42264
42265                     #include <time.h>
42266
42267 int
42268 main ()
42269 {
42270
42271                     struct tm tm;
42272                     tm.tm_gmtoff++;
42273
42274   ;
42275   return 0;
42276 }
42277 _ACEOF
42278 rm -f conftest.$ac_objext
42279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42280   (eval $ac_compile) 2>conftest.er1
42281   ac_status=$?
42282   grep -v '^ *+' conftest.er1 >conftest.err
42283   rm -f conftest.er1
42284   cat conftest.err >&5
42285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42286   (exit $ac_status); } &&
42287          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42289   (eval $ac_try) 2>&5
42290   ac_status=$?
42291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292   (exit $ac_status); }; } &&
42293          { ac_try='test -s conftest.$ac_objext'
42294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42295   (eval $ac_try) 2>&5
42296   ac_status=$?
42297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298   (exit $ac_status); }; }; then
42299
42300                     wx_cv_struct_tm_has_gmtoff=yes
42301
42302 else
42303   echo "$as_me: failed program was:" >&5
42304 sed 's/^/| /' conftest.$ac_ext >&5
42305
42306 wx_cv_struct_tm_has_gmtoff=no
42307
42308 fi
42309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42310
42311 fi
42312 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42313 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42314     fi
42315
42316     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42317         cat >>confdefs.h <<\_ACEOF
42318 #define WX_GMTOFF_IN_TM 1
42319 _ACEOF
42320
42321     fi
42322
42323
42324
42325 for ac_func in gettimeofday ftime
42326 do
42327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42328 echo "$as_me:$LINENO: checking for $ac_func" >&5
42329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42330 if eval "test \"\${$as_ac_var+set}\" = set"; then
42331   echo $ECHO_N "(cached) $ECHO_C" >&6
42332 else
42333   cat >conftest.$ac_ext <<_ACEOF
42334 /* confdefs.h.  */
42335 _ACEOF
42336 cat confdefs.h >>conftest.$ac_ext
42337 cat >>conftest.$ac_ext <<_ACEOF
42338 /* end confdefs.h.  */
42339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42341 #define $ac_func innocuous_$ac_func
42342
42343 /* System header to define __stub macros and hopefully few prototypes,
42344     which can conflict with char $ac_func (); below.
42345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42346     <limits.h> exists even on freestanding compilers.  */
42347
42348 #ifdef __STDC__
42349 # include <limits.h>
42350 #else
42351 # include <assert.h>
42352 #endif
42353
42354 #undef $ac_func
42355
42356 /* Override any gcc2 internal prototype to avoid an error.  */
42357 #ifdef __cplusplus
42358 extern "C"
42359 {
42360 #endif
42361 /* We use char because int might match the return type of a gcc2
42362    builtin and then its argument prototype would still apply.  */
42363 char $ac_func ();
42364 /* The GNU C library defines this for functions which it implements
42365     to always fail with ENOSYS.  Some functions are actually named
42366     something starting with __ and the normal name is an alias.  */
42367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42368 choke me
42369 #else
42370 char (*f) () = $ac_func;
42371 #endif
42372 #ifdef __cplusplus
42373 }
42374 #endif
42375
42376 int
42377 main ()
42378 {
42379 return f != $ac_func;
42380   ;
42381   return 0;
42382 }
42383 _ACEOF
42384 rm -f conftest.$ac_objext conftest$ac_exeext
42385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42386   (eval $ac_link) 2>conftest.er1
42387   ac_status=$?
42388   grep -v '^ *+' conftest.er1 >conftest.err
42389   rm -f conftest.er1
42390   cat conftest.err >&5
42391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392   (exit $ac_status); } &&
42393          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395   (eval $ac_try) 2>&5
42396   ac_status=$?
42397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398   (exit $ac_status); }; } &&
42399          { ac_try='test -s conftest$ac_exeext'
42400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401   (eval $ac_try) 2>&5
42402   ac_status=$?
42403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404   (exit $ac_status); }; }; then
42405   eval "$as_ac_var=yes"
42406 else
42407   echo "$as_me: failed program was:" >&5
42408 sed 's/^/| /' conftest.$ac_ext >&5
42409
42410 eval "$as_ac_var=no"
42411 fi
42412 rm -f conftest.err conftest.$ac_objext \
42413       conftest$ac_exeext conftest.$ac_ext
42414 fi
42415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42417 if test `eval echo '${'$as_ac_var'}'` = yes; then
42418   cat >>confdefs.h <<_ACEOF
42419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42420 _ACEOF
42421  break
42422 fi
42423 done
42424
42425
42426     if test "$ac_cv_func_gettimeofday" = "yes"; then
42427         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42428 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42429 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42430   echo $ECHO_N "(cached) $ECHO_C" >&6
42431 else
42432
42433                         cat >conftest.$ac_ext <<_ACEOF
42434 /* confdefs.h.  */
42435 _ACEOF
42436 cat confdefs.h >>conftest.$ac_ext
42437 cat >>conftest.$ac_ext <<_ACEOF
42438 /* end confdefs.h.  */
42439
42440                     #include <sys/time.h>
42441                     #include <unistd.h>
42442
42443 int
42444 main ()
42445 {
42446
42447                     struct timeval tv;
42448                     gettimeofday(&tv, NULL);
42449
42450   ;
42451   return 0;
42452 }
42453 _ACEOF
42454 rm -f conftest.$ac_objext
42455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42456   (eval $ac_compile) 2>conftest.er1
42457   ac_status=$?
42458   grep -v '^ *+' conftest.er1 >conftest.err
42459   rm -f conftest.er1
42460   cat conftest.err >&5
42461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462   (exit $ac_status); } &&
42463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465   (eval $ac_try) 2>&5
42466   ac_status=$?
42467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468   (exit $ac_status); }; } &&
42469          { ac_try='test -s conftest.$ac_objext'
42470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471   (eval $ac_try) 2>&5
42472   ac_status=$?
42473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474   (exit $ac_status); }; }; then
42475   wx_cv_func_gettimeofday_has_2_args=yes
42476 else
42477   echo "$as_me: failed program was:" >&5
42478 sed 's/^/| /' conftest.$ac_ext >&5
42479
42480 cat >conftest.$ac_ext <<_ACEOF
42481 /* confdefs.h.  */
42482 _ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h.  */
42486
42487                         #include <sys/time.h>
42488                         #include <unistd.h>
42489
42490 int
42491 main ()
42492 {
42493
42494                         struct timeval tv;
42495                         gettimeofday(&tv);
42496
42497   ;
42498   return 0;
42499 }
42500 _ACEOF
42501 rm -f conftest.$ac_objext
42502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42503   (eval $ac_compile) 2>conftest.er1
42504   ac_status=$?
42505   grep -v '^ *+' conftest.er1 >conftest.err
42506   rm -f conftest.er1
42507   cat conftest.err >&5
42508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509   (exit $ac_status); } &&
42510          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512   (eval $ac_try) 2>&5
42513   ac_status=$?
42514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515   (exit $ac_status); }; } &&
42516          { ac_try='test -s conftest.$ac_objext'
42517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518   (eval $ac_try) 2>&5
42519   ac_status=$?
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); }; }; then
42522   wx_cv_func_gettimeofday_has_2_args=no
42523 else
42524   echo "$as_me: failed program was:" >&5
42525 sed 's/^/| /' conftest.$ac_ext >&5
42526
42527
42528                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42529 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42530                         wx_cv_func_gettimeofday_has_2_args=unknown
42531
42532
42533 fi
42534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42535
42536 fi
42537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42538
42539 fi
42540 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42541 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42542
42543         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42544             cat >>confdefs.h <<\_ACEOF
42545 #define WX_GETTIMEOFDAY_NO_TZ 1
42546 _ACEOF
42547
42548         fi
42549     fi
42550
42551     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42552 fi
42553
42554
42555 if test "$wxUSE_SOCKETS" = "yes"; then
42556     if test "$wxUSE_MGL" = "1"; then
42557         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42558 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42559         wxUSE_SOCKETS="no"
42560     fi
42561 fi
42562
42563 if test "$wxUSE_SOCKETS" = "yes"; then
42564         if test "$TOOLKIT" != "MSW"; then
42565                 echo "$as_me:$LINENO: checking for socket" >&5
42566 echo $ECHO_N "checking for socket... $ECHO_C" >&6
42567 if test "${ac_cv_func_socket+set}" = set; then
42568   echo $ECHO_N "(cached) $ECHO_C" >&6
42569 else
42570   cat >conftest.$ac_ext <<_ACEOF
42571 /* confdefs.h.  */
42572 _ACEOF
42573 cat confdefs.h >>conftest.$ac_ext
42574 cat >>conftest.$ac_ext <<_ACEOF
42575 /* end confdefs.h.  */
42576 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
42577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42578 #define socket innocuous_socket
42579
42580 /* System header to define __stub macros and hopefully few prototypes,
42581     which can conflict with char socket (); below.
42582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42583     <limits.h> exists even on freestanding compilers.  */
42584
42585 #ifdef __STDC__
42586 # include <limits.h>
42587 #else
42588 # include <assert.h>
42589 #endif
42590
42591 #undef socket
42592
42593 /* Override any gcc2 internal prototype to avoid an error.  */
42594 #ifdef __cplusplus
42595 extern "C"
42596 {
42597 #endif
42598 /* We use char because int might match the return type of a gcc2
42599    builtin and then its argument prototype would still apply.  */
42600 char socket ();
42601 /* The GNU C library defines this for functions which it implements
42602     to always fail with ENOSYS.  Some functions are actually named
42603     something starting with __ and the normal name is an alias.  */
42604 #if defined (__stub_socket) || defined (__stub___socket)
42605 choke me
42606 #else
42607 char (*f) () = socket;
42608 #endif
42609 #ifdef __cplusplus
42610 }
42611 #endif
42612
42613 int
42614 main ()
42615 {
42616 return f != socket;
42617   ;
42618   return 0;
42619 }
42620 _ACEOF
42621 rm -f conftest.$ac_objext conftest$ac_exeext
42622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42623   (eval $ac_link) 2>conftest.er1
42624   ac_status=$?
42625   grep -v '^ *+' conftest.er1 >conftest.err
42626   rm -f conftest.er1
42627   cat conftest.err >&5
42628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629   (exit $ac_status); } &&
42630          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632   (eval $ac_try) 2>&5
42633   ac_status=$?
42634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635   (exit $ac_status); }; } &&
42636          { ac_try='test -s conftest$ac_exeext'
42637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42638   (eval $ac_try) 2>&5
42639   ac_status=$?
42640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42641   (exit $ac_status); }; }; then
42642   ac_cv_func_socket=yes
42643 else
42644   echo "$as_me: failed program was:" >&5
42645 sed 's/^/| /' conftest.$ac_ext >&5
42646
42647 ac_cv_func_socket=no
42648 fi
42649 rm -f conftest.err conftest.$ac_objext \
42650       conftest$ac_exeext conftest.$ac_ext
42651 fi
42652 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42653 echo "${ECHO_T}$ac_cv_func_socket" >&6
42654 if test $ac_cv_func_socket = yes; then
42655   :
42656 else
42657
42658                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42659 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42660 if test "${ac_cv_lib_socket_socket+set}" = set; then
42661   echo $ECHO_N "(cached) $ECHO_C" >&6
42662 else
42663   ac_check_lib_save_LIBS=$LIBS
42664 LIBS="-lsocket  $LIBS"
42665 cat >conftest.$ac_ext <<_ACEOF
42666 /* confdefs.h.  */
42667 _ACEOF
42668 cat confdefs.h >>conftest.$ac_ext
42669 cat >>conftest.$ac_ext <<_ACEOF
42670 /* end confdefs.h.  */
42671
42672 /* Override any gcc2 internal prototype to avoid an error.  */
42673 #ifdef __cplusplus
42674 extern "C"
42675 #endif
42676 /* We use char because int might match the return type of a gcc2
42677    builtin and then its argument prototype would still apply.  */
42678 char socket ();
42679 int
42680 main ()
42681 {
42682 socket ();
42683   ;
42684   return 0;
42685 }
42686 _ACEOF
42687 rm -f conftest.$ac_objext conftest$ac_exeext
42688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42689   (eval $ac_link) 2>conftest.er1
42690   ac_status=$?
42691   grep -v '^ *+' conftest.er1 >conftest.err
42692   rm -f conftest.er1
42693   cat conftest.err >&5
42694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695   (exit $ac_status); } &&
42696          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698   (eval $ac_try) 2>&5
42699   ac_status=$?
42700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701   (exit $ac_status); }; } &&
42702          { ac_try='test -s conftest$ac_exeext'
42703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704   (eval $ac_try) 2>&5
42705   ac_status=$?
42706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707   (exit $ac_status); }; }; then
42708   ac_cv_lib_socket_socket=yes
42709 else
42710   echo "$as_me: failed program was:" >&5
42711 sed 's/^/| /' conftest.$ac_ext >&5
42712
42713 ac_cv_lib_socket_socket=no
42714 fi
42715 rm -f conftest.err conftest.$ac_objext \
42716       conftest$ac_exeext conftest.$ac_ext
42717 LIBS=$ac_check_lib_save_LIBS
42718 fi
42719 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42720 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42721 if test $ac_cv_lib_socket_socket = yes; then
42722   if test "$INET_LINK" != " -lsocket"; then
42723                         INET_LINK="$INET_LINK -lsocket"
42724                     fi
42725 else
42726
42727                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42728 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42729                         wxUSE_SOCKETS=no
42730
42731
42732 fi
42733
42734
42735
42736 fi
42737
42738     fi
42739 fi
42740
42741 if test "$wxUSE_SOCKETS" = "yes" ; then
42742                 if test "$TOOLKIT" != "MSW"; then
42743                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
42744 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42745 if test "${wx_cv_type_getsockname3+set}" = set; then
42746   echo $ECHO_N "(cached) $ECHO_C" >&6
42747 else
42748
42749                 cat >conftest.$ac_ext <<_ACEOF
42750 /* confdefs.h.  */
42751 _ACEOF
42752 cat confdefs.h >>conftest.$ac_ext
42753 cat >>conftest.$ac_ext <<_ACEOF
42754 /* end confdefs.h.  */
42755
42756                         #include <sys/types.h>
42757                         #include <sys/socket.h>
42758
42759 int
42760 main ()
42761 {
42762
42763                         socklen_t len;
42764                         getsockname(0, 0, &len);
42765
42766   ;
42767   return 0;
42768 }
42769 _ACEOF
42770 rm -f conftest.$ac_objext
42771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42772   (eval $ac_compile) 2>conftest.er1
42773   ac_status=$?
42774   grep -v '^ *+' conftest.er1 >conftest.err
42775   rm -f conftest.er1
42776   cat conftest.err >&5
42777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778   (exit $ac_status); } &&
42779          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42781   (eval $ac_try) 2>&5
42782   ac_status=$?
42783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42784   (exit $ac_status); }; } &&
42785          { ac_try='test -s conftest.$ac_objext'
42786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42787   (eval $ac_try) 2>&5
42788   ac_status=$?
42789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790   (exit $ac_status); }; }; then
42791   wx_cv_type_getsockname3=socklen_t
42792 else
42793   echo "$as_me: failed program was:" >&5
42794 sed 's/^/| /' conftest.$ac_ext >&5
42795
42796
42797                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
42798                         if test "$GCC" = yes ; then
42799                             CXXFLAGS="-Werror $CXXFLAGS"
42800                         fi
42801
42802                         cat >conftest.$ac_ext <<_ACEOF
42803 /* confdefs.h.  */
42804 _ACEOF
42805 cat confdefs.h >>conftest.$ac_ext
42806 cat >>conftest.$ac_ext <<_ACEOF
42807 /* end confdefs.h.  */
42808
42809                                 #include <sys/types.h>
42810                                 #include <sys/socket.h>
42811
42812 int
42813 main ()
42814 {
42815
42816                                 size_t len;
42817                                 getsockname(0, 0, &len);
42818
42819   ;
42820   return 0;
42821 }
42822 _ACEOF
42823 rm -f conftest.$ac_objext
42824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42825   (eval $ac_compile) 2>conftest.er1
42826   ac_status=$?
42827   grep -v '^ *+' conftest.er1 >conftest.err
42828   rm -f conftest.er1
42829   cat conftest.err >&5
42830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831   (exit $ac_status); } &&
42832          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834   (eval $ac_try) 2>&5
42835   ac_status=$?
42836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837   (exit $ac_status); }; } &&
42838          { ac_try='test -s conftest.$ac_objext'
42839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42840   (eval $ac_try) 2>&5
42841   ac_status=$?
42842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42843   (exit $ac_status); }; }; then
42844   wx_cv_type_getsockname3=size_t
42845 else
42846   echo "$as_me: failed program was:" >&5
42847 sed 's/^/| /' conftest.$ac_ext >&5
42848
42849 cat >conftest.$ac_ext <<_ACEOF
42850 /* confdefs.h.  */
42851 _ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h.  */
42855
42856                                     #include <sys/types.h>
42857                                     #include <sys/socket.h>
42858
42859 int
42860 main ()
42861 {
42862
42863                                     int len;
42864                                     getsockname(0, 0, &len);
42865
42866   ;
42867   return 0;
42868 }
42869 _ACEOF
42870 rm -f conftest.$ac_objext
42871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42872   (eval $ac_compile) 2>conftest.er1
42873   ac_status=$?
42874   grep -v '^ *+' conftest.er1 >conftest.err
42875   rm -f conftest.er1
42876   cat conftest.err >&5
42877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878   (exit $ac_status); } &&
42879          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42881   (eval $ac_try) 2>&5
42882   ac_status=$?
42883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884   (exit $ac_status); }; } &&
42885          { ac_try='test -s conftest.$ac_objext'
42886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42887   (eval $ac_try) 2>&5
42888   ac_status=$?
42889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42890   (exit $ac_status); }; }; then
42891   wx_cv_type_getsockname3=int
42892 else
42893   echo "$as_me: failed program was:" >&5
42894 sed 's/^/| /' conftest.$ac_ext >&5
42895
42896 wx_cv_type_getsockname3=unknown
42897
42898 fi
42899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42900
42901 fi
42902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42903
42904                         CXXFLAGS="$CXXFLAGS_OLD"
42905
42906
42907 fi
42908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42909
42910 fi
42911 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42912 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42913
42914         if test "$wx_cv_type_getsockname3" = "unknown"; then
42915             wxUSE_SOCKETS=no
42916             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42917 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42918         else
42919             cat >>confdefs.h <<_ACEOF
42920 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
42921 _ACEOF
42922
42923         fi
42924                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42925 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42926 if test "${wx_cv_type_getsockopt5+set}" = set; then
42927   echo $ECHO_N "(cached) $ECHO_C" >&6
42928 else
42929
42930                 cat >conftest.$ac_ext <<_ACEOF
42931 /* confdefs.h.  */
42932 _ACEOF
42933 cat confdefs.h >>conftest.$ac_ext
42934 cat >>conftest.$ac_ext <<_ACEOF
42935 /* end confdefs.h.  */
42936
42937                         #include <sys/types.h>
42938                         #include <sys/socket.h>
42939
42940 int
42941 main ()
42942 {
42943
42944                         socklen_t len;
42945                         getsockopt(0, 0, 0, 0, &len);
42946
42947   ;
42948   return 0;
42949 }
42950 _ACEOF
42951 rm -f conftest.$ac_objext
42952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42953   (eval $ac_compile) 2>conftest.er1
42954   ac_status=$?
42955   grep -v '^ *+' conftest.er1 >conftest.err
42956   rm -f conftest.er1
42957   cat conftest.err >&5
42958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42959   (exit $ac_status); } &&
42960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42962   (eval $ac_try) 2>&5
42963   ac_status=$?
42964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42965   (exit $ac_status); }; } &&
42966          { ac_try='test -s conftest.$ac_objext'
42967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42968   (eval $ac_try) 2>&5
42969   ac_status=$?
42970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42971   (exit $ac_status); }; }; then
42972   wx_cv_type_getsockopt5=socklen_t
42973 else
42974   echo "$as_me: failed program was:" >&5
42975 sed 's/^/| /' conftest.$ac_ext >&5
42976
42977
42978                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
42979                         if test "$GCC" = yes ; then
42980                             CXXFLAGS="-Werror $CXXFLAGS"
42981                         fi
42982
42983                         cat >conftest.$ac_ext <<_ACEOF
42984 /* confdefs.h.  */
42985 _ACEOF
42986 cat confdefs.h >>conftest.$ac_ext
42987 cat >>conftest.$ac_ext <<_ACEOF
42988 /* end confdefs.h.  */
42989
42990                                 #include <sys/types.h>
42991                                 #include <sys/socket.h>
42992
42993 int
42994 main ()
42995 {
42996
42997                                 size_t len;
42998                                 getsockopt(0, 0, 0, 0, &len);
42999
43000   ;
43001   return 0;
43002 }
43003 _ACEOF
43004 rm -f conftest.$ac_objext
43005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43006   (eval $ac_compile) 2>conftest.er1
43007   ac_status=$?
43008   grep -v '^ *+' conftest.er1 >conftest.err
43009   rm -f conftest.er1
43010   cat conftest.err >&5
43011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012   (exit $ac_status); } &&
43013          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43015   (eval $ac_try) 2>&5
43016   ac_status=$?
43017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018   (exit $ac_status); }; } &&
43019          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
43025   wx_cv_type_getsockopt5=size_t
43026 else
43027   echo "$as_me: failed program was:" >&5
43028 sed 's/^/| /' conftest.$ac_ext >&5
43029
43030 cat >conftest.$ac_ext <<_ACEOF
43031 /* confdefs.h.  */
43032 _ACEOF
43033 cat confdefs.h >>conftest.$ac_ext
43034 cat >>conftest.$ac_ext <<_ACEOF
43035 /* end confdefs.h.  */
43036
43037                                     #include <sys/types.h>
43038                                     #include <sys/socket.h>
43039
43040 int
43041 main ()
43042 {
43043
43044                                     int len;
43045                                     getsockopt(0, 0, 0, 0, &len);
43046
43047   ;
43048   return 0;
43049 }
43050 _ACEOF
43051 rm -f conftest.$ac_objext
43052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43053   (eval $ac_compile) 2>conftest.er1
43054   ac_status=$?
43055   grep -v '^ *+' conftest.er1 >conftest.err
43056   rm -f conftest.er1
43057   cat conftest.err >&5
43058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059   (exit $ac_status); } &&
43060          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43062   (eval $ac_try) 2>&5
43063   ac_status=$?
43064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43065   (exit $ac_status); }; } &&
43066          { ac_try='test -s conftest.$ac_objext'
43067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43068   (eval $ac_try) 2>&5
43069   ac_status=$?
43070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071   (exit $ac_status); }; }; then
43072   wx_cv_type_getsockopt5=int
43073 else
43074   echo "$as_me: failed program was:" >&5
43075 sed 's/^/| /' conftest.$ac_ext >&5
43076
43077 wx_cv_type_getsockopt5=unknown
43078
43079 fi
43080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43081
43082 fi
43083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43084
43085                         CXXFLAGS="$CXXFLAGS_OLD"
43086
43087
43088 fi
43089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43090
43091 fi
43092 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43093 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43094
43095         if test "$wx_cv_type_getsockopt5" = "unknown"; then
43096             wxUSE_SOCKETS=no
43097             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43098 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43099         else
43100             cat >>confdefs.h <<_ACEOF
43101 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
43102 _ACEOF
43103
43104         fi
43105     fi
43106 fi
43107
43108 if test "$wxUSE_SOCKETS" = "yes" ; then
43109     cat >>confdefs.h <<\_ACEOF
43110 #define wxUSE_SOCKETS 1
43111 _ACEOF
43112
43113     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43114 fi
43115
43116 if test "$wxUSE_PROTOCOL" = "yes"; then
43117     if test "$wxUSE_SOCKETS" != "yes"; then
43118         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43119 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43120         wxUSE_PROTOCOL=no
43121     fi
43122 fi
43123
43124 if test "$wxUSE_PROTOCOL" = "yes"; then
43125     cat >>confdefs.h <<\_ACEOF
43126 #define wxUSE_PROTOCOL 1
43127 _ACEOF
43128
43129
43130     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43131         cat >>confdefs.h <<\_ACEOF
43132 #define wxUSE_PROTOCOL_HTTP 1
43133 _ACEOF
43134
43135     fi
43136     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43137         cat >>confdefs.h <<\_ACEOF
43138 #define wxUSE_PROTOCOL_FTP 1
43139 _ACEOF
43140
43141     fi
43142     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43143         cat >>confdefs.h <<\_ACEOF
43144 #define wxUSE_PROTOCOL_FILE 1
43145 _ACEOF
43146
43147     fi
43148 else
43149     if test "$wxUSE_FS_INET" = "yes"; then
43150         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43151 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43152         wxUSE_FS_INET="no"
43153     fi
43154 fi
43155
43156 if test "$wxUSE_URL" = "yes"; then
43157     if test "$wxUSE_PROTOCOL" != "yes"; then
43158         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43159 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43160         wxUSE_URL=no
43161     fi
43162     if test "$wxUSE_URL" = "yes"; then
43163         cat >>confdefs.h <<\_ACEOF
43164 #define wxUSE_URL 1
43165 _ACEOF
43166
43167     fi
43168 fi
43169
43170 if test "$wxUSE_FS_INET" = "yes"; then
43171   cat >>confdefs.h <<\_ACEOF
43172 #define wxUSE_FS_INET 1
43173 _ACEOF
43174
43175 fi
43176
43177
43178 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43179     wxUSE_JOYSTICK=no
43180
43181         if test "$TOOLKIT" = "MSW"; then
43182         wxUSE_JOYSTICK=yes
43183
43184         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43185         if test "$USE_DARWIN" = 1; then
43186                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43187 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
43188             cat >conftest.$ac_ext <<_ACEOF
43189 /* confdefs.h.  */
43190 _ACEOF
43191 cat confdefs.h >>conftest.$ac_ext
43192 cat >>conftest.$ac_ext <<_ACEOF
43193 /* end confdefs.h.  */
43194  #include <IOKit/hid/IOHIDLib.h>
43195 int
43196 main ()
43197 {
43198  IOHIDQueueInterface *qi = NULL;
43199                               IOHIDCallbackFunction cb = NULL;
43200                               qi->setEventCallout(NULL, cb, NULL, NULL);
43201   ;
43202   return 0;
43203 }
43204 _ACEOF
43205 rm -f conftest.$ac_objext
43206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43207   (eval $ac_compile) 2>conftest.er1
43208   ac_status=$?
43209   grep -v '^ *+' conftest.er1 >conftest.err
43210   rm -f conftest.er1
43211   cat conftest.err >&5
43212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43213   (exit $ac_status); } &&
43214          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43216   (eval $ac_try) 2>&5
43217   ac_status=$?
43218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43219   (exit $ac_status); }; } &&
43220          { ac_try='test -s conftest.$ac_objext'
43221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43222   (eval $ac_try) 2>&5
43223   ac_status=$?
43224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43225   (exit $ac_status); }; }; then
43226    wxUSE_JOYSTICK=yes
43227
43228 else
43229   echo "$as_me: failed program was:" >&5
43230 sed 's/^/| /' conftest.$ac_ext >&5
43231
43232 fi
43233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43234             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43235 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43236         fi
43237
43238         else
43239
43240 for ac_header in linux/joystick.h
43241 do
43242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43244   echo "$as_me:$LINENO: checking for $ac_header" >&5
43245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43247   echo $ECHO_N "(cached) $ECHO_C" >&6
43248 fi
43249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43251 else
43252   # Is the header compilable?
43253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43255 cat >conftest.$ac_ext <<_ACEOF
43256 /* confdefs.h.  */
43257 _ACEOF
43258 cat confdefs.h >>conftest.$ac_ext
43259 cat >>conftest.$ac_ext <<_ACEOF
43260 /* end confdefs.h.  */
43261 $ac_includes_default
43262 #include <$ac_header>
43263 _ACEOF
43264 rm -f conftest.$ac_objext
43265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43266   (eval $ac_compile) 2>conftest.er1
43267   ac_status=$?
43268   grep -v '^ *+' conftest.er1 >conftest.err
43269   rm -f conftest.er1
43270   cat conftest.err >&5
43271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272   (exit $ac_status); } &&
43273          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43275   (eval $ac_try) 2>&5
43276   ac_status=$?
43277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278   (exit $ac_status); }; } &&
43279          { ac_try='test -s conftest.$ac_objext'
43280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43281   (eval $ac_try) 2>&5
43282   ac_status=$?
43283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284   (exit $ac_status); }; }; then
43285   ac_header_compiler=yes
43286 else
43287   echo "$as_me: failed program was:" >&5
43288 sed 's/^/| /' conftest.$ac_ext >&5
43289
43290 ac_header_compiler=no
43291 fi
43292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43294 echo "${ECHO_T}$ac_header_compiler" >&6
43295
43296 # Is the header present?
43297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43299 cat >conftest.$ac_ext <<_ACEOF
43300 /* confdefs.h.  */
43301 _ACEOF
43302 cat confdefs.h >>conftest.$ac_ext
43303 cat >>conftest.$ac_ext <<_ACEOF
43304 /* end confdefs.h.  */
43305 #include <$ac_header>
43306 _ACEOF
43307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43309   ac_status=$?
43310   grep -v '^ *+' conftest.er1 >conftest.err
43311   rm -f conftest.er1
43312   cat conftest.err >&5
43313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314   (exit $ac_status); } >/dev/null; then
43315   if test -s conftest.err; then
43316     ac_cpp_err=$ac_cxx_preproc_warn_flag
43317     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43318   else
43319     ac_cpp_err=
43320   fi
43321 else
43322   ac_cpp_err=yes
43323 fi
43324 if test -z "$ac_cpp_err"; then
43325   ac_header_preproc=yes
43326 else
43327   echo "$as_me: failed program was:" >&5
43328 sed 's/^/| /' conftest.$ac_ext >&5
43329
43330   ac_header_preproc=no
43331 fi
43332 rm -f conftest.err conftest.$ac_ext
43333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43334 echo "${ECHO_T}$ac_header_preproc" >&6
43335
43336 # So?  What about this header?
43337 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43338   yes:no: )
43339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43343     ac_header_preproc=yes
43344     ;;
43345   no:yes:* )
43346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43358     (
43359       cat <<\_ASBOX
43360 ## ----------------------------------------- ##
43361 ## Report this to wx-dev@lists.wxwidgets.org ##
43362 ## ----------------------------------------- ##
43363 _ASBOX
43364     ) |
43365       sed "s/^/$as_me: WARNING:     /" >&2
43366     ;;
43367 esac
43368 echo "$as_me:$LINENO: checking for $ac_header" >&5
43369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43371   echo $ECHO_N "(cached) $ECHO_C" >&6
43372 else
43373   eval "$as_ac_Header=\$ac_header_preproc"
43374 fi
43375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43377
43378 fi
43379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43380   cat >>confdefs.h <<_ACEOF
43381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43382 _ACEOF
43383  wxUSE_JOYSTICK=yes
43384 fi
43385
43386 done
43387
43388     fi
43389
43390     if test "$wxUSE_JOYSTICK" = "yes"; then
43391         cat >>confdefs.h <<\_ACEOF
43392 #define wxUSE_JOYSTICK 1
43393 _ACEOF
43394
43395         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43396     else
43397         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43398 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
43399     fi
43400 fi
43401
43402
43403
43404 if test "$wxUSE_FONTMAP" = "yes" ; then
43405   cat >>confdefs.h <<\_ACEOF
43406 #define wxUSE_FONTMAP 1
43407 _ACEOF
43408
43409 fi
43410
43411 if test "$wxUSE_UNICODE" = "yes" ; then
43412   cat >>confdefs.h <<\_ACEOF
43413 #define wxUSE_UNICODE 1
43414 _ACEOF
43415
43416
43417   if test "$USE_WIN32" != 1; then
43418       wxUSE_UNICODE_MSLU=no
43419   fi
43420
43421   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43422         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43423 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43424 if test "${ac_cv_lib_unicows_main+set}" = set; then
43425   echo $ECHO_N "(cached) $ECHO_C" >&6
43426 else
43427   ac_check_lib_save_LIBS=$LIBS
43428 LIBS="-lunicows  $LIBS"
43429 cat >conftest.$ac_ext <<_ACEOF
43430 /* confdefs.h.  */
43431 _ACEOF
43432 cat confdefs.h >>conftest.$ac_ext
43433 cat >>conftest.$ac_ext <<_ACEOF
43434 /* end confdefs.h.  */
43435
43436
43437 int
43438 main ()
43439 {
43440 main ();
43441   ;
43442   return 0;
43443 }
43444 _ACEOF
43445 rm -f conftest.$ac_objext conftest$ac_exeext
43446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43447   (eval $ac_link) 2>conftest.er1
43448   ac_status=$?
43449   grep -v '^ *+' conftest.er1 >conftest.err
43450   rm -f conftest.er1
43451   cat conftest.err >&5
43452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43453   (exit $ac_status); } &&
43454          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43456   (eval $ac_try) 2>&5
43457   ac_status=$?
43458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459   (exit $ac_status); }; } &&
43460          { ac_try='test -s conftest$ac_exeext'
43461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462   (eval $ac_try) 2>&5
43463   ac_status=$?
43464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465   (exit $ac_status); }; }; then
43466   ac_cv_lib_unicows_main=yes
43467 else
43468   echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43470
43471 ac_cv_lib_unicows_main=no
43472 fi
43473 rm -f conftest.err conftest.$ac_objext \
43474       conftest$ac_exeext conftest.$ac_ext
43475 LIBS=$ac_check_lib_save_LIBS
43476 fi
43477 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43478 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43479 if test $ac_cv_lib_unicows_main = yes; then
43480
43481                 cat >>confdefs.h <<\_ACEOF
43482 #define wxUSE_UNICODE_MSLU 1
43483 _ACEOF
43484
43485
43486 else
43487
43488                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43489                              Applications will only run on Windows NT/2000/XP!" >&5
43490 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43491                              Applications will only run on Windows NT/2000/XP!" >&2;}
43492                 wxUSE_UNICODE_MSLU=no
43493
43494 fi
43495
43496     fi
43497 fi
43498
43499 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43500   cat >>confdefs.h <<\_ACEOF
43501 #define wxUSE_EXPERIMENTAL_PRINTF 1
43502 _ACEOF
43503
43504 fi
43505
43506
43507 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43508   cat >>confdefs.h <<\_ACEOF
43509 #define wxUSE_POSTSCRIPT 1
43510 _ACEOF
43511
43512 fi
43513
43514 cat >>confdefs.h <<\_ACEOF
43515 #define wxUSE_AFM_FOR_POSTSCRIPT 1
43516 _ACEOF
43517
43518
43519 cat >>confdefs.h <<\_ACEOF
43520 #define wxUSE_NORMALIZED_PS_FONTS 1
43521 _ACEOF
43522
43523
43524
43525 if test "$wxUSE_CONSTRAINTS" = "yes"; then
43526     cat >>confdefs.h <<\_ACEOF
43527 #define wxUSE_CONSTRAINTS 1
43528 _ACEOF
43529
43530     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43531 fi
43532
43533 if test "$wxUSE_MDI" = "yes"; then
43534     cat >>confdefs.h <<\_ACEOF
43535 #define wxUSE_MDI 1
43536 _ACEOF
43537
43538
43539     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43540         cat >>confdefs.h <<\_ACEOF
43541 #define wxUSE_MDI_ARCHITECTURE 1
43542 _ACEOF
43543
43544         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43545     fi
43546 fi
43547
43548 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43549     cat >>confdefs.h <<\_ACEOF
43550 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
43551 _ACEOF
43552
43553     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43554     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43555         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43556     fi
43557 fi
43558
43559 if test "$wxUSE_HELP" = "yes"; then
43560     cat >>confdefs.h <<\_ACEOF
43561 #define wxUSE_HELP 1
43562 _ACEOF
43563
43564     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43565
43566     if test "$wxUSE_MSW" = 1; then
43567       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43568         cat >>confdefs.h <<\_ACEOF
43569 #define wxUSE_MS_HTML_HELP 1
43570 _ACEOF
43571
43572       fi
43573     fi
43574
43575     if test "$wxUSE_WXHTML_HELP" = "yes"; then
43576       if test "$wxUSE_HTML" = "yes"; then
43577         cat >>confdefs.h <<\_ACEOF
43578 #define wxUSE_WXHTML_HELP 1
43579 _ACEOF
43580
43581       else
43582         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43583 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43584         wxUSE_WXHTML_HELP=no
43585       fi
43586     fi
43587 fi
43588
43589 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43590     if test "$wxUSE_CONSTRAINTS" != "yes"; then
43591         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43592 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43593     else
43594         cat >>confdefs.h <<\_ACEOF
43595 #define wxUSE_PRINTING_ARCHITECTURE 1
43596 _ACEOF
43597
43598     fi
43599     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43600 fi
43601
43602 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
43603     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43604 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43605    { (exit 1); exit 1; }; }
43606 fi
43607
43608
43609 if test "$wxUSE_METAFILE" = "yes"; then
43610     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43611         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43612 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43613         wxUSE_METAFILE=no
43614     fi
43615 fi
43616
43617
43618 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
43619                           -o "$wxUSE_CLIPBOARD"     = "yes" \
43620                           -o "$wxUSE_OLE"     = "yes" \
43621                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43622
43623 for ac_header in ole2.h
43624 do
43625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43627   echo "$as_me:$LINENO: checking for $ac_header" >&5
43628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43630   echo $ECHO_N "(cached) $ECHO_C" >&6
43631 fi
43632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43634 else
43635   # Is the header compilable?
43636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43638 cat >conftest.$ac_ext <<_ACEOF
43639 /* confdefs.h.  */
43640 _ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h.  */
43644 $ac_includes_default
43645 #include <$ac_header>
43646 _ACEOF
43647 rm -f conftest.$ac_objext
43648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43649   (eval $ac_compile) 2>conftest.er1
43650   ac_status=$?
43651   grep -v '^ *+' conftest.er1 >conftest.err
43652   rm -f conftest.er1
43653   cat conftest.err >&5
43654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655   (exit $ac_status); } &&
43656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43658   (eval $ac_try) 2>&5
43659   ac_status=$?
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); }; } &&
43662          { ac_try='test -s conftest.$ac_objext'
43663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664   (eval $ac_try) 2>&5
43665   ac_status=$?
43666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667   (exit $ac_status); }; }; then
43668   ac_header_compiler=yes
43669 else
43670   echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43672
43673 ac_header_compiler=no
43674 fi
43675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43677 echo "${ECHO_T}$ac_header_compiler" >&6
43678
43679 # Is the header present?
43680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43682 cat >conftest.$ac_ext <<_ACEOF
43683 /* confdefs.h.  */
43684 _ACEOF
43685 cat confdefs.h >>conftest.$ac_ext
43686 cat >>conftest.$ac_ext <<_ACEOF
43687 /* end confdefs.h.  */
43688 #include <$ac_header>
43689 _ACEOF
43690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43692   ac_status=$?
43693   grep -v '^ *+' conftest.er1 >conftest.err
43694   rm -f conftest.er1
43695   cat conftest.err >&5
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); } >/dev/null; then
43698   if test -s conftest.err; then
43699     ac_cpp_err=$ac_cxx_preproc_warn_flag
43700     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43701   else
43702     ac_cpp_err=
43703   fi
43704 else
43705   ac_cpp_err=yes
43706 fi
43707 if test -z "$ac_cpp_err"; then
43708   ac_header_preproc=yes
43709 else
43710   echo "$as_me: failed program was:" >&5
43711 sed 's/^/| /' conftest.$ac_ext >&5
43712
43713   ac_header_preproc=no
43714 fi
43715 rm -f conftest.err conftest.$ac_ext
43716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43717 echo "${ECHO_T}$ac_header_preproc" >&6
43718
43719 # So?  What about this header?
43720 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43721   yes:no: )
43722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43726     ac_header_preproc=yes
43727     ;;
43728   no:yes:* )
43729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43731     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43732 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43733     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43735     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43736 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43739     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43741     (
43742       cat <<\_ASBOX
43743 ## ----------------------------------------- ##
43744 ## Report this to wx-dev@lists.wxwidgets.org ##
43745 ## ----------------------------------------- ##
43746 _ASBOX
43747     ) |
43748       sed "s/^/$as_me: WARNING:     /" >&2
43749     ;;
43750 esac
43751 echo "$as_me:$LINENO: checking for $ac_header" >&5
43752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43754   echo $ECHO_N "(cached) $ECHO_C" >&6
43755 else
43756   eval "$as_ac_Header=\$ac_header_preproc"
43757 fi
43758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43760
43761 fi
43762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43763   cat >>confdefs.h <<_ACEOF
43764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43765 _ACEOF
43766
43767 fi
43768
43769 done
43770
43771
43772     if test "$ac_cv_header_ole2_h" = "yes" ; then
43773         if test "$GCC" = yes ; then
43774             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43775 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43776             cat >conftest.$ac_ext <<_ACEOF
43777 /* confdefs.h.  */
43778 _ACEOF
43779 cat confdefs.h >>conftest.$ac_ext
43780 cat >>conftest.$ac_ext <<_ACEOF
43781 /* end confdefs.h.  */
43782 #include <windows.h>
43783                             #include <ole2.h>
43784 int
43785 main ()
43786 {
43787
43788   ;
43789   return 0;
43790 }
43791 _ACEOF
43792 rm -f conftest.$ac_objext
43793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43794   (eval $ac_compile) 2>conftest.er1
43795   ac_status=$?
43796   grep -v '^ *+' conftest.er1 >conftest.err
43797   rm -f conftest.er1
43798   cat conftest.err >&5
43799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800   (exit $ac_status); } &&
43801          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803   (eval $ac_try) 2>&5
43804   ac_status=$?
43805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806   (exit $ac_status); }; } &&
43807          { ac_try='test -s conftest.$ac_objext'
43808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43809   (eval $ac_try) 2>&5
43810   ac_status=$?
43811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812   (exit $ac_status); }; }; then
43813   echo "$as_me:$LINENO: result: no" >&5
43814 echo "${ECHO_T}no" >&6
43815 else
43816   echo "$as_me: failed program was:" >&5
43817 sed 's/^/| /' conftest.$ac_ext >&5
43818
43819 echo "$as_me:$LINENO: result: yes" >&5
43820 echo "${ECHO_T}yes" >&6
43821                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
43822 fi
43823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43824             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43825             if test "$wxUSE_OLE" = "yes" ; then
43826                 cat >>confdefs.h <<\_ACEOF
43827 #define wxUSE_OLE 1
43828 _ACEOF
43829
43830                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
43831             fi
43832         fi
43833
43834                 if test "$wxUSE_DATAOBJ" = "yes" ; then
43835             cat >>confdefs.h <<\_ACEOF
43836 #define wxUSE_DATAOBJ 1
43837 _ACEOF
43838
43839         fi
43840     else
43841         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43842 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43843
43844         wxUSE_CLIPBOARD=no
43845         wxUSE_DRAG_AND_DROP=no
43846         wxUSE_DATAOBJ=no
43847         wxUSE_OLE=no
43848     fi
43849
43850     if test "$wxUSE_METAFILE" = "yes"; then
43851         cat >>confdefs.h <<\_ACEOF
43852 #define wxUSE_METAFILE 1
43853 _ACEOF
43854
43855
43856                 cat >>confdefs.h <<\_ACEOF
43857 #define wxUSE_ENH_METAFILE 1
43858 _ACEOF
43859
43860     fi
43861 fi
43862
43863 if test "$wxUSE_IPC" = "yes"; then
43864     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
43865         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43866 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
43867         wxUSE_IPC=no
43868     fi
43869
43870     if test "$wxUSE_IPC" = "yes"; then
43871         cat >>confdefs.h <<\_ACEOF
43872 #define wxUSE_IPC 1
43873 _ACEOF
43874
43875         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43876     fi
43877 fi
43878
43879 if test "$wxUSE_DATAOBJ" = "yes"; then
43880     if test "$wxUSE_MGL" = 1; then
43881         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43882 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43883         wxUSE_DATAOBJ=no
43884     else
43885         cat >>confdefs.h <<\_ACEOF
43886 #define wxUSE_DATAOBJ 1
43887 _ACEOF
43888
43889     fi
43890 else
43891     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43892 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43893     wxUSE_CLIPBOARD=no
43894     wxUSE_DRAG_AND_DROP=no
43895 fi
43896
43897 if test "$wxUSE_CLIPBOARD" = "yes"; then
43898     if test "$wxUSE_MGL" = 1; then
43899         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43900 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43901         wxUSE_CLIPBOARD=no
43902     fi
43903
43904     if test "$wxUSE_CLIPBOARD" = "yes"; then
43905         cat >>confdefs.h <<\_ACEOF
43906 #define wxUSE_CLIPBOARD 1
43907 _ACEOF
43908
43909     fi
43910 fi
43911
43912 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43913     if test "$wxUSE_GTK" = 1; then
43914         if test "$WXGTK12" != 1; then
43915             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43916 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43917             wxUSE_DRAG_AND_DROP=no
43918         fi
43919     fi
43920
43921     if test "$wxUSE_MOTIF" = 1; then
43922         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43923 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43924         wxUSE_DRAG_AND_DROP=no
43925     fi
43926
43927     if test "$wxUSE_X11" = 1; then
43928         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43929 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43930         wxUSE_DRAG_AND_DROP=no
43931     fi
43932
43933     if test "$wxUSE_MGL" = 1; then
43934         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43935 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43936         wxUSE_DRAG_AND_DROP=no
43937     fi
43938
43939     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43940         cat >>confdefs.h <<\_ACEOF
43941 #define wxUSE_DRAG_AND_DROP 1
43942 _ACEOF
43943
43944     fi
43945
43946 fi
43947
43948 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43949     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43950 fi
43951
43952 if test "$wxUSE_SPLINES" = "yes" ; then
43953   cat >>confdefs.h <<\_ACEOF
43954 #define wxUSE_SPLINES 1
43955 _ACEOF
43956
43957 fi
43958
43959 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43960   cat >>confdefs.h <<\_ACEOF
43961 #define wxUSE_MOUSEWHEEL 1
43962 _ACEOF
43963
43964 fi
43965
43966
43967 USES_CONTROLS=0
43968 if test "$wxUSE_CONTROLS" = "yes"; then
43969   USES_CONTROLS=1
43970 fi
43971
43972 if test "$wxUSE_ACCEL" = "yes"; then
43973   cat >>confdefs.h <<\_ACEOF
43974 #define wxUSE_ACCEL 1
43975 _ACEOF
43976
43977   USES_CONTROLS=1
43978 fi
43979
43980 if test "$wxUSE_BUTTON" = "yes"; then
43981   cat >>confdefs.h <<\_ACEOF
43982 #define wxUSE_BUTTON 1
43983 _ACEOF
43984
43985   USES_CONTROLS=1
43986 fi
43987
43988 if test "$wxUSE_BMPBUTTON" = "yes"; then
43989   cat >>confdefs.h <<\_ACEOF
43990 #define wxUSE_BMPBUTTON 1
43991 _ACEOF
43992
43993   USES_CONTROLS=1
43994 fi
43995
43996 if test "$wxUSE_CALCTRL" = "yes"; then
43997   cat >>confdefs.h <<\_ACEOF
43998 #define wxUSE_CALENDARCTRL 1
43999 _ACEOF
44000
44001   USES_CONTROLS=1
44002   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44003 fi
44004
44005 if test "$wxUSE_CARET" = "yes"; then
44006   cat >>confdefs.h <<\_ACEOF
44007 #define wxUSE_CARET 1
44008 _ACEOF
44009
44010   USES_CONTROLS=1
44011   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44012 fi
44013
44014 if test "$wxUSE_COMBOBOX" = "yes"; then
44015   cat >>confdefs.h <<\_ACEOF
44016 #define wxUSE_COMBOBOX 1
44017 _ACEOF
44018
44019   USES_CONTROLS=1
44020 fi
44021
44022 if test "$wxUSE_COMBOCTRL" = "yes"; then
44023   cat >>confdefs.h <<\_ACEOF
44024 #define wxUSE_COMBOCTRL 1
44025 _ACEOF
44026
44027   USES_CONTROLS=1
44028 fi
44029
44030 if test "$wxUSE_CHOICE" = "yes"; then
44031   cat >>confdefs.h <<\_ACEOF
44032 #define wxUSE_CHOICE 1
44033 _ACEOF
44034
44035   USES_CONTROLS=1
44036 fi
44037
44038 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44039     cat >>confdefs.h <<\_ACEOF
44040 #define wxUSE_CHOICEBOOK 1
44041 _ACEOF
44042
44043     USES_CONTROLS=1
44044 fi
44045
44046 if test "$wxUSE_CHECKBOX" = "yes"; then
44047   cat >>confdefs.h <<\_ACEOF
44048 #define wxUSE_CHECKBOX 1
44049 _ACEOF
44050
44051   USES_CONTROLS=1
44052 fi
44053
44054 if test "$wxUSE_CHECKLST" = "yes"; then
44055   cat >>confdefs.h <<\_ACEOF
44056 #define wxUSE_CHECKLISTBOX 1
44057 _ACEOF
44058
44059   USES_CONTROLS=1
44060   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44061 fi
44062
44063 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44064   cat >>confdefs.h <<\_ACEOF
44065 #define wxUSE_COLOURPICKERCTRL 1
44066 _ACEOF
44067
44068   USES_CONTROLS=1
44069 fi
44070
44071 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44072   cat >>confdefs.h <<\_ACEOF
44073 #define wxUSE_DATEPICKCTRL 1
44074 _ACEOF
44075
44076   USES_CONTROLS=1
44077 fi
44078
44079 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44080   cat >>confdefs.h <<\_ACEOF
44081 #define wxUSE_DIRPICKERCTRL 1
44082 _ACEOF
44083
44084   USES_CONTROLS=1
44085 fi
44086
44087 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44088   cat >>confdefs.h <<\_ACEOF
44089 #define wxUSE_FILEPICKERCTRL 1
44090 _ACEOF
44091
44092   USES_CONTROLS=1
44093 fi
44094
44095 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44096   cat >>confdefs.h <<\_ACEOF
44097 #define wxUSE_FONTPICKERCTRL 1
44098 _ACEOF
44099
44100   USES_CONTROLS=1
44101 fi
44102
44103 if test "$wxUSE_DISPLAY" = "yes"; then
44104     cat >>confdefs.h <<\_ACEOF
44105 #define wxUSE_DISPLAY 1
44106 _ACEOF
44107
44108     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44109 fi
44110
44111 if test "$wxUSE_GAUGE" = "yes"; then
44112   cat >>confdefs.h <<\_ACEOF
44113 #define wxUSE_GAUGE 1
44114 _ACEOF
44115
44116   USES_CONTROLS=1
44117 fi
44118
44119 if test "$wxUSE_GRID" = "yes"; then
44120   cat >>confdefs.h <<\_ACEOF
44121 #define wxUSE_GRID 1
44122 _ACEOF
44123
44124   USES_CONTROLS=1
44125   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44126 fi
44127
44128 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44129   cat >>confdefs.h <<\_ACEOF
44130 #define wxUSE_HYPERLINKCTRL 1
44131 _ACEOF
44132
44133   USES_CONTROLS=1
44134 fi
44135
44136 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44137   cat >>confdefs.h <<\_ACEOF
44138 #define wxUSE_DATAVIEWCTRL 1
44139 _ACEOF
44140
44141   USES_CONTROLS=1
44142   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44143 fi
44144
44145 if test "$wxUSE_IMAGLIST" = "yes"; then
44146     cat >>confdefs.h <<\_ACEOF
44147 #define wxUSE_IMAGLIST 1
44148 _ACEOF
44149
44150 fi
44151
44152 if test "$wxUSE_LISTBOOK" = "yes"; then
44153     cat >>confdefs.h <<\_ACEOF
44154 #define wxUSE_LISTBOOK 1
44155 _ACEOF
44156
44157     USES_CONTROLS=1
44158 fi
44159
44160 if test "$wxUSE_LISTBOX" = "yes"; then
44161     cat >>confdefs.h <<\_ACEOF
44162 #define wxUSE_LISTBOX 1
44163 _ACEOF
44164
44165     USES_CONTROLS=1
44166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44167 fi
44168
44169 if test "$wxUSE_LISTCTRL" = "yes"; then
44170     if test "$wxUSE_IMAGLIST" = "yes"; then
44171         cat >>confdefs.h <<\_ACEOF
44172 #define wxUSE_LISTCTRL 1
44173 _ACEOF
44174
44175         USES_CONTROLS=1
44176         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44177     else
44178         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44179 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44180     fi
44181 fi
44182
44183 if test "$wxUSE_NOTEBOOK" = "yes"; then
44184     cat >>confdefs.h <<\_ACEOF
44185 #define wxUSE_NOTEBOOK 1
44186 _ACEOF
44187
44188     USES_CONTROLS=1
44189     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44190 fi
44191
44192 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44193   cat >>confdefs.h <<\_ACEOF
44194 #define wxUSE_ODCOMBOBOX 1
44195 _ACEOF
44196
44197   USES_CONTROLS=1
44198   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44199 fi
44200
44201
44202 if test "$wxUSE_RADIOBOX" = "yes"; then
44203     cat >>confdefs.h <<\_ACEOF
44204 #define wxUSE_RADIOBOX 1
44205 _ACEOF
44206
44207     USES_CONTROLS=1
44208 fi
44209
44210 if test "$wxUSE_RADIOBTN" = "yes"; then
44211     cat >>confdefs.h <<\_ACEOF
44212 #define wxUSE_RADIOBTN 1
44213 _ACEOF
44214
44215     USES_CONTROLS=1
44216 fi
44217
44218 if test "$wxUSE_SASH" = "yes"; then
44219     cat >>confdefs.h <<\_ACEOF
44220 #define wxUSE_SASH 1
44221 _ACEOF
44222
44223     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44224 fi
44225
44226 if test "$wxUSE_SCROLLBAR" = "yes"; then
44227     cat >>confdefs.h <<\_ACEOF
44228 #define wxUSE_SCROLLBAR 1
44229 _ACEOF
44230
44231     USES_CONTROLS=1
44232     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44233 fi
44234
44235 if test "$wxUSE_SLIDER" = "yes"; then
44236     cat >>confdefs.h <<\_ACEOF
44237 #define wxUSE_SLIDER 1
44238 _ACEOF
44239
44240     USES_CONTROLS=1
44241 fi
44242
44243 if test "$wxUSE_SPINBTN" = "yes"; then
44244     cat >>confdefs.h <<\_ACEOF
44245 #define wxUSE_SPINBTN 1
44246 _ACEOF
44247
44248     USES_CONTROLS=1
44249 fi
44250
44251 if test "$wxUSE_SPINCTRL" = "yes"; then
44252     cat >>confdefs.h <<\_ACEOF
44253 #define wxUSE_SPINCTRL 1
44254 _ACEOF
44255
44256     USES_CONTROLS=1
44257 fi
44258
44259 if test "$wxUSE_SPLITTER" = "yes"; then
44260     cat >>confdefs.h <<\_ACEOF
44261 #define wxUSE_SPLITTER 1
44262 _ACEOF
44263
44264     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44265 fi
44266
44267 if test "$wxUSE_STATBMP" = "yes"; then
44268     cat >>confdefs.h <<\_ACEOF
44269 #define wxUSE_STATBMP 1
44270 _ACEOF
44271
44272     USES_CONTROLS=1
44273 fi
44274
44275 if test "$wxUSE_STATBOX" = "yes"; then
44276     cat >>confdefs.h <<\_ACEOF
44277 #define wxUSE_STATBOX 1
44278 _ACEOF
44279
44280     USES_CONTROLS=1
44281 fi
44282
44283 if test "$wxUSE_STATTEXT" = "yes"; then
44284     cat >>confdefs.h <<\_ACEOF
44285 #define wxUSE_STATTEXT 1
44286 _ACEOF
44287
44288     USES_CONTROLS=1
44289 fi
44290
44291 if test "$wxUSE_STATLINE" = "yes"; then
44292     cat >>confdefs.h <<\_ACEOF
44293 #define wxUSE_STATLINE 1
44294 _ACEOF
44295
44296     USES_CONTROLS=1
44297 fi
44298
44299 if test "$wxUSE_STATUSBAR" = "yes"; then
44300         cat >>confdefs.h <<\_ACEOF
44301 #define wxUSE_NATIVE_STATUSBAR 1
44302 _ACEOF
44303
44304     cat >>confdefs.h <<\_ACEOF
44305 #define wxUSE_STATUSBAR 1
44306 _ACEOF
44307
44308     USES_CONTROLS=1
44309
44310     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44311 fi
44312
44313 if test "$wxUSE_TAB_DIALOG" = "yes"; then
44314     cat >>confdefs.h <<\_ACEOF
44315 #define wxUSE_TAB_DIALOG 1
44316 _ACEOF
44317
44318 fi
44319
44320 if test "$wxUSE_TEXTCTRL" = "yes"; then
44321     cat >>confdefs.h <<\_ACEOF
44322 #define wxUSE_TEXTCTRL 1
44323 _ACEOF
44324
44325     USES_CONTROLS=1
44326     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44327 fi
44328
44329 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44330     if test "$wxUSE_COCOA" = 1 ; then
44331         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44332 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44333         wxUSE_TOGGLEBTN=no
44334     fi
44335
44336     if test "$wxUSE_TOGGLEBTN" = "yes"; then
44337         cat >>confdefs.h <<\_ACEOF
44338 #define wxUSE_TOGGLEBTN 1
44339 _ACEOF
44340
44341         USES_CONTROLS=1
44342     fi
44343 fi
44344
44345 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44346     cat >>confdefs.h <<\_ACEOF
44347 #define wxUSE_TOOLBAR_SIMPLE 1
44348 _ACEOF
44349
44350     wxUSE_TOOLBAR="yes"
44351     USES_CONTROLS=1
44352 fi
44353
44354 if test "$wxUSE_TOOLBAR" = "yes"; then
44355     cat >>confdefs.h <<\_ACEOF
44356 #define wxUSE_TOOLBAR 1
44357 _ACEOF
44358
44359     USES_CONTROLS=1
44360
44361         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44362         wxUSE_TOOLBAR_NATIVE="yes"
44363     fi
44364
44365     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44366         cat >>confdefs.h <<\_ACEOF
44367 #define wxUSE_TOOLBAR_NATIVE 1
44368 _ACEOF
44369
44370         USES_CONTROLS=1
44371     fi
44372
44373     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44374 fi
44375
44376 if test "$wxUSE_TOOLTIPS" = "yes"; then
44377     if test "$wxUSE_MOTIF" = 1; then
44378         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44379 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44380     else
44381         if test "$wxUSE_UNIVERSAL" = "yes"; then
44382             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44383 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44384         else
44385             cat >>confdefs.h <<\_ACEOF
44386 #define wxUSE_TOOLTIPS 1
44387 _ACEOF
44388
44389         fi
44390     fi
44391 fi
44392
44393 if test "$wxUSE_TREEBOOK" = "yes"; then
44394     cat >>confdefs.h <<\_ACEOF
44395 #define wxUSE_TREEBOOK 1
44396 _ACEOF
44397
44398     USES_CONTROLS=1
44399 fi
44400
44401 if test "$wxUSE_TOOLBOOK" = "yes"; then
44402     cat >>confdefs.h <<\_ACEOF
44403 #define wxUSE_TOOLBOOK 1
44404 _ACEOF
44405
44406     USES_CONTROLS=1
44407 fi
44408
44409 if test "$wxUSE_TREECTRL" = "yes"; then
44410     if test "$wxUSE_IMAGLIST" = "yes"; then
44411         cat >>confdefs.h <<\_ACEOF
44412 #define wxUSE_TREECTRL 1
44413 _ACEOF
44414
44415         USES_CONTROLS=1
44416         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44417     else
44418         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44419 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44420     fi
44421 fi
44422
44423 if test "$wxUSE_POPUPWIN" = "yes"; then
44424     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44425         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44426 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44427     else
44428         if test "$wxUSE_PM" = 1; then
44429             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44430 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44431         else
44432             cat >>confdefs.h <<\_ACEOF
44433 #define wxUSE_POPUPWIN 1
44434 _ACEOF
44435
44436             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
44437
44438             USES_CONTROLS=1
44439         fi
44440     fi
44441 fi
44442
44443 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
44444     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44445         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44446 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44447     else
44448         cat >>confdefs.h <<\_ACEOF
44449 #define wxUSE_DIALUP_MANAGER 1
44450 _ACEOF
44451
44452         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44453     fi
44454 fi
44455
44456 if test "$wxUSE_TIPWINDOW" = "yes"; then
44457     if test "$wxUSE_PM" = 1; then
44458         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44459 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44460     else
44461         cat >>confdefs.h <<\_ACEOF
44462 #define wxUSE_TIPWINDOW 1
44463 _ACEOF
44464
44465     fi
44466 fi
44467
44468 if test "$USES_CONTROLS" = 1; then
44469     cat >>confdefs.h <<\_ACEOF
44470 #define wxUSE_CONTROLS 1
44471 _ACEOF
44472
44473 fi
44474
44475
44476 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44477     cat >>confdefs.h <<\_ACEOF
44478 #define wxUSE_ACCESSIBILITY 1
44479 _ACEOF
44480
44481     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44482 fi
44483
44484 if test "$wxUSE_DC_CACHEING" = "yes"; then
44485     cat >>confdefs.h <<\_ACEOF
44486 #define wxUSE_DC_CACHEING 1
44487 _ACEOF
44488
44489 fi
44490
44491 if test "$wxUSE_DRAGIMAGE" = "yes"; then
44492     cat >>confdefs.h <<\_ACEOF
44493 #define wxUSE_DRAGIMAGE 1
44494 _ACEOF
44495
44496     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44497 fi
44498
44499 if test "$wxUSE_EXCEPTIONS" = "yes"; then
44500     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44501         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44502 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44503     else
44504         cat >>confdefs.h <<\_ACEOF
44505 #define wxUSE_EXCEPTIONS 1
44506 _ACEOF
44507
44508         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44509     fi
44510 fi
44511
44512 USE_HTML=0
44513 if test "$wxUSE_HTML" = "yes"; then
44514     cat >>confdefs.h <<\_ACEOF
44515 #define wxUSE_HTML 1
44516 _ACEOF
44517
44518     USE_HTML=1
44519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
44520     if test "$wxUSE_MAC" = 1; then
44521         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44522     fi
44523 fi
44524 if test "$wxUSE_WEBKIT" = "yes"; then
44525     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
44526         old_CPPFLAGS="$CPPFLAGS"
44527         CPPFLAGS="-x objective-c++ $CPPFLAGS"
44528         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44529 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44530 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44531   echo $ECHO_N "(cached) $ECHO_C" >&6
44532 else
44533   cat >conftest.$ac_ext <<_ACEOF
44534 /* confdefs.h.  */
44535 _ACEOF
44536 cat confdefs.h >>conftest.$ac_ext
44537 cat >>conftest.$ac_ext <<_ACEOF
44538 /* end confdefs.h.  */
44539 #include <Carbon/Carbon.h>
44540
44541 #include <WebKit/HIWebView.h>
44542 _ACEOF
44543 rm -f conftest.$ac_objext
44544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44545   (eval $ac_compile) 2>conftest.er1
44546   ac_status=$?
44547   grep -v '^ *+' conftest.er1 >conftest.err
44548   rm -f conftest.er1
44549   cat conftest.err >&5
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); } &&
44552          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44554   (eval $ac_try) 2>&5
44555   ac_status=$?
44556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557   (exit $ac_status); }; } &&
44558          { ac_try='test -s conftest.$ac_objext'
44559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44560   (eval $ac_try) 2>&5
44561   ac_status=$?
44562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44563   (exit $ac_status); }; }; then
44564   ac_cv_header_WebKit_HIWebView_h=yes
44565 else
44566   echo "$as_me: failed program was:" >&5
44567 sed 's/^/| /' conftest.$ac_ext >&5
44568
44569 ac_cv_header_WebKit_HIWebView_h=no
44570 fi
44571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44572 fi
44573 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44574 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44575 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44576
44577                            cat >>confdefs.h <<\_ACEOF
44578 #define wxUSE_WEBKIT 1
44579 _ACEOF
44580
44581                            WEBKIT_LINK="-framework WebKit"
44582
44583 else
44584
44585                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44586 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44587                            wxUSE_WEBKIT=no
44588
44589 fi
44590
44591
44592         CPPFLAGS="$old_CPPFLAGS"
44593     elif test "$wxUSE_COCOA" = 1; then
44594         cat >>confdefs.h <<\_ACEOF
44595 #define wxUSE_WEBKIT 1
44596 _ACEOF
44597
44598     else
44599         wxUSE_WEBKIT=no
44600     fi
44601 fi
44602
44603 USE_XRC=0
44604 if test "$wxUSE_XRC" = "yes"; then
44605     if test "$wxUSE_XML" != "yes"; then
44606         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44607 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44608         wxUSE_XRC=no
44609     else
44610         cat >>confdefs.h <<\_ACEOF
44611 #define wxUSE_XRC 1
44612 _ACEOF
44613
44614         USE_XRC=1
44615         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44616     fi
44617 fi
44618
44619 if test "$wxUSE_MENUS" = "yes"; then
44620     cat >>confdefs.h <<\_ACEOF
44621 #define wxUSE_MENUS 1
44622 _ACEOF
44623
44624     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44625 fi
44626
44627 if test "$wxUSE_METAFILE" = "yes"; then
44628     cat >>confdefs.h <<\_ACEOF
44629 #define wxUSE_METAFILE 1
44630 _ACEOF
44631
44632 fi
44633
44634 if test "$wxUSE_MIMETYPE" = "yes"; then
44635     cat >>confdefs.h <<\_ACEOF
44636 #define wxUSE_MIMETYPE 1
44637 _ACEOF
44638
44639 fi
44640
44641 if test "$wxUSE_MINIFRAME" = "yes"; then
44642     cat >>confdefs.h <<\_ACEOF
44643 #define wxUSE_MINIFRAME 1
44644 _ACEOF
44645
44646     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44647 fi
44648
44649 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44650     cat >>confdefs.h <<\_ACEOF
44651 #define wxUSE_SYSTEM_OPTIONS 1
44652 _ACEOF
44653
44654     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
44655         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
44656         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44657     fi
44658 fi
44659
44660
44661 if test "$wxUSE_VALIDATORS" = "yes"; then
44662     cat >>confdefs.h <<\_ACEOF
44663 #define wxUSE_VALIDATORS 1
44664 _ACEOF
44665
44666     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44667 fi
44668
44669 if test "$wxUSE_PALETTE" = "yes" ; then
44670   cat >>confdefs.h <<\_ACEOF
44671 #define wxUSE_PALETTE 1
44672 _ACEOF
44673
44674 fi
44675
44676 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44677     LIBS=" -lunicows $LIBS"
44678 fi
44679
44680 USE_RICHTEXT=0
44681 if test "$wxUSE_RICHTEXT" = "yes"; then
44682     cat >>confdefs.h <<\_ACEOF
44683 #define wxUSE_RICHTEXT 1
44684 _ACEOF
44685
44686     USE_RICHTEXT=1
44687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44688 fi
44689
44690
44691 if test "$wxUSE_IMAGE" = "yes" ; then
44692     cat >>confdefs.h <<\_ACEOF
44693 #define wxUSE_IMAGE 1
44694 _ACEOF
44695
44696
44697     if test "$wxUSE_GIF" = "yes" ; then
44698       cat >>confdefs.h <<\_ACEOF
44699 #define wxUSE_GIF 1
44700 _ACEOF
44701
44702     fi
44703
44704     if test "$wxUSE_PCX" = "yes" ; then
44705       cat >>confdefs.h <<\_ACEOF
44706 #define wxUSE_PCX 1
44707 _ACEOF
44708
44709     fi
44710
44711     if test "$wxUSE_IFF" = "yes" ; then
44712       cat >>confdefs.h <<\_ACEOF
44713 #define wxUSE_IFF 1
44714 _ACEOF
44715
44716     fi
44717
44718     if test "$wxUSE_PNM" = "yes" ; then
44719       cat >>confdefs.h <<\_ACEOF
44720 #define wxUSE_PNM 1
44721 _ACEOF
44722
44723     fi
44724
44725     if test "$wxUSE_XPM" = "yes" ; then
44726       cat >>confdefs.h <<\_ACEOF
44727 #define wxUSE_XPM 1
44728 _ACEOF
44729
44730     fi
44731
44732     if test "$wxUSE_ICO_CUR" = "yes" ; then
44733       cat >>confdefs.h <<\_ACEOF
44734 #define wxUSE_ICO_CUR 1
44735 _ACEOF
44736
44737     fi
44738 fi
44739
44740
44741 if test "$wxUSE_CHOICEDLG" = "yes"; then
44742     cat >>confdefs.h <<\_ACEOF
44743 #define wxUSE_CHOICEDLG 1
44744 _ACEOF
44745
44746 fi
44747
44748 if test "$wxUSE_COLOURDLG" = "yes"; then
44749     cat >>confdefs.h <<\_ACEOF
44750 #define wxUSE_COLOURDLG 1
44751 _ACEOF
44752
44753 fi
44754
44755 if test "$wxUSE_FILEDLG" = "yes"; then
44756     cat >>confdefs.h <<\_ACEOF
44757 #define wxUSE_FILEDLG 1
44758 _ACEOF
44759
44760 fi
44761
44762 if test "$wxUSE_FINDREPLDLG" = "yes"; then
44763     cat >>confdefs.h <<\_ACEOF
44764 #define wxUSE_FINDREPLDLG 1
44765 _ACEOF
44766
44767 fi
44768
44769 if test "$wxUSE_FONTDLG" = "yes"; then
44770     cat >>confdefs.h <<\_ACEOF
44771 #define wxUSE_FONTDLG 1
44772 _ACEOF
44773
44774 fi
44775
44776 if test "$wxUSE_DIRDLG" = "yes"; then
44777     if test "$wxUSE_TREECTRL" != "yes"; then
44778         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44779 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44780     else
44781         cat >>confdefs.h <<\_ACEOF
44782 #define wxUSE_DIRDLG 1
44783 _ACEOF
44784
44785     fi
44786 fi
44787
44788 if test "$wxUSE_MSGDLG" = "yes"; then
44789     cat >>confdefs.h <<\_ACEOF
44790 #define wxUSE_MSGDLG 1
44791 _ACEOF
44792
44793 fi
44794
44795 if test "$wxUSE_NUMBERDLG" = "yes"; then
44796     cat >>confdefs.h <<\_ACEOF
44797 #define wxUSE_NUMBERDLG 1
44798 _ACEOF
44799
44800 fi
44801
44802 if test "$wxUSE_PROGRESSDLG" = "yes"; then
44803     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44804        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44805 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44806     else
44807         cat >>confdefs.h <<\_ACEOF
44808 #define wxUSE_PROGRESSDLG 1
44809 _ACEOF
44810
44811     fi
44812 fi
44813
44814 if test "$wxUSE_SPLASH" = "yes"; then
44815     cat >>confdefs.h <<\_ACEOF
44816 #define wxUSE_SPLASH 1
44817 _ACEOF
44818
44819     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
44820 fi
44821
44822 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44823     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44824        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44825 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44826     else
44827         cat >>confdefs.h <<\_ACEOF
44828 #define wxUSE_STARTUP_TIPS 1
44829 _ACEOF
44830
44831     fi
44832 fi
44833
44834 if test "$wxUSE_TEXTDLG" = "yes"; then
44835     cat >>confdefs.h <<\_ACEOF
44836 #define wxUSE_TEXTDLG 1
44837 _ACEOF
44838
44839 fi
44840
44841 if test "$wxUSE_WIZARDDLG" = "yes"; then
44842     cat >>confdefs.h <<\_ACEOF
44843 #define wxUSE_WIZARDDLG 1
44844 _ACEOF
44845
44846     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44847 fi
44848
44849
44850 USE_MEDIA=0
44851
44852 if test "$wxUSE_MEDIACTRL" = "yes"; then
44853                 if test "$wxUSE_GTK" = 1; then
44854         wxUSE_GSTREAMER="yes"
44855
44856                                                                 GST_VERSION_MAJOR=0
44857         GST_VERSION_MINOR=10
44858         GST_VERSION_RELEASE=0
44859         GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44860         GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44861
44862         if test "$wxUSE_GSTREAMER8" = "no"; then
44863
44864   succeeded=no
44865
44866   if test -z "$PKG_CONFIG"; then
44867     # Extract the first word of "pkg-config", so it can be a program name with args.
44868 set dummy pkg-config; ac_word=$2
44869 echo "$as_me:$LINENO: checking for $ac_word" >&5
44870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44871 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44872   echo $ECHO_N "(cached) $ECHO_C" >&6
44873 else
44874   case $PKG_CONFIG in
44875   [\\/]* | ?:[\\/]*)
44876   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44877   ;;
44878   *)
44879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44880 for as_dir in $PATH
44881 do
44882   IFS=$as_save_IFS
44883   test -z "$as_dir" && as_dir=.
44884   for ac_exec_ext in '' $ac_executable_extensions; do
44885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44886     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44888     break 2
44889   fi
44890 done
44891 done
44892
44893   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44894   ;;
44895 esac
44896 fi
44897 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44898
44899 if test -n "$PKG_CONFIG"; then
44900   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44901 echo "${ECHO_T}$PKG_CONFIG" >&6
44902 else
44903   echo "$as_me:$LINENO: result: no" >&5
44904 echo "${ECHO_T}no" >&6
44905 fi
44906
44907   fi
44908
44909   if test "$PKG_CONFIG" = "no" ; then
44910      echo "*** The pkg-config script could not be found. Make sure it is"
44911      echo "*** in your path, or set the PKG_CONFIG environment variable"
44912      echo "*** to the full path to pkg-config."
44913      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44914   else
44915      PKG_CONFIG_MIN_VERSION=0.9.0
44916      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44917         echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44918                                gstreamer-plugins-base-$GST_MAJORMINOR
44919                                gconf-2.0" >&5
44920 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44921                                gstreamer-plugins-base-$GST_MAJORMINOR
44922                                gconf-2.0... $ECHO_C" >&6
44923
44924         if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44925                                gstreamer-plugins-base-$GST_MAJORMINOR
44926                                gconf-2.0" ; then
44927             echo "$as_me:$LINENO: result: yes" >&5
44928 echo "${ECHO_T}yes" >&6
44929             succeeded=yes
44930
44931             echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44932 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44933             GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44934                                gstreamer-plugins-base-$GST_MAJORMINOR
44935                                gconf-2.0"`
44936             echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44937 echo "${ECHO_T}$GST_CFLAGS" >&6
44938
44939             echo "$as_me:$LINENO: checking GST_LIBS" >&5
44940 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44941             GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44942                                gstreamer-plugins-base-$GST_MAJORMINOR
44943                                gconf-2.0"`
44944             echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44945 echo "${ECHO_T}$GST_LIBS" >&6
44946         else
44947             GST_CFLAGS=""
44948             GST_LIBS=""
44949             ## If we have a custom action on failure, don't print errors, but
44950             ## do set a variable so people can do so.
44951             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44952                                gstreamer-plugins-base-$GST_MAJORMINOR
44953                                gconf-2.0"`
44954
44955         fi
44956
44957
44958
44959      else
44960         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44961         echo "*** See http://www.freedesktop.org/software/pkgconfig"
44962      fi
44963   fi
44964
44965   if test $succeeded = yes; then
44966
44967                     CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44968                     LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
44969
44970   else
44971
44972                     GST_VERSION_MINOR=8
44973
44974   fi
44975
44976             else
44977             GST_VERSION_MINOR=8
44978         fi
44979
44980         GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44981         GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44982
44983         if test x$GST_VERSION_MINOR = x8; then
44984
44985   succeeded=no
44986
44987   if test -z "$PKG_CONFIG"; then
44988     # Extract the first word of "pkg-config", so it can be a program name with args.
44989 set dummy pkg-config; ac_word=$2
44990 echo "$as_me:$LINENO: checking for $ac_word" >&5
44991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44993   echo $ECHO_N "(cached) $ECHO_C" >&6
44994 else
44995   case $PKG_CONFIG in
44996   [\\/]* | ?:[\\/]*)
44997   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44998   ;;
44999   *)
45000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45001 for as_dir in $PATH
45002 do
45003   IFS=$as_save_IFS
45004   test -z "$as_dir" && as_dir=.
45005   for ac_exec_ext in '' $ac_executable_extensions; do
45006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45007     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45009     break 2
45010   fi
45011 done
45012 done
45013
45014   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45015   ;;
45016 esac
45017 fi
45018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45019
45020 if test -n "$PKG_CONFIG"; then
45021   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45022 echo "${ECHO_T}$PKG_CONFIG" >&6
45023 else
45024   echo "$as_me:$LINENO: result: no" >&5
45025 echo "${ECHO_T}no" >&6
45026 fi
45027
45028   fi
45029
45030   if test "$PKG_CONFIG" = "no" ; then
45031      echo "*** The pkg-config script could not be found. Make sure it is"
45032      echo "*** in your path, or set the PKG_CONFIG environment variable"
45033      echo "*** to the full path to pkg-config."
45034      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45035   else
45036      PKG_CONFIG_MIN_VERSION=0.9.0
45037      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45038         echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45039                 gstreamer-interfaces-$GST_MAJORMINOR
45040                 gstreamer-gconf-$GST_MAJORMINOR" >&5
45041 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45042                 gstreamer-interfaces-$GST_MAJORMINOR
45043                 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
45044
45045         if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45046                 gstreamer-interfaces-$GST_MAJORMINOR
45047                 gstreamer-gconf-$GST_MAJORMINOR" ; then
45048             echo "$as_me:$LINENO: result: yes" >&5
45049 echo "${ECHO_T}yes" >&6
45050             succeeded=yes
45051
45052             echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45053 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45054             GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45055                 gstreamer-interfaces-$GST_MAJORMINOR
45056                 gstreamer-gconf-$GST_MAJORMINOR"`
45057             echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45058 echo "${ECHO_T}$GST_CFLAGS" >&6
45059
45060             echo "$as_me:$LINENO: checking GST_LIBS" >&5
45061 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45062             GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45063                 gstreamer-interfaces-$GST_MAJORMINOR
45064                 gstreamer-gconf-$GST_MAJORMINOR"`
45065             echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45066 echo "${ECHO_T}$GST_LIBS" >&6
45067         else
45068             GST_CFLAGS=""
45069             GST_LIBS=""
45070             ## If we have a custom action on failure, don't print errors, but
45071             ## do set a variable so people can do so.
45072             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45073                 gstreamer-interfaces-$GST_MAJORMINOR
45074                 gstreamer-gconf-$GST_MAJORMINOR"`
45075
45076         fi
45077
45078
45079
45080      else
45081         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45082         echo "*** See http://www.freedesktop.org/software/pkgconfig"
45083      fi
45084   fi
45085
45086   if test $succeeded = yes; then
45087
45088                     CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45089                     LIBS="$LIBS $GST_LIBS"
45090
45091   else
45092
45093                     { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
45094 echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
45095             wxUSE_GSTREAMER="no"
45096
45097   fi
45098
45099         fi
45100
45101
45102         if test "$wxUSE_GSTREAMER" = "yes"; then
45103             cat >>confdefs.h <<\_ACEOF
45104 #define wxUSE_GSTREAMER 1
45105 _ACEOF
45106
45107             echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
45108 echo "${ECHO_T}GStreamer detection successful" >&6
45109         fi
45110     fi
45111     USE_MEDIA=1
45112     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45113     cat >>confdefs.h <<\_ACEOF
45114 #define wxUSE_MEDIACTRL 1
45115 _ACEOF
45116
45117 fi
45118
45119
45120 if test "$cross_compiling" = "yes"; then
45121         OSINFO="\"$host\""
45122 else
45123         OSINFO=`uname -s -r -m`
45124     OSINFO="\"$OSINFO\""
45125 fi
45126
45127 cat >>confdefs.h <<_ACEOF
45128 #define WXWIN_OS_DESCRIPTION $OSINFO
45129 _ACEOF
45130
45131
45132
45133 if test "x$prefix" != "xNONE"; then
45134     wxPREFIX=$prefix
45135 else
45136     wxPREFIX=$ac_default_prefix
45137 fi
45138
45139 cat >>confdefs.h <<_ACEOF
45140 #define wxINSTALL_PREFIX "$wxPREFIX"
45141 _ACEOF
45142
45143
45144
45145
45146 CORE_BASE_LIBS="net base"
45147 CORE_GUI_LIBS="adv core"
45148
45149 if test "$wxUSE_XML" = "yes" ; then
45150     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45151 fi
45152 if test "$wxUSE_ODBC" != "no" ; then
45153     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45154     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45155 fi
45156 if test "$wxUSE_HTML" = "yes" ; then
45157     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45158 fi
45159 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45160     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45161 fi
45162 if test "$wxUSE_XRC" = "yes" ; then
45163     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45164 fi
45165
45166 if test "$wxUSE_GUI" != "yes"; then
45167     CORE_GUI_LIBS=""
45168 fi
45169
45170
45171
45172
45173
45174 ac_ext=c
45175 ac_cpp='$CPP $CPPFLAGS'
45176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45179
45180
45181
45182 if test "$wxUSE_MAC" = 1 ; then
45183     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
45184         if test "$USE_DARWIN" = 1; then
45185             LDFLAGS="$LDFLAGS -framework QuickTime"
45186         else
45187             LDFLAGS="$LDFLAGS -lQuickTimeLib"
45188         fi
45189     fi
45190     if test "$USE_DARWIN" = 1; then
45191         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45192     else
45193         LDFLAGS="$LDFLAGS -lCarbonLib"
45194     fi
45195 fi
45196 if test "$wxUSE_COCOA" = 1 ; then
45197     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
45198     if test "$wxUSE_MEDIACTRL" = "yes"; then
45199         LDFLAGS="$LDFLAGS -framework QuickTime"
45200     fi
45201 fi
45202 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45203     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45204 fi
45205
45206 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45207
45208 if test "$wxUSE_GUI" = "yes"; then
45209
45210
45211         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45212                      dynamic erase event exec font image minimal mobile \
45213                      mobile/wxedit mobile/styles propsize render \
45214                      rotate shaped vscroll widgets"
45215
45216     if test "$wxUSE_MONOLITHIC" != "yes"; then
45217         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45218     fi
45219     if test "$TOOLKIT" = "MSW"; then
45220         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45221         if test "$wxUSE_UNIVERSAL" != "yes"; then
45222             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45223         fi
45224     fi
45225     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45226         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
45227     fi
45228 else
45229     SAMPLES_SUBDIRS="console"
45230 fi
45231
45232
45233 if test "x$INTELCC" = "xyes" ; then
45234                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45235 elif test "$GCC" = yes ; then
45236     CWARNINGS="-Wall -Wundef"
45237 fi
45238
45239 if test "x$INTELCXX" = "xyes" ; then
45240                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
45241 elif test "$GXX" = yes ; then
45242         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
45243 fi
45244
45245
45246 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45247 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45248
45249
45250 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
45251  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
45252  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45253  $CPPFLAGS `
45254
45255 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
45256 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
45257 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
45258
45259 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45260
45261
45262 if test "x$MWCC" = "xyes"; then
45263
45264             CC="$CC -cwd source -I-"
45265     CXX="$CXX -cwd source -I-"
45266 fi
45267
45268
45269 LIBS=`echo $LIBS`
45270 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45271 EXTRALIBS_XML="$EXPAT_LINK"
45272 EXTRALIBS_HTML="$MSPACK_LINK"
45273 EXTRALIBS_ODBC="$ODBC_LINK"
45274 if test "$wxUSE_GUI" = "yes"; then
45275     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
45276 fi
45277 if test "$wxUSE_OPENGL" = "yes"; then
45278     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45279 fi
45280
45281 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
45282
45283 WXCONFIG_LIBS="$LIBS"
45284
45285 if test "$wxUSE_REGEX" = "builtin" ; then
45286     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
45287 fi
45288 if test "$wxUSE_EXPAT" = "builtin" ; then
45289     wxconfig_3rdparty="expat $wxconfig_3rdparty"
45290 fi
45291 if test "$wxUSE_ODBC" = "builtin" ; then
45292     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
45293 fi
45294 if test "$wxUSE_LIBTIFF" = "builtin" ; then
45295     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
45296 fi
45297 if test "$wxUSE_LIBJPEG" = "builtin" ; then
45298     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
45299 fi
45300 if test "$wxUSE_LIBPNG" = "builtin" ; then
45301     wxconfig_3rdparty="png $wxconfig_3rdparty"
45302 fi
45303 if test "$wxUSE_ZLIB" = "builtin" ; then
45304     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
45305 fi
45306
45307 for i in $wxconfig_3rdparty ; do
45308     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
45309 done
45310
45311
45312 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45313     WXUNIV=1
45314 else
45315     WXUNIV=0
45316 fi
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326 if test $wxUSE_MONOLITHIC = "yes" ; then
45327     MONOLITHIC=1
45328 else
45329     MONOLITHIC=0
45330 fi
45331
45332 if test $wxUSE_PLUGINS = "yes" ; then
45333     USE_PLUGINS=1
45334 else
45335     USE_PLUGINS=0
45336 fi
45337
45338 if test $wxUSE_ODBC != "no" ; then
45339     USE_ODBC=1
45340 else
45341     USE_ODBC=0
45342 fi
45343
45344 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45345     USE_QA=1
45346 else
45347     USE_QA=0
45348 fi
45349
45350 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45351     OFFICIAL_BUILD=1
45352 else
45353     OFFICIAL_BUILD=0
45354 fi
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45381
45382
45383
45384
45385
45386
45387
45388
45389 case "$TOOLKIT" in
45390     GTK)
45391         TOOLKIT_USER="GTK+"
45392         if test "$WXGTK20" = 1; then
45393             TOOLKIT_USER="$TOOLKIT_USER 2"
45394         fi
45395         ;;
45396
45397     *)
45398         TOOLKIT_USER=$TOOLKIT_LOWERCASE
45399         ;;
45400 esac
45401
45402 if test "$wxUSE_WINE" = "yes"; then
45403     BAKEFILE_FORCE_PLATFORM=win32
45404 fi
45405
45406 if test "$wxUSE_MAC" = 1 ; then
45407     if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45408         CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45409         CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45410         LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45411         bk_use_pch=no
45412     fi
45413     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45414     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45415     # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45416 fi
45417
45418
45419
45420
45421     if test "x$BAKEFILE_HOST" = "x"; then
45422                if test "x${host}" = "x" ; then
45423                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45424 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45425    { (exit 1); exit 1; }; }
45426                fi
45427
45428         BAKEFILE_HOST="${host}"
45429     fi
45430
45431     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45432
45433     if test -n "$ac_tool_prefix"; then
45434   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45436 echo "$as_me:$LINENO: checking for $ac_word" >&5
45437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45438 if test "${ac_cv_prog_RANLIB+set}" = set; then
45439   echo $ECHO_N "(cached) $ECHO_C" >&6
45440 else
45441   if test -n "$RANLIB"; then
45442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45443 else
45444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45445 for as_dir in $PATH
45446 do
45447   IFS=$as_save_IFS
45448   test -z "$as_dir" && as_dir=.
45449   for ac_exec_ext in '' $ac_executable_extensions; do
45450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45451     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45453     break 2
45454   fi
45455 done
45456 done
45457
45458 fi
45459 fi
45460 RANLIB=$ac_cv_prog_RANLIB
45461 if test -n "$RANLIB"; then
45462   echo "$as_me:$LINENO: result: $RANLIB" >&5
45463 echo "${ECHO_T}$RANLIB" >&6
45464 else
45465   echo "$as_me:$LINENO: result: no" >&5
45466 echo "${ECHO_T}no" >&6
45467 fi
45468
45469 fi
45470 if test -z "$ac_cv_prog_RANLIB"; then
45471   ac_ct_RANLIB=$RANLIB
45472   # Extract the first word of "ranlib", so it can be a program name with args.
45473 set dummy ranlib; ac_word=$2
45474 echo "$as_me:$LINENO: checking for $ac_word" >&5
45475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45477   echo $ECHO_N "(cached) $ECHO_C" >&6
45478 else
45479   if test -n "$ac_ct_RANLIB"; then
45480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45481 else
45482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45483 for as_dir in $PATH
45484 do
45485   IFS=$as_save_IFS
45486   test -z "$as_dir" && as_dir=.
45487   for ac_exec_ext in '' $ac_executable_extensions; do
45488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45489     ac_cv_prog_ac_ct_RANLIB="ranlib"
45490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45491     break 2
45492   fi
45493 done
45494 done
45495
45496   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45497 fi
45498 fi
45499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45500 if test -n "$ac_ct_RANLIB"; then
45501   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45502 echo "${ECHO_T}$ac_ct_RANLIB" >&6
45503 else
45504   echo "$as_me:$LINENO: result: no" >&5
45505 echo "${ECHO_T}no" >&6
45506 fi
45507
45508   RANLIB=$ac_ct_RANLIB
45509 else
45510   RANLIB="$ac_cv_prog_RANLIB"
45511 fi
45512
45513     # Find a good install program.  We prefer a C program (faster),
45514 # so one script is as good as another.  But avoid the broken or
45515 # incompatible versions:
45516 # SysV /etc/install, /usr/sbin/install
45517 # SunOS /usr/etc/install
45518 # IRIX /sbin/install
45519 # AIX /bin/install
45520 # AmigaOS /C/install, which installs bootblocks on floppy discs
45521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
45523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
45524 # OS/2's system install, which has a completely different semantic
45525 # ./install, which can be erroneously created by make from ./install.sh.
45526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45528 if test -z "$INSTALL"; then
45529 if test "${ac_cv_path_install+set}" = set; then
45530   echo $ECHO_N "(cached) $ECHO_C" >&6
45531 else
45532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45533 for as_dir in $PATH
45534 do
45535   IFS=$as_save_IFS
45536   test -z "$as_dir" && as_dir=.
45537   # Account for people who put trailing slashes in PATH elements.
45538 case $as_dir/ in
45539   ./ | .// | /cC/* | \
45540   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
45541   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
45542   /usr/ucb/* ) ;;
45543   *)
45544     # OSF1 and SCO ODT 3.0 have their own names for install.
45545     # Don't use installbsd from OSF since it installs stuff as root
45546     # by default.
45547     for ac_prog in ginstall scoinst install; do
45548       for ac_exec_ext in '' $ac_executable_extensions; do
45549         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45550           if test $ac_prog = install &&
45551             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45552             # AIX install.  It has an incompatible calling convention.
45553             :
45554           elif test $ac_prog = install &&
45555             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45556             # program-specific install script used by HP pwplus--don't use.
45557             :
45558           else
45559             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45560             break 3
45561           fi
45562         fi
45563       done
45564     done
45565     ;;
45566 esac
45567 done
45568
45569
45570 fi
45571   if test "${ac_cv_path_install+set}" = set; then
45572     INSTALL=$ac_cv_path_install
45573   else
45574     # As a last resort, use the slow shell script.  We don't cache a
45575     # path for INSTALL within a source directory, because that will
45576     # break other packages using the cache if that directory is
45577     # removed, or if the path is relative.
45578     INSTALL=$ac_install_sh
45579   fi
45580 fi
45581 echo "$as_me:$LINENO: result: $INSTALL" >&5
45582 echo "${ECHO_T}$INSTALL" >&6
45583
45584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45585 # It thinks the first close brace ends the variable substitution.
45586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45587
45588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45589
45590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45591
45592     echo "$as_me:$LINENO: checking whether ln -s works" >&5
45593 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45594 LN_S=$as_ln_s
45595 if test "$LN_S" = "ln -s"; then
45596   echo "$as_me:$LINENO: result: yes" >&5
45597 echo "${ECHO_T}yes" >&6
45598 else
45599   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45600 echo "${ECHO_T}no, using $LN_S" >&6
45601 fi
45602
45603
45604     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45605 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
45606 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
45607 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45608   echo $ECHO_N "(cached) $ECHO_C" >&6
45609 else
45610   cat >conftest.make <<\_ACEOF
45611 all:
45612         @echo 'ac_maketemp="$(MAKE)"'
45613 _ACEOF
45614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45615 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45616 if test -n "$ac_maketemp"; then
45617   eval ac_cv_prog_make_${ac_make}_set=yes
45618 else
45619   eval ac_cv_prog_make_${ac_make}_set=no
45620 fi
45621 rm -f conftest.make
45622 fi
45623 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45624   echo "$as_me:$LINENO: result: yes" >&5
45625 echo "${ECHO_T}yes" >&6
45626   SET_MAKE=
45627 else
45628   echo "$as_me:$LINENO: result: no" >&5
45629 echo "${ECHO_T}no" >&6
45630   SET_MAKE="MAKE=${MAKE-make}"
45631 fi
45632
45633
45634
45635     if test -n "$ac_tool_prefix"; then
45636   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45637 set dummy ${ac_tool_prefix}ar; ac_word=$2
45638 echo "$as_me:$LINENO: checking for $ac_word" >&5
45639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45640 if test "${ac_cv_prog_AR+set}" = set; then
45641   echo $ECHO_N "(cached) $ECHO_C" >&6
45642 else
45643   if test -n "$AR"; then
45644   ac_cv_prog_AR="$AR" # Let the user override the test.
45645 else
45646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45647 for as_dir in $PATH
45648 do
45649   IFS=$as_save_IFS
45650   test -z "$as_dir" && as_dir=.
45651   for ac_exec_ext in '' $ac_executable_extensions; do
45652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45653     ac_cv_prog_AR="${ac_tool_prefix}ar"
45654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45655     break 2
45656   fi
45657 done
45658 done
45659
45660 fi
45661 fi
45662 AR=$ac_cv_prog_AR
45663 if test -n "$AR"; then
45664   echo "$as_me:$LINENO: result: $AR" >&5
45665 echo "${ECHO_T}$AR" >&6
45666 else
45667   echo "$as_me:$LINENO: result: no" >&5
45668 echo "${ECHO_T}no" >&6
45669 fi
45670
45671 fi
45672 if test -z "$ac_cv_prog_AR"; then
45673   ac_ct_AR=$AR
45674   # Extract the first word of "ar", so it can be a program name with args.
45675 set dummy ar; ac_word=$2
45676 echo "$as_me:$LINENO: checking for $ac_word" >&5
45677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45678 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45679   echo $ECHO_N "(cached) $ECHO_C" >&6
45680 else
45681   if test -n "$ac_ct_AR"; then
45682   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45683 else
45684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45685 for as_dir in $PATH
45686 do
45687   IFS=$as_save_IFS
45688   test -z "$as_dir" && as_dir=.
45689   for ac_exec_ext in '' $ac_executable_extensions; do
45690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45691     ac_cv_prog_ac_ct_AR="ar"
45692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45693     break 2
45694   fi
45695 done
45696 done
45697
45698   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45699 fi
45700 fi
45701 ac_ct_AR=$ac_cv_prog_ac_ct_AR
45702 if test -n "$ac_ct_AR"; then
45703   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45704 echo "${ECHO_T}$ac_ct_AR" >&6
45705 else
45706   echo "$as_me:$LINENO: result: no" >&5
45707 echo "${ECHO_T}no" >&6
45708 fi
45709
45710   AR=$ac_ct_AR
45711 else
45712   AR="$ac_cv_prog_AR"
45713 fi
45714
45715     if test -n "$ac_tool_prefix"; then
45716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45717 set dummy ${ac_tool_prefix}strip; ac_word=$2
45718 echo "$as_me:$LINENO: checking for $ac_word" >&5
45719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45720 if test "${ac_cv_prog_STRIP+set}" = set; then
45721   echo $ECHO_N "(cached) $ECHO_C" >&6
45722 else
45723   if test -n "$STRIP"; then
45724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45725 else
45726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45727 for as_dir in $PATH
45728 do
45729   IFS=$as_save_IFS
45730   test -z "$as_dir" && as_dir=.
45731   for ac_exec_ext in '' $ac_executable_extensions; do
45732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45735     break 2
45736   fi
45737 done
45738 done
45739
45740 fi
45741 fi
45742 STRIP=$ac_cv_prog_STRIP
45743 if test -n "$STRIP"; then
45744   echo "$as_me:$LINENO: result: $STRIP" >&5
45745 echo "${ECHO_T}$STRIP" >&6
45746 else
45747   echo "$as_me:$LINENO: result: no" >&5
45748 echo "${ECHO_T}no" >&6
45749 fi
45750
45751 fi
45752 if test -z "$ac_cv_prog_STRIP"; then
45753   ac_ct_STRIP=$STRIP
45754   # Extract the first word of "strip", so it can be a program name with args.
45755 set dummy strip; ac_word=$2
45756 echo "$as_me:$LINENO: checking for $ac_word" >&5
45757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45759   echo $ECHO_N "(cached) $ECHO_C" >&6
45760 else
45761   if test -n "$ac_ct_STRIP"; then
45762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45763 else
45764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45765 for as_dir in $PATH
45766 do
45767   IFS=$as_save_IFS
45768   test -z "$as_dir" && as_dir=.
45769   for ac_exec_ext in '' $ac_executable_extensions; do
45770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45771     ac_cv_prog_ac_ct_STRIP="strip"
45772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45773     break 2
45774   fi
45775 done
45776 done
45777
45778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45779 fi
45780 fi
45781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45782 if test -n "$ac_ct_STRIP"; then
45783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45784 echo "${ECHO_T}$ac_ct_STRIP" >&6
45785 else
45786   echo "$as_me:$LINENO: result: no" >&5
45787 echo "${ECHO_T}no" >&6
45788 fi
45789
45790   STRIP=$ac_ct_STRIP
45791 else
45792   STRIP="$ac_cv_prog_STRIP"
45793 fi
45794
45795     if test -n "$ac_tool_prefix"; then
45796   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45797 set dummy ${ac_tool_prefix}nm; ac_word=$2
45798 echo "$as_me:$LINENO: checking for $ac_word" >&5
45799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45800 if test "${ac_cv_prog_NM+set}" = set; then
45801   echo $ECHO_N "(cached) $ECHO_C" >&6
45802 else
45803   if test -n "$NM"; then
45804   ac_cv_prog_NM="$NM" # Let the user override the test.
45805 else
45806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45807 for as_dir in $PATH
45808 do
45809   IFS=$as_save_IFS
45810   test -z "$as_dir" && as_dir=.
45811   for ac_exec_ext in '' $ac_executable_extensions; do
45812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45813     ac_cv_prog_NM="${ac_tool_prefix}nm"
45814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45815     break 2
45816   fi
45817 done
45818 done
45819
45820 fi
45821 fi
45822 NM=$ac_cv_prog_NM
45823 if test -n "$NM"; then
45824   echo "$as_me:$LINENO: result: $NM" >&5
45825 echo "${ECHO_T}$NM" >&6
45826 else
45827   echo "$as_me:$LINENO: result: no" >&5
45828 echo "${ECHO_T}no" >&6
45829 fi
45830
45831 fi
45832 if test -z "$ac_cv_prog_NM"; then
45833   ac_ct_NM=$NM
45834   # Extract the first word of "nm", so it can be a program name with args.
45835 set dummy nm; ac_word=$2
45836 echo "$as_me:$LINENO: checking for $ac_word" >&5
45837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45838 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45839   echo $ECHO_N "(cached) $ECHO_C" >&6
45840 else
45841   if test -n "$ac_ct_NM"; then
45842   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45843 else
45844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45845 for as_dir in $PATH
45846 do
45847   IFS=$as_save_IFS
45848   test -z "$as_dir" && as_dir=.
45849   for ac_exec_ext in '' $ac_executable_extensions; do
45850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45851     ac_cv_prog_ac_ct_NM="nm"
45852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45853     break 2
45854   fi
45855 done
45856 done
45857
45858   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45859 fi
45860 fi
45861 ac_ct_NM=$ac_cv_prog_ac_ct_NM
45862 if test -n "$ac_ct_NM"; then
45863   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45864 echo "${ECHO_T}$ac_ct_NM" >&6
45865 else
45866   echo "$as_me:$LINENO: result: no" >&5
45867 echo "${ECHO_T}no" >&6
45868 fi
45869
45870   NM=$ac_ct_NM
45871 else
45872   NM="$ac_cv_prog_NM"
45873 fi
45874
45875
45876     case ${BAKEFILE_HOST} in
45877         *-hp-hpux* )
45878                                     INSTALL_DIR="mkdir -p"
45879             ;;
45880         *)  INSTALL_DIR="$INSTALL -d"
45881             ;;
45882     esac
45883
45884
45885     LDFLAGS_GUI=
45886     case ${BAKEFILE_HOST} in
45887         *-*-cygwin* | *-*-mingw32* )
45888         LDFLAGS_GUI="-mwindows"
45889     esac
45890
45891
45892     fi
45893
45894         echo "$as_me:$LINENO: checking if make is GNU make" >&5
45895 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45896 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45897   echo $ECHO_N "(cached) $ECHO_C" >&6
45898 else
45899
45900         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45901                 egrep -s GNU > /dev/null); then
45902             bakefile_cv_prog_makeisgnu="yes"
45903         else
45904             bakefile_cv_prog_makeisgnu="no"
45905         fi
45906
45907 fi
45908 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45909 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45910
45911     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45912         IF_GNU_MAKE=""
45913     else
45914         IF_GNU_MAKE="#"
45915     fi
45916
45917
45918
45919     PLATFORM_UNIX=0
45920     PLATFORM_WIN32=0
45921     PLATFORM_MSDOS=0
45922     PLATFORM_MAC=0
45923     PLATFORM_MACOS=0
45924     PLATFORM_MACOSX=0
45925     PLATFORM_OS2=0
45926     PLATFORM_BEOS=0
45927
45928     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45929         case "${BAKEFILE_HOST}" in
45930             *-*-mingw32* )
45931                 PLATFORM_WIN32=1
45932             ;;
45933             *-pc-msdosdjgpp )
45934                 PLATFORM_MSDOS=1
45935             ;;
45936             *-pc-os2_emx | *-pc-os2-emx )
45937                 PLATFORM_OS2=1
45938             ;;
45939             *-*-darwin* )
45940                 PLATFORM_MAC=1
45941                 PLATFORM_MACOSX=1
45942             ;;
45943             *-*-beos* )
45944                 PLATFORM_BEOS=1
45945             ;;
45946             powerpc-apple-macos* )
45947                 PLATFORM_MAC=1
45948                 PLATFORM_MACOS=1
45949             ;;
45950             * )
45951                 PLATFORM_UNIX=1
45952             ;;
45953         esac
45954     else
45955         case "$BAKEFILE_FORCE_PLATFORM" in
45956             win32 )
45957                 PLATFORM_WIN32=1
45958             ;;
45959             msdos )
45960                 PLATFORM_MSDOS=1
45961             ;;
45962             os2 )
45963                 PLATFORM_OS2=1
45964             ;;
45965             darwin )
45966                 PLATFORM_MAC=1
45967                 PLATFORM_MACOSX=1
45968             ;;
45969             unix )
45970                 PLATFORM_UNIX=1
45971             ;;
45972             beos )
45973                 PLATFORM_BEOS=1
45974             ;;
45975             * )
45976                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45977 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45978    { (exit 1); exit 1; }; }
45979             ;;
45980         esac
45981     fi
45982
45983
45984
45985
45986
45987
45988
45989
45990
45991
45992
45993     # Check whether --enable-omf or --disable-omf was given.
45994 if test "${enable_omf+set}" = set; then
45995   enableval="$enable_omf"
45996   bk_os2_use_omf="$enableval"
45997 fi;
45998
45999     case "${BAKEFILE_HOST}" in
46000       *-*-darwin* )
46001                         if test "x$GCC" = "xyes"; then
46002             CFLAGS="$CFLAGS -fno-common"
46003             CXXFLAGS="$CXXFLAGS -fno-common"
46004         fi
46005         if test "x$XLCC" = "xyes"; then
46006             CFLAGS="$CFLAGS -qnocommon"
46007             CXXFLAGS="$CXXFLAGS -qnocommon"
46008         fi
46009         ;;
46010
46011       *-pc-os2_emx | *-pc-os2-emx )
46012         if test "x$bk_os2_use_omf" = "xyes" ; then
46013             AR=emxomfar
46014             RANLIB=:
46015             LDFLAGS="-Zomf $LDFLAGS"
46016             CFLAGS="-Zomf $CFLAGS"
46017             CXXFLAGS="-Zomf $CXXFLAGS"
46018             OS2_LIBEXT="lib"
46019         else
46020             OS2_LIBEXT="a"
46021         fi
46022         ;;
46023
46024       i*86-*-beos* )
46025         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46026         ;;
46027     esac
46028
46029
46030     SO_SUFFIX="so"
46031     SO_SUFFIX_MODULE="so"
46032     EXEEXT=""
46033     LIBPREFIX="lib"
46034     LIBEXT=".a"
46035     DLLPREFIX="lib"
46036     DLLPREFIX_MODULE=""
46037     DLLIMP_SUFFIX=""
46038     dlldir="$libdir"
46039
46040     case "${BAKEFILE_HOST}" in
46041         *-hp-hpux* )
46042             SO_SUFFIX="sl"
46043             SO_SUFFIX_MODULE="sl"
46044         ;;
46045         *-*-aix* )
46046                                                                         SO_SUFFIX="a"
46047             SO_SUFFIX_MODULE="a"
46048         ;;
46049         *-*-cygwin* )
46050             SO_SUFFIX="dll"
46051             SO_SUFFIX_MODULE="dll"
46052             DLLIMP_SUFFIX="dll.a"
46053             EXEEXT=".exe"
46054             DLLPREFIX="cyg"
46055             dlldir="$bindir"
46056         ;;
46057         *-*-mingw32* )
46058             SO_SUFFIX="dll"
46059             SO_SUFFIX_MODULE="dll"
46060             DLLIMP_SUFFIX="dll.a"
46061             EXEEXT=".exe"
46062             DLLPREFIX=""
46063             dlldir="$bindir"
46064         ;;
46065         *-pc-msdosdjgpp )
46066             EXEEXT=".exe"
46067             DLLPREFIX=""
46068             dlldir="$bindir"
46069         ;;
46070         *-pc-os2_emx | *-pc-os2-emx )
46071             SO_SUFFIX="dll"
46072             SO_SUFFIX_MODULE="dll"
46073             DLLIMP_SUFFIX=$OS2_LIBEXT
46074             EXEEXT=".exe"
46075             DLLPREFIX=""
46076             LIBPREFIX=""
46077             LIBEXT=".$OS2_LIBEXT"
46078             dlldir="$bindir"
46079         ;;
46080         *-*-darwin* )
46081             SO_SUFFIX="dylib"
46082             SO_SUFFIX_MODULE="bundle"
46083         ;;
46084     esac
46085
46086     if test "x$DLLIMP_SUFFIX" = "x" ; then
46087         DLLIMP_SUFFIX="$SO_SUFFIX"
46088     fi
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101         PIC_FLAG=""
46102     if test "x$GCC" = "xyes"; then
46103                 PIC_FLAG="-fPIC"
46104     fi
46105
46106         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46107     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
46108     WINDOWS_IMPLIB=0
46109
46110     case "${BAKEFILE_HOST}" in
46111       *-hp-hpux* )
46112                 if test "x$GCC" != "xyes"; then
46113                         LDFLAGS="$LDFLAGS -L/usr/lib"
46114
46115             SHARED_LD_CC="${CC} -b -o"
46116             SHARED_LD_CXX="${CXX} -b -o"
46117             PIC_FLAG="+Z"
46118         fi
46119       ;;
46120
46121       *-*-linux* )
46122         if test "x$GCC" != "xyes"; then
46123             echo "$as_me:$LINENO: checking for Intel compiler" >&5
46124 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46125 if test "${bakefile_cv_prog_icc+set}" = set; then
46126   echo $ECHO_N "(cached) $ECHO_C" >&6
46127 else
46128
46129                 cat >conftest.$ac_ext <<_ACEOF
46130 /* confdefs.h.  */
46131 _ACEOF
46132 cat confdefs.h >>conftest.$ac_ext
46133 cat >>conftest.$ac_ext <<_ACEOF
46134 /* end confdefs.h.  */
46135
46136 int
46137 main ()
46138 {
46139
46140                         #ifndef __INTEL_COMPILER
46141                         This is not ICC
46142                         #endif
46143
46144   ;
46145   return 0;
46146 }
46147 _ACEOF
46148 rm -f conftest.$ac_objext
46149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46150   (eval $ac_compile) 2>conftest.er1
46151   ac_status=$?
46152   grep -v '^ *+' conftest.er1 >conftest.err
46153   rm -f conftest.er1
46154   cat conftest.err >&5
46155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46156   (exit $ac_status); } &&
46157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46159   (eval $ac_try) 2>&5
46160   ac_status=$?
46161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46162   (exit $ac_status); }; } &&
46163          { ac_try='test -s conftest.$ac_objext'
46164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46165   (eval $ac_try) 2>&5
46166   ac_status=$?
46167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168   (exit $ac_status); }; }; then
46169   bakefile_cv_prog_icc=yes
46170 else
46171   echo "$as_me: failed program was:" >&5
46172 sed 's/^/| /' conftest.$ac_ext >&5
46173
46174 bakefile_cv_prog_icc=no
46175
46176 fi
46177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46178
46179 fi
46180 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46181 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46182             if test "$bakefile_cv_prog_icc" = "yes"; then
46183                 PIC_FLAG="-KPIC"
46184             fi
46185         fi
46186       ;;
46187
46188       *-*-solaris2* )
46189         if test "x$GCC" != xyes ; then
46190             SHARED_LD_CC="${CC} -G -o"
46191             SHARED_LD_CXX="${CXX} -G -o"
46192             PIC_FLAG="-KPIC"
46193         fi
46194       ;;
46195
46196       *-*-darwin* )
46197
46198 D='$'
46199 cat <<EOF >shared-ld-sh
46200 #!/bin/sh
46201 #-----------------------------------------------------------------------------
46202 #-- Name:        distrib/mac/shared-ld-sh
46203 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
46204 #-- Author:      Gilles Depeyrot
46205 #-- Copyright:   (c) 2002 Gilles Depeyrot
46206 #-- Licence:     any use permitted
46207 #-----------------------------------------------------------------------------
46208
46209 verbose=0
46210 args=""
46211 objects=""
46212 linking_flag="-dynamiclib"
46213 ldargs="-r -keep_private_externs -nostdlib"
46214
46215 while test ${D}# -gt 0; do
46216     case ${D}1 in
46217
46218        -v)
46219         verbose=1
46220         ;;
46221
46222        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46223         # collect these options and values
46224         args="${D}{args} ${D}1 ${D}2"
46225         shift
46226         ;;
46227
46228        -s|-Wl,*)
46229         # collect these load args
46230         ldargs="${D}{ldargs} ${D}1"
46231         ;;
46232
46233        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
46234         # collect these options
46235         args="${D}{args} ${D}1"
46236         ;;
46237
46238        -dynamiclib|-bundle)
46239         linking_flag="${D}1"
46240         ;;
46241
46242        -*)
46243         echo "shared-ld: unhandled option '${D}1'"
46244         exit 1
46245         ;;
46246
46247         *.o | *.a | *.dylib)
46248         # collect object files
46249         objects="${D}{objects} ${D}1"
46250         ;;
46251
46252         *)
46253         echo "shared-ld: unhandled argument '${D}1'"
46254         exit 1
46255         ;;
46256
46257     esac
46258     shift
46259 done
46260
46261 status=0
46262
46263 #
46264 # Link one module containing all the others
46265 #
46266 if test ${D}{verbose} = 1; then
46267     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
46268 fi
46269 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
46270 status=${D}?
46271
46272 #
46273 # Link the shared library from the single module created, but only if the
46274 # previous command didn't fail:
46275 #
46276 if test ${D}{status} = 0; then
46277     if test ${D}{verbose} = 1; then
46278         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46279     fi
46280     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46281     status=${D}?
46282 fi
46283
46284 #
46285 # Remove intermediate module
46286 #
46287 rm -f master.${D}${D}.o
46288
46289 exit ${D}status
46290 EOF
46291
46292         chmod +x shared-ld-sh
46293
46294         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46295         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46296
46297
46298                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46299 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46300 if test "${bakefile_cv_gcc31+set}" = set; then
46301   echo $ECHO_N "(cached) $ECHO_C" >&6
46302 else
46303
46304            cat >conftest.$ac_ext <<_ACEOF
46305 /* confdefs.h.  */
46306 _ACEOF
46307 cat confdefs.h >>conftest.$ac_ext
46308 cat >>conftest.$ac_ext <<_ACEOF
46309 /* end confdefs.h.  */
46310
46311 int
46312 main ()
46313 {
46314
46315                    #if (__GNUC__ < 3) || \
46316                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46317                        This is old gcc
46318                    #endif
46319
46320   ;
46321   return 0;
46322 }
46323 _ACEOF
46324 rm -f conftest.$ac_objext
46325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46326   (eval $ac_compile) 2>conftest.er1
46327   ac_status=$?
46328   grep -v '^ *+' conftest.er1 >conftest.err
46329   rm -f conftest.er1
46330   cat conftest.err >&5
46331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46332   (exit $ac_status); } &&
46333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46335   (eval $ac_try) 2>&5
46336   ac_status=$?
46337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338   (exit $ac_status); }; } &&
46339          { ac_try='test -s conftest.$ac_objext'
46340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46341   (eval $ac_try) 2>&5
46342   ac_status=$?
46343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344   (exit $ac_status); }; }; then
46345
46346                    bakefile_cv_gcc31=yes
46347
46348 else
46349   echo "$as_me: failed program was:" >&5
46350 sed 's/^/| /' conftest.$ac_ext >&5
46351
46352
46353                    bakefile_cv_gcc31=no
46354
46355
46356 fi
46357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46358
46359 fi
46360 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46361 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46362         if test "$bakefile_cv_gcc31" = "no"; then
46363                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
46364             SHARED_LD_CXX="$SHARED_LD_CC"
46365         else
46366                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
46367             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
46368         fi
46369
46370         if test "x$GCC" == "xyes"; then
46371             PIC_FLAG="-dynamic -fPIC"
46372         fi
46373         if test "x$XLCC" = "xyes"; then
46374             PIC_FLAG="-dynamic -DPIC"
46375         fi
46376       ;;
46377
46378       *-*-aix* )
46379         if test "x$GCC" = "xyes"; then
46380                                                             PIC_FLAG=""
46381
46382                                                                                     case "${BAKEFILE_HOST}" in
46383                 *-*-aix5* )
46384                     LD_EXPFULL="-Wl,-bexpfull"
46385                     ;;
46386             esac
46387
46388             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46389             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46390         else
46391                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
46392 set dummy makeC++SharedLib; ac_word=$2
46393 echo "$as_me:$LINENO: checking for $ac_word" >&5
46394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46395 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46396   echo $ECHO_N "(cached) $ECHO_C" >&6
46397 else
46398   if test -n "$AIX_CXX_LD"; then
46399   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46400 else
46401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46402 for as_dir in $PATH
46403 do
46404   IFS=$as_save_IFS
46405   test -z "$as_dir" && as_dir=.
46406   for ac_exec_ext in '' $ac_executable_extensions; do
46407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46408     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46410     break 2
46411   fi
46412 done
46413 done
46414
46415   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46416 fi
46417 fi
46418 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46419 if test -n "$AIX_CXX_LD"; then
46420   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46421 echo "${ECHO_T}$AIX_CXX_LD" >&6
46422 else
46423   echo "$as_me:$LINENO: result: no" >&5
46424 echo "${ECHO_T}no" >&6
46425 fi
46426
46427             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
46428             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46429         fi
46430       ;;
46431
46432       *-*-beos* )
46433                         SHARED_LD_CC="${LD} -nostart -o"
46434         SHARED_LD_CXX="${LD} -nostart -o"
46435       ;;
46436
46437       *-*-irix* )
46438                 if test "x$GCC" != "xyes"; then
46439             PIC_FLAG="-KPIC"
46440         fi
46441       ;;
46442
46443       *-*-cygwin* | *-*-mingw32* )
46444         PIC_FLAG=""
46445         SHARED_LD_CC="\$(CC) -shared -o"
46446         SHARED_LD_CXX="\$(CXX) -shared -o"
46447         WINDOWS_IMPLIB=1
46448       ;;
46449
46450       *-pc-os2_emx | *-pc-os2-emx )
46451         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46452         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46453         PIC_FLAG=""
46454
46455 D='$'
46456 cat <<EOF >dllar.sh
46457 #!/bin/sh
46458 #
46459 # dllar - a tool to build both a .dll and an .a file
46460 # from a set of object (.o) files for EMX/OS2.
46461 #
46462 #  Written by Andrew Zabolotny, bit@freya.etu.ru
46463 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46464 #
46465 #  This script will accept a set of files on the command line.
46466 #  All the public symbols from the .o files will be exported into
46467 #  a .DEF file, then linker will be run (through gcc) against them to
46468 #  build a shared library consisting of all given .o files. All libraries
46469 #  (.a) will be first decompressed into component .o files then act as
46470 #  described above. You can optionally give a description (-d "description")
46471 #  which will be put into .DLL. To see the list of accepted options (as well
46472 #  as command-line format) simply run this program without options. The .DLL
46473 #  is built to be imported by name (there is no guarantee that new versions
46474 #  of the library you build will have same ordinals for same symbols).
46475 #
46476 #  dllar is free software; you can redistribute it and/or modify
46477 #  it under the terms of the GNU General Public License as published by
46478 #  the Free Software Foundation; either version 2, or (at your option)
46479 #  any later version.
46480 #
46481 #  dllar is distributed in the hope that it will be useful,
46482 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
46483 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46484 #  GNU General Public License for more details.
46485 #
46486 #  You should have received a copy of the GNU General Public License
46487 #  along with dllar; see the file COPYING.  If not, write to the Free
46488 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46489 #  02111-1307, USA.
46490
46491 # To successfuly run this program you will need:
46492 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
46493 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46494 #  - gcc
46495 #    (used to build the .dll)
46496 #  - emxexp
46497 #    (used to create .def file from .o files)
46498 #  - emximp
46499 #    (used to create .a file from .def file)
46500 #  - GNU text utilites (cat, sort, uniq)
46501 #    used to process emxexp output
46502 #  - GNU file utilities (mv, rm)
46503 #  - GNU sed
46504 #  - lxlite (optional, see flag below)
46505 #    (used for general .dll cleanup)
46506 #
46507
46508 flag_USE_LXLITE=1;
46509
46510 #
46511 # helper functions
46512 # basnam, variant of basename, which does _not_ remove the path, _iff_
46513 #                              second argument (suffix to remove) is given
46514 basnam(){
46515     case ${D}# in
46516     1)
46517         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
46518         ;;
46519     2)
46520         echo ${D}1 | sed 's/'${D}2'${D}//'
46521         ;;
46522     *)
46523         echo "error in basnam ${D}*"
46524         exit 8
46525         ;;
46526     esac
46527 }
46528
46529 # Cleanup temporary files and output
46530 CleanUp() {
46531     cd ${D}curDir
46532     for i in ${D}inputFiles ; do
46533         case ${D}i in
46534         *!)
46535             rm -rf \`basnam ${D}i !\`
46536             ;;
46537         *)
46538             ;;
46539         esac
46540     done
46541
46542     # Kill result in case of failure as there is just to many stupid make/nmake
46543     # things out there which doesn't do this.
46544     if [ ${D}# -eq 0 ]; then
46545         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46546     fi
46547 }
46548
46549 # Print usage and exit script with rc=1.
46550 PrintHelp() {
46551  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46552  echo '       [-name-mangler-script script.sh]'
46553  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46554  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
46555  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
46556  echo '       [*.o] [*.a]'
46557  echo '*> "output_file" should have no extension.'
46558  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
46559  echo '   The import library name is derived from this and is set to "name".a,'
46560  echo '   unless overridden by -import'
46561  echo '*> "importlib_name" should have no extension.'
46562  echo '   If it has the .o, or .a extension, it is automatically removed.'
46563  echo '   This name is used as the import library name and may be longer and'
46564  echo '   more descriptive than the DLL name which has to follow the old '
46565  echo '   8.3 convention of FAT.'
46566  echo '*> "script.sh may be given to override the output_file name by a'
46567  echo '   different name. It is mainly useful if the regular make process'
46568  echo '   of some package does not take into account OS/2 restriction of'
46569  echo '   DLL name lengths. It takes the importlib name as input and is'
46570  echo '   supposed to procude a shorter name as output. The script should'
46571  echo '   expect to get importlib_name without extension and should produce'
46572  echo '   a (max.) 8 letter name without extension.'
46573  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
46574  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46575  echo '   These flags will be put at the start of GCC command line.'
46576  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46577  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
46578  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46579  echo '   If the last character of a symbol is "*", all symbols beginning'
46580  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
46581  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
46582  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
46583  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
46584  echo '   C runtime DLLs.'
46585  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
46586  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46587  echo '   unchanged to GCC at the end of command line.'
46588  echo '*> If you create a DLL from a library and you do not specify -o,'
46589  echo '   the basename for DLL and import library will be set to library name,'
46590  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
46591  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46592  echo '   library will be renamed into gcc_s.a.'
46593  echo '--------'
46594  echo 'Example:'
46595  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46596  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46597  CleanUp
46598  exit 1
46599 }
46600
46601 # Execute a command.
46602 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46603 # @Uses    Whatever CleanUp() uses.
46604 doCommand() {
46605     echo "${D}*"
46606     eval ${D}*
46607     rcCmd=${D}?
46608
46609     if [ ${D}rcCmd -ne 0 ]; then
46610         echo "command failed, exit code="${D}rcCmd
46611         CleanUp
46612         exit ${D}rcCmd
46613     fi
46614 }
46615
46616 # main routine
46617 # setup globals
46618 cmdLine=${D}*
46619 outFile=""
46620 outimpFile=""
46621 inputFiles=""
46622 renameScript=""
46623 description=""
46624 CC=gcc.exe
46625 CFLAGS="-s -Zcrtdll"
46626 EXTRA_CFLAGS=""
46627 EXPORT_BY_ORDINALS=0
46628 exclude_symbols=""
46629 library_flags=""
46630 curDir=\`pwd\`
46631 curDirS=curDir
46632 case ${D}curDirS in
46633 */)
46634   ;;
46635 *)
46636   curDirS=${D}{curDirS}"/"
46637   ;;
46638 esac
46639 # Parse commandline
46640 libsToLink=0
46641 omfLinking=0
46642 while [ ${D}1 ]; do
46643     case ${D}1 in
46644     -ord*)
46645         EXPORT_BY_ORDINALS=1;
46646         ;;
46647     -o*)
46648         shift
46649         outFile=${D}1
46650         ;;
46651     -i*)
46652         shift
46653         outimpFile=${D}1
46654         ;;
46655     -name-mangler-script)
46656         shift
46657         renameScript=${D}1
46658         ;;
46659     -d*)
46660         shift
46661         description=${D}1
46662         ;;
46663     -f*)
46664         shift
46665         CFLAGS=${D}1
46666         ;;
46667     -c*)
46668         shift
46669         CC=${D}1
46670         ;;
46671     -h*)
46672         PrintHelp
46673         ;;
46674     -ex*)
46675         shift
46676         exclude_symbols=${D}{exclude_symbols}${D}1" "
46677         ;;
46678     -libf*)
46679         shift
46680         library_flags=${D}{library_flags}${D}1" "
46681         ;;
46682     -nocrt*)
46683         CFLAGS="-s"
46684         ;;
46685     -nolxl*)
46686         flag_USE_LXLITE=0
46687         ;;
46688     -* | /*)
46689         case ${D}1 in
46690         -L* | -l*)
46691             libsToLink=1
46692             ;;
46693         -Zomf)
46694             omfLinking=1
46695             ;;
46696         *)
46697             ;;
46698         esac
46699         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46700         ;;
46701     *.dll)
46702         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46703         if [ ${D}omfLinking -eq 1 ]; then
46704             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46705         else
46706             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46707         fi
46708         ;;
46709     *)
46710         found=0;
46711         if [ ${D}libsToLink -ne 0 ]; then
46712             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46713         else
46714             for file in ${D}1 ; do
46715                 if [ -f ${D}file ]; then
46716                     inputFiles="${D}{inputFiles} ${D}file"
46717                     found=1
46718                 fi
46719             done
46720             if [ ${D}found -eq 0 ]; then
46721                 echo "ERROR: No file(s) found: "${D}1
46722                 exit 8
46723             fi
46724         fi
46725       ;;
46726     esac
46727     shift
46728 done # iterate cmdline words
46729
46730 #
46731 if [ -z "${D}inputFiles" ]; then
46732     echo "dllar: no input files"
46733     PrintHelp
46734 fi
46735
46736 # Now extract all .o files from .a files
46737 newInputFiles=""
46738 for file in ${D}inputFiles ; do
46739     case ${D}file in
46740     *.a | *.lib)
46741         case ${D}file in
46742         *.a)
46743             suffix=".a"
46744             AR="ar"
46745             ;;
46746         *.lib)
46747             suffix=".lib"
46748             AR="emxomfar"
46749             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46750             ;;
46751         *)
46752             ;;
46753         esac
46754         dirname=\`basnam ${D}file ${D}suffix\`"_%"
46755         mkdir ${D}dirname
46756         if [ ${D}? -ne 0 ]; then
46757             echo "Failed to create subdirectory ./${D}dirname"
46758             CleanUp
46759             exit 8;
46760         fi
46761         # Append '!' to indicate archive
46762         newInputFiles="${D}newInputFiles ${D}{dirname}!"
46763         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46764         cd ${D}curDir
46765         found=0;
46766         for subfile in ${D}dirname/*.o* ; do
46767             if [ -f ${D}subfile ]; then
46768                 found=1
46769                 if [ -s ${D}subfile ]; then
46770                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46771                     newInputFiles="${D}newInputFiles ${D}subfile"
46772                 fi
46773             fi
46774         done
46775         if [ ${D}found -eq 0 ]; then
46776             echo "WARNING: there are no files in archive \\'${D}file\\'"
46777         fi
46778         ;;
46779     *)
46780         newInputFiles="${D}{newInputFiles} ${D}file"
46781         ;;
46782     esac
46783 done
46784 inputFiles="${D}newInputFiles"
46785
46786 # Output filename(s).
46787 do_backup=0;
46788 if [ -z ${D}outFile ]; then
46789     do_backup=1;
46790     set outFile ${D}inputFiles; outFile=${D}2
46791 fi
46792
46793 # If it is an archive, remove the '!' and the '_%' suffixes
46794 case ${D}outFile in
46795 *_%!)
46796     outFile=\`basnam ${D}outFile _%!\`
46797     ;;
46798 *)
46799     ;;
46800 esac
46801 case ${D}outFile in
46802 *.dll)
46803     outFile=\`basnam ${D}outFile .dll\`
46804     ;;
46805 *.DLL)
46806     outFile=\`basnam ${D}outFile .DLL\`
46807     ;;
46808 *.o)
46809     outFile=\`basnam ${D}outFile .o\`
46810     ;;
46811 *.obj)
46812     outFile=\`basnam ${D}outFile .obj\`
46813     ;;
46814 *.a)
46815     outFile=\`basnam ${D}outFile .a\`
46816     ;;
46817 *.lib)
46818     outFile=\`basnam ${D}outFile .lib\`
46819     ;;
46820 *)
46821     ;;
46822 esac
46823 case ${D}outimpFile in
46824 *.a)
46825     outimpFile=\`basnam ${D}outimpFile .a\`
46826     ;;
46827 *.lib)
46828     outimpFile=\`basnam ${D}outimpFile .lib\`
46829     ;;
46830 *)
46831     ;;
46832 esac
46833 if [ -z ${D}outimpFile ]; then
46834     outimpFile=${D}outFile
46835 fi
46836 defFile="${D}{outFile}.def"
46837 arcFile="${D}{outimpFile}.a"
46838 arcFile2="${D}{outimpFile}.lib"
46839
46840 #create ${D}dllFile as something matching 8.3 restrictions,
46841 if [ -z ${D}renameScript ] ; then
46842     dllFile="${D}outFile"
46843 else
46844     dllFile=\`${D}renameScript ${D}outimpFile\`
46845 fi
46846
46847 if [ ${D}do_backup -ne 0 ] ; then
46848     if [ -f ${D}arcFile ] ; then
46849         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46850     fi
46851     if [ -f ${D}arcFile2 ] ; then
46852         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46853     fi
46854 fi
46855
46856 # Extract public symbols from all the object files.
46857 tmpdefFile=${D}{defFile}_%
46858 rm -f ${D}tmpdefFile
46859 for file in ${D}inputFiles ; do
46860     case ${D}file in
46861     *!)
46862         ;;
46863     *)
46864         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46865         ;;
46866     esac
46867 done
46868
46869 # Create the def file.
46870 rm -f ${D}defFile
46871 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
46872 dllFile="${D}{dllFile}.dll"
46873 if [ ! -z ${D}description ]; then
46874     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
46875 fi
46876 echo "EXPORTS" >> ${D}defFile
46877
46878 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46879 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46880
46881 # Checks if the export is ok or not.
46882 for word in ${D}exclude_symbols; do
46883     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46884     mv ${D}{tmpdefFile}% ${D}tmpdefFile
46885 done
46886
46887
46888 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46889     sed "=" < ${D}tmpdefFile | \\
46890     sed '
46891       N
46892       : loop
46893       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
46894       t loop
46895     ' > ${D}{tmpdefFile}%
46896     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46897 else
46898     rm -f ${D}{tmpdefFile}%
46899 fi
46900 cat ${D}tmpdefFile >> ${D}defFile
46901 rm -f ${D}tmpdefFile
46902
46903 # Do linking, create implib, and apply lxlite.
46904 gccCmdl="";
46905 for file in ${D}inputFiles ; do
46906     case ${D}file in
46907     *!)
46908         ;;
46909     *)
46910         gccCmdl="${D}gccCmdl ${D}file"
46911         ;;
46912     esac
46913 done
46914 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46915 touch "${D}{outFile}.dll"
46916
46917 doCommand "emximp -o ${D}arcFile ${D}defFile"
46918 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
46919     add_flags="";
46920     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46921         add_flags="-ynd"
46922     fi
46923     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46924 fi
46925 doCommand "emxomf -s -l ${D}arcFile"
46926
46927 # Successful exit.
46928 CleanUp 1
46929 exit 0
46930 EOF
46931
46932         chmod +x dllar.sh
46933       ;;
46934
46935       powerpc-apple-macos* | \
46936       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
46937       *-*-sunos4* | \
46938       *-*-osf* | \
46939       *-*-dgux5* | \
46940       *-*-sysv5* | \
46941       *-pc-msdosdjgpp )
46942               ;;
46943
46944       *)
46945         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46946 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46947    { (exit 1); exit 1; }; }
46948     esac
46949
46950     if test "x$PIC_FLAG" != "x" ; then
46951         PIC_FLAG="$PIC_FLAG -DPIC"
46952     fi
46953
46954     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46955         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46956     fi
46957     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46958         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46959     fi
46960
46961
46962
46963
46964
46965
46966
46967
46968
46969     USE_SOVERSION=0
46970     USE_SOVERLINUX=0
46971     USE_SOVERSOLARIS=0
46972     USE_SOVERCYGWIN=0
46973     USE_SOSYMLINKS=0
46974     USE_MACVERSION=0
46975     SONAME_FLAG=
46976
46977     case "${BAKEFILE_HOST}" in
46978       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
46979         SONAME_FLAG="-Wl,-soname,"
46980         USE_SOVERSION=1
46981         USE_SOVERLINUX=1
46982         USE_SOSYMLINKS=1
46983       ;;
46984
46985       *-*-solaris2* )
46986         SONAME_FLAG="-h "
46987         USE_SOVERSION=1
46988         USE_SOVERSOLARIS=1
46989         USE_SOSYMLINKS=1
46990       ;;
46991
46992       *-*-darwin* )
46993         USE_MACVERSION=1
46994         USE_SOVERSION=1
46995         USE_SOSYMLINKS=1
46996       ;;
46997
46998       *-*-cygwin* )
46999         USE_SOVERSION=1
47000         USE_SOVERCYGWIN=1
47001       ;;
47002     esac
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47014 if test "${enable_dependency_tracking+set}" = set; then
47015   enableval="$enable_dependency_tracking"
47016   bk_use_trackdeps="$enableval"
47017 fi;
47018
47019     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47020 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
47021
47022     if test "x$bk_use_trackdeps" = "xno" ; then
47023         DEPS_TRACKING=0
47024         echo "$as_me:$LINENO: result: disabled" >&5
47025 echo "${ECHO_T}disabled" >&6
47026     else
47027         DEPS_TRACKING=1
47028
47029         if test "x$GCC" = "xyes"; then
47030             DEPSMODE=gcc
47031             case "${BAKEFILE_HOST}" in
47032                 *-*-darwin* )
47033                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47034                 ;;
47035                 * )
47036                     DEPSFLAG="-MMD"
47037                 ;;
47038             esac
47039             echo "$as_me:$LINENO: result: gcc" >&5
47040 echo "${ECHO_T}gcc" >&6
47041         elif test "x$MWCC" = "xyes"; then
47042             DEPSMODE=mwcc
47043             DEPSFLAG="-MM"
47044             echo "$as_me:$LINENO: result: mwcc" >&5
47045 echo "${ECHO_T}mwcc" >&6
47046         elif test "x$SUNCC" = "xyes"; then
47047             DEPSMODE=unixcc
47048             DEPSFLAG="-xM1"
47049             echo "$as_me:$LINENO: result: Sun cc" >&5
47050 echo "${ECHO_T}Sun cc" >&6
47051         elif test "x$SGICC" = "xyes"; then
47052             DEPSMODE=unixcc
47053             DEPSFLAG="-M"
47054             echo "$as_me:$LINENO: result: SGI cc" >&5
47055 echo "${ECHO_T}SGI cc" >&6
47056         elif test "x$HPCC" = "xyes"; then
47057             DEPSMODE=unixcc
47058             DEPSFLAG="+make"
47059             echo "$as_me:$LINENO: result: HP cc" >&5
47060 echo "${ECHO_T}HP cc" >&6
47061         elif test "x$COMPAQCC" = "xyes"; then
47062             DEPSMODE=gcc
47063             DEPSFLAG="-MD"
47064             echo "$as_me:$LINENO: result: Compaq cc" >&5
47065 echo "${ECHO_T}Compaq cc" >&6
47066         else
47067             DEPS_TRACKING=0
47068             echo "$as_me:$LINENO: result: none" >&5
47069 echo "${ECHO_T}none" >&6
47070         fi
47071
47072         if test $DEPS_TRACKING = 1 ; then
47073
47074 D='$'
47075 cat <<EOF >bk-deps
47076 #!/bin/sh
47077
47078 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47079 # script. It is used to track C/C++ files dependencies in portable way.
47080 #
47081 # Permission is given to use this file in any way.
47082
47083 DEPSMODE=${DEPSMODE}
47084 DEPSDIR=.deps
47085 DEPSFLAG="${DEPSFLAG}"
47086
47087 mkdir -p ${D}DEPSDIR
47088
47089 if test ${D}DEPSMODE = gcc ; then
47090     ${D}* ${D}{DEPSFLAG}
47091     status=${D}?
47092     if test ${D}{status} != 0 ; then
47093         exit ${D}{status}
47094     fi
47095     # move created file to the location we want it in:
47096     while test ${D}# -gt 0; do
47097         case "${D}1" in
47098             -o )
47099                 shift
47100                 objfile=${D}1
47101             ;;
47102             -* )
47103             ;;
47104             * )
47105                 srcfile=${D}1
47106             ;;
47107         esac
47108         shift
47109     done
47110     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47111     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
47112     if test -f ${D}depfile ; then
47113         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47114         rm -f ${D}depfile
47115     else
47116         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
47117         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
47118         if test ! -f ${D}depfile ; then
47119             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47120             depfile="${D}objfile.d"
47121         fi
47122         if test -f ${D}depfile ; then
47123             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47124             rm -f ${D}depfile
47125         fi
47126     fi
47127     exit 0
47128 elif test ${D}DEPSMODE = mwcc ; then
47129     ${D}* || exit ${D}?
47130     # Run mwcc again with -MM and redirect into the dep file we want
47131     # NOTE: We can't use shift here because we need ${D}* to be valid
47132     prevarg=
47133     for arg in ${D}* ; do
47134         if test "${D}prevarg" = "-o"; then
47135             objfile=${D}arg
47136         else
47137             case "${D}arg" in
47138                 -* )
47139                 ;;
47140                 * )
47141                     srcfile=${D}arg
47142                 ;;
47143             esac
47144         fi
47145         prevarg="${D}arg"
47146     done
47147     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
47148     exit 0
47149 elif test ${D}DEPSMODE = unixcc; then
47150     ${D}* || exit ${D}?
47151     # Run compiler again with deps flag and redirect into the dep file.
47152     # It doesn't work if the '-o FILE' option is used, but without it the
47153     # dependency file will contain the wrong name for the object. So it is
47154     # removed from the command line, and the dep file is fixed with sed.
47155     cmd=""
47156     while test ${D}# -gt 0; do
47157         case "${D}1" in
47158             -o )
47159                 shift
47160                 objfile=${D}1
47161             ;;
47162             * )
47163                 eval arg${D}#=\\${D}1
47164                 cmd="${D}cmd \\${D}arg${D}#"
47165             ;;
47166         esac
47167         shift
47168     done
47169     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
47170     exit 0
47171 else
47172     ${D}*
47173     exit ${D}?
47174 fi
47175 EOF
47176
47177             chmod +x bk-deps
47178         fi
47179     fi
47180
47181
47182
47183
47184     case ${BAKEFILE_HOST} in
47185         *-*-cygwin* | *-*-mingw32* )
47186                         if test -n "$ac_tool_prefix"; then
47187   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47188 set dummy ${ac_tool_prefix}windres; ac_word=$2
47189 echo "$as_me:$LINENO: checking for $ac_word" >&5
47190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47191 if test "${ac_cv_prog_WINDRES+set}" = set; then
47192   echo $ECHO_N "(cached) $ECHO_C" >&6
47193 else
47194   if test -n "$WINDRES"; then
47195   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47196 else
47197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47198 for as_dir in $PATH
47199 do
47200   IFS=$as_save_IFS
47201   test -z "$as_dir" && as_dir=.
47202   for ac_exec_ext in '' $ac_executable_extensions; do
47203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47204     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47206     break 2
47207   fi
47208 done
47209 done
47210
47211 fi
47212 fi
47213 WINDRES=$ac_cv_prog_WINDRES
47214 if test -n "$WINDRES"; then
47215   echo "$as_me:$LINENO: result: $WINDRES" >&5
47216 echo "${ECHO_T}$WINDRES" >&6
47217 else
47218   echo "$as_me:$LINENO: result: no" >&5
47219 echo "${ECHO_T}no" >&6
47220 fi
47221
47222 fi
47223 if test -z "$ac_cv_prog_WINDRES"; then
47224   ac_ct_WINDRES=$WINDRES
47225   # Extract the first word of "windres", so it can be a program name with args.
47226 set dummy windres; ac_word=$2
47227 echo "$as_me:$LINENO: checking for $ac_word" >&5
47228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47229 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
47230   echo $ECHO_N "(cached) $ECHO_C" >&6
47231 else
47232   if test -n "$ac_ct_WINDRES"; then
47233   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
47234 else
47235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47236 for as_dir in $PATH
47237 do
47238   IFS=$as_save_IFS
47239   test -z "$as_dir" && as_dir=.
47240   for ac_exec_ext in '' $ac_executable_extensions; do
47241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47242     ac_cv_prog_ac_ct_WINDRES="windres"
47243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47244     break 2
47245   fi
47246 done
47247 done
47248
47249 fi
47250 fi
47251 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47252 if test -n "$ac_ct_WINDRES"; then
47253   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47254 echo "${ECHO_T}$ac_ct_WINDRES" >&6
47255 else
47256   echo "$as_me:$LINENO: result: no" >&5
47257 echo "${ECHO_T}no" >&6
47258 fi
47259
47260   WINDRES=$ac_ct_WINDRES
47261 else
47262   WINDRES="$ac_cv_prog_WINDRES"
47263 fi
47264
47265          ;;
47266
47267       *-*-darwin* | powerpc-apple-macos* )
47268             # Extract the first word of "Rez", so it can be a program name with args.
47269 set dummy Rez; ac_word=$2
47270 echo "$as_me:$LINENO: checking for $ac_word" >&5
47271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47272 if test "${ac_cv_prog_REZ+set}" = set; then
47273   echo $ECHO_N "(cached) $ECHO_C" >&6
47274 else
47275   if test -n "$REZ"; then
47276   ac_cv_prog_REZ="$REZ" # Let the user override the test.
47277 else
47278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47279 for as_dir in $PATH
47280 do
47281   IFS=$as_save_IFS
47282   test -z "$as_dir" && as_dir=.
47283   for ac_exec_ext in '' $ac_executable_extensions; do
47284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47285     ac_cv_prog_REZ="Rez"
47286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47287     break 2
47288   fi
47289 done
47290 done
47291
47292   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
47293 fi
47294 fi
47295 REZ=$ac_cv_prog_REZ
47296 if test -n "$REZ"; then
47297   echo "$as_me:$LINENO: result: $REZ" >&5
47298 echo "${ECHO_T}$REZ" >&6
47299 else
47300   echo "$as_me:$LINENO: result: no" >&5
47301 echo "${ECHO_T}no" >&6
47302 fi
47303
47304             # Extract the first word of "SetFile", so it can be a program name with args.
47305 set dummy SetFile; ac_word=$2
47306 echo "$as_me:$LINENO: checking for $ac_word" >&5
47307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47308 if test "${ac_cv_prog_SETFILE+set}" = set; then
47309   echo $ECHO_N "(cached) $ECHO_C" >&6
47310 else
47311   if test -n "$SETFILE"; then
47312   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47313 else
47314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47315 for as_dir in $PATH
47316 do
47317   IFS=$as_save_IFS
47318   test -z "$as_dir" && as_dir=.
47319   for ac_exec_ext in '' $ac_executable_extensions; do
47320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47321     ac_cv_prog_SETFILE="SetFile"
47322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47323     break 2
47324   fi
47325 done
47326 done
47327
47328   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47329 fi
47330 fi
47331 SETFILE=$ac_cv_prog_SETFILE
47332 if test -n "$SETFILE"; then
47333   echo "$as_me:$LINENO: result: $SETFILE" >&5
47334 echo "${ECHO_T}$SETFILE" >&6
47335 else
47336   echo "$as_me:$LINENO: result: no" >&5
47337 echo "${ECHO_T}no" >&6
47338 fi
47339
47340         ;;
47341     esac
47342
47343
47344
47345
47346
47347
47348     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
47349
47350
47351 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
47352
47353
47354
47355     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47356 if test "${enable_precomp_headers+set}" = set; then
47357   enableval="$enable_precomp_headers"
47358   bk_use_pch="$enableval"
47359 fi;
47360
47361     GCC_PCH=0
47362     ICC_PCH=0
47363     USE_PCH=0
47364
47365     case ${BAKEFILE_HOST} in
47366         *-*-cygwin* )
47367                                                 bk_use_pch="no"
47368             ;;
47369     esac
47370
47371     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47372         if test "x$GCC" = "xyes"; then
47373                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47374 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47375             cat >conftest.$ac_ext <<_ACEOF
47376 /* confdefs.h.  */
47377 _ACEOF
47378 cat confdefs.h >>conftest.$ac_ext
47379 cat >>conftest.$ac_ext <<_ACEOF
47380 /* end confdefs.h.  */
47381
47382 int
47383 main ()
47384 {
47385
47386                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47387                         There is no PCH support
47388                     #endif
47389                     #if (__GNUC__ < 3)
47390                         There is no PCH support
47391                     #endif
47392                     #if (__GNUC__ == 3) && \
47393                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47394                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47395                        ( defined(__INTEL_COMPILER) )
47396                         There is no PCH support
47397                     #endif
47398
47399   ;
47400   return 0;
47401 }
47402 _ACEOF
47403 rm -f conftest.$ac_objext
47404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47405   (eval $ac_compile) 2>conftest.er1
47406   ac_status=$?
47407   grep -v '^ *+' conftest.er1 >conftest.err
47408   rm -f conftest.er1
47409   cat conftest.err >&5
47410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411   (exit $ac_status); } &&
47412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47414   (eval $ac_try) 2>&5
47415   ac_status=$?
47416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417   (exit $ac_status); }; } &&
47418          { ac_try='test -s conftest.$ac_objext'
47419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47420   (eval $ac_try) 2>&5
47421   ac_status=$?
47422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47423   (exit $ac_status); }; }; then
47424
47425                     echo "$as_me:$LINENO: result: yes" >&5
47426 echo "${ECHO_T}yes" >&6
47427                     GCC_PCH=1
47428
47429 else
47430   echo "$as_me: failed program was:" >&5
47431 sed 's/^/| /' conftest.$ac_ext >&5
47432
47433
47434                     cat >conftest.$ac_ext <<_ACEOF
47435 /* confdefs.h.  */
47436 _ACEOF
47437 cat confdefs.h >>conftest.$ac_ext
47438 cat >>conftest.$ac_ext <<_ACEOF
47439 /* end confdefs.h.  */
47440
47441 int
47442 main ()
47443 {
47444
47445                             #if !defined(__INTEL_COMPILER) || \
47446                                 (__INTEL_COMPILER < 800)
47447                                 There is no PCH support
47448                             #endif
47449
47450   ;
47451   return 0;
47452 }
47453 _ACEOF
47454 rm -f conftest.$ac_objext
47455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47456   (eval $ac_compile) 2>conftest.er1
47457   ac_status=$?
47458   grep -v '^ *+' conftest.er1 >conftest.err
47459   rm -f conftest.er1
47460   cat conftest.err >&5
47461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47462   (exit $ac_status); } &&
47463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47465   (eval $ac_try) 2>&5
47466   ac_status=$?
47467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47468   (exit $ac_status); }; } &&
47469          { ac_try='test -s conftest.$ac_objext'
47470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47471   (eval $ac_try) 2>&5
47472   ac_status=$?
47473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47474   (exit $ac_status); }; }; then
47475
47476                             echo "$as_me:$LINENO: result: yes" >&5
47477 echo "${ECHO_T}yes" >&6
47478                             ICC_PCH=1
47479
47480 else
47481   echo "$as_me: failed program was:" >&5
47482 sed 's/^/| /' conftest.$ac_ext >&5
47483
47484
47485                             echo "$as_me:$LINENO: result: no" >&5
47486 echo "${ECHO_T}no" >&6
47487
47488 fi
47489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47490
47491 fi
47492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47493             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47494                 USE_PCH=1
47495
47496 D='$'
47497 cat <<EOF >bk-make-pch
47498 #!/bin/sh
47499
47500 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47501 # script. It is used to generated precompiled headers.
47502 #
47503 # Permission is given to use this file in any way.
47504
47505 outfile="${D}{1}"
47506 header="${D}{2}"
47507 shift
47508 shift
47509
47510 compiler=""
47511 headerfile=""
47512
47513 while test ${D}{#} -gt 0; do
47514     add_to_cmdline=1
47515     case "${D}{1}" in
47516         -I* )
47517             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47518             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47519                 headerfile="${D}{incdir}/${D}{header}"
47520             fi
47521         ;;
47522         -use-pch|-use_pch )
47523             shift
47524             add_to_cmdline=0
47525         ;;
47526     esac
47527     if test ${D}add_to_cmdline = 1 ; then
47528         compiler="${D}{compiler} ${D}{1}"
47529     fi
47530     shift
47531 done
47532
47533 if test "x${D}{headerfile}" = "x" ; then
47534     echo "error: can't find header ${D}{header} in include paths" >&2
47535 else
47536     if test -f ${D}{outfile} ; then
47537         rm -f ${D}{outfile}
47538     else
47539         mkdir -p \`dirname ${D}{outfile}\`
47540     fi
47541     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
47542     mkdir -p .deps
47543     if test "x${GCC_PCH}" = "x1" ; then
47544         # can do this because gcc is >= 3.4:
47545         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47546     elif test "x${ICC_PCH}" = "x1" ; then
47547         filename=pch_gen-${D}${D}
47548         file=${D}{filename}.c
47549         dfile=${D}{filename}.d
47550         cat > ${D}file <<EOT
47551 #include "${D}header"
47552 EOT
47553         # using -MF icc complains about differing command lines in creation/use
47554         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47555           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47556           rm -f ${D}file ${D}dfile ${D}{filename}.o
47557     fi
47558     exit ${D}{?}
47559 fi
47560 EOF
47561
47562                 chmod +x bk-make-pch
47563             fi
47564         fi
47565     fi
47566
47567
47568
47569
47570     COND_BUILD_DEBUG="#"
47571     if test "x$BUILD" = "xdebug" ; then
47572         COND_BUILD_DEBUG=""
47573     fi
47574
47575     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47576     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47577         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47578     fi
47579
47580     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47581     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47582         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47583     fi
47584
47585     COND_BUILD_DEBUG_UNICODE_0="#"
47586     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47587         COND_BUILD_DEBUG_UNICODE_0=""
47588     fi
47589
47590     COND_BUILD_DEBUG_UNICODE_1="#"
47591     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47592         COND_BUILD_DEBUG_UNICODE_1=""
47593     fi
47594
47595     COND_BUILD_RELEASE="#"
47596     if test "x$BUILD" = "xrelease" ; then
47597         COND_BUILD_RELEASE=""
47598     fi
47599
47600     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47601     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47602         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47603     fi
47604
47605     COND_BUILD_RELEASE_UNICODE_0="#"
47606     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47607         COND_BUILD_RELEASE_UNICODE_0=""
47608     fi
47609
47610     COND_BUILD_RELEASE_UNICODE_1="#"
47611     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47612         COND_BUILD_RELEASE_UNICODE_1=""
47613     fi
47614
47615     COND_DEBUG_FLAG_1="#"
47616     if test "x$DEBUG_FLAG" = "x1" ; then
47617         COND_DEBUG_FLAG_1=""
47618     fi
47619
47620     COND_DEBUG_INFO_0="#"
47621     if test "x$DEBUG_INFO" = "x0" ; then
47622         COND_DEBUG_INFO_0=""
47623     fi
47624
47625     COND_DEBUG_INFO_1="#"
47626     if test "x$DEBUG_INFO" = "x1" ; then
47627         COND_DEBUG_INFO_1=""
47628     fi
47629
47630     COND_DEPS_TRACKING_0="#"
47631     if test "x$DEPS_TRACKING" = "x0" ; then
47632         COND_DEPS_TRACKING_0=""
47633     fi
47634
47635     COND_DEPS_TRACKING_1="#"
47636     if test "x$DEPS_TRACKING" = "x1" ; then
47637         COND_DEPS_TRACKING_1=""
47638     fi
47639
47640     COND_GCC_PCH_1="#"
47641     if test "x$GCC_PCH" = "x1" ; then
47642         COND_GCC_PCH_1=""
47643     fi
47644
47645     COND_ICC_PCH_1="#"
47646     if test "x$ICC_PCH" = "x1" ; then
47647         COND_ICC_PCH_1=""
47648     fi
47649
47650     COND_MONOLITHIC_0="#"
47651     if test "x$MONOLITHIC" = "x0" ; then
47652         COND_MONOLITHIC_0=""
47653     fi
47654
47655     COND_MONOLITHIC_0_SHARED_0="#"
47656     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47657         COND_MONOLITHIC_0_SHARED_0=""
47658     fi
47659
47660     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47661     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47662         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47663     fi
47664
47665     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47666     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47667         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47668     fi
47669
47670     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47671     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47672         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47673     fi
47674
47675     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47676     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47677         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47678     fi
47679
47680     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47681     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47682         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47683     fi
47684
47685     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47686     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47687         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47688     fi
47689
47690     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47691     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47692         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47693     fi
47694
47695     COND_MONOLITHIC_0_SHARED_1="#"
47696     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47697         COND_MONOLITHIC_0_SHARED_1=""
47698     fi
47699
47700     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47701     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47702         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47703     fi
47704
47705     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47706     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47707         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47708     fi
47709
47710     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47711     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47712         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47713     fi
47714
47715     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47716     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47717         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47718     fi
47719
47720     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47721     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47722         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47723     fi
47724
47725     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47726     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47727         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47728     fi
47729
47730     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47731     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47732         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47733     fi
47734
47735     COND_MONOLITHIC_0_USE_MEDIA_1="#"
47736     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47737         COND_MONOLITHIC_0_USE_MEDIA_1=""
47738     fi
47739
47740     COND_MONOLITHIC_0_USE_ODBC_1="#"
47741     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47742         COND_MONOLITHIC_0_USE_ODBC_1=""
47743     fi
47744
47745     COND_MONOLITHIC_1="#"
47746     if test "x$MONOLITHIC" = "x1" ; then
47747         COND_MONOLITHIC_1=""
47748     fi
47749
47750     COND_MONOLITHIC_1_SHARED_0="#"
47751     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47752         COND_MONOLITHIC_1_SHARED_0=""
47753     fi
47754
47755     COND_MONOLITHIC_1_SHARED_1="#"
47756     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47757         COND_MONOLITHIC_1_SHARED_1=""
47758     fi
47759
47760     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47761     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47762         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47763     fi
47764
47765     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47766     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47767         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47768     fi
47769
47770     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47771     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47772         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47773     fi
47774
47775     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47776     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47777         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47778     fi
47779
47780     COND_PLATFORM_MACOSX_1="#"
47781     if test "x$PLATFORM_MACOSX" = "x1" ; then
47782         COND_PLATFORM_MACOSX_1=""
47783     fi
47784
47785     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47786     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47787         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47788     fi
47789
47790     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47791     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47792         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47793     fi
47794
47795     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47796     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47797         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47798     fi
47799
47800     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47801     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47802         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47803     fi
47804
47805     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47806     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47807         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47808     fi
47809
47810     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47811     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47812         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47813     fi
47814
47815     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47816     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47817         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47818     fi
47819
47820     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47821     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47822         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47823     fi
47824
47825     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47826     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47827         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47828     fi
47829
47830     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47831     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47832         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47833     fi
47834
47835     COND_PLATFORM_MACOS_1="#"
47836     if test "x$PLATFORM_MACOS" = "x1" ; then
47837         COND_PLATFORM_MACOS_1=""
47838     fi
47839
47840     COND_PLATFORM_MAC_1="#"
47841     if test "x$PLATFORM_MAC" = "x1" ; then
47842         COND_PLATFORM_MAC_1=""
47843     fi
47844
47845     COND_PLATFORM_MSDOS_0="#"
47846     if test "x$PLATFORM_MSDOS" = "x0" ; then
47847         COND_PLATFORM_MSDOS_0=""
47848     fi
47849
47850     COND_PLATFORM_MSDOS_1="#"
47851     if test "x$PLATFORM_MSDOS" = "x1" ; then
47852         COND_PLATFORM_MSDOS_1=""
47853     fi
47854
47855     COND_PLATFORM_OS2_1="#"
47856     if test "x$PLATFORM_OS2" = "x1" ; then
47857         COND_PLATFORM_OS2_1=""
47858     fi
47859
47860     COND_PLATFORM_UNIX_0="#"
47861     if test "x$PLATFORM_UNIX" = "x0" ; then
47862         COND_PLATFORM_UNIX_0=""
47863     fi
47864
47865     COND_PLATFORM_UNIX_1="#"
47866     if test "x$PLATFORM_UNIX" = "x1" ; then
47867         COND_PLATFORM_UNIX_1=""
47868     fi
47869
47870     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47871     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47872         COND_PLATFORM_UNIX_1_USE_GUI_1=""
47873     fi
47874
47875     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47876     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47877         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47878     fi
47879
47880     COND_PLATFORM_WIN32_0="#"
47881     if test "x$PLATFORM_WIN32" = "x0" ; then
47882         COND_PLATFORM_WIN32_0=""
47883     fi
47884
47885     COND_PLATFORM_WIN32_1="#"
47886     if test "x$PLATFORM_WIN32" = "x1" ; then
47887         COND_PLATFORM_WIN32_1=""
47888     fi
47889
47890     COND_SHARED_0="#"
47891     if test "x$SHARED" = "x0" ; then
47892         COND_SHARED_0=""
47893     fi
47894
47895     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47896     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47897         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47898     fi
47899
47900     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47901     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47902         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47903     fi
47904
47905     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47906     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47907         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47908     fi
47909
47910     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47911     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47912         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47913     fi
47914
47915     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47916     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47917         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47918     fi
47919
47920     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47921     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47922         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47923     fi
47924
47925     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47926     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47927         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47928     fi
47929
47930     COND_SHARED_0_USE_XRC_1="#"
47931     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47932         COND_SHARED_0_USE_XRC_1=""
47933     fi
47934
47935     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47936     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47937         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47938     fi
47939
47940     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47941     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47942         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47943     fi
47944
47945     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47946     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47947         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47948     fi
47949
47950     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47951     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47952         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47953     fi
47954
47955     COND_SHARED_1="#"
47956     if test "x$SHARED" = "x1" ; then
47957         COND_SHARED_1=""
47958     fi
47959
47960     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47961     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47962         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47963     fi
47964
47965     COND_SHARED_1_USE_XRC_1="#"
47966     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47967         COND_SHARED_1_USE_XRC_1=""
47968     fi
47969
47970     COND_TOOLKIT_="#"
47971     if test "x$TOOLKIT" = "x" ; then
47972         COND_TOOLKIT_=""
47973     fi
47974
47975     COND_TOOLKIT_COCOA="#"
47976     if test "x$TOOLKIT" = "xCOCOA" ; then
47977         COND_TOOLKIT_COCOA=""
47978     fi
47979
47980     COND_TOOLKIT_COCOA_USE_GUI_1="#"
47981     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47982         COND_TOOLKIT_COCOA_USE_GUI_1=""
47983     fi
47984
47985     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47986     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47987         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47988     fi
47989
47990     COND_TOOLKIT_GTK="#"
47991     if test "x$TOOLKIT" = "xGTK" ; then
47992         COND_TOOLKIT_GTK=""
47993     fi
47994
47995     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47996     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47997         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47998     fi
47999
48000     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48001     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48002         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48003     fi
48004
48005     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48006     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48007         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48008     fi
48009
48010     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48011     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48012         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48013     fi
48014
48015     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48016     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48017         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48018     fi
48019
48020     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48021     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48022         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48023     fi
48024
48025     COND_TOOLKIT_GTK_USE_GUI_1="#"
48026     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48027         COND_TOOLKIT_GTK_USE_GUI_1=""
48028     fi
48029
48030     COND_TOOLKIT_MAC="#"
48031     if test "x$TOOLKIT" = "xMAC" ; then
48032         COND_TOOLKIT_MAC=""
48033     fi
48034
48035     COND_TOOLKIT_MAC_USE_GUI_1="#"
48036     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48037         COND_TOOLKIT_MAC_USE_GUI_1=""
48038     fi
48039
48040     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48041     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48042         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48043     fi
48044
48045     COND_TOOLKIT_MGL="#"
48046     if test "x$TOOLKIT" = "xMGL" ; then
48047         COND_TOOLKIT_MGL=""
48048     fi
48049
48050     COND_TOOLKIT_MGL_USE_GUI_1="#"
48051     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48052         COND_TOOLKIT_MGL_USE_GUI_1=""
48053     fi
48054
48055     COND_TOOLKIT_MOTIF="#"
48056     if test "x$TOOLKIT" = "xMOTIF" ; then
48057         COND_TOOLKIT_MOTIF=""
48058     fi
48059
48060     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48061     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48062         COND_TOOLKIT_MOTIF_USE_GUI_1=""
48063     fi
48064
48065     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48066     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48067         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48068     fi
48069
48070     COND_TOOLKIT_MSW="#"
48071     if test "x$TOOLKIT" = "xMSW" ; then
48072         COND_TOOLKIT_MSW=""
48073     fi
48074
48075     COND_TOOLKIT_MSW_USE_GUI_1="#"
48076     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48077         COND_TOOLKIT_MSW_USE_GUI_1=""
48078     fi
48079
48080     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48081     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48082         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48083     fi
48084
48085     COND_TOOLKIT_MSW_WXUNIV_0="#"
48086     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48087         COND_TOOLKIT_MSW_WXUNIV_0=""
48088     fi
48089
48090     COND_TOOLKIT_PM="#"
48091     if test "x$TOOLKIT" = "xPM" ; then
48092         COND_TOOLKIT_PM=""
48093     fi
48094
48095     COND_TOOLKIT_PM_USE_GUI_1="#"
48096     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48097         COND_TOOLKIT_PM_USE_GUI_1=""
48098     fi
48099
48100     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48101     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48102         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48103     fi
48104
48105     COND_TOOLKIT_WINCE="#"
48106     if test "x$TOOLKIT" = "xWINCE" ; then
48107         COND_TOOLKIT_WINCE=""
48108     fi
48109
48110     COND_TOOLKIT_WINCE_USE_GUI_1="#"
48111     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48112         COND_TOOLKIT_WINCE_USE_GUI_1=""
48113     fi
48114
48115     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48116     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48117         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48118     fi
48119
48120     COND_TOOLKIT_WINCE_WXUNIV_0="#"
48121     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48122         COND_TOOLKIT_WINCE_WXUNIV_0=""
48123     fi
48124
48125     COND_TOOLKIT_X11="#"
48126     if test "x$TOOLKIT" = "xX11" ; then
48127         COND_TOOLKIT_X11=""
48128     fi
48129
48130     COND_TOOLKIT_X11_USE_GUI_1="#"
48131     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48132         COND_TOOLKIT_X11_USE_GUI_1=""
48133     fi
48134
48135     COND_UNICODE_1="#"
48136     if test "x$UNICODE" = "x1" ; then
48137         COND_UNICODE_1=""
48138     fi
48139
48140     COND_USE_EXCEPTIONS_0="#"
48141     if test "x$USE_EXCEPTIONS" = "x0" ; then
48142         COND_USE_EXCEPTIONS_0=""
48143     fi
48144
48145     COND_USE_EXCEPTIONS_1="#"
48146     if test "x$USE_EXCEPTIONS" = "x1" ; then
48147         COND_USE_EXCEPTIONS_1=""
48148     fi
48149
48150     COND_USE_GUI_0="#"
48151     if test "x$USE_GUI" = "x0" ; then
48152         COND_USE_GUI_0=""
48153     fi
48154
48155     COND_USE_GUI_1="#"
48156     if test "x$USE_GUI" = "x1" ; then
48157         COND_USE_GUI_1=""
48158     fi
48159
48160     COND_USE_GUI_1_WXUNIV_0="#"
48161     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48162         COND_USE_GUI_1_WXUNIV_0=""
48163     fi
48164
48165     COND_USE_GUI_1_WXUNIV_1="#"
48166     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48167         COND_USE_GUI_1_WXUNIV_1=""
48168     fi
48169
48170     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48171     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48172         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48173     fi
48174
48175     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48176     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48177         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48178     fi
48179
48180     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48181     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48182         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48183     fi
48184
48185     COND_USE_ODBC_1="#"
48186     if test "x$USE_ODBC" = "x1" ; then
48187         COND_USE_ODBC_1=""
48188     fi
48189
48190     COND_USE_OPENGL_1="#"
48191     if test "x$USE_OPENGL" = "x1" ; then
48192         COND_USE_OPENGL_1=""
48193     fi
48194
48195     COND_USE_PCH_1="#"
48196     if test "x$USE_PCH" = "x1" ; then
48197         COND_USE_PCH_1=""
48198     fi
48199
48200     COND_USE_PLUGINS_0="#"
48201     if test "x$USE_PLUGINS" = "x0" ; then
48202         COND_USE_PLUGINS_0=""
48203     fi
48204
48205     COND_USE_RTTI_0="#"
48206     if test "x$USE_RTTI" = "x0" ; then
48207         COND_USE_RTTI_0=""
48208     fi
48209
48210     COND_USE_RTTI_1="#"
48211     if test "x$USE_RTTI" = "x1" ; then
48212         COND_USE_RTTI_1=""
48213     fi
48214
48215     COND_USE_SOSYMLINKS_1="#"
48216     if test "x$USE_SOSYMLINKS" = "x1" ; then
48217         COND_USE_SOSYMLINKS_1=""
48218     fi
48219
48220     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48221     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48222         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48223     fi
48224
48225     COND_USE_SOVERLINUX_1="#"
48226     if test "x$USE_SOVERLINUX" = "x1" ; then
48227         COND_USE_SOVERLINUX_1=""
48228     fi
48229
48230     COND_USE_SOVERSION_0="#"
48231     if test "x$USE_SOVERSION" = "x0" ; then
48232         COND_USE_SOVERSION_0=""
48233     fi
48234
48235     COND_USE_SOVERSOLARIS_1="#"
48236     if test "x$USE_SOVERSOLARIS" = "x1" ; then
48237         COND_USE_SOVERSOLARIS_1=""
48238     fi
48239
48240     COND_USE_THREADS_0="#"
48241     if test "x$USE_THREADS" = "x0" ; then
48242         COND_USE_THREADS_0=""
48243     fi
48244
48245     COND_USE_THREADS_1="#"
48246     if test "x$USE_THREADS" = "x1" ; then
48247         COND_USE_THREADS_1=""
48248     fi
48249
48250     COND_USE_XRC_1="#"
48251     if test "x$USE_XRC" = "x1" ; then
48252         COND_USE_XRC_1=""
48253     fi
48254
48255     COND_WINDOWS_IMPLIB_1="#"
48256     if test "x$WINDOWS_IMPLIB" = "x1" ; then
48257         COND_WINDOWS_IMPLIB_1=""
48258     fi
48259
48260     COND_WITH_PLUGIN_SDL_1="#"
48261     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48262         COND_WITH_PLUGIN_SDL_1=""
48263     fi
48264
48265     COND_WXUNIV_0="#"
48266     if test "x$WXUNIV" = "x0" ; then
48267         COND_WXUNIV_0=""
48268     fi
48269
48270     COND_WXUNIV_1="#"
48271     if test "x$WXUNIV" = "x1" ; then
48272         COND_WXUNIV_1=""
48273     fi
48274
48275     COND_WXUSE_EXPAT_BUILTIN="#"
48276     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48277         COND_WXUSE_EXPAT_BUILTIN=""
48278     fi
48279
48280     COND_WXUSE_LIBJPEG_BUILTIN="#"
48281     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48282         COND_WXUSE_LIBJPEG_BUILTIN=""
48283     fi
48284
48285     COND_WXUSE_LIBPNG_BUILTIN="#"
48286     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48287         COND_WXUSE_LIBPNG_BUILTIN=""
48288     fi
48289
48290     COND_WXUSE_LIBTIFF_BUILTIN="#"
48291     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48292         COND_WXUSE_LIBTIFF_BUILTIN=""
48293     fi
48294
48295     COND_WXUSE_ODBC_BUILTIN="#"
48296     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48297         COND_WXUSE_ODBC_BUILTIN=""
48298     fi
48299
48300     COND_WXUSE_REGEX_BUILTIN="#"
48301     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48302         COND_WXUSE_REGEX_BUILTIN=""
48303     fi
48304
48305     COND_WXUSE_ZLIB_BUILTIN="#"
48306     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48307         COND_WXUSE_ZLIB_BUILTIN=""
48308     fi
48309
48310
48311
48312     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48313         { { 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
48314 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;}
48315    { (exit 1); exit 1; }; }
48316     fi
48317
48318     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48319         { { 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
48320 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;}
48321    { (exit 1); exit 1; }; }
48322     fi
48323
48324
48325
48326 if test "$wxUSE_MAC" = 1 ; then
48327     if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48328         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48329         mv temp bk-deps
48330         chmod +x bk-deps
48331     fi
48332 fi
48333
48334 if test "$wxUSE_SHARED" = "yes"; then
48335
48336                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48337     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48338
48339                 case "${host}" in
48340       *-pc-os2_emx | *-pc-os2-emx )
48341         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48342         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48343         cp -p ${srcdir}/src/os2/dllnames.sh .
48344         cp -p ${srcdir}/src/os2/dllar.sh .
48345       ;;
48346     esac
48347 else
48348
48349         EXE_LINKER="$CXX -o"
48350
48351 fi
48352 if test "$wxUSE_OMF" = "yes"; then
48353     case "${host}" in
48354       *-pc-os2_emx | *-pc-os2-emx )
48355         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48356         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48357         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48358       ;;
48359     esac
48360 fi
48361
48362 if test $GCC_PCH = 1 ; then
48363     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
48364 fi
48365
48366 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
48367
48368 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48432 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48433 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48434   echo $ECHO_N "(cached) $ECHO_C" >&6
48435 else
48436   cat >conftest.make <<\_ACEOF
48437 all:
48438         @echo 'ac_maketemp="$(MAKE)"'
48439 _ACEOF
48440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48441 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48442 if test -n "$ac_maketemp"; then
48443   eval ac_cv_prog_make_${ac_make}_set=yes
48444 else
48445   eval ac_cv_prog_make_${ac_make}_set=no
48446 fi
48447 rm -f conftest.make
48448 fi
48449 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48450   echo "$as_me:$LINENO: result: yes" >&5
48451 echo "${ECHO_T}yes" >&6
48452   SET_MAKE=
48453 else
48454   echo "$as_me:$LINENO: result: no" >&5
48455 echo "${ECHO_T}no" >&6
48456   SET_MAKE="MAKE=${MAKE-make}"
48457 fi
48458
48459
48460
48461           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48462
48463
48464 if test "$USE_WIN32" = 1; then
48465               ac_config_commands="$ac_config_commands
48466             rcdefs.h
48467         "
48468
48469 fi
48470
48471           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
48472
48473
48474           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
48475
48476
48477                     ac_config_files="$ac_config_files version-script Makefile"
48478
48479
48480           ac_config_commands="$ac_config_commands wx-config"
48481
48482
48483
48484 if test "$wxWITH_SUBDIRS" != "no"; then
48485 if test "$wxUSE_GUI" = "yes"; then
48486     SUBDIRS="samples demos utils contrib"
48487 else         SUBDIRS="samples utils"
48488 fi
48489
48490
48491
48492 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48493 if test "${with_cppunit_prefix+set}" = set; then
48494   withval="$with_cppunit_prefix"
48495   cppunit_config_prefix="$withval"
48496 else
48497   cppunit_config_prefix=""
48498 fi;
48499
48500 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48501 if test "${with_cppunit_exec_prefix+set}" = set; then
48502   withval="$with_cppunit_exec_prefix"
48503   cppunit_config_exec_prefix="$withval"
48504 else
48505   cppunit_config_exec_prefix=""
48506 fi;
48507
48508   if test x$cppunit_config_exec_prefix != x ; then
48509      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48510      if test x${CPPUNIT_CONFIG+set} != xset ; then
48511         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48512      fi
48513   fi
48514   if test x$cppunit_config_prefix != x ; then
48515      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48516      if test x${CPPUNIT_CONFIG+set} != xset ; then
48517         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48518      fi
48519   fi
48520
48521   # Extract the first word of "cppunit-config", so it can be a program name with args.
48522 set dummy cppunit-config; ac_word=$2
48523 echo "$as_me:$LINENO: checking for $ac_word" >&5
48524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48525 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48526   echo $ECHO_N "(cached) $ECHO_C" >&6
48527 else
48528   case $CPPUNIT_CONFIG in
48529   [\\/]* | ?:[\\/]*)
48530   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48531   ;;
48532   *)
48533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48534 for as_dir in $PATH
48535 do
48536   IFS=$as_save_IFS
48537   test -z "$as_dir" && as_dir=.
48538   for ac_exec_ext in '' $ac_executable_extensions; do
48539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48540     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48542     break 2
48543   fi
48544 done
48545 done
48546
48547   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48548   ;;
48549 esac
48550 fi
48551 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48552
48553 if test -n "$CPPUNIT_CONFIG"; then
48554   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48555 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48556 else
48557   echo "$as_me:$LINENO: result: no" >&5
48558 echo "${ECHO_T}no" >&6
48559 fi
48560
48561   cppunit_version_min=1.8.0
48562
48563   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48564 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48565   no_cppunit=""
48566   if test "$CPPUNIT_CONFIG" = "no" ; then
48567     no_cppunit=yes
48568   else
48569     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48570     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48571     cppunit_version=`$CPPUNIT_CONFIG --version`
48572
48573     cppunit_major_version=`echo $cppunit_version | \
48574            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48575     cppunit_minor_version=`echo $cppunit_version | \
48576            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48577     cppunit_micro_version=`echo $cppunit_version | \
48578            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48579
48580     cppunit_major_min=`echo $cppunit_version_min | \
48581            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48582     cppunit_minor_min=`echo $cppunit_version_min | \
48583            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48584     cppunit_micro_min=`echo $cppunit_version_min | \
48585            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48586
48587     cppunit_version_proper=`expr \
48588         $cppunit_major_version \> $cppunit_major_min \| \
48589         $cppunit_major_version \= $cppunit_major_min \& \
48590         $cppunit_minor_version \> $cppunit_minor_min \| \
48591         $cppunit_major_version \= $cppunit_major_min \& \
48592         $cppunit_minor_version \= $cppunit_minor_min \& \
48593         $cppunit_micro_version \>= $cppunit_micro_min `
48594
48595     if test "$cppunit_version_proper" = "1" ; then
48596       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48597 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48598     else
48599       echo "$as_me:$LINENO: result: no" >&5
48600 echo "${ECHO_T}no" >&6
48601       no_cppunit=yes
48602     fi
48603   fi
48604
48605   if test "x$no_cppunit" = x ; then
48606      SUBDIRS="$SUBDIRS tests"
48607   else
48608      CPPUNIT_CFLAGS=""
48609      CPPUNIT_LIBS=""
48610      :
48611   fi
48612
48613
48614
48615
48616
48617 for subdir in `echo $SUBDIRS`; do
48618     if test -d ${srcdir}/${subdir} ; then
48619         if test "$wxUSE_GUI" = "yes"; then
48620             if test ${subdir} = "samples"; then
48621                                                 makefiles="samples/Makefile.in $makefiles"
48622                 for sample in `echo $SAMPLES_SUBDIRS`; do
48623                     if test -d $srcdir/samples/$sample; then
48624                         makefiles="samples/$sample/Makefile.in $makefiles"
48625                     fi
48626                 done
48627             else
48628                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48629                 eval "disabled=\$$disabled_var"
48630                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48631                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
48632             fi
48633         else                                     if test ${subdir} = "samples"; then
48634                 makefiles="samples/Makefile.in samples/console/Makefile.in"
48635             elif test ${subdir} = "utils"; then
48636                 makefiles=""
48637                 for util in HelpGen tex2rtf ; do
48638                     if test -d $srcdir/utils/$util ; then
48639                         makefiles="utils/$util/Makefile.in \
48640                                    utils/$util/src/Makefile.in \
48641                                    $makefiles"
48642                     fi
48643                 done
48644             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48645             fi
48646         fi
48647
48648         for mkin in $makefiles ; do
48649             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48650                       ac_config_files="$ac_config_files $mk"
48651
48652         done
48653     fi
48654 done
48655 fi
48656 cat >confcache <<\_ACEOF
48657 # This file is a shell script that caches the results of configure
48658 # tests run on this system so they can be shared between configure
48659 # scripts and configure runs, see configure's option --config-cache.
48660 # It is not useful on other systems.  If it contains results you don't
48661 # want to keep, you may remove or edit it.
48662 #
48663 # config.status only pays attention to the cache file if you give it
48664 # the --recheck option to rerun configure.
48665 #
48666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48668 # following values.
48669
48670 _ACEOF
48671
48672 # The following way of writing the cache mishandles newlines in values,
48673 # but we know of no workaround that is simple, portable, and efficient.
48674 # So, don't put newlines in cache variables' values.
48675 # Ultrix sh set writes to stderr and can't be redirected directly,
48676 # and sets the high bit in the cache file unless we assign to the vars.
48677 {
48678   (set) 2>&1 |
48679     case `(ac_space=' '; set | grep ac_space) 2>&1` in
48680     *ac_space=\ *)
48681       # `set' does not quote correctly, so add quotes (double-quote
48682       # substitution turns \\\\ into \\, and sed turns \\ into \).
48683       sed -n \
48684         "s/'/'\\\\''/g;
48685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48686       ;;
48687     *)
48688       # `set' quotes correctly as required by POSIX, so do not add quotes.
48689       sed -n \
48690         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
48691       ;;
48692     esac;
48693 } |
48694   sed '
48695      t clear
48696      : clear
48697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48698      t end
48699      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48700      : end' >>confcache
48701 if diff $cache_file confcache >/dev/null 2>&1; then :; else
48702   if test -w $cache_file; then
48703     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48704     cat confcache >$cache_file
48705   else
48706     echo "not updating unwritable cache $cache_file"
48707   fi
48708 fi
48709 rm -f confcache
48710
48711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48712 # Let make expand exec_prefix.
48713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48714
48715 # VPATH may cause trouble with some makes, so we remove $(srcdir),
48716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48717 # trailing colons and then remove the whole line if VPATH becomes empty
48718 # (actually we leave an empty line to preserve line numbers).
48719 if test "x$srcdir" = x.; then
48720   ac_vpsub='/^[  ]*VPATH[        ]*=/{
48721 s/:*\$(srcdir):*/:/;
48722 s/:*\${srcdir}:*/:/;
48723 s/:*@srcdir@:*/:/;
48724 s/^\([^=]*=[     ]*\):*/\1/;
48725 s/:*$//;
48726 s/^[^=]*=[       ]*$//;
48727 }'
48728 fi
48729
48730 DEFS=-DHAVE_CONFIG_H
48731
48732 ac_libobjs=
48733 ac_ltlibobjs=
48734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48735   # 1. Remove the extension, and $U if already installed.
48736   ac_i=`echo "$ac_i" |
48737          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
48738   # 2. Add them.
48739   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48740   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48741 done
48742 LIBOBJS=$ac_libobjs
48743
48744 LTLIBOBJS=$ac_ltlibobjs
48745
48746
48747
48748 : ${CONFIG_STATUS=./config.status}
48749 ac_clean_files_save=$ac_clean_files
48750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48751 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48752 echo "$as_me: creating $CONFIG_STATUS" >&6;}
48753 cat >$CONFIG_STATUS <<_ACEOF
48754 #! $SHELL
48755 # Generated by $as_me.
48756 # Run this file to recreate the current configuration.
48757 # Compiler output produced by configure, useful for debugging
48758 # configure, is in config.log if it exists.
48759
48760 debug=false
48761 ac_cs_recheck=false
48762 ac_cs_silent=false
48763 SHELL=\${CONFIG_SHELL-$SHELL}
48764 _ACEOF
48765
48766 cat >>$CONFIG_STATUS <<\_ACEOF
48767 ## --------------------- ##
48768 ## M4sh Initialization.  ##
48769 ## --------------------- ##
48770
48771 # Be Bourne compatible
48772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48773   emulate sh
48774   NULLCMD=:
48775   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48776   # is contrary to our usage.  Disable this feature.
48777   alias -g '${1+"$@"}'='"$@"'
48778 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48779   set -o posix
48780 fi
48781 DUALCASE=1; export DUALCASE # for MKS sh
48782
48783 # Support unset when possible.
48784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48785   as_unset=unset
48786 else
48787   as_unset=false
48788 fi
48789
48790
48791 # Work around bugs in pre-3.0 UWIN ksh.
48792 $as_unset ENV MAIL MAILPATH
48793 PS1='$ '
48794 PS2='> '
48795 PS4='+ '
48796
48797 # NLS nuisances.
48798 for as_var in \
48799   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48800   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48801   LC_TELEPHONE LC_TIME
48802 do
48803   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48804     eval $as_var=C; export $as_var
48805   else
48806     $as_unset $as_var
48807   fi
48808 done
48809
48810 # Required to use basename.
48811 if expr a : '\(a\)' >/dev/null 2>&1; then
48812   as_expr=expr
48813 else
48814   as_expr=false
48815 fi
48816
48817 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48818   as_basename=basename
48819 else
48820   as_basename=false
48821 fi
48822
48823
48824 # Name of the executable.
48825 as_me=`$as_basename "$0" ||
48826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48827          X"$0" : 'X\(//\)$' \| \
48828          X"$0" : 'X\(/\)$' \| \
48829          .     : '\(.\)' 2>/dev/null ||
48830 echo X/"$0" |
48831     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48832           /^X\/\(\/\/\)$/{ s//\1/; q; }
48833           /^X\/\(\/\).*/{ s//\1/; q; }
48834           s/.*/./; q'`
48835
48836
48837 # PATH needs CR, and LINENO needs CR and PATH.
48838 # Avoid depending upon Character Ranges.
48839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48842 as_cr_digits='0123456789'
48843 as_cr_alnum=$as_cr_Letters$as_cr_digits
48844
48845 # The user is always right.
48846 if test "${PATH_SEPARATOR+set}" != set; then
48847   echo "#! /bin/sh" >conf$$.sh
48848   echo  "exit 0"   >>conf$$.sh
48849   chmod +x conf$$.sh
48850   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48851     PATH_SEPARATOR=';'
48852   else
48853     PATH_SEPARATOR=:
48854   fi
48855   rm -f conf$$.sh
48856 fi
48857
48858
48859   as_lineno_1=$LINENO
48860   as_lineno_2=$LINENO
48861   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48862   test "x$as_lineno_1" != "x$as_lineno_2" &&
48863   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
48864   # Find who we are.  Look in the path if we contain no path at all
48865   # relative or not.
48866   case $0 in
48867     *[\\/]* ) as_myself=$0 ;;
48868     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48869 for as_dir in $PATH
48870 do
48871   IFS=$as_save_IFS
48872   test -z "$as_dir" && as_dir=.
48873   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48874 done
48875
48876        ;;
48877   esac
48878   # We did not find ourselves, most probably we were run as `sh COMMAND'
48879   # in which case we are not to be found in the path.
48880   if test "x$as_myself" = x; then
48881     as_myself=$0
48882   fi
48883   if test ! -f "$as_myself"; then
48884     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48885 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48886    { (exit 1); exit 1; }; }
48887   fi
48888   case $CONFIG_SHELL in
48889   '')
48890     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48891 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48892 do
48893   IFS=$as_save_IFS
48894   test -z "$as_dir" && as_dir=.
48895   for as_base in sh bash ksh sh5; do
48896          case $as_dir in
48897          /*)
48898            if ("$as_dir/$as_base" -c '
48899   as_lineno_1=$LINENO
48900   as_lineno_2=$LINENO
48901   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48902   test "x$as_lineno_1" != "x$as_lineno_2" &&
48903   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
48904              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48905              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48906              CONFIG_SHELL=$as_dir/$as_base
48907              export CONFIG_SHELL
48908              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48909            fi;;
48910          esac
48911        done
48912 done
48913 ;;
48914   esac
48915
48916   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48917   # uniformly replaced by the line number.  The first 'sed' inserts a
48918   # line-number line before each line; the second 'sed' does the real
48919   # work.  The second script uses 'N' to pair each line-number line
48920   # with the numbered line, and appends trailing '-' during
48921   # substitution so that $LINENO is not a special case at line end.
48922   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48923   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
48924   sed '=' <$as_myself |
48925     sed '
48926       N
48927       s,$,-,
48928       : loop
48929       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48930       t loop
48931       s,-$,,
48932       s,^['$as_cr_digits']*\n,,
48933     ' >$as_me.lineno &&
48934   chmod +x $as_me.lineno ||
48935     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48936 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48937    { (exit 1); exit 1; }; }
48938
48939   # Don't try to exec as it changes $[0], causing all sort of problems
48940   # (the dirname of $[0] is not the place where we might find the
48941   # original and so on.  Autoconf is especially sensible to this).
48942   . ./$as_me.lineno
48943   # Exit status is that of the last command.
48944   exit
48945 }
48946
48947
48948 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48949   *c*,-n*) ECHO_N= ECHO_C='
48950 ' ECHO_T='      ' ;;
48951   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48952   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
48953 esac
48954
48955 if expr a : '\(a\)' >/dev/null 2>&1; then
48956   as_expr=expr
48957 else
48958   as_expr=false
48959 fi
48960
48961 rm -f conf$$ conf$$.exe conf$$.file
48962 echo >conf$$.file
48963 if ln -s conf$$.file conf$$ 2>/dev/null; then
48964   # We could just check for DJGPP; but this test a) works b) is more generic
48965   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48966   if test -f conf$$.exe; then
48967     # Don't use ln at all; we don't have any links
48968     as_ln_s='cp -p'
48969   else
48970     as_ln_s='ln -s'
48971   fi
48972 elif ln conf$$.file conf$$ 2>/dev/null; then
48973   as_ln_s=ln
48974 else
48975   as_ln_s='cp -p'
48976 fi
48977 rm -f conf$$ conf$$.exe conf$$.file
48978
48979 if mkdir -p . 2>/dev/null; then
48980   as_mkdir_p=:
48981 else
48982   test -d ./-p && rmdir ./-p
48983   as_mkdir_p=false
48984 fi
48985
48986 as_executable_p="test -f"
48987
48988 # Sed expression to map a string onto a valid CPP name.
48989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48990
48991 # Sed expression to map a string onto a valid variable name.
48992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48993
48994
48995 # IFS
48996 # We need space, tab and new line, in precisely that order.
48997 as_nl='
48998 '
48999 IFS="   $as_nl"
49000
49001 # CDPATH.
49002 $as_unset CDPATH
49003
49004 exec 6>&1
49005
49006 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49007 # report actual input values of CONFIG_FILES etc. instead of their
49008 # values after options handling.  Logging --version etc. is OK.
49009 exec 5>>config.log
49010 {
49011   echo
49012   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49013 ## Running $as_me. ##
49014 _ASBOX
49015 } >&5
49016 cat >&5 <<_CSEOF
49017
49018 This file was extended by wxWidgets $as_me 2.7.0, which was
49019 generated by GNU Autoconf 2.59.  Invocation command line was
49020
49021   CONFIG_FILES    = $CONFIG_FILES
49022   CONFIG_HEADERS  = $CONFIG_HEADERS
49023   CONFIG_LINKS    = $CONFIG_LINKS
49024   CONFIG_COMMANDS = $CONFIG_COMMANDS
49025   $ $0 $@
49026
49027 _CSEOF
49028 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49029 echo >&5
49030 _ACEOF
49031
49032 # Files that config.status was made for.
49033 if test -n "$ac_config_files"; then
49034   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49035 fi
49036
49037 if test -n "$ac_config_headers"; then
49038   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49039 fi
49040
49041 if test -n "$ac_config_links"; then
49042   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49043 fi
49044
49045 if test -n "$ac_config_commands"; then
49046   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49047 fi
49048
49049 cat >>$CONFIG_STATUS <<\_ACEOF
49050
49051 ac_cs_usage="\
49052 \`$as_me' instantiates files from templates according to the
49053 current configuration.
49054
49055 Usage: $0 [OPTIONS] [FILE]...
49056
49057   -h, --help       print this help, then exit
49058   -V, --version    print version number, then exit
49059   -q, --quiet      do not print progress messages
49060   -d, --debug      don't remove temporary files
49061       --recheck    update $as_me by reconfiguring in the same conditions
49062   --file=FILE[:TEMPLATE]
49063                    instantiate the configuration file FILE
49064   --header=FILE[:TEMPLATE]
49065                    instantiate the configuration header FILE
49066
49067 Configuration files:
49068 $config_files
49069
49070 Configuration headers:
49071 $config_headers
49072
49073 Configuration commands:
49074 $config_commands
49075
49076 Report bugs to <bug-autoconf@gnu.org>."
49077 _ACEOF
49078
49079 cat >>$CONFIG_STATUS <<_ACEOF
49080 ac_cs_version="\\
49081 wxWidgets config.status 2.7.0
49082 configured by $0, generated by GNU Autoconf 2.59,
49083   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49084
49085 Copyright (C) 2003 Free Software Foundation, Inc.
49086 This config.status script is free software; the Free Software Foundation
49087 gives unlimited permission to copy, distribute and modify it."
49088 srcdir=$srcdir
49089 INSTALL="$INSTALL"
49090 _ACEOF
49091
49092 cat >>$CONFIG_STATUS <<\_ACEOF
49093 # If no file are specified by the user, then we need to provide default
49094 # value.  By we need to know if files were specified by the user.
49095 ac_need_defaults=:
49096 while test $# != 0
49097 do
49098   case $1 in
49099   --*=*)
49100     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49101     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49102     ac_shift=:
49103     ;;
49104   -*)
49105     ac_option=$1
49106     ac_optarg=$2
49107     ac_shift=shift
49108     ;;
49109   *) # This is not an option, so the user has probably given explicit
49110      # arguments.
49111      ac_option=$1
49112      ac_need_defaults=false;;
49113   esac
49114
49115   case $ac_option in
49116   # Handling of the options.
49117 _ACEOF
49118 cat >>$CONFIG_STATUS <<\_ACEOF
49119   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49120     ac_cs_recheck=: ;;
49121   --version | --vers* | -V )
49122     echo "$ac_cs_version"; exit 0 ;;
49123   --he | --h)
49124     # Conflict between --help and --header
49125     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49126 Try \`$0 --help' for more information." >&5
49127 echo "$as_me: error: ambiguous option: $1
49128 Try \`$0 --help' for more information." >&2;}
49129    { (exit 1); exit 1; }; };;
49130   --help | --hel | -h )
49131     echo "$ac_cs_usage"; exit 0 ;;
49132   --debug | --d* | -d )
49133     debug=: ;;
49134   --file | --fil | --fi | --f )
49135     $ac_shift
49136     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49137     ac_need_defaults=false;;
49138   --header | --heade | --head | --hea )
49139     $ac_shift
49140     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49141     ac_need_defaults=false;;
49142   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49143   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49144     ac_cs_silent=: ;;
49145
49146   # This is an error.
49147   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49148 Try \`$0 --help' for more information." >&5
49149 echo "$as_me: error: unrecognized option: $1
49150 Try \`$0 --help' for more information." >&2;}
49151    { (exit 1); exit 1; }; } ;;
49152
49153   *) ac_config_targets="$ac_config_targets $1" ;;
49154
49155   esac
49156   shift
49157 done
49158
49159 ac_configure_extra_args=
49160
49161 if $ac_cs_silent; then
49162   exec 6>/dev/null
49163   ac_configure_extra_args="$ac_configure_extra_args --silent"
49164 fi
49165
49166 _ACEOF
49167 cat >>$CONFIG_STATUS <<_ACEOF
49168 if \$ac_cs_recheck; then
49169   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49170   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49171 fi
49172
49173 _ACEOF
49174
49175 cat >>$CONFIG_STATUS <<_ACEOF
49176 #
49177 # INIT-COMMANDS section.
49178 #
49179
49180
49181             CPP="$CPP"
49182             infile="$srcdir/include/wx/msw/genrcdefs.h"
49183             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49184
49185
49186  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49187  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49188  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49189                      LN_S="${LN_S}"
49190
49191
49192 _ACEOF
49193
49194
49195
49196 cat >>$CONFIG_STATUS <<\_ACEOF
49197 for ac_config_target in $ac_config_targets
49198 do
49199   case "$ac_config_target" in
49200   # Handling of arguments.
49201   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49202   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
49203   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49204   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49205   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
49206   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
49207   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49208   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
49209   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49210 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49211    { (exit 1); exit 1; }; };;
49212   esac
49213 done
49214
49215 # If the user did not use the arguments to specify the items to instantiate,
49216 # then the envvar interface is used.  Set only those that are not.
49217 # We use the long form for the default assignment because of an extremely
49218 # bizarre bug on SunOS 4.1.3.
49219 if $ac_need_defaults; then
49220   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49221   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49222   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49223 fi
49224
49225 # Have a temporary directory for convenience.  Make it in the build tree
49226 # simply because there is no reason to put it here, and in addition,
49227 # creating and moving files from /tmp can sometimes cause problems.
49228 # Create a temporary directory, and hook for its removal unless debugging.
49229 $debug ||
49230 {
49231   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49232   trap '{ (exit 1); exit 1; }' 1 2 13 15
49233 }
49234
49235 # Create a (secure) tmp directory for tmp files.
49236
49237 {
49238   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49239   test -n "$tmp" && test -d "$tmp"
49240 }  ||
49241 {
49242   tmp=./confstat$$-$RANDOM
49243   (umask 077 && mkdir $tmp)
49244 } ||
49245 {
49246    echo "$me: cannot create a temporary directory in ." >&2
49247    { (exit 1); exit 1; }
49248 }
49249
49250 _ACEOF
49251
49252 cat >>$CONFIG_STATUS <<_ACEOF
49253
49254 #
49255 # CONFIG_FILES section.
49256 #
49257
49258 # No need to generate the scripts if there are no CONFIG_FILES.
49259 # This happens for instance when ./config.status config.h
49260 if test -n "\$CONFIG_FILES"; then
49261   # Protect against being on the right side of a sed subst in config.status.
49262   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49263    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49264 s,@SHELL@,$SHELL,;t t
49265 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49266 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49267 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49268 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49269 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49270 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49271 s,@exec_prefix@,$exec_prefix,;t t
49272 s,@prefix@,$prefix,;t t
49273 s,@program_transform_name@,$program_transform_name,;t t
49274 s,@bindir@,$bindir,;t t
49275 s,@sbindir@,$sbindir,;t t
49276 s,@libexecdir@,$libexecdir,;t t
49277 s,@datadir@,$datadir,;t t
49278 s,@sysconfdir@,$sysconfdir,;t t
49279 s,@sharedstatedir@,$sharedstatedir,;t t
49280 s,@localstatedir@,$localstatedir,;t t
49281 s,@libdir@,$libdir,;t t
49282 s,@includedir@,$includedir,;t t
49283 s,@oldincludedir@,$oldincludedir,;t t
49284 s,@infodir@,$infodir,;t t
49285 s,@mandir@,$mandir,;t t
49286 s,@build_alias@,$build_alias,;t t
49287 s,@host_alias@,$host_alias,;t t
49288 s,@target_alias@,$target_alias,;t t
49289 s,@DEFS@,$DEFS,;t t
49290 s,@ECHO_C@,$ECHO_C,;t t
49291 s,@ECHO_N@,$ECHO_N,;t t
49292 s,@ECHO_T@,$ECHO_T,;t t
49293 s,@LIBS@,$LIBS,;t t
49294 s,@build@,$build,;t t
49295 s,@build_cpu@,$build_cpu,;t t
49296 s,@build_vendor@,$build_vendor,;t t
49297 s,@build_os@,$build_os,;t t
49298 s,@host@,$host,;t t
49299 s,@host_cpu@,$host_cpu,;t t
49300 s,@host_vendor@,$host_vendor,;t t
49301 s,@host_os@,$host_os,;t t
49302 s,@target@,$target,;t t
49303 s,@target_cpu@,$target_cpu,;t t
49304 s,@target_vendor@,$target_vendor,;t t
49305 s,@target_os@,$target_os,;t t
49306 s,@CC@,$CC,;t t
49307 s,@CFLAGS@,$CFLAGS,;t t
49308 s,@LDFLAGS@,$LDFLAGS,;t t
49309 s,@CPPFLAGS@,$CPPFLAGS,;t t
49310 s,@ac_ct_CC@,$ac_ct_CC,;t t
49311 s,@EXEEXT@,$EXEEXT,;t t
49312 s,@OBJEXT@,$OBJEXT,;t t
49313 s,@CPP@,$CPP,;t t
49314 s,@EGREP@,$EGREP,;t t
49315 s,@CXX@,$CXX,;t t
49316 s,@CXXFLAGS@,$CXXFLAGS,;t t
49317 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49318 s,@RANLIB@,$RANLIB,;t t
49319 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49320 s,@AR@,$AR,;t t
49321 s,@ac_ct_AR@,$ac_ct_AR,;t t
49322 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49323 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49324 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49325 s,@STRIP@,$STRIP,;t t
49326 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49327 s,@WINDRES@,$WINDRES,;t t
49328 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
49329 s,@DLLTOOL@,$DLLTOOL,;t t
49330 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
49331 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49332 s,@LN_S@,$LN_S,;t t
49333 s,@CXXCPP@,$CXXCPP,;t t
49334 s,@subdirs@,$subdirs,;t t
49335 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49336 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49337 s,@GTK_LIBS@,$GTK_LIBS,;t t
49338 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
49339 s,@X_CFLAGS@,$X_CFLAGS,;t t
49340 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49341 s,@X_LIBS@,$X_LIBS,;t t
49342 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49343 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49344 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
49345 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49346 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
49347 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49348 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
49349 s,@REZ@,$REZ,;t t
49350 s,@DEREZ@,$DEREZ,;t t
49351 s,@SETFILE@,$SETFILE,;t t
49352 s,@LIBICONV@,$LIBICONV,;t t
49353 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49354 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49355 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49356 s,@SDL_LIBS@,$SDL_LIBS,;t t
49357 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49358 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
49359 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49360 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
49361 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49362 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
49363 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49364 s,@GST_LIBS@,$GST_LIBS,;t t
49365 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49366 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49367 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49368 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49369 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49370 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49371 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49372 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49373 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49374 s,@VENDOR@,$VENDOR,;t t
49375 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
49376 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49377 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
49378 s,@WXUNIV@,$WXUNIV,;t t
49379 s,@MONOLITHIC@,$MONOLITHIC,;t t
49380 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49381 s,@EXTRALIBS@,$EXTRALIBS,;t t
49382 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49383 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49384 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49385 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49386 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49387 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49388 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
49389 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
49390 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
49391 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
49392 s,@UNICODE@,$UNICODE,;t t
49393 s,@BUILD@,$BUILD,;t t
49394 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49395 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
49396 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49397 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49398 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49399 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49400 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49401 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49402 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49403 s,@SET_MAKE@,$SET_MAKE,;t t
49404 s,@MAKE_SET@,$MAKE_SET,;t t
49405 s,@NM@,$NM,;t t
49406 s,@ac_ct_NM@,$ac_ct_NM,;t t
49407 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49408 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49409 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49410 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49411 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49412 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
49413 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
49414 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49415 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
49416 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
49417 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49418 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49419 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49420 s,@LIBPREFIX@,$LIBPREFIX,;t t
49421 s,@LIBEXT@,$LIBEXT,;t t
49422 s,@DLLPREFIX@,$DLLPREFIX,;t t
49423 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
49424 s,@dlldir@,$dlldir,;t t
49425 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49426 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49427 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49428 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49429 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49430 s,@PIC_FLAG@,$PIC_FLAG,;t t
49431 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
49432 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49433 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49434 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
49435 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
49436 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49437 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49438 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49439 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49440 s,@GCC_PCH@,$GCC_PCH,;t t
49441 s,@ICC_PCH@,$ICC_PCH,;t t
49442 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49443 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49444 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49445 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49446 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49447 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49448 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49449 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49450 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49451 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49452 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49453 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49454 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49455 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49456 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49457 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
49458 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49459 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49460 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
49461 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
49462 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
49463 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
49464 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
49465 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
49466 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
49467 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49468 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
49469 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
49470 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
49471 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
49472 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
49473 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
49474 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
49475 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
49476 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49477 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49478 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49479 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49480 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49481 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
49482 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
49483 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49484 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
49485 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
49486 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49487 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49488 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
49489 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
49490 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
49491 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49492 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
49493 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49494 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
49495 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
49496 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
49497 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
49498 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
49499 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49500 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49501 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49502 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49503 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49504 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49505 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49506 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
49507 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49508 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49509 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
49510 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49511 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49512 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49513 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49514 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
49515 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49516 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49517 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49518 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49519 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49520 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
49521 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
49522 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
49523 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
49524 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
49525 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49526 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
49527 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49528 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49529 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49530 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
49531 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49532 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
49533 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
49534 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49535 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49536 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49537 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49538 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49539 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49540 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49541 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49542 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49543 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49544 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
49545 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
49546 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49547 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49548 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
49549 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49550 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49551 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
49552 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
49553 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49554 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49555 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49556 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49557 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49558 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49559 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49560 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49561 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49562 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49563 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49564 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49565 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49566 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
49567 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
49568 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
49569 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49570 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
49571 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
49572 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
49573 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49574 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49575 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
49576 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49577 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
49578 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
49579 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
49580 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
49581 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
49582 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49583 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49584 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49585 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49586 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49587 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49588 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49589 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
49590 s,@SHARED@,$SHARED,;t t
49591 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49592 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
49593 s,@USE_GUI@,$USE_GUI,;t t
49594 s,@AFMINSTALL@,$AFMINSTALL,;t t
49595 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49596 s,@TOOLKIT@,$TOOLKIT,;t t
49597 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
49598 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
49599 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
49600 s,@cross_compiling@,$cross_compiling,;t t
49601 s,@WIDGET_SET@,$WIDGET_SET,;t t
49602 s,@WX_RELEASE@,$WX_RELEASE,;t t
49603 s,@WX_VERSION@,$WX_VERSION,;t t
49604 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49605 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49606 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
49607 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49608 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49609 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49610 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
49611 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49612 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
49613 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
49614 s,@EXE_LINKER@,$EXE_LINKER,;t t
49615 s,@GUIDIST@,$GUIDIST,;t t
49616 s,@DISTDIR@,$DISTDIR,;t t
49617 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49618 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
49619 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49620 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49621 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
49622 s,@RESCOMP@,$RESCOMP,;t t
49623 s,@RESFLAGS@,$RESFLAGS,;t t
49624 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49625 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49626 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49627 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
49628 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
49629 s,@MACSETFILE@,$MACSETFILE,;t t
49630 s,@GCC@,$GCC,;t t
49631 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49632 s,@LIBOBJS@,$LIBOBJS,;t t
49633 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49634 CEOF
49635
49636 _ACEOF
49637
49638   cat >>$CONFIG_STATUS <<\_ACEOF
49639   # Split the substitutions into bite-sized pieces for seds with
49640   # small command number limits, like on Digital OSF/1 and HP-UX.
49641   ac_max_sed_lines=48
49642   ac_sed_frag=1 # Number of current file.
49643   ac_beg=1 # First line for current file.
49644   ac_end=$ac_max_sed_lines # Line after last line for current file.
49645   ac_more_lines=:
49646   ac_sed_cmds=
49647   while $ac_more_lines; do
49648     if test $ac_beg -gt 1; then
49649       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49650     else
49651       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49652     fi
49653     if test ! -s $tmp/subs.frag; then
49654       ac_more_lines=false
49655     else
49656       # The purpose of the label and of the branching condition is to
49657       # speed up the sed processing (if there are no `@' at all, there
49658       # is no need to browse any of the substitutions).
49659       # These are the two extra sed commands mentioned above.
49660       (echo ':t
49661   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49662       if test -z "$ac_sed_cmds"; then
49663         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
49664       else
49665         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
49666       fi
49667       ac_sed_frag=`expr $ac_sed_frag + 1`
49668       ac_beg=$ac_end
49669       ac_end=`expr $ac_end + $ac_max_sed_lines`
49670     fi
49671   done
49672   if test -z "$ac_sed_cmds"; then
49673     ac_sed_cmds=cat
49674   fi
49675 fi # test -n "$CONFIG_FILES"
49676
49677 _ACEOF
49678 cat >>$CONFIG_STATUS <<\_ACEOF
49679 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49680   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49681   case $ac_file in
49682   - | *:- | *:-:* ) # input from stdin
49683         cat >$tmp/stdin
49684         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49685         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49686   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49687         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49688   * )   ac_file_in=$ac_file.in ;;
49689   esac
49690
49691   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49692   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49694          X"$ac_file" : 'X\(//\)[^/]' \| \
49695          X"$ac_file" : 'X\(//\)$' \| \
49696          X"$ac_file" : 'X\(/\)' \| \
49697          .     : '\(.\)' 2>/dev/null ||
49698 echo X"$ac_file" |
49699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49700           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49701           /^X\(\/\/\)$/{ s//\1/; q; }
49702           /^X\(\/\).*/{ s//\1/; q; }
49703           s/.*/./; q'`
49704   { if $as_mkdir_p; then
49705     mkdir -p "$ac_dir"
49706   else
49707     as_dir="$ac_dir"
49708     as_dirs=
49709     while test ! -d "$as_dir"; do
49710       as_dirs="$as_dir $as_dirs"
49711       as_dir=`(dirname "$as_dir") 2>/dev/null ||
49712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49713          X"$as_dir" : 'X\(//\)[^/]' \| \
49714          X"$as_dir" : 'X\(//\)$' \| \
49715          X"$as_dir" : 'X\(/\)' \| \
49716          .     : '\(.\)' 2>/dev/null ||
49717 echo X"$as_dir" |
49718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49720           /^X\(\/\/\)$/{ s//\1/; q; }
49721           /^X\(\/\).*/{ s//\1/; q; }
49722           s/.*/./; q'`
49723     done
49724     test ! -n "$as_dirs" || mkdir $as_dirs
49725   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49727    { (exit 1); exit 1; }; }; }
49728
49729   ac_builddir=.
49730
49731 if test "$ac_dir" != .; then
49732   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49733   # A "../" for each directory in $ac_dir_suffix.
49734   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49735 else
49736   ac_dir_suffix= ac_top_builddir=
49737 fi
49738
49739 case $srcdir in
49740   .)  # No --srcdir option.  We are building in place.
49741     ac_srcdir=.
49742     if test -z "$ac_top_builddir"; then
49743        ac_top_srcdir=.
49744     else
49745        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49746     fi ;;
49747   [\\/]* | ?:[\\/]* )  # Absolute path.
49748     ac_srcdir=$srcdir$ac_dir_suffix;
49749     ac_top_srcdir=$srcdir ;;
49750   *) # Relative path.
49751     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49752     ac_top_srcdir=$ac_top_builddir$srcdir ;;
49753 esac
49754
49755 # Do not use `cd foo && pwd` to compute absolute paths, because
49756 # the directories may not exist.
49757 case `pwd` in
49758 .) ac_abs_builddir="$ac_dir";;
49759 *)
49760   case "$ac_dir" in
49761   .) ac_abs_builddir=`pwd`;;
49762   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49763   *) ac_abs_builddir=`pwd`/"$ac_dir";;
49764   esac;;
49765 esac
49766 case $ac_abs_builddir in
49767 .) ac_abs_top_builddir=${ac_top_builddir}.;;
49768 *)
49769   case ${ac_top_builddir}. in
49770   .) ac_abs_top_builddir=$ac_abs_builddir;;
49771   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49772   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49773   esac;;
49774 esac
49775 case $ac_abs_builddir in
49776 .) ac_abs_srcdir=$ac_srcdir;;
49777 *)
49778   case $ac_srcdir in
49779   .) ac_abs_srcdir=$ac_abs_builddir;;
49780   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49781   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49782   esac;;
49783 esac
49784 case $ac_abs_builddir in
49785 .) ac_abs_top_srcdir=$ac_top_srcdir;;
49786 *)
49787   case $ac_top_srcdir in
49788   .) ac_abs_top_srcdir=$ac_abs_builddir;;
49789   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49790   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49791   esac;;
49792 esac
49793
49794
49795   case $INSTALL in
49796   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49797   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49798   esac
49799
49800   # Let's still pretend it is `configure' which instantiates (i.e., don't
49801   # use $as_me), people would be surprised to read:
49802   #    /* config.h.  Generated by config.status.  */
49803   if test x"$ac_file" = x-; then
49804     configure_input=
49805   else
49806     configure_input="$ac_file.  "
49807   fi
49808   configure_input=$configure_input"Generated from `echo $ac_file_in |
49809                                      sed 's,.*/,,'` by configure."
49810
49811   # First look for the input files in the build tree, otherwise in the
49812   # src tree.
49813   ac_file_inputs=`IFS=:
49814     for f in $ac_file_in; do
49815       case $f in
49816       -) echo $tmp/stdin ;;
49817       [\\/$]*)
49818          # Absolute (can't be DOS-style, as IFS=:)
49819          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49820 echo "$as_me: error: cannot find input file: $f" >&2;}
49821    { (exit 1); exit 1; }; }
49822          echo "$f";;
49823       *) # Relative
49824          if test -f "$f"; then
49825            # Build tree
49826            echo "$f"
49827          elif test -f "$srcdir/$f"; then
49828            # Source tree
49829            echo "$srcdir/$f"
49830          else
49831            # /dev/null tree
49832            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49833 echo "$as_me: error: cannot find input file: $f" >&2;}
49834    { (exit 1); exit 1; }; }
49835          fi;;
49836       esac
49837     done` || { (exit 1); exit 1; }
49838
49839   if test x"$ac_file" != x-; then
49840     { echo "$as_me:$LINENO: creating $ac_file" >&5
49841 echo "$as_me: creating $ac_file" >&6;}
49842     rm -f "$ac_file"
49843   fi
49844 _ACEOF
49845 cat >>$CONFIG_STATUS <<_ACEOF
49846   sed "$ac_vpsub
49847 $extrasub
49848 _ACEOF
49849 cat >>$CONFIG_STATUS <<\_ACEOF
49850 :t
49851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49852 s,@configure_input@,$configure_input,;t t
49853 s,@srcdir@,$ac_srcdir,;t t
49854 s,@abs_srcdir@,$ac_abs_srcdir,;t t
49855 s,@top_srcdir@,$ac_top_srcdir,;t t
49856 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49857 s,@builddir@,$ac_builddir,;t t
49858 s,@abs_builddir@,$ac_abs_builddir,;t t
49859 s,@top_builddir@,$ac_top_builddir,;t t
49860 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49861 s,@INSTALL@,$ac_INSTALL,;t t
49862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49863   rm -f $tmp/stdin
49864   if test x"$ac_file" != x-; then
49865     mv $tmp/out $ac_file
49866   else
49867     cat $tmp/out
49868     rm -f $tmp/out
49869   fi
49870
49871   # Run the commands associated with the file.
49872   case $ac_file in
49873     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
49874     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
49875   esac
49876 done
49877 _ACEOF
49878 cat >>$CONFIG_STATUS <<\_ACEOF
49879
49880 #
49881 # CONFIG_HEADER section.
49882 #
49883
49884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
49886 #
49887 # ac_d sets the value in "#define NAME VALUE" lines.
49888 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
49889 ac_dB='[         ].*$,\1#\2'
49890 ac_dC=' '
49891 ac_dD=',;t'
49892 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
49893 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
49894 ac_uB='$,\1#\2define\3'
49895 ac_uC=' '
49896 ac_uD=',;t'
49897
49898 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49899   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49900   case $ac_file in
49901   - | *:- | *:-:* ) # input from stdin
49902         cat >$tmp/stdin
49903         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49905   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49907   * )   ac_file_in=$ac_file.in ;;
49908   esac
49909
49910   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49911 echo "$as_me: creating $ac_file" >&6;}
49912
49913   # First look for the input files in the build tree, otherwise in the
49914   # src tree.
49915   ac_file_inputs=`IFS=:
49916     for f in $ac_file_in; do
49917       case $f in
49918       -) echo $tmp/stdin ;;
49919       [\\/$]*)
49920          # Absolute (can't be DOS-style, as IFS=:)
49921          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49922 echo "$as_me: error: cannot find input file: $f" >&2;}
49923    { (exit 1); exit 1; }; }
49924          # Do quote $f, to prevent DOS paths from being IFS'd.
49925          echo "$f";;
49926       *) # Relative
49927          if test -f "$f"; then
49928            # Build tree
49929            echo "$f"
49930          elif test -f "$srcdir/$f"; then
49931            # Source tree
49932            echo "$srcdir/$f"
49933          else
49934            # /dev/null tree
49935            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49936 echo "$as_me: error: cannot find input file: $f" >&2;}
49937    { (exit 1); exit 1; }; }
49938          fi;;
49939       esac
49940     done` || { (exit 1); exit 1; }
49941   # Remove the trailing spaces.
49942   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
49943
49944 _ACEOF
49945
49946 # Transform confdefs.h into two sed scripts, `conftest.defines' and
49947 # `conftest.undefs', that substitutes the proper values into
49948 # config.h.in to produce config.h.  The first handles `#define'
49949 # templates, and the second `#undef' templates.
49950 # And first: Protect against being on the right side of a sed subst in
49951 # config.status.  Protect against being in an unquoted here document
49952 # in config.status.
49953 rm -f conftest.defines conftest.undefs
49954 # Using a here document instead of a string reduces the quoting nightmare.
49955 # Putting comments in sed scripts is not portable.
49956 #
49957 # `end' is used to avoid that the second main sed command (meant for
49958 # 0-ary CPP macros) applies to n-ary macro definitions.
49959 # See the Autoconf documentation for `clear'.
49960 cat >confdef2sed.sed <<\_ACEOF
49961 s/[\\&,]/\\&/g
49962 s,[\\$`],\\&,g
49963 t clear
49964 : clear
49965 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
49966 t end
49967 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
49968 : end
49969 _ACEOF
49970 # If some macros were called several times there might be several times
49971 # the same #defines, which is useless.  Nevertheless, we may not want to
49972 # sort them, since we want the *last* AC-DEFINE to be honored.
49973 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49974 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49975 rm -f confdef2sed.sed
49976
49977 # This sed command replaces #undef with comments.  This is necessary, for
49978 # example, in the case of _POSIX_SOURCE, which is predefined and required
49979 # on some systems where configure will not decide to define it.
49980 cat >>conftest.undefs <<\_ACEOF
49981 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
49982 _ACEOF
49983
49984 # Break up conftest.defines because some shells have a limit on the size
49985 # of here documents, and old seds have small limits too (100 cmds).
49986 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
49987 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
49988 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49989 echo '  :' >>$CONFIG_STATUS
49990 rm -f conftest.tail
49991 while grep . conftest.defines >/dev/null
49992 do
49993   # Write a limited-size here document to $tmp/defines.sed.
49994   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49995   # Speed up: don't consider the non `#define' lines.
49996   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
49997   # Work around the forget-to-reset-the-flag bug.
49998   echo 't clr' >>$CONFIG_STATUS
49999   echo ': clr' >>$CONFIG_STATUS
50000   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50001   echo 'CEOF
50002   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50003   rm -f $tmp/in
50004   mv $tmp/out $tmp/in
50005 ' >>$CONFIG_STATUS
50006   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50007   rm -f conftest.defines
50008   mv conftest.tail conftest.defines
50009 done
50010 rm -f conftest.defines
50011 echo '  fi # grep' >>$CONFIG_STATUS
50012 echo >>$CONFIG_STATUS
50013
50014 # Break up conftest.undefs because some shells have a limit on the size
50015 # of here documents, and old seds have small limits too (100 cmds).
50016 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50017 rm -f conftest.tail
50018 while grep . conftest.undefs >/dev/null
50019 do
50020   # Write a limited-size here document to $tmp/undefs.sed.
50021   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50022   # Speed up: don't consider the non `#undef'
50023   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50024   # Work around the forget-to-reset-the-flag bug.
50025   echo 't clr' >>$CONFIG_STATUS
50026   echo ': clr' >>$CONFIG_STATUS
50027   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50028   echo 'CEOF
50029   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50030   rm -f $tmp/in
50031   mv $tmp/out $tmp/in
50032 ' >>$CONFIG_STATUS
50033   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50034   rm -f conftest.undefs
50035   mv conftest.tail conftest.undefs
50036 done
50037 rm -f conftest.undefs
50038
50039 cat >>$CONFIG_STATUS <<\_ACEOF
50040   # Let's still pretend it is `configure' which instantiates (i.e., don't
50041   # use $as_me), people would be surprised to read:
50042   #    /* config.h.  Generated by config.status.  */
50043   if test x"$ac_file" = x-; then
50044     echo "/* Generated by configure.  */" >$tmp/config.h
50045   else
50046     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50047   fi
50048   cat $tmp/in >>$tmp/config.h
50049   rm -f $tmp/in
50050   if test x"$ac_file" != x-; then
50051     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50052       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50053 echo "$as_me: $ac_file is unchanged" >&6;}
50054     else
50055       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50057          X"$ac_file" : 'X\(//\)[^/]' \| \
50058          X"$ac_file" : 'X\(//\)$' \| \
50059          X"$ac_file" : 'X\(/\)' \| \
50060          .     : '\(.\)' 2>/dev/null ||
50061 echo X"$ac_file" |
50062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50063           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50064           /^X\(\/\/\)$/{ s//\1/; q; }
50065           /^X\(\/\).*/{ s//\1/; q; }
50066           s/.*/./; q'`
50067       { if $as_mkdir_p; then
50068     mkdir -p "$ac_dir"
50069   else
50070     as_dir="$ac_dir"
50071     as_dirs=
50072     while test ! -d "$as_dir"; do
50073       as_dirs="$as_dir $as_dirs"
50074       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50076          X"$as_dir" : 'X\(//\)[^/]' \| \
50077          X"$as_dir" : 'X\(//\)$' \| \
50078          X"$as_dir" : 'X\(/\)' \| \
50079          .     : '\(.\)' 2>/dev/null ||
50080 echo X"$as_dir" |
50081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50082           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50083           /^X\(\/\/\)$/{ s//\1/; q; }
50084           /^X\(\/\).*/{ s//\1/; q; }
50085           s/.*/./; q'`
50086     done
50087     test ! -n "$as_dirs" || mkdir $as_dirs
50088   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50090    { (exit 1); exit 1; }; }; }
50091
50092       rm -f $ac_file
50093       mv $tmp/config.h $ac_file
50094     fi
50095   else
50096     cat $tmp/config.h
50097     rm -f $tmp/config.h
50098   fi
50099 done
50100 _ACEOF
50101 cat >>$CONFIG_STATUS <<\_ACEOF
50102
50103 #
50104 # CONFIG_COMMANDS section.
50105 #
50106 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50107   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50108   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50109   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50110 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50111          X"$ac_dest" : 'X\(//\)[^/]' \| \
50112          X"$ac_dest" : 'X\(//\)$' \| \
50113          X"$ac_dest" : 'X\(/\)' \| \
50114          .     : '\(.\)' 2>/dev/null ||
50115 echo X"$ac_dest" |
50116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50118           /^X\(\/\/\)$/{ s//\1/; q; }
50119           /^X\(\/\).*/{ s//\1/; q; }
50120           s/.*/./; q'`
50121   { if $as_mkdir_p; then
50122     mkdir -p "$ac_dir"
50123   else
50124     as_dir="$ac_dir"
50125     as_dirs=
50126     while test ! -d "$as_dir"; do
50127       as_dirs="$as_dir $as_dirs"
50128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50130          X"$as_dir" : 'X\(//\)[^/]' \| \
50131          X"$as_dir" : 'X\(//\)$' \| \
50132          X"$as_dir" : 'X\(/\)' \| \
50133          .     : '\(.\)' 2>/dev/null ||
50134 echo X"$as_dir" |
50135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50137           /^X\(\/\/\)$/{ s//\1/; q; }
50138           /^X\(\/\).*/{ s//\1/; q; }
50139           s/.*/./; q'`
50140     done
50141     test ! -n "$as_dirs" || mkdir $as_dirs
50142   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50144    { (exit 1); exit 1; }; }; }
50145
50146   ac_builddir=.
50147
50148 if test "$ac_dir" != .; then
50149   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50150   # A "../" for each directory in $ac_dir_suffix.
50151   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50152 else
50153   ac_dir_suffix= ac_top_builddir=
50154 fi
50155
50156 case $srcdir in
50157   .)  # No --srcdir option.  We are building in place.
50158     ac_srcdir=.
50159     if test -z "$ac_top_builddir"; then
50160        ac_top_srcdir=.
50161     else
50162        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50163     fi ;;
50164   [\\/]* | ?:[\\/]* )  # Absolute path.
50165     ac_srcdir=$srcdir$ac_dir_suffix;
50166     ac_top_srcdir=$srcdir ;;
50167   *) # Relative path.
50168     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50169     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50170 esac
50171
50172 # Do not use `cd foo && pwd` to compute absolute paths, because
50173 # the directories may not exist.
50174 case `pwd` in
50175 .) ac_abs_builddir="$ac_dir";;
50176 *)
50177   case "$ac_dir" in
50178   .) ac_abs_builddir=`pwd`;;
50179   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50180   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50181   esac;;
50182 esac
50183 case $ac_abs_builddir in
50184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50185 *)
50186   case ${ac_top_builddir}. in
50187   .) ac_abs_top_builddir=$ac_abs_builddir;;
50188   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50189   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50190   esac;;
50191 esac
50192 case $ac_abs_builddir in
50193 .) ac_abs_srcdir=$ac_srcdir;;
50194 *)
50195   case $ac_srcdir in
50196   .) ac_abs_srcdir=$ac_abs_builddir;;
50197   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50198   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50199   esac;;
50200 esac
50201 case $ac_abs_builddir in
50202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50203 *)
50204   case $ac_top_srcdir in
50205   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50206   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50207   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50208   esac;;
50209 esac
50210
50211
50212   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50213 echo "$as_me: executing $ac_dest commands" >&6;}
50214   case $ac_dest in
50215     rcdefs.h )
50216             mkdir -p $outdir &&
50217             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50218          ;;
50219     wx-config )  rm -f wx-config
50220                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50221                     ;;
50222   esac
50223 done
50224 _ACEOF
50225
50226 cat >>$CONFIG_STATUS <<\_ACEOF
50227
50228 { (exit 0); exit 0; }
50229 _ACEOF
50230 chmod +x $CONFIG_STATUS
50231 ac_clean_files=$ac_clean_files_save
50232
50233
50234 # configure is writing to config.log, and then calls config.status.
50235 # config.status does its own redirection, appending to config.log.
50236 # Unfortunately, on DOS this fails, as config.log is still kept open
50237 # by configure, so config.status won't be able to write to it; its
50238 # output is simply discarded.  So we exec the FD to /dev/null,
50239 # effectively closing config.log, so it can be properly (re)opened and
50240 # appended to by config.status.  When coming back to configure, we
50241 # need to make the FD available again.
50242 if test "$no_create" != yes; then
50243   ac_cs_success=:
50244   ac_config_status_args=
50245   test "$silent" = yes &&
50246     ac_config_status_args="$ac_config_status_args --quiet"
50247   exec 5>/dev/null
50248   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50249   exec 5>>config.log
50250   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50251   # would make configure fail if this is the last instruction.
50252   $ac_cs_success || { (exit 1); exit 1; }
50253 fi
50254
50255 #
50256 # CONFIG_SUBDIRS section.
50257 #
50258 if test "$no_recursion" != yes; then
50259
50260   # Remove --cache-file and --srcdir arguments so they do not pile up.
50261   ac_sub_configure_args=
50262   ac_prev=
50263   for ac_arg in $ac_configure_args; do
50264     if test -n "$ac_prev"; then
50265       ac_prev=
50266       continue
50267     fi
50268     case $ac_arg in
50269     -cache-file | --cache-file | --cache-fil | --cache-fi \
50270     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50271       ac_prev=cache_file ;;
50272     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50273     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50274     | --c=*)
50275       ;;
50276     --config-cache | -C)
50277       ;;
50278     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50279       ac_prev=srcdir ;;
50280     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50281       ;;
50282     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50283       ac_prev=prefix ;;
50284     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50285       ;;
50286     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50287     esac
50288   done
50289
50290   # Always prepend --prefix to ensure using the same prefix
50291   # in subdir configurations.
50292   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50293
50294   ac_popdir=`pwd`
50295   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50296
50297     # Do not complain, so a configure script can configure whichever
50298     # parts of a large source tree are present.
50299     test -d $srcdir/$ac_dir || continue
50300
50301     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50302 echo "$as_me: configuring in $ac_dir" >&6;}
50303     { if $as_mkdir_p; then
50304     mkdir -p "$ac_dir"
50305   else
50306     as_dir="$ac_dir"
50307     as_dirs=
50308     while test ! -d "$as_dir"; do
50309       as_dirs="$as_dir $as_dirs"
50310       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50312          X"$as_dir" : 'X\(//\)[^/]' \| \
50313          X"$as_dir" : 'X\(//\)$' \| \
50314          X"$as_dir" : 'X\(/\)' \| \
50315          .     : '\(.\)' 2>/dev/null ||
50316 echo X"$as_dir" |
50317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50319           /^X\(\/\/\)$/{ s//\1/; q; }
50320           /^X\(\/\).*/{ s//\1/; q; }
50321           s/.*/./; q'`
50322     done
50323     test ! -n "$as_dirs" || mkdir $as_dirs
50324   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50326    { (exit 1); exit 1; }; }; }
50327
50328     ac_builddir=.
50329
50330 if test "$ac_dir" != .; then
50331   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50332   # A "../" for each directory in $ac_dir_suffix.
50333   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50334 else
50335   ac_dir_suffix= ac_top_builddir=
50336 fi
50337
50338 case $srcdir in
50339   .)  # No --srcdir option.  We are building in place.
50340     ac_srcdir=.
50341     if test -z "$ac_top_builddir"; then
50342        ac_top_srcdir=.
50343     else
50344        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50345     fi ;;
50346   [\\/]* | ?:[\\/]* )  # Absolute path.
50347     ac_srcdir=$srcdir$ac_dir_suffix;
50348     ac_top_srcdir=$srcdir ;;
50349   *) # Relative path.
50350     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50351     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50352 esac
50353
50354 # Do not use `cd foo && pwd` to compute absolute paths, because
50355 # the directories may not exist.
50356 case `pwd` in
50357 .) ac_abs_builddir="$ac_dir";;
50358 *)
50359   case "$ac_dir" in
50360   .) ac_abs_builddir=`pwd`;;
50361   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50362   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50363   esac;;
50364 esac
50365 case $ac_abs_builddir in
50366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50367 *)
50368   case ${ac_top_builddir}. in
50369   .) ac_abs_top_builddir=$ac_abs_builddir;;
50370   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50371   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50372   esac;;
50373 esac
50374 case $ac_abs_builddir in
50375 .) ac_abs_srcdir=$ac_srcdir;;
50376 *)
50377   case $ac_srcdir in
50378   .) ac_abs_srcdir=$ac_abs_builddir;;
50379   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50380   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50381   esac;;
50382 esac
50383 case $ac_abs_builddir in
50384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50385 *)
50386   case $ac_top_srcdir in
50387   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50388   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50389   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50390   esac;;
50391 esac
50392
50393
50394     cd $ac_dir
50395
50396     # Check for guested configure; otherwise get Cygnus style configure.
50397     if test -f $ac_srcdir/configure.gnu; then
50398       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50399     elif test -f $ac_srcdir/configure; then
50400       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50401     elif test -f $ac_srcdir/configure.in; then
50402       ac_sub_configure=$ac_configure
50403     else
50404       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50405 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50406       ac_sub_configure=
50407     fi
50408
50409     # The recursion is here.
50410     if test -n "$ac_sub_configure"; then
50411       # Make the cache file name correct relative to the subdirectory.
50412       case $cache_file in
50413       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50414       *) # Relative path.
50415         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
50416       esac
50417
50418       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50419 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50420       # The eval makes quoting arguments work.
50421       eval $ac_sub_configure $ac_sub_configure_args \
50422            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50423         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
50424 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50425    { (exit 1); exit 1; }; }
50426     fi
50427
50428     cd "$ac_popdir"
50429   done
50430 fi
50431
50432
50433 echo
50434 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
50435 echo ""
50436 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
50437 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
50438
50439 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
50440 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
50441 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
50442
50443 echo "  What level of wxWidgets compatibility should be enabled?"
50444 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
50445 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
50446
50447 echo "  Which libraries should wxWidgets use?"
50448 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
50449 echo "                                       png                ${wxUSE_LIBPNG-none}"
50450 echo "                                       regex              ${wxUSE_REGEX}"
50451 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
50452 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50453 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
50454 fi
50455 echo "                                       zlib               ${wxUSE_ZLIB}"
50456 echo "                                       odbc               ${wxUSE_ODBC}"
50457 echo "                                       expat              ${wxUSE_EXPAT}"
50458 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
50459 echo "                                       sdl                ${wxUSE_LIBSDL}"
50460 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
50461 echo "                                       gnomevfs           ${wxUSE_LIBGNOMEVFS-none}"
50462 echo "                                       hildon             ${wxUSE_LIBHILDON-none}"
50463
50464 echo ""
50465