add some more files to fix rpmbuild errors (parts of patch 1533296)
[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_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
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-printfposparam use wxVsnprintf() which supports positional parameters
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-aui            use AUI docking library
957   --enable-constraints    use layout-constraints system
958   --enable-printarch      use printing architecture
959   --enable-mdi            use multiple document interface architecture
960   --enable-mdidoc         use docview architecture with MDI
961   --enable-loggui         use standard GUI logger
962   --enable-logwin         use wxLogWindow
963   --enable-logdialog      use wxLogDialog
964   --enable-webkit         use wxWebKitCtrl (Mac)
965   --enable-richtext       use wxRichTextCtrl
966   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
967   --enable-prologio       not available; see contrib
968   --enable-resources      not available; see contrib
969   --enable-clipboard      use wxClipboard class
970   --enable-dnd            use Drag'n'Drop classes
971   --enable-metafile       use win32 metafiles
972   --enable-controls       use all usual controls
973   --enable-accel          use accelerators
974   --enable-button         use wxButton class
975   --enable-bmpbutton      use wxBitmapButton class
976   --enable-calendar       use wxCalendarCtrl class
977   --enable-caret          use wxCaret class
978   --enable-checkbox       use wxCheckBox class
979   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
980   --enable-choice         use wxChoice class
981   --enable-choicebook     use wxChoicebook class
982   --enable-colourpicker   use wxColourPickerCtrl class
983   --enable-combobox       use wxComboBox class
984   --enable-comboctrl      use wxComboCtrl class
985   --enable-datepick       use wxDatePickerCtrl class
986   --enable-dirpicker      use wxDirPickerCtrl class
987   --enable-display        use wxDisplay class
988   --enable-filepicker     use wxFilePickerCtrl class
989   --enable-fontpicker     use wxFontPickerCtrl class
990   --enable-gauge          use wxGauge class
991   --enable-grid           use wxGrid class
992   --enable-dataviewctrl,  use wxDataViewCtrl class
993   --enable-hyperlink      use wxHyperlinkCtrl class
994   --enable-imaglist       use wxImageList class
995   --enable-listbook       use wxListbook class
996   --enable-listbox        use wxListBox class
997   --enable-listctrl       use wxListCtrl class
998   --enable-notebook       use wxNotebook class
999   --enable-odcombobox     use wxOwnerDrawnComboBox class
1000   --enable-radiobox       use wxRadioBox class
1001   --enable-radiobtn       use wxRadioButton class
1002   --enable-sash           use wxSashWindow class
1003   --enable-scrollbar      use wxScrollBar class and scrollable windows
1004   --enable-slider         use wxSlider class
1005   --enable-spinbtn        use wxSpinButton class
1006   --enable-spinctrl       use wxSpinCtrl class
1007   --enable-splitter       use wxSplitterWindow class
1008   --enable-statbmp        use wxStaticBitmap class
1009   --enable-statbox        use wxStaticBox class
1010   --enable-statline       use wxStaticLine class
1011   --enable-stattext       use wxStaticText class
1012   --enable-statusbar      use wxStatusBar class
1013   --enable-tabdialog      use wxTabControl class
1014   --enable-textctrl       use wxTextCtrl class
1015   --enable-togglebtn      use wxToggleButton class
1016   --enable-toolbar        use wxToolBar class
1017   --enable-tbarnative     use native wxToolBar class
1018   --enable-tbarsmpl       use wxToolBarSimple class
1019   --enable-treebook       use wxTreebook class
1020   --enable-toolbook       use wxToolbook class
1021   --enable-treectrl       use wxTreeCtrl class
1022   --enable-tipwindow      use wxTipWindow class
1023   --enable-popupwin       use wxPopUpWindow class
1024   --enable-commondlg      use all common dialogs
1025   --enable-choicedlg      use wxChoiceDialog
1026   --enable-coldlg         use wxColourDialog
1027   --enable-filedlg        use wxFileDialog
1028   --enable-finddlg        use wxFindReplaceDialog
1029   --enable-fontdlg        use wxFontDialog
1030   --enable-dirdlg         use wxDirDialog
1031   --enable-msgdlg         use wxMessageDialog
1032   --enable-numberdlg      use wxNumberEntryDialog
1033   --enable-splash         use wxSplashScreen
1034   --enable-textdlg        use wxTextDialog
1035   --enable-tipdlg         use startup tips
1036   --enable-progressdlg    use wxProgressDialog
1037   --enable-wizarddlg      use wxWizard
1038   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1039   --enable-miniframe      use wxMiniFrame class
1040   --enable-tooltips       use wxToolTip class
1041   --enable-splines        use spline drawing code
1042   --enable-mousewheel     use mousewheel
1043   --enable-validators     use wxValidator and derived classes
1044   --enable-busyinfo       use wxBusyInfo
1045   --enable-joystick       use wxJoystick
1046   --enable-metafiles      use wxMetaFile (Win32 only)
1047   --enable-dragimage      use wxDragImage
1048   --enable-accessibility  enable accessibility support
1049   --enable-dccache        cache temporary wxDC objects (Win32 only)
1050   --enable-palette        use wxPalette class
1051   --enable-image          use wxImage class
1052   --enable-gif            use gif images (GIF file format)
1053   --enable-pcx            use pcx images (PCX file format)
1054   --enable-iff            use iff images (IFF file format)
1055   --enable-pnm            use pnm images (PNM file format)
1056   --enable-xpm            use xpm images (XPM file format)
1057   --enable-icocur         use Windows ICO and CUR formats
1058   --enable-official_build official build of wxWidgets (win32 DLL only)
1059   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1060   --disable-largefile     omit support for large files
1061   --disable-gtktest       do not try to compile and run a test GTK+ program
1062   --disable-gtktest       Do not try to compile and run a test GTK program
1063   --disable-sdltest       Do not try to compile and run a test SDL program
1064   --enable-omf            use OMF object format (OS/2)
1065   --disable-dependency-tracking
1066                           don't use dependency tracking even if the compiler
1067                           can
1068   --disable-precomp-headers
1069                           don't use precompiled headers even if compiler can
1070
1071 Optional Packages:
1072   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1073   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1074   --without-subdirs       don't generate makefiles for samples/demos/...
1075   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1076   --with-motif            use Motif/Lesstif
1077   --with-mac              use Mac OS X
1078   --with-cocoa            use Cocoa
1079   --with-wine             use Wine
1080   --with-msw              use MS-Windows
1081   --with-pm               use OS/2 Presentation Manager
1082   --with-mgl              use SciTech MGL
1083   --with-microwin         use MicroWindows
1084   --with-x11              use X11
1085   --with-libpng           use libpng (PNG image format)
1086   --with-libjpeg          use libjpeg (JPEG file format)
1087   --with-libtiff          use libtiff (TIFF file format)
1088   --with-libxpm           use libxpm (XPM file format)
1089   --with-libmspack        use libmspack (CHM help files loading)
1090   --with-sdl              use SDL for audio on Unix
1091   --with-gnomeprint       use GNOME print for printing under GNOME
1092   --with-gnomevfs         use GNOME VFS for associating MIME types
1093   --with-hildon           use Hildon framework for Nokia 770
1094   --with-opengl           use OpenGL (or Mesa)
1095   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1096   --with-regex            enable support for wxRegEx class
1097   --with-zlib             use zlib for LZW compression
1098   --with-odbc             use the IODBC and wxODBC classes
1099   --with-expat            enable XML support using expat parser
1100   --with-flavour=NAME     specify a name to identify this build
1101   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1102   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1103   --with-x                use the X Window System
1104   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1105   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1106   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1107   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1108   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1109
1110 Some influential environment variables:
1111   CC          C compiler command
1112   CFLAGS      C compiler flags
1113   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114               nonstandard directory <lib dir>
1115   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116               headers in a nonstandard directory <include dir>
1117   CPP         C preprocessor
1118   CXX         C++ compiler command
1119   CXXFLAGS    C++ compiler flags
1120   CXXCPP      C++ preprocessor
1121
1122 Use these variables to override the choices made by `configure' or to help
1123 it to find libraries and programs with nonstandard names/locations.
1124
1125 Report bugs to <wx-dev@lists.wxwidgets.org>.
1126 _ACEOF
1127 fi
1128
1129 if test "$ac_init_help" = "recursive"; then
1130   # If there are subdirs, report their specific --help.
1131   ac_popdir=`pwd`
1132   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133     test -d $ac_dir || continue
1134     ac_builddir=.
1135
1136 if test "$ac_dir" != .; then
1137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138   # A "../" for each directory in $ac_dir_suffix.
1139   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140 else
1141   ac_dir_suffix= ac_top_builddir=
1142 fi
1143
1144 case $srcdir in
1145   .)  # No --srcdir option.  We are building in place.
1146     ac_srcdir=.
1147     if test -z "$ac_top_builddir"; then
1148        ac_top_srcdir=.
1149     else
1150        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151     fi ;;
1152   [\\/]* | ?:[\\/]* )  # Absolute path.
1153     ac_srcdir=$srcdir$ac_dir_suffix;
1154     ac_top_srcdir=$srcdir ;;
1155   *) # Relative path.
1156     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158 esac
1159
1160 # Do not use `cd foo && pwd` to compute absolute paths, because
1161 # the directories may not exist.
1162 case `pwd` in
1163 .) ac_abs_builddir="$ac_dir";;
1164 *)
1165   case "$ac_dir" in
1166   .) ac_abs_builddir=`pwd`;;
1167   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169   esac;;
1170 esac
1171 case $ac_abs_builddir in
1172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *)
1174   case ${ac_top_builddir}. in
1175   .) ac_abs_top_builddir=$ac_abs_builddir;;
1176   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178   esac;;
1179 esac
1180 case $ac_abs_builddir in
1181 .) ac_abs_srcdir=$ac_srcdir;;
1182 *)
1183   case $ac_srcdir in
1184   .) ac_abs_srcdir=$ac_abs_builddir;;
1185   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187   esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *)
1192   case $ac_top_srcdir in
1193   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196   esac;;
1197 esac
1198
1199     cd $ac_dir
1200     # Check for guested configure; otherwise get Cygnus style configure.
1201     if test -f $ac_srcdir/configure.gnu; then
1202       echo
1203       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1204     elif test -f $ac_srcdir/configure; then
1205       echo
1206       $SHELL $ac_srcdir/configure  --help=recursive
1207     elif test -f $ac_srcdir/configure.ac ||
1208            test -f $ac_srcdir/configure.in; then
1209       echo
1210       $ac_configure --help
1211     else
1212       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213     fi
1214     cd "$ac_popdir"
1215   done
1216 fi
1217
1218 test -n "$ac_init_help" && exit 0
1219 if $ac_init_version; then
1220   cat <<\_ACEOF
1221 wxWidgets configure 2.7.0
1222 generated by GNU Autoconf 2.59
1223
1224 Copyright (C) 2003 Free Software Foundation, Inc.
1225 This configure script is free software; the Free Software Foundation
1226 gives unlimited permission to copy, distribute and modify it.
1227 _ACEOF
1228   exit 0
1229 fi
1230 exec 5>config.log
1231 cat >&5 <<_ACEOF
1232 This file contains any messages produced by compilers while
1233 running configure, to aid debugging if configure makes a mistake.
1234
1235 It was created by wxWidgets $as_me 2.7.0, which was
1236 generated by GNU Autoconf 2.59.  Invocation command line was
1237
1238   $ $0 $@
1239
1240 _ACEOF
1241 {
1242 cat <<_ASUNAME
1243 ## --------- ##
1244 ## Platform. ##
1245 ## --------- ##
1246
1247 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1248 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1249 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1250 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1251 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1252
1253 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1254 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1255
1256 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1257 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1258 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1259 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1260 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1261 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1262 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1263
1264 _ASUNAME
1265
1266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267 for as_dir in $PATH
1268 do
1269   IFS=$as_save_IFS
1270   test -z "$as_dir" && as_dir=.
1271   echo "PATH: $as_dir"
1272 done
1273
1274 } >&5
1275
1276 cat >&5 <<_ACEOF
1277
1278
1279 ## ----------- ##
1280 ## Core tests. ##
1281 ## ----------- ##
1282
1283 _ACEOF
1284
1285
1286 # Keep a trace of the command line.
1287 # Strip out --no-create and --no-recursion so they do not pile up.
1288 # Strip out --silent because we don't want to record it for future runs.
1289 # Also quote any args containing shell meta-characters.
1290 # Make two passes to allow for proper duplicate-argument suppression.
1291 ac_configure_args=
1292 ac_configure_args0=
1293 ac_configure_args1=
1294 ac_sep=
1295 ac_must_keep_next=false
1296 for ac_pass in 1 2
1297 do
1298   for ac_arg
1299   do
1300     case $ac_arg in
1301     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1302     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303     | -silent | --silent | --silen | --sile | --sil)
1304       continue ;;
1305     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307     esac
1308     case $ac_pass in
1309     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1310     2)
1311       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1312       if test $ac_must_keep_next = true; then
1313         ac_must_keep_next=false # Got value, back to normal.
1314       else
1315         case $ac_arg in
1316           *=* | --config-cache | -C | -disable-* | --disable-* \
1317           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1318           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1319           | -with-* | --with-* | -without-* | --without-* | --x)
1320             case "$ac_configure_args0 " in
1321               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322             esac
1323             ;;
1324           -* ) ac_must_keep_next=true ;;
1325         esac
1326       fi
1327       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1328       # Get rid of the leading space.
1329       ac_sep=" "
1330       ;;
1331     esac
1332   done
1333 done
1334 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1335 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1336
1337 # When interrupted or exit'd, cleanup temporary files, and complete
1338 # config.log.  We remove comments because anyway the quotes in there
1339 # would cause problems or look ugly.
1340 # WARNING: Be sure not to use single quotes in there, as some shells,
1341 # such as our DU 5.0 friend, will then `close' the trap.
1342 trap 'exit_status=$?
1343   # Save into config.log some information that might help in debugging.
1344   {
1345     echo
1346
1347     cat <<\_ASBOX
1348 ## ---------------- ##
1349 ## Cache variables. ##
1350 ## ---------------- ##
1351 _ASBOX
1352     echo
1353     # The following way of writing the cache mishandles newlines in values,
1354 {
1355   (set) 2>&1 |
1356     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357     *ac_space=\ *)
1358       sed -n \
1359         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1361       ;;
1362     *)
1363       sed -n \
1364         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1365       ;;
1366     esac;
1367 }
1368     echo
1369
1370     cat <<\_ASBOX
1371 ## ----------------- ##
1372 ## Output variables. ##
1373 ## ----------------- ##
1374 _ASBOX
1375     echo
1376     for ac_var in $ac_subst_vars
1377     do
1378       eval ac_val=$`echo $ac_var`
1379       echo "$ac_var='"'"'$ac_val'"'"'"
1380     done | sort
1381     echo
1382
1383     if test -n "$ac_subst_files"; then
1384       cat <<\_ASBOX
1385 ## ------------- ##
1386 ## Output files. ##
1387 ## ------------- ##
1388 _ASBOX
1389       echo
1390       for ac_var in $ac_subst_files
1391       do
1392         eval ac_val=$`echo $ac_var`
1393         echo "$ac_var='"'"'$ac_val'"'"'"
1394       done | sort
1395       echo
1396     fi
1397
1398     if test -s confdefs.h; then
1399       cat <<\_ASBOX
1400 ## ----------- ##
1401 ## confdefs.h. ##
1402 ## ----------- ##
1403 _ASBOX
1404       echo
1405       sed "/^$/d" confdefs.h | sort
1406       echo
1407     fi
1408     test "$ac_signal" != 0 &&
1409       echo "$as_me: caught signal $ac_signal"
1410     echo "$as_me: exit $exit_status"
1411   } >&5
1412   rm -f core *.core &&
1413   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414     exit $exit_status
1415      ' 0
1416 for ac_signal in 1 2 13 15; do
1417   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1418 done
1419 ac_signal=0
1420
1421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1422 rm -rf conftest* confdefs.h
1423 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424 echo >confdefs.h
1425
1426 # Predefined preprocessor variables.
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_NAME "$PACKAGE_NAME"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1435 _ACEOF
1436
1437
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1440 _ACEOF
1441
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_STRING "$PACKAGE_STRING"
1445 _ACEOF
1446
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1450 _ACEOF
1451
1452
1453 # Let the site file select an alternate cache file if it wants to.
1454 # Prefer explicitly selected file to automatically selected ones.
1455 if test -z "$CONFIG_SITE"; then
1456   if test "x$prefix" != xNONE; then
1457     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1458   else
1459     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460   fi
1461 fi
1462 for ac_site_file in $CONFIG_SITE; do
1463   if test -r "$ac_site_file"; then
1464     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1465 echo "$as_me: loading site script $ac_site_file" >&6;}
1466     sed 's/^/| /' "$ac_site_file" >&5
1467     . "$ac_site_file"
1468   fi
1469 done
1470
1471 if test -r "$cache_file"; then
1472   # Some versions of bash will fail to source /dev/null (special
1473   # files actually), so we avoid doing that.
1474   if test -f "$cache_file"; then
1475     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1476 echo "$as_me: loading cache $cache_file" >&6;}
1477     case $cache_file in
1478       [\\/]* | ?:[\\/]* ) . $cache_file;;
1479       *)                      . ./$cache_file;;
1480     esac
1481   fi
1482 else
1483   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1484 echo "$as_me: creating cache $cache_file" >&6;}
1485   >$cache_file
1486 fi
1487
1488 # Check that the precious variables saved in the cache have kept the same
1489 # value.
1490 ac_cache_corrupted=false
1491 for ac_var in `(set) 2>&1 |
1492                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494   eval ac_new_set=\$ac_env_${ac_var}_set
1495   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496   eval ac_new_val="\$ac_env_${ac_var}_value"
1497   case $ac_old_set,$ac_new_set in
1498     set,)
1499       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501       ac_cache_corrupted=: ;;
1502     ,set)
1503       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505       ac_cache_corrupted=: ;;
1506     ,);;
1507     *)
1508       if test "x$ac_old_val" != "x$ac_new_val"; then
1509         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1512 echo "$as_me:   former value:  $ac_old_val" >&2;}
1513         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1514 echo "$as_me:   current value: $ac_new_val" >&2;}
1515         ac_cache_corrupted=:
1516       fi;;
1517   esac
1518   # Pass precious variables to config.status.
1519   if test "$ac_new_set" = set; then
1520     case $ac_new_val in
1521     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523     *) ac_arg=$ac_var=$ac_new_val ;;
1524     esac
1525     case " $ac_configure_args " in
1526       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1527       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528     esac
1529   fi
1530 done
1531 if $ac_cache_corrupted; then
1532   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538
1539 ac_ext=c
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1574 ac_aux_dir=
1575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576   if test -f $ac_dir/install-sh; then
1577     ac_aux_dir=$ac_dir
1578     ac_install_sh="$ac_aux_dir/install-sh -c"
1579     break
1580   elif test -f $ac_dir/install.sh; then
1581     ac_aux_dir=$ac_dir
1582     ac_install_sh="$ac_aux_dir/install.sh -c"
1583     break
1584   elif test -f $ac_dir/shtool; then
1585     ac_aux_dir=$ac_dir
1586     ac_install_sh="$ac_aux_dir/shtool install -c"
1587     break
1588   fi
1589 done
1590 if test -z "$ac_aux_dir"; then
1591   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599 # Make sure we can run config.sub.
1600 $ac_config_sub sun4 >/dev/null 2>&1 ||
1601   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603    { (exit 1); exit 1; }; }
1604
1605 echo "$as_me:$LINENO: checking build system type" >&5
1606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607 if test "${ac_cv_build+set}" = set; then
1608   echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610   ac_cv_build_alias=$build_alias
1611 test -z "$ac_cv_build_alias" &&
1612   ac_cv_build_alias=`$ac_config_guess`
1613 test -z "$ac_cv_build_alias" &&
1614   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616    { (exit 1); exit 1; }; }
1617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624 echo "${ECHO_T}$ac_cv_build" >&6
1625 build=$ac_cv_build
1626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 echo "$as_me:$LINENO: checking host system type" >&5
1632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633 if test "${ac_cv_host+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   ac_cv_host_alias=$host_alias
1637 test -z "$ac_cv_host_alias" &&
1638   ac_cv_host_alias=$ac_cv_build_alias
1639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642    { (exit 1); exit 1; }; }
1643
1644 fi
1645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646 echo "${ECHO_T}$ac_cv_host" >&6
1647 host=$ac_cv_host
1648 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653 echo "$as_me:$LINENO: checking target system type" >&5
1654 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655 if test "${ac_cv_target+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   ac_cv_target_alias=$target_alias
1659 test "x$ac_cv_target_alias" = "x" &&
1660   ac_cv_target_alias=$ac_cv_host_alias
1661 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664    { (exit 1); exit 1; }; }
1665
1666 fi
1667 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668 echo "${ECHO_T}$ac_cv_target" >&6
1669 target=$ac_cv_target
1670 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675 # The aliases save the names the user supplied, while $host etc.
1676 # will get canonicalized.
1677 test -n "$target_alias" &&
1678   test "$program_prefix$program_suffix$program_transform_name" = \
1679     NONENONEs,x,x, &&
1680   program_prefix=${target_alias}-
1681
1682
1683
1684 wx_major_version_number=2
1685 wx_minor_version_number=7
1686 wx_release_number=0
1687 wx_subrelease_number=0
1688
1689 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1690 WX_VERSION=$WX_RELEASE.$wx_release_number
1691 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1692
1693 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1694
1695
1696
1697
1698 USE_UNIX=1
1699 USE_OS2=0
1700 USE_WIN32=0
1701 USE_DOS=0
1702 USE_BEOS=0
1703 USE_MAC=0
1704
1705 USE_AIX=
1706 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1707 USE_GNU=                            USE_HPUX=
1708 USE_LINUX=
1709 USE_NETBSD=
1710 USE_OPENBSD=
1711 USE_OSF=                            USE_SGI=
1712 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1713 USE_ULTRIX=
1714 USE_UNIXWARE=
1715
1716 USE_ALPHA=
1717
1718 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1719
1720 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1721
1722 DEFAULT_wxUSE_COCOA=0
1723 DEFAULT_wxUSE_GTK=0
1724 DEFAULT_wxUSE_MAC=0
1725 DEFAULT_wxUSE_MGL=0
1726 DEFAULT_wxUSE_MICROWIN=0
1727 DEFAULT_wxUSE_MOTIF=0
1728 DEFAULT_wxUSE_MSW=0
1729 DEFAULT_wxUSE_PM=0
1730 DEFAULT_wxUSE_X11=0
1731
1732 DEFAULT_DEFAULT_wxUSE_COCOA=0
1733 DEFAULT_DEFAULT_wxUSE_GTK=0
1734 DEFAULT_DEFAULT_wxUSE_MAC=0
1735 DEFAULT_DEFAULT_wxUSE_MGL=0
1736 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1738 DEFAULT_DEFAULT_wxUSE_MSW=0
1739 DEFAULT_DEFAULT_wxUSE_PM=0
1740 DEFAULT_DEFAULT_wxUSE_X11=0
1741
1742 PROGRAM_EXT=
1743 SO_SUFFIX=so
1744 SAMPLES_RPATH_FLAG=
1745 SAMPLES_RPATH_POSTLINK=
1746
1747 DEFAULT_STD_FLAG=yes
1748
1749 case "${host}" in
1750   *-hp-hpux* )
1751     USE_HPUX=1
1752     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1754     SO_SUFFIX=sl
1755     cat >>confdefs.h <<\_ACEOF
1756 #define __HPUX__ 1
1757 _ACEOF
1758
1759
1760             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1761   ;;
1762   *-*-linux* )
1763     USE_LINUX=1
1764     cat >>confdefs.h <<\_ACEOF
1765 #define __LINUX__ 1
1766 _ACEOF
1767
1768     TMP=`uname -m`
1769     if test "x$TMP" = "xalpha"; then
1770       USE_ALPHA=1
1771       cat >>confdefs.h <<\_ACEOF
1772 #define __ALPHA__ 1
1773 _ACEOF
1774
1775     fi
1776     DEFAULT_DEFAULT_wxUSE_GTK=1
1777   ;;
1778   *-*-gnu* | *-*-k*bsd*-gnu )
1779     USE_GNU=1
1780     TMP=`uname -m`
1781     if test "x$TMP" = "xalpha"; then
1782       USE_ALPHA=1
1783       cat >>confdefs.h <<\_ACEOF
1784 #define __ALPHA__ 1
1785 _ACEOF
1786
1787     fi
1788     DEFAULT_DEFAULT_wxUSE_GTK=1
1789   ;;
1790   *-*-irix5* | *-*-irix6* )
1791     USE_SGI=1
1792     USE_SVR4=1
1793     cat >>confdefs.h <<\_ACEOF
1794 #define __SGI__ 1
1795 _ACEOF
1796
1797     cat >>confdefs.h <<\_ACEOF
1798 #define __SVR4__ 1
1799 _ACEOF
1800
1801     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802   ;;
1803   *-*-solaris2* )
1804     USE_SUN=1
1805     USE_SOLARIS=1
1806     USE_SVR4=1
1807     cat >>confdefs.h <<\_ACEOF
1808 #define __SUN__ 1
1809 _ACEOF
1810
1811     cat >>confdefs.h <<\_ACEOF
1812 #define __SOLARIS__ 1
1813 _ACEOF
1814
1815     cat >>confdefs.h <<\_ACEOF
1816 #define __SVR4__ 1
1817 _ACEOF
1818
1819     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821   ;;
1822   *-*-sunos4* )
1823     USE_SUN=1
1824     USE_SUNOS=1
1825     USE_BSD=1
1826     cat >>confdefs.h <<\_ACEOF
1827 #define __SUN__ 1
1828 _ACEOF
1829
1830     cat >>confdefs.h <<\_ACEOF
1831 #define __SUNOS__ 1
1832 _ACEOF
1833
1834     cat >>confdefs.h <<\_ACEOF
1835 #define __BSD__ 1
1836 _ACEOF
1837
1838     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839   ;;
1840   *-*-freebsd*)
1841     USE_BSD=1
1842     USE_FREEBSD=1
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __FREEBSD__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __BSD__ 1
1849 _ACEOF
1850
1851     DEFAULT_DEFAULT_wxUSE_GTK=1
1852   ;;
1853   *-*-openbsd*|*-*-mirbsd*)
1854     USE_BSD=1
1855     USE_OPENBSD=1
1856     cat >>confdefs.h <<\_ACEOF
1857 #define __OPENBSD__ 1
1858 _ACEOF
1859
1860     cat >>confdefs.h <<\_ACEOF
1861 #define __BSD__ 1
1862 _ACEOF
1863
1864     DEFAULT_DEFAULT_wxUSE_GTK=1
1865   ;;
1866   *-*-netbsd*)
1867     USE_BSD=1
1868     USE_NETBSD=1
1869     cat >>confdefs.h <<\_ACEOF
1870 #define __NETBSD__ 1
1871 _ACEOF
1872
1873     cat >>confdefs.h <<\_ACEOF
1874 #define __BSD__ 1
1875 _ACEOF
1876
1877     DEFAULT_DEFAULT_wxUSE_GTK=1
1878     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1879
1880             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1881   ;;
1882   *-*-osf* )
1883     USE_ALPHA=1
1884     USE_OSF=1
1885     cat >>confdefs.h <<\_ACEOF
1886 #define __ALPHA__ 1
1887 _ACEOF
1888
1889     cat >>confdefs.h <<\_ACEOF
1890 #define __OSF__ 1
1891 _ACEOF
1892
1893     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1895   ;;
1896   *-*-dgux5* )
1897     USE_ALPHA=1
1898     USE_SVR4=1
1899     cat >>confdefs.h <<\_ACEOF
1900 #define __ALPHA__ 1
1901 _ACEOF
1902
1903     cat >>confdefs.h <<\_ACEOF
1904 #define __SVR4__ 1
1905 _ACEOF
1906
1907     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908   ;;
1909   *-*-sysv5* )
1910     USE_SYSV=1
1911     USE_SVR4=1
1912     cat >>confdefs.h <<\_ACEOF
1913 #define __SYSV__ 1
1914 _ACEOF
1915
1916     cat >>confdefs.h <<\_ACEOF
1917 #define __SVR4__ 1
1918 _ACEOF
1919
1920     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1921   ;;
1922   *-*-aix* )
1923     USE_AIX=1
1924     USE_SYSV=1
1925     USE_SVR4=1
1926                         SO_SUFFIX=a
1927     cat >>confdefs.h <<\_ACEOF
1928 #define __AIX__ 1
1929 _ACEOF
1930
1931     cat >>confdefs.h <<\_ACEOF
1932 #define __SYSV__ 1
1933 _ACEOF
1934
1935     cat >>confdefs.h <<\_ACEOF
1936 #define __SVR4__ 1
1937 _ACEOF
1938
1939     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940   ;;
1941
1942   *-*-*UnixWare*)
1943     USE_SYSV=1
1944     USE_SVR4=1
1945     USE_UNIXWARE=1
1946     cat >>confdefs.h <<\_ACEOF
1947 #define __UNIXWARE__ 1
1948 _ACEOF
1949
1950   ;;
1951
1952   *-*-cygwin* | *-*-mingw32* )
1953                 SO_SUFFIX=dll
1954     PROGRAM_EXT=".exe"
1955     DEFAULT_DEFAULT_wxUSE_MSW=1
1956     DEFAULT_STD_FLAG=no
1957   ;;
1958
1959   *-pc-msdosdjgpp )
1960     USE_UNIX=0
1961     USE_DOS=1
1962     cat >>confdefs.h <<\_ACEOF
1963 #define __DOS__ 1
1964 _ACEOF
1965
1966     PROGRAM_EXT=".exe"
1967     DEFAULT_DEFAULT_wxUSE_MGL=1
1968   ;;
1969
1970   *-pc-os2_emx | *-pc-os2-emx )
1971     cat >>confdefs.h <<\_ACEOF
1972 #define __EMX__ 1
1973 _ACEOF
1974
1975     USE_OS2=1
1976     cat >>confdefs.h <<\_ACEOF
1977 #define __OS2__ 1
1978 _ACEOF
1979
1980     PROGRAM_EXT=".exe"
1981     DEFAULT_DEFAULT_wxUSE_PM=1
1982         CXX=gcc
1983     LDFLAGS="$LDFLAGS -Zcrtdll"
1984                         ac_executable_extensions=".exe"
1985     export ac_executable_extensions
1986             ac_save_IFS="$IFS"
1987     IFS='\\'
1988     ac_TEMP_PATH=
1989     for ac_dir in $PATH; do
1990       IFS=$ac_save_IFS
1991       if test -z "$ac_TEMP_PATH"; then
1992         ac_TEMP_PATH="$ac_dir"
1993       else
1994         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1995       fi
1996     done
1997     export PATH="$ac_TEMP_PATH"
1998     unset ac_TEMP_PATH
1999     DEFAULT_STD_FLAG=no
2000   ;;
2001
2002   *-*-darwin* )
2003         USE_BSD=1
2004     USE_DARWIN=1
2005     SO_SUFFIX=dylib
2006     cat >>confdefs.h <<\_ACEOF
2007 #define __BSD__ 1
2008 _ACEOF
2009
2010     cat >>confdefs.h <<\_ACEOF
2011 #define __DARWIN__ 1
2012 _ACEOF
2013
2014     cat >>confdefs.h <<\_ACEOF
2015 #define TARGET_CARBON 1
2016 _ACEOF
2017
2018     DEFAULT_DEFAULT_wxUSE_MAC=1
2019     DEFAULT_STD_FLAG=no
2020   ;;
2021   powerpc-apple-macos* )
2022         USE_UNIX=0
2023             ac_cv_c_bigendian=yes
2024     SO_SUFFIX=shlib
2025             DEFAULT_DEFAULT_wxUSE_MAC=1
2026     DEFAULT_STD_FLAG=no
2027   ;;
2028
2029   *-*-beos* )
2030         USE_BEOS=1
2031     cat >>confdefs.h <<\_ACEOF
2032 #define __BEOS__ 1
2033 _ACEOF
2034
2035   ;;
2036
2037   *)
2038     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2039 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2040     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2041 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2042 esac
2043
2044
2045
2046
2047           wx_arg_cache_file="configarg.cache"
2048           echo "loading argument cache $wx_arg_cache_file"
2049           rm -f ${wx_arg_cache_file}.tmp
2050           touch ${wx_arg_cache_file}.tmp
2051           touch ${wx_arg_cache_file}
2052
2053
2054 DEBUG_CONFIGURE=0
2055 if test $DEBUG_CONFIGURE = 1; then
2056   DEFAULT_wxUSE_UNIVERSAL=no
2057   DEFAULT_wxUSE_STL=no
2058
2059   DEFAULT_wxUSE_NANOX=no
2060
2061   DEFAULT_wxUSE_THREADS=yes
2062
2063   DEFAULT_wxUSE_SHARED=yes
2064   DEFAULT_wxUSE_OPTIMISE=no
2065   DEFAULT_wxUSE_PROFILE=no
2066   DEFAULT_wxUSE_NO_DEPS=no
2067   DEFAULT_wxUSE_NO_RTTI=no
2068   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2069   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2070   DEFAULT_wxUSE_RPATH=yes
2071   DEFAULT_wxUSE_PERMISSIVE=no
2072   DEFAULT_wxUSE_DEBUG_FLAG=yes
2073   DEFAULT_wxUSE_DEBUG_INFO=yes
2074   DEFAULT_wxUSE_DEBUG_GDB=yes
2075   DEFAULT_wxUSE_MEM_TRACING=no
2076   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2077   DEFAULT_wxUSE_DMALLOC=no
2078   DEFAULT_wxUSE_APPLE_IEEE=no
2079
2080   DEFAULT_wxUSE_EXCEPTIONS=no
2081   DEFAULT_wxUSE_LOG=yes
2082   DEFAULT_wxUSE_LOGWINDOW=no
2083   DEFAULT_wxUSE_LOGGUI=no
2084   DEFAULT_wxUSE_LOGDIALOG=no
2085
2086   DEFAULT_wxUSE_GUI=yes
2087   DEFAULT_wxUSE_CONTROLS=no
2088
2089   DEFAULT_wxUSE_REGEX=no
2090   DEFAULT_wxUSE_XML=no
2091   DEFAULT_wxUSE_EXPAT=no
2092   DEFAULT_wxUSE_ZLIB=no
2093   DEFAULT_wxUSE_LIBPNG=no
2094   DEFAULT_wxUSE_LIBJPEG=no
2095   DEFAULT_wxUSE_LIBTIFF=no
2096   DEFAULT_wxUSE_LIBXPM=no
2097   DEFAULT_wxUSE_LIBMSPACK=no
2098   DEFAULT_wxUSE_LIBSDL=no
2099   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2100   DEFAULT_wxUSE_LIBGNOMEVFS=no
2101   DEFAULT_wxUSE_LIBHILDON=no
2102   DEFAULT_wxUSE_ODBC=no
2103   DEFAULT_wxUSE_OPENGL=no
2104
2105   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2106   DEFAULT_wxUSE_STACKWALKER=no
2107   DEFAULT_wxUSE_DEBUGREPORT=no
2108   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2109   DEFAULT_wxUSE_STD_IOSTREAM=no
2110   DEFAULT_wxUSE_STD_STRING=no
2111   DEFAULT_wxUSE_CMDLINE_PARSER=no
2112   DEFAULT_wxUSE_DATETIME=no
2113   DEFAULT_wxUSE_TIMER=no
2114   DEFAULT_wxUSE_STOPWATCH=no
2115   DEFAULT_wxUSE_FILE=no
2116   DEFAULT_wxUSE_FFILE=no
2117   DEFAULT_wxUSE_STDPATHS=no
2118   DEFAULT_wxUSE_TEXTBUFFER=no
2119   DEFAULT_wxUSE_TEXTFILE=no
2120   DEFAULT_wxUSE_SOUND=no
2121   DEFAULT_wxUSE_MEDIACTRL=no
2122   DEFAULT_wxUSE_GSTREAMER8=no
2123   DEFAULT_wxUSE_PRINTF_POS_PARAM=no
2124   DEFAULT_wxUSE_INTL=no
2125   DEFAULT_wxUSE_CONFIG=no
2126   DEFAULT_wxUSE_FONTMAP=no
2127   DEFAULT_wxUSE_STREAMS=no
2128   DEFAULT_wxUSE_SOCKETS=no
2129   DEFAULT_wxUSE_OLE=no
2130   DEFAULT_wxUSE_DATAOBJ=no
2131   DEFAULT_wxUSE_DIALUP_MANAGER=no
2132   DEFAULT_wxUSE_JOYSTICK=no
2133   DEFAULT_wxUSE_DYNLIB_CLASS=no
2134   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2135   DEFAULT_wxUSE_LONGLONG=no
2136   DEFAULT_wxUSE_GEOMETRY=no
2137
2138   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2139   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2140   DEFAULT_wxUSE_POSTSCRIPT=no
2141
2142   DEFAULT_wxUSE_CLIPBOARD=no
2143   DEFAULT_wxUSE_TOOLTIPS=no
2144   DEFAULT_wxUSE_DRAG_AND_DROP=no
2145   DEFAULT_wxUSE_DRAGIMAGE=no
2146   DEFAULT_wxUSE_SPLINES=no
2147   DEFAULT_wxUSE_MOUSEWHEEL=no
2148
2149   DEFAULT_wxUSE_MDI=no
2150   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2151   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2152   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2153
2154   DEFAULT_wxUSE_RESOURCES=no
2155   DEFAULT_wxUSE_CONSTRAINTS=no
2156   DEFAULT_wxUSE_IPC=no
2157   DEFAULT_wxUSE_HELP=no
2158   DEFAULT_wxUSE_MS_HTML_HELP=no
2159   DEFAULT_wxUSE_WXHTML_HELP=no
2160   DEFAULT_wxUSE_TREELAYOUT=no
2161   DEFAULT_wxUSE_METAFILE=no
2162   DEFAULT_wxUSE_MIMETYPE=no
2163   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2164   DEFAULT_wxUSE_PROTOCOL=no
2165   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2166   DEFAULT_wxUSE_PROTOCOL_FTP=no
2167   DEFAULT_wxUSE_PROTOCOL_FILE=no
2168   DEFAULT_wxUSE_URL=no
2169
2170   DEFAULT_wxUSE_COMMONDLGS=no
2171   DEFAULT_wxUSE_CHOICEDLG=no
2172   DEFAULT_wxUSE_COLOURDLG=no
2173   DEFAULT_wxUSE_DIRDLG=no
2174   DEFAULT_wxUSE_FILEDLG=no
2175   DEFAULT_wxUSE_FINDREPLDLG=no
2176   DEFAULT_wxUSE_FONTDLG=no
2177   DEFAULT_wxUSE_MSGDLG=no
2178   DEFAULT_wxUSE_NUMBERDLG=no
2179   DEFAULT_wxUSE_TEXTDLG=no
2180   DEFAULT_wxUSE_SPLASH=no
2181   DEFAULT_wxUSE_STARTUP_TIPS=no
2182   DEFAULT_wxUSE_PROGRESSDLG=no
2183   DEFAULT_wxUSE_WIZARDDLG=no
2184
2185   DEFAULT_wxUSE_MENUS=no
2186   DEFAULT_wxUSE_MINIFRAME=no
2187   DEFAULT_wxUSE_HTML=no
2188   DEFAULT_wxUSE_RICHTEXT=no
2189   DEFAULT_wxUSE_XRC=no
2190   DEFAULT_wxUSE_AUI=no
2191   DEFAULT_wxUSE_WEBKIT=no
2192   DEFAULT_wxUSE_FILESYSTEM=no
2193   DEFAULT_wxUSE_FS_INET=no
2194   DEFAULT_wxUSE_FS_ZIP=no
2195   DEFAULT_wxUSE_BUSYINFO=no
2196   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2197   DEFAULT_wxUSE_ZIPSTREAM=no
2198   DEFAULT_wxUSE_VALIDATORS=no
2199
2200   DEFAULT_wxUSE_ACCEL=no
2201   DEFAULT_wxUSE_BUTTON=no
2202   DEFAULT_wxUSE_BMPBUTTON=no
2203   DEFAULT_wxUSE_CALCTRL=no
2204   DEFAULT_wxUSE_CARET=no
2205   DEFAULT_wxUSE_CHECKBOX=no
2206   DEFAULT_wxUSE_CHECKLST=no
2207   DEFAULT_wxUSE_CHOICE=no
2208   DEFAULT_wxUSE_CHOICEBOOK=no
2209   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2210   DEFAULT_wxUSE_COMBOBOX=no
2211   DEFAULT_wxUSE_COMBOCTRL=no
2212   DEFAULT_wxUSE_DATEPICKCTRL=no
2213   DEFAULT_wxUSE_DISPLAY=no
2214   DEFAULT_wxUSE_DIRPICKERCTRL=no
2215   DEFAULT_wxUSE_FILEPICKERCTRL=no
2216   DEFAULT_wxUSE_FONTPICKERCTRL=no
2217   DEFAULT_wxUSE_GAUGE=no
2218   DEFAULT_wxUSE_GRID=no
2219   DEFAULT_wxUSE_HYPERLINKCTRL=no
2220   DEFAULT_wxUSE_DATAVIEWCTRL=no
2221   DEFAULT_wxUSE_IMAGLIST=no
2222   DEFAULT_wxUSE_LISTBOOK=no
2223   DEFAULT_wxUSE_LISTBOX=no
2224   DEFAULT_wxUSE_LISTCTRL=no
2225   DEFAULT_wxUSE_NOTEBOOK=no
2226   DEFAULT_wxUSE_ODCOMBOBOX=no
2227   DEFAULT_wxUSE_RADIOBOX=no
2228   DEFAULT_wxUSE_RADIOBTN=no
2229   DEFAULT_wxUSE_SASH=no
2230   DEFAULT_wxUSE_SCROLLBAR=no
2231   DEFAULT_wxUSE_SLIDER=no
2232   DEFAULT_wxUSE_SPINBTN=no
2233   DEFAULT_wxUSE_SPINCTRL=no
2234   DEFAULT_wxUSE_SPLITTER=no
2235   DEFAULT_wxUSE_STATBMP=no
2236   DEFAULT_wxUSE_STATBOX=no
2237   DEFAULT_wxUSE_STATLINE=no
2238   DEFAULT_wxUSE_STATTEXT=no
2239   DEFAULT_wxUSE_STATUSBAR=yes
2240   DEFAULT_wxUSE_TAB_DIALOG=no
2241   DEFAULT_wxUSE_TEXTCTRL=no
2242   DEFAULT_wxUSE_TOGGLEBTN=no
2243   DEFAULT_wxUSE_TOOLBAR=no
2244   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2245   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2246   DEFAULT_wxUSE_TREEBOOK=no
2247   DEFAULT_wxUSE_TOOLBOOK=no
2248   DEFAULT_wxUSE_TREECTRL=no
2249   DEFAULT_wxUSE_POPUPWIN=no
2250   DEFAULT_wxUSE_TIPWINDOW=no
2251
2252   DEFAULT_wxUSE_UNICODE=no
2253   DEFAULT_wxUSE_UNICODE_MSLU=no
2254   DEFAULT_wxUSE_WCSRTOMBS=no
2255
2256   DEFAULT_wxUSE_PALETTE=no
2257   DEFAULT_wxUSE_IMAGE=no
2258   DEFAULT_wxUSE_GIF=no
2259   DEFAULT_wxUSE_PCX=no
2260   DEFAULT_wxUSE_PNM=no
2261   DEFAULT_wxUSE_IFF=no
2262   DEFAULT_wxUSE_XPM=no
2263   DEFAULT_wxUSE_ICO_CUR=no
2264   DEFAULT_wxUSE_ACCESSIBILITY=no
2265
2266   DEFAULT_wxUSE_MONOLITHIC=no
2267   DEFAULT_wxUSE_PLUGINS=no
2268   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2269 else
2270   DEFAULT_wxUSE_UNIVERSAL=no
2271   DEFAULT_wxUSE_STL=no
2272
2273   DEFAULT_wxUSE_NANOX=no
2274
2275   DEFAULT_wxUSE_THREADS=yes
2276
2277   DEFAULT_wxUSE_SHARED=yes
2278   DEFAULT_wxUSE_OPTIMISE=yes
2279   DEFAULT_wxUSE_PROFILE=no
2280   DEFAULT_wxUSE_NO_DEPS=no
2281   DEFAULT_wxUSE_NO_RTTI=no
2282   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2283   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2284   DEFAULT_wxUSE_RPATH=yes
2285   DEFAULT_wxUSE_PERMISSIVE=no
2286   DEFAULT_wxUSE_DEBUG_FLAG=no
2287   DEFAULT_wxUSE_DEBUG_INFO=no
2288   DEFAULT_wxUSE_DEBUG_GDB=no
2289   DEFAULT_wxUSE_MEM_TRACING=no
2290   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2291   DEFAULT_wxUSE_DMALLOC=no
2292   DEFAULT_wxUSE_APPLE_IEEE=yes
2293
2294   DEFAULT_wxUSE_EXCEPTIONS=yes
2295   DEFAULT_wxUSE_LOG=yes
2296   DEFAULT_wxUSE_LOGWINDOW=yes
2297   DEFAULT_wxUSE_LOGGUI=yes
2298   DEFAULT_wxUSE_LOGDIALOG=yes
2299
2300   DEFAULT_wxUSE_GUI=yes
2301
2302   DEFAULT_wxUSE_REGEX=yes
2303   DEFAULT_wxUSE_XML=yes
2304   DEFAULT_wxUSE_EXPAT=yes
2305   DEFAULT_wxUSE_ZLIB=yes
2306   DEFAULT_wxUSE_LIBPNG=yes
2307   DEFAULT_wxUSE_LIBJPEG=yes
2308   DEFAULT_wxUSE_LIBTIFF=yes
2309   DEFAULT_wxUSE_LIBXPM=yes
2310   DEFAULT_wxUSE_LIBMSPACK=yes
2311   DEFAULT_wxUSE_LIBSDL=no
2312   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2313   DEFAULT_wxUSE_LIBGNOMEVFS=no
2314   DEFAULT_wxUSE_LIBHILDON=no
2315   DEFAULT_wxUSE_ODBC=no
2316   DEFAULT_wxUSE_OPENGL=no
2317
2318   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2319   DEFAULT_wxUSE_STACKWALKER=yes
2320   DEFAULT_wxUSE_DEBUGREPORT=yes
2321   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2322   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2323   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2324   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2325   DEFAULT_wxUSE_DATETIME=yes
2326   DEFAULT_wxUSE_TIMER=yes
2327   DEFAULT_wxUSE_STOPWATCH=yes
2328   DEFAULT_wxUSE_FILE=yes
2329   DEFAULT_wxUSE_FFILE=yes
2330   DEFAULT_wxUSE_STDPATHS=yes
2331   DEFAULT_wxUSE_TEXTBUFFER=yes
2332   DEFAULT_wxUSE_TEXTFILE=yes
2333   DEFAULT_wxUSE_SOUND=yes
2334   DEFAULT_wxUSE_MEDIACTRL=no
2335   DEFAULT_wxUSE_GSTREAMER8=no
2336   DEFAULT_wxUSE_PRINTF_POS_PARAM=yes
2337   DEFAULT_wxUSE_INTL=yes
2338   DEFAULT_wxUSE_CONFIG=yes
2339   DEFAULT_wxUSE_FONTMAP=yes
2340   DEFAULT_wxUSE_STREAMS=yes
2341   DEFAULT_wxUSE_SOCKETS=yes
2342   DEFAULT_wxUSE_OLE=yes
2343   DEFAULT_wxUSE_DATAOBJ=yes
2344   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2345   DEFAULT_wxUSE_JOYSTICK=yes
2346   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2347   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2348   DEFAULT_wxUSE_LONGLONG=yes
2349   DEFAULT_wxUSE_GEOMETRY=yes
2350
2351   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2352   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2353   DEFAULT_wxUSE_POSTSCRIPT=yes
2354
2355   DEFAULT_wxUSE_CLIPBOARD=yes
2356   DEFAULT_wxUSE_TOOLTIPS=yes
2357   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2358   DEFAULT_wxUSE_DRAGIMAGE=yes
2359   DEFAULT_wxUSE_SPLINES=yes
2360   DEFAULT_wxUSE_MOUSEWHEEL=yes
2361
2362   DEFAULT_wxUSE_MDI=yes
2363   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2364   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2365   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2366
2367   DEFAULT_wxUSE_RESOURCES=no
2368   DEFAULT_wxUSE_CONSTRAINTS=yes
2369   DEFAULT_wxUSE_IPC=yes
2370   DEFAULT_wxUSE_HELP=yes
2371   DEFAULT_wxUSE_MS_HTML_HELP=yes
2372   DEFAULT_wxUSE_WXHTML_HELP=yes
2373   DEFAULT_wxUSE_TREELAYOUT=yes
2374   DEFAULT_wxUSE_METAFILE=yes
2375   DEFAULT_wxUSE_MIMETYPE=yes
2376   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2377   DEFAULT_wxUSE_PROTOCOL=yes
2378   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2379   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2380   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2381   DEFAULT_wxUSE_URL=yes
2382
2383   DEFAULT_wxUSE_COMMONDLGS=yes
2384   DEFAULT_wxUSE_CHOICEDLG=yes
2385   DEFAULT_wxUSE_COLOURDLG=yes
2386   DEFAULT_wxUSE_DIRDLG=yes
2387   DEFAULT_wxUSE_FILEDLG=yes
2388   DEFAULT_wxUSE_FINDREPLDLG=yes
2389   DEFAULT_wxUSE_FONTDLG=yes
2390   DEFAULT_wxUSE_MSGDLG=yes
2391   DEFAULT_wxUSE_NUMBERDLG=yes
2392   DEFAULT_wxUSE_TEXTDLG=yes
2393   DEFAULT_wxUSE_SPLASH=yes
2394   DEFAULT_wxUSE_STARTUP_TIPS=yes
2395   DEFAULT_wxUSE_PROGRESSDLG=yes
2396   DEFAULT_wxUSE_WIZARDDLG=yes
2397
2398   DEFAULT_wxUSE_MENUS=yes
2399   DEFAULT_wxUSE_MINIFRAME=yes
2400   DEFAULT_wxUSE_HTML=yes
2401   DEFAULT_wxUSE_RICHTEXT=yes
2402   DEFAULT_wxUSE_XRC=yes
2403   DEFAULT_wxUSE_AUI=yes
2404   DEFAULT_wxUSE_WEBKIT=yes
2405   DEFAULT_wxUSE_FILESYSTEM=yes
2406   DEFAULT_wxUSE_FS_INET=yes
2407   DEFAULT_wxUSE_FS_ZIP=yes
2408   DEFAULT_wxUSE_BUSYINFO=yes
2409   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2410   DEFAULT_wxUSE_ZIPSTREAM=yes
2411   DEFAULT_wxUSE_VALIDATORS=yes
2412
2413   DEFAULT_wxUSE_ACCEL=yes
2414   DEFAULT_wxUSE_BUTTON=yes
2415   DEFAULT_wxUSE_BMPBUTTON=yes
2416   DEFAULT_wxUSE_CALCTRL=yes
2417   DEFAULT_wxUSE_CARET=yes
2418   DEFAULT_wxUSE_CHECKBOX=yes
2419   DEFAULT_wxUSE_CHECKLST=yes
2420   DEFAULT_wxUSE_CHOICE=yes
2421   DEFAULT_wxUSE_CHOICEBOOK=yes
2422   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2423   DEFAULT_wxUSE_COMBOBOX=yes
2424   DEFAULT_wxUSE_COMBOCTRL=yes
2425   DEFAULT_wxUSE_DATEPICKCTRL=yes
2426   DEFAULT_wxUSE_DISPLAY=yes
2427   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2428   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2429   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2430   DEFAULT_wxUSE_GAUGE=yes
2431   DEFAULT_wxUSE_GRID=yes
2432   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2433   DEFAULT_wxUSE_DATAVIEWCTRL=no
2434   DEFAULT_wxUSE_IMAGLIST=yes
2435   DEFAULT_wxUSE_LISTBOOK=yes
2436   DEFAULT_wxUSE_LISTBOX=yes
2437   DEFAULT_wxUSE_LISTCTRL=yes
2438   DEFAULT_wxUSE_NOTEBOOK=yes
2439   DEFAULT_wxUSE_ODCOMBOBOX=yes
2440   DEFAULT_wxUSE_RADIOBOX=yes
2441   DEFAULT_wxUSE_RADIOBTN=yes
2442   DEFAULT_wxUSE_SASH=yes
2443   DEFAULT_wxUSE_SCROLLBAR=yes
2444   DEFAULT_wxUSE_SLIDER=yes
2445   DEFAULT_wxUSE_SPINBTN=yes
2446   DEFAULT_wxUSE_SPINCTRL=yes
2447   DEFAULT_wxUSE_SPLITTER=yes
2448   DEFAULT_wxUSE_STATBMP=yes
2449   DEFAULT_wxUSE_STATBOX=yes
2450   DEFAULT_wxUSE_STATLINE=yes
2451   DEFAULT_wxUSE_STATTEXT=yes
2452   DEFAULT_wxUSE_STATUSBAR=yes
2453   DEFAULT_wxUSE_TAB_DIALOG=no
2454   DEFAULT_wxUSE_TEXTCTRL=yes
2455   DEFAULT_wxUSE_TOGGLEBTN=yes
2456   DEFAULT_wxUSE_TOOLBAR=yes
2457   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2458   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2459   DEFAULT_wxUSE_TREEBOOK=yes
2460   DEFAULT_wxUSE_TOOLBOOK=yes
2461   DEFAULT_wxUSE_TREECTRL=yes
2462   DEFAULT_wxUSE_POPUPWIN=yes
2463   DEFAULT_wxUSE_TIPWINDOW=yes
2464
2465   DEFAULT_wxUSE_UNICODE=no
2466   DEFAULT_wxUSE_UNICODE_MSLU=yes
2467   DEFAULT_wxUSE_WCSRTOMBS=no
2468
2469   DEFAULT_wxUSE_PALETTE=yes
2470   DEFAULT_wxUSE_IMAGE=yes
2471   DEFAULT_wxUSE_GIF=yes
2472   DEFAULT_wxUSE_PCX=yes
2473   DEFAULT_wxUSE_IFF=no
2474   DEFAULT_wxUSE_PNM=yes
2475   DEFAULT_wxUSE_XPM=yes
2476   DEFAULT_wxUSE_ICO_CUR=yes
2477   DEFAULT_wxUSE_ACCESSIBILITY=no
2478
2479   DEFAULT_wxUSE_MONOLITHIC=no
2480   DEFAULT_wxUSE_PLUGINS=no
2481   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2482
2483     DEFAULT_wxUSE_GTK2=yes
2484 fi
2485
2486
2487
2488
2489 for toolkit in `echo $ALL_TOOLKITS`; do
2490   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2491   if test "x$LINE" != "x" ; then
2492     has_toolkit_in_cache=1
2493     eval "DEFAULT_$LINE"
2494     eval "CACHE_$toolkit=1"
2495
2496     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2497     if test "x$LINE" != "x" ; then
2498         eval "DEFAULT_$LINE"
2499     fi
2500   fi
2501 done
2502
2503
2504
2505           enablestring=
2506           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2507 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2508           no_cache=0
2509           # Check whether --enable-gui or --disable-gui was given.
2510 if test "${enable_gui+set}" = set; then
2511   enableval="$enable_gui"
2512
2513                           if test "$enableval" = yes; then
2514                             ac_cv_use_gui='wxUSE_GUI=yes'
2515                           else
2516                             ac_cv_use_gui='wxUSE_GUI=no'
2517                           fi
2518
2519 else
2520
2521                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2522                           if test "x$LINE" != x ; then
2523                             eval "DEFAULT_$LINE"
2524                           else
2525                             no_cache=1
2526                           fi
2527
2528                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2529
2530 fi;
2531
2532           eval "$ac_cv_use_gui"
2533           if test "$no_cache" != 1; then
2534             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2535           fi
2536
2537           if test "$wxUSE_GUI" = yes; then
2538             echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6
2540           else
2541             echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543           fi
2544
2545
2546           enablestring=
2547           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2548 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2549           no_cache=0
2550           # Check whether --enable-monolithic or --disable-monolithic was given.
2551 if test "${enable_monolithic+set}" = set; then
2552   enableval="$enable_monolithic"
2553
2554                           if test "$enableval" = yes; then
2555                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2556                           else
2557                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2558                           fi
2559
2560 else
2561
2562                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2563                           if test "x$LINE" != x ; then
2564                             eval "DEFAULT_$LINE"
2565                           else
2566                             no_cache=1
2567                           fi
2568
2569                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2570
2571 fi;
2572
2573           eval "$ac_cv_use_monolithic"
2574           if test "$no_cache" != 1; then
2575             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2576           fi
2577
2578           if test "$wxUSE_MONOLITHIC" = yes; then
2579             echo "$as_me:$LINENO: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2581           else
2582             echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584           fi
2585
2586
2587           enablestring=
2588           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2589 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2590           no_cache=0
2591           # Check whether --enable-plugins or --disable-plugins was given.
2592 if test "${enable_plugins+set}" = set; then
2593   enableval="$enable_plugins"
2594
2595                           if test "$enableval" = yes; then
2596                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2597                           else
2598                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2599                           fi
2600
2601 else
2602
2603                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2604                           if test "x$LINE" != x ; then
2605                             eval "DEFAULT_$LINE"
2606                           else
2607                             no_cache=1
2608                           fi
2609
2610                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2611
2612 fi;
2613
2614           eval "$ac_cv_use_plugins"
2615           if test "$no_cache" != 1; then
2616             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2617           fi
2618
2619           if test "$wxUSE_PLUGINS" = yes; then
2620             echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2622           else
2623             echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6
2625           fi
2626
2627
2628           withstring=without
2629           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2630 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2631           no_cache=0
2632
2633 # Check whether --with-subdirs or --without-subdirs was given.
2634 if test "${with_subdirs+set}" = set; then
2635   withval="$with_subdirs"
2636
2637                         if test "$withval" = yes; then
2638                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2639                         else
2640                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2641                         fi
2642
2643 else
2644
2645                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2646                         if test "x$LINE" != x ; then
2647                           eval "DEFAULT_$LINE"
2648                         else
2649                           no_cache=1
2650                         fi
2651
2652                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2653
2654 fi;
2655
2656           eval "$ac_cv_use_subdirs"
2657           if test "$no_cache" != 1; then
2658             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2659           fi
2660
2661           if test "$wxWITH_SUBDIRS" = yes; then
2662             echo "$as_me:$LINENO: result: yes" >&5
2663 echo "${ECHO_T}yes" >&6
2664           else
2665             echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2667           fi
2668
2669
2670 if test "$wxUSE_GUI" = "yes"; then
2671
2672
2673           enablestring=
2674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2675 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2676           no_cache=0
2677           # Check whether --enable-universal or --disable-universal was given.
2678 if test "${enable_universal+set}" = set; then
2679   enableval="$enable_universal"
2680
2681                           if test "$enableval" = yes; then
2682                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2683                           else
2684                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2685                           fi
2686
2687 else
2688
2689                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2690                           if test "x$LINE" != x ; then
2691                             eval "DEFAULT_$LINE"
2692                           else
2693                             no_cache=1
2694                           fi
2695
2696                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2697
2698 fi;
2699
2700           eval "$ac_cv_use_universal"
2701           if test "$no_cache" != 1; then
2702             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2703           fi
2704
2705           if test "$wxUSE_UNIVERSAL" = yes; then
2706             echo "$as_me:$LINENO: result: yes" >&5
2707 echo "${ECHO_T}yes" >&6
2708           else
2709             echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2711           fi
2712
2713
2714 # Check whether --with-gtk or --without-gtk was given.
2715 if test "${with_gtk+set}" = set; then
2716   withval="$with_gtk"
2717   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2718 fi;
2719
2720 # Check whether --with-motif or --without-motif was given.
2721 if test "${with_motif+set}" = set; then
2722   withval="$with_motif"
2723   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2724 fi;
2725
2726 # Check whether --with-mac or --without-mac was given.
2727 if test "${with_mac+set}" = set; then
2728   withval="$with_mac"
2729   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2730 fi;
2731
2732 # Check whether --with-cocoa or --without-cocoa was given.
2733 if test "${with_cocoa+set}" = set; then
2734   withval="$with_cocoa"
2735   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2736 fi;
2737
2738 # Check whether --with-wine or --without-wine was given.
2739 if test "${with_wine+set}" = set; then
2740   withval="$with_wine"
2741   wxUSE_WINE="$withval" CACHE_WINE=1
2742 fi;
2743
2744 # Check whether --with-msw or --without-msw was given.
2745 if test "${with_msw+set}" = set; then
2746   withval="$with_msw"
2747   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2748 fi;
2749
2750 # Check whether --with-pm or --without-pm was given.
2751 if test "${with_pm+set}" = set; then
2752   withval="$with_pm"
2753   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2754 fi;
2755
2756 # Check whether --with-mgl or --without-mgl was given.
2757 if test "${with_mgl+set}" = set; then
2758   withval="$with_mgl"
2759   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2760 fi;
2761
2762 # Check whether --with-microwin or --without-microwin was given.
2763 if test "${with_microwin+set}" = set; then
2764   withval="$with_microwin"
2765   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2766 fi;
2767
2768 # Check whether --with-x11 or --without-x11 was given.
2769 if test "${with_x11+set}" = set; then
2770   withval="$with_x11"
2771   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2772 fi;
2773
2774           enablestring=
2775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2776 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2777           no_cache=0
2778           # Check whether --enable-nanox or --disable-nanox was given.
2779 if test "${enable_nanox+set}" = set; then
2780   enableval="$enable_nanox"
2781
2782                           if test "$enableval" = yes; then
2783                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2784                           else
2785                             ac_cv_use_nanox='wxUSE_NANOX=no'
2786                           fi
2787
2788 else
2789
2790                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2791                           if test "x$LINE" != x ; then
2792                             eval "DEFAULT_$LINE"
2793                           else
2794                             no_cache=1
2795                           fi
2796
2797                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2798
2799 fi;
2800
2801           eval "$ac_cv_use_nanox"
2802           if test "$no_cache" != 1; then
2803             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2804           fi
2805
2806           if test "$wxUSE_NANOX" = yes; then
2807             echo "$as_me:$LINENO: result: yes" >&5
2808 echo "${ECHO_T}yes" >&6
2809           else
2810             echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812           fi
2813
2814
2815 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2816 if test "${enable_gtk2+set}" = set; then
2817   enableval="$enable_gtk2"
2818   wxUSE_GTK2="$enableval"
2819 fi;
2820
2821           enablestring=
2822           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2823 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2824           no_cache=0
2825           # Check whether --enable-gpe or --disable-gpe was given.
2826 if test "${enable_gpe+set}" = set; then
2827   enableval="$enable_gpe"
2828
2829                           if test "$enableval" = yes; then
2830                             ac_cv_use_gpe='wxUSE_GPE=yes'
2831                           else
2832                             ac_cv_use_gpe='wxUSE_GPE=no'
2833                           fi
2834
2835 else
2836
2837                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2838                           if test "x$LINE" != x ; then
2839                             eval "DEFAULT_$LINE"
2840                           else
2841                             no_cache=1
2842                           fi
2843
2844                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2845
2846 fi;
2847
2848           eval "$ac_cv_use_gpe"
2849           if test "$no_cache" != 1; then
2850             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2851           fi
2852
2853           if test "$wxUSE_GPE" = yes; then
2854             echo "$as_me:$LINENO: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6
2856           else
2857             echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859           fi
2860
2861
2862
2863           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2864 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2865           no_cache=0
2866
2867 # Check whether --with-libpng or --without-libpng was given.
2868 if test "${with_libpng+set}" = set; then
2869   withval="$with_libpng"
2870
2871                         if test "$withval" = yes; then
2872                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2873                         elif test "$withval" = no; then
2874                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2875                         elif test "$withval" = sys; then
2876                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2877                         elif test "$withval" = builtin; then
2878                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2879                         else
2880                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2881 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2882    { (exit 1); exit 1; }; }
2883                         fi
2884
2885 else
2886
2887                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2888                         if test "x$LINE" != x ; then
2889                           eval "DEFAULT_$LINE"
2890                         else
2891                           no_cache=1
2892                         fi
2893
2894                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2895
2896 fi;
2897
2898           eval "$ac_cv_use_libpng"
2899           if test "$no_cache" != 1; then
2900             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2901           fi
2902
2903           if test "$wxUSE_LIBPNG" = yes; then
2904             echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906           elif test "$wxUSE_LIBPNG" = no; then
2907             echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909           elif test "$wxUSE_LIBPNG" = sys; then
2910             echo "$as_me:$LINENO: result: system version" >&5
2911 echo "${ECHO_T}system version" >&6
2912           elif test "$wxUSE_LIBPNG" = builtin; then
2913             echo "$as_me:$LINENO: result: builtin version" >&5
2914 echo "${ECHO_T}builtin version" >&6
2915           else
2916             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2917 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2918    { (exit 1); exit 1; }; }
2919           fi
2920
2921
2922           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2923 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2924           no_cache=0
2925
2926 # Check whether --with-libjpeg or --without-libjpeg was given.
2927 if test "${with_libjpeg+set}" = set; then
2928   withval="$with_libjpeg"
2929
2930                         if test "$withval" = yes; then
2931                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2932                         elif test "$withval" = no; then
2933                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2934                         elif test "$withval" = sys; then
2935                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2936                         elif test "$withval" = builtin; then
2937                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2938                         else
2939                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2940 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2941    { (exit 1); exit 1; }; }
2942                         fi
2943
2944 else
2945
2946                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2947                         if test "x$LINE" != x ; then
2948                           eval "DEFAULT_$LINE"
2949                         else
2950                           no_cache=1
2951                         fi
2952
2953                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2954
2955 fi;
2956
2957           eval "$ac_cv_use_libjpeg"
2958           if test "$no_cache" != 1; then
2959             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2960           fi
2961
2962           if test "$wxUSE_LIBJPEG" = yes; then
2963             echo "$as_me:$LINENO: result: yes" >&5
2964 echo "${ECHO_T}yes" >&6
2965           elif test "$wxUSE_LIBJPEG" = no; then
2966             echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968           elif test "$wxUSE_LIBJPEG" = sys; then
2969             echo "$as_me:$LINENO: result: system version" >&5
2970 echo "${ECHO_T}system version" >&6
2971           elif test "$wxUSE_LIBJPEG" = builtin; then
2972             echo "$as_me:$LINENO: result: builtin version" >&5
2973 echo "${ECHO_T}builtin version" >&6
2974           else
2975             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2976 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2977    { (exit 1); exit 1; }; }
2978           fi
2979
2980
2981           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2982 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2983           no_cache=0
2984
2985 # Check whether --with-libtiff or --without-libtiff was given.
2986 if test "${with_libtiff+set}" = set; then
2987   withval="$with_libtiff"
2988
2989                         if test "$withval" = yes; then
2990                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2991                         elif test "$withval" = no; then
2992                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2993                         elif test "$withval" = sys; then
2994                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2995                         elif test "$withval" = builtin; then
2996                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2997                         else
2998                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2999 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3000    { (exit 1); exit 1; }; }
3001                         fi
3002
3003 else
3004
3005                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3006                         if test "x$LINE" != x ; then
3007                           eval "DEFAULT_$LINE"
3008                         else
3009                           no_cache=1
3010                         fi
3011
3012                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3013
3014 fi;
3015
3016           eval "$ac_cv_use_libtiff"
3017           if test "$no_cache" != 1; then
3018             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3019           fi
3020
3021           if test "$wxUSE_LIBTIFF" = yes; then
3022             echo "$as_me:$LINENO: result: yes" >&5
3023 echo "${ECHO_T}yes" >&6
3024           elif test "$wxUSE_LIBTIFF" = no; then
3025             echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027           elif test "$wxUSE_LIBTIFF" = sys; then
3028             echo "$as_me:$LINENO: result: system version" >&5
3029 echo "${ECHO_T}system version" >&6
3030           elif test "$wxUSE_LIBTIFF" = builtin; then
3031             echo "$as_me:$LINENO: result: builtin version" >&5
3032 echo "${ECHO_T}builtin version" >&6
3033           else
3034             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3035 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3036    { (exit 1); exit 1; }; }
3037           fi
3038
3039
3040           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3041 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3042           no_cache=0
3043
3044 # Check whether --with-libxpm or --without-libxpm was given.
3045 if test "${with_libxpm+set}" = set; then
3046   withval="$with_libxpm"
3047
3048                         if test "$withval" = yes; then
3049                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3050                         elif test "$withval" = no; then
3051                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3052                         elif test "$withval" = sys; then
3053                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3054                         elif test "$withval" = builtin; then
3055                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3056                         else
3057                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3058 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3059    { (exit 1); exit 1; }; }
3060                         fi
3061
3062 else
3063
3064                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3065                         if test "x$LINE" != x ; then
3066                           eval "DEFAULT_$LINE"
3067                         else
3068                           no_cache=1
3069                         fi
3070
3071                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3072
3073 fi;
3074
3075           eval "$ac_cv_use_libxpm"
3076           if test "$no_cache" != 1; then
3077             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3078           fi
3079
3080           if test "$wxUSE_LIBXPM" = yes; then
3081             echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3083           elif test "$wxUSE_LIBXPM" = no; then
3084             echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3086           elif test "$wxUSE_LIBXPM" = sys; then
3087             echo "$as_me:$LINENO: result: system version" >&5
3088 echo "${ECHO_T}system version" >&6
3089           elif test "$wxUSE_LIBXPM" = builtin; then
3090             echo "$as_me:$LINENO: result: builtin version" >&5
3091 echo "${ECHO_T}builtin version" >&6
3092           else
3093             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3094 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3095    { (exit 1); exit 1; }; }
3096           fi
3097
3098
3099           withstring=
3100           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3101 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3102           no_cache=0
3103
3104 # Check whether --with-libmspack or --without-libmspack was given.
3105 if test "${with_libmspack+set}" = set; then
3106   withval="$with_libmspack"
3107
3108                         if test "$withval" = yes; then
3109                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3110                         else
3111                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3112                         fi
3113
3114 else
3115
3116                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3117                         if test "x$LINE" != x ; then
3118                           eval "DEFAULT_$LINE"
3119                         else
3120                           no_cache=1
3121                         fi
3122
3123                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3124
3125 fi;
3126
3127           eval "$ac_cv_use_libmspack"
3128           if test "$no_cache" != 1; then
3129             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3130           fi
3131
3132           if test "$wxUSE_LIBMSPACK" = yes; then
3133             echo "$as_me:$LINENO: result: yes" >&5
3134 echo "${ECHO_T}yes" >&6
3135           else
3136             echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138           fi
3139
3140
3141           withstring=
3142           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3143 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3144           no_cache=0
3145
3146 # Check whether --with-sdl or --without-sdl was given.
3147 if test "${with_sdl+set}" = set; then
3148   withval="$with_sdl"
3149
3150                         if test "$withval" = yes; then
3151                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3152                         else
3153                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3154                         fi
3155
3156 else
3157
3158                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3159                         if test "x$LINE" != x ; then
3160                           eval "DEFAULT_$LINE"
3161                         else
3162                           no_cache=1
3163                         fi
3164
3165                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3166
3167 fi;
3168
3169           eval "$ac_cv_use_sdl"
3170           if test "$no_cache" != 1; then
3171             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3172           fi
3173
3174           if test "$wxUSE_LIBSDL" = yes; then
3175             echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3177           else
3178             echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180           fi
3181
3182
3183           withstring=
3184           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3185 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3186           no_cache=0
3187
3188 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3189 if test "${with_gnomeprint+set}" = set; then
3190   withval="$with_gnomeprint"
3191
3192                         if test "$withval" = yes; then
3193                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3194                         else
3195                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3196                         fi
3197
3198 else
3199
3200                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3201                         if test "x$LINE" != x ; then
3202                           eval "DEFAULT_$LINE"
3203                         else
3204                           no_cache=1
3205                         fi
3206
3207                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3208
3209 fi;
3210
3211           eval "$ac_cv_use_gnomeprint"
3212           if test "$no_cache" != 1; then
3213             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3214           fi
3215
3216           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3217             echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6
3219           else
3220             echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222           fi
3223
3224
3225           withstring=
3226           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3227 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3228           no_cache=0
3229
3230 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3231 if test "${with_gnomevfs+set}" = set; then
3232   withval="$with_gnomevfs"
3233
3234                         if test "$withval" = yes; then
3235                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3236                         else
3237                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3238                         fi
3239
3240 else
3241
3242                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3243                         if test "x$LINE" != x ; then
3244                           eval "DEFAULT_$LINE"
3245                         else
3246                           no_cache=1
3247                         fi
3248
3249                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3250
3251 fi;
3252
3253           eval "$ac_cv_use_gnomevfs"
3254           if test "$no_cache" != 1; then
3255             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3256           fi
3257
3258           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3259             echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261           else
3262             echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3264           fi
3265
3266
3267           withstring=
3268           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3269 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3270           no_cache=0
3271
3272 # Check whether --with-hildon or --without-hildon was given.
3273 if test "${with_hildon+set}" = set; then
3274   withval="$with_hildon"
3275
3276                         if test "$withval" = yes; then
3277                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3278                         else
3279                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3280                         fi
3281
3282 else
3283
3284                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3285                         if test "x$LINE" != x ; then
3286                           eval "DEFAULT_$LINE"
3287                         else
3288                           no_cache=1
3289                         fi
3290
3291                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3292
3293 fi;
3294
3295           eval "$ac_cv_use_hildon"
3296           if test "$no_cache" != 1; then
3297             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3298           fi
3299
3300           if test "$wxUSE_LIBHILDON" = yes; then
3301             echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3303           else
3304             echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306           fi
3307
3308
3309           withstring=
3310           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3311 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3312           no_cache=0
3313
3314 # Check whether --with-opengl or --without-opengl was given.
3315 if test "${with_opengl+set}" = set; then
3316   withval="$with_opengl"
3317
3318                         if test "$withval" = yes; then
3319                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3320                         else
3321                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3322                         fi
3323
3324 else
3325
3326                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3327                         if test "x$LINE" != x ; then
3328                           eval "DEFAULT_$LINE"
3329                         else
3330                           no_cache=1
3331                         fi
3332
3333                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3334
3335 fi;
3336
3337           eval "$ac_cv_use_opengl"
3338           if test "$no_cache" != 1; then
3339             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3340           fi
3341
3342           if test "$wxUSE_OPENGL" = yes; then
3343             echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6
3345           else
3346             echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348           fi
3349
3350
3351 fi
3352
3353
3354           withstring=
3355           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3356 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3357           no_cache=0
3358
3359 # Check whether --with-dmalloc or --without-dmalloc was given.
3360 if test "${with_dmalloc+set}" = set; then
3361   withval="$with_dmalloc"
3362
3363                         if test "$withval" = yes; then
3364                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3365                         else
3366                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3367                         fi
3368
3369 else
3370
3371                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3372                         if test "x$LINE" != x ; then
3373                           eval "DEFAULT_$LINE"
3374                         else
3375                           no_cache=1
3376                         fi
3377
3378                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3379
3380 fi;
3381
3382           eval "$ac_cv_use_dmalloc"
3383           if test "$no_cache" != 1; then
3384             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3385           fi
3386
3387           if test "$wxUSE_DMALLOC" = yes; then
3388             echo "$as_me:$LINENO: result: yes" >&5
3389 echo "${ECHO_T}yes" >&6
3390           else
3391             echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3393           fi
3394
3395
3396           echo "$as_me:$LINENO: checking for --with-regex" >&5
3397 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3398           no_cache=0
3399
3400 # Check whether --with-regex or --without-regex was given.
3401 if test "${with_regex+set}" = set; then
3402   withval="$with_regex"
3403
3404                         if test "$withval" = yes; then
3405                           ac_cv_use_regex='wxUSE_REGEX=yes'
3406                         elif test "$withval" = no; then
3407                           ac_cv_use_regex='wxUSE_REGEX=no'
3408                         elif test "$withval" = sys; then
3409                           ac_cv_use_regex='wxUSE_REGEX=sys'
3410                         elif test "$withval" = builtin; then
3411                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3412                         else
3413                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3414 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3415    { (exit 1); exit 1; }; }
3416                         fi
3417
3418 else
3419
3420                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3421                         if test "x$LINE" != x ; then
3422                           eval "DEFAULT_$LINE"
3423                         else
3424                           no_cache=1
3425                         fi
3426
3427                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3428
3429 fi;
3430
3431           eval "$ac_cv_use_regex"
3432           if test "$no_cache" != 1; then
3433             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3434           fi
3435
3436           if test "$wxUSE_REGEX" = yes; then
3437             echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3439           elif test "$wxUSE_REGEX" = no; then
3440             echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442           elif test "$wxUSE_REGEX" = sys; then
3443             echo "$as_me:$LINENO: result: system version" >&5
3444 echo "${ECHO_T}system version" >&6
3445           elif test "$wxUSE_REGEX" = builtin; then
3446             echo "$as_me:$LINENO: result: builtin version" >&5
3447 echo "${ECHO_T}builtin version" >&6
3448           else
3449             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3450 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3451    { (exit 1); exit 1; }; }
3452           fi
3453
3454
3455           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3456 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3457           no_cache=0
3458
3459 # Check whether --with-zlib or --without-zlib was given.
3460 if test "${with_zlib+set}" = set; then
3461   withval="$with_zlib"
3462
3463                         if test "$withval" = yes; then
3464                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3465                         elif test "$withval" = no; then
3466                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3467                         elif test "$withval" = sys; then
3468                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3469                         elif test "$withval" = builtin; then
3470                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3471                         else
3472                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3473 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3474    { (exit 1); exit 1; }; }
3475                         fi
3476
3477 else
3478
3479                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3480                         if test "x$LINE" != x ; then
3481                           eval "DEFAULT_$LINE"
3482                         else
3483                           no_cache=1
3484                         fi
3485
3486                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3487
3488 fi;
3489
3490           eval "$ac_cv_use_zlib"
3491           if test "$no_cache" != 1; then
3492             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3493           fi
3494
3495           if test "$wxUSE_ZLIB" = yes; then
3496             echo "$as_me:$LINENO: result: yes" >&5
3497 echo "${ECHO_T}yes" >&6
3498           elif test "$wxUSE_ZLIB" = no; then
3499             echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501           elif test "$wxUSE_ZLIB" = sys; then
3502             echo "$as_me:$LINENO: result: system version" >&5
3503 echo "${ECHO_T}system version" >&6
3504           elif test "$wxUSE_ZLIB" = builtin; then
3505             echo "$as_me:$LINENO: result: builtin version" >&5
3506 echo "${ECHO_T}builtin version" >&6
3507           else
3508             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3509 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3510    { (exit 1); exit 1; }; }
3511           fi
3512
3513
3514           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3515 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3516           no_cache=0
3517
3518 # Check whether --with-odbc or --without-odbc was given.
3519 if test "${with_odbc+set}" = set; then
3520   withval="$with_odbc"
3521
3522                         if test "$withval" = yes; then
3523                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3524                         elif test "$withval" = no; then
3525                           ac_cv_use_odbc='wxUSE_ODBC=no'
3526                         elif test "$withval" = sys; then
3527                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3528                         elif test "$withval" = builtin; then
3529                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3530                         else
3531                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3532 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3533    { (exit 1); exit 1; }; }
3534                         fi
3535
3536 else
3537
3538                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3539                         if test "x$LINE" != x ; then
3540                           eval "DEFAULT_$LINE"
3541                         else
3542                           no_cache=1
3543                         fi
3544
3545                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3546
3547 fi;
3548
3549           eval "$ac_cv_use_odbc"
3550           if test "$no_cache" != 1; then
3551             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3552           fi
3553
3554           if test "$wxUSE_ODBC" = yes; then
3555             echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6
3557           elif test "$wxUSE_ODBC" = no; then
3558             echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6
3560           elif test "$wxUSE_ODBC" = sys; then
3561             echo "$as_me:$LINENO: result: system version" >&5
3562 echo "${ECHO_T}system version" >&6
3563           elif test "$wxUSE_ODBC" = builtin; then
3564             echo "$as_me:$LINENO: result: builtin version" >&5
3565 echo "${ECHO_T}builtin version" >&6
3566           else
3567             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3568 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3569    { (exit 1); exit 1; }; }
3570           fi
3571
3572
3573           echo "$as_me:$LINENO: checking for --with-expat" >&5
3574 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3575           no_cache=0
3576
3577 # Check whether --with-expat or --without-expat was given.
3578 if test "${with_expat+set}" = set; then
3579   withval="$with_expat"
3580
3581                         if test "$withval" = yes; then
3582                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3583                         elif test "$withval" = no; then
3584                           ac_cv_use_expat='wxUSE_EXPAT=no'
3585                         elif test "$withval" = sys; then
3586                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3587                         elif test "$withval" = builtin; then
3588                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3589                         else
3590                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3591 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3592    { (exit 1); exit 1; }; }
3593                         fi
3594
3595 else
3596
3597                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3598                         if test "x$LINE" != x ; then
3599                           eval "DEFAULT_$LINE"
3600                         else
3601                           no_cache=1
3602                         fi
3603
3604                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3605
3606 fi;
3607
3608           eval "$ac_cv_use_expat"
3609           if test "$no_cache" != 1; then
3610             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3611           fi
3612
3613           if test "$wxUSE_EXPAT" = yes; then
3614             echo "$as_me:$LINENO: result: yes" >&5
3615 echo "${ECHO_T}yes" >&6
3616           elif test "$wxUSE_EXPAT" = no; then
3617             echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3619           elif test "$wxUSE_EXPAT" = sys; then
3620             echo "$as_me:$LINENO: result: system version" >&5
3621 echo "${ECHO_T}system version" >&6
3622           elif test "$wxUSE_EXPAT" = builtin; then
3623             echo "$as_me:$LINENO: result: builtin version" >&5
3624 echo "${ECHO_T}builtin version" >&6
3625           else
3626             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3627 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3628    { (exit 1); exit 1; }; }
3629           fi
3630
3631
3632
3633
3634           enablestring=
3635           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3636 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3637           no_cache=0
3638           # Check whether --enable-shared or --disable-shared was given.
3639 if test "${enable_shared+set}" = set; then
3640   enableval="$enable_shared"
3641
3642                           if test "$enableval" = yes; then
3643                             ac_cv_use_shared='wxUSE_SHARED=yes'
3644                           else
3645                             ac_cv_use_shared='wxUSE_SHARED=no'
3646                           fi
3647
3648 else
3649
3650                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3651                           if test "x$LINE" != x ; then
3652                             eval "DEFAULT_$LINE"
3653                           else
3654                             no_cache=1
3655                           fi
3656
3657                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3658
3659 fi;
3660
3661           eval "$ac_cv_use_shared"
3662           if test "$no_cache" != 1; then
3663             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3664           fi
3665
3666           if test "$wxUSE_SHARED" = yes; then
3667             echo "$as_me:$LINENO: result: yes" >&5
3668 echo "${ECHO_T}yes" >&6
3669           else
3670             echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3672           fi
3673
3674
3675           enablestring=
3676           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3677 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3678           no_cache=0
3679           # Check whether --enable-optimise or --disable-optimise was given.
3680 if test "${enable_optimise+set}" = set; then
3681   enableval="$enable_optimise"
3682
3683                           if test "$enableval" = yes; then
3684                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3685                           else
3686                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3687                           fi
3688
3689 else
3690
3691                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3692                           if test "x$LINE" != x ; then
3693                             eval "DEFAULT_$LINE"
3694                           else
3695                             no_cache=1
3696                           fi
3697
3698                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3699
3700 fi;
3701
3702           eval "$ac_cv_use_optimise"
3703           if test "$no_cache" != 1; then
3704             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3705           fi
3706
3707           if test "$wxUSE_OPTIMISE" = yes; then
3708             echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6
3710           else
3711             echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3713           fi
3714
3715
3716           enablestring=
3717           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3718 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3719           no_cache=0
3720           # Check whether --enable-debug or --disable-debug was given.
3721 if test "${enable_debug+set}" = set; then
3722   enableval="$enable_debug"
3723
3724                           if test "$enableval" = yes; then
3725                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3726                           else
3727                             ac_cv_use_debug='wxUSE_DEBUG=no'
3728                           fi
3729
3730 else
3731
3732                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3733                           if test "x$LINE" != x ; then
3734                             eval "DEFAULT_$LINE"
3735                           else
3736                             no_cache=1
3737                           fi
3738
3739                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3740
3741 fi;
3742
3743           eval "$ac_cv_use_debug"
3744           if test "$no_cache" != 1; then
3745             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3746           fi
3747
3748           if test "$wxUSE_DEBUG" = yes; then
3749             echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6
3751           else
3752             echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3754           fi
3755
3756
3757           enablestring=
3758           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3759 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3760           no_cache=0
3761           # Check whether --enable-stl or --disable-stl was given.
3762 if test "${enable_stl+set}" = set; then
3763   enableval="$enable_stl"
3764
3765                           if test "$enableval" = yes; then
3766                             ac_cv_use_stl='wxUSE_STL=yes'
3767                           else
3768                             ac_cv_use_stl='wxUSE_STL=no'
3769                           fi
3770
3771 else
3772
3773                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3774                           if test "x$LINE" != x ; then
3775                             eval "DEFAULT_$LINE"
3776                           else
3777                             no_cache=1
3778                           fi
3779
3780                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3781
3782 fi;
3783
3784           eval "$ac_cv_use_stl"
3785           if test "$no_cache" != 1; then
3786             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3787           fi
3788
3789           if test "$wxUSE_STL" = yes; then
3790             echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3792           else
3793             echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795           fi
3796
3797 if test "$USE_OS2" = "1"; then
3798     DEFAULT_wxUSE_OMF=no
3799
3800           enablestring=
3801           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3802 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3803           no_cache=0
3804           # Check whether --enable-omf or --disable-omf was given.
3805 if test "${enable_omf+set}" = set; then
3806   enableval="$enable_omf"
3807
3808                           if test "$enableval" = yes; then
3809                             ac_cv_use_omf='wxUSE_OMF=yes'
3810                           else
3811                             ac_cv_use_omf='wxUSE_OMF=no'
3812                           fi
3813
3814 else
3815
3816                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3817                           if test "x$LINE" != x ; then
3818                             eval "DEFAULT_$LINE"
3819                           else
3820                             no_cache=1
3821                           fi
3822
3823                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3824
3825 fi;
3826
3827           eval "$ac_cv_use_omf"
3828           if test "$no_cache" != 1; then
3829             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3830           fi
3831
3832           if test "$wxUSE_OMF" = yes; then
3833             echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6
3835           else
3836             echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3838           fi
3839
3840 fi
3841
3842 if test "$wxUSE_DEBUG" = "yes"; then
3843   DEFAULT_wxUSE_DEBUG_FLAG=yes
3844   DEFAULT_wxUSE_DEBUG_INFO=yes
3845   BUILD=debug
3846 elif test "$wxUSE_DEBUG" = "no"; then
3847   DEFAULT_wxUSE_DEBUG_FLAG=no
3848   DEFAULT_wxUSE_DEBUG_INFO=no
3849   BUILD=release
3850 fi
3851
3852
3853           enablestring=
3854           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3855 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3856           no_cache=0
3857           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3858 if test "${enable_debug_flag+set}" = set; then
3859   enableval="$enable_debug_flag"
3860
3861                           if test "$enableval" = yes; then
3862                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3863                           else
3864                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3865                           fi
3866
3867 else
3868
3869                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3870                           if test "x$LINE" != x ; then
3871                             eval "DEFAULT_$LINE"
3872                           else
3873                             no_cache=1
3874                           fi
3875
3876                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3877
3878 fi;
3879
3880           eval "$ac_cv_use_debug_flag"
3881           if test "$no_cache" != 1; then
3882             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3883           fi
3884
3885           if test "$wxUSE_DEBUG_FLAG" = yes; then
3886             echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6
3888           else
3889             echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891           fi
3892
3893
3894           enablestring=
3895           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3896 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3897           no_cache=0
3898           # Check whether --enable-debug_info or --disable-debug_info was given.
3899 if test "${enable_debug_info+set}" = set; then
3900   enableval="$enable_debug_info"
3901
3902                           if test "$enableval" = yes; then
3903                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3904                           else
3905                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3906                           fi
3907
3908 else
3909
3910                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3911                           if test "x$LINE" != x ; then
3912                             eval "DEFAULT_$LINE"
3913                           else
3914                             no_cache=1
3915                           fi
3916
3917                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3918
3919 fi;
3920
3921           eval "$ac_cv_use_debug_info"
3922           if test "$no_cache" != 1; then
3923             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3924           fi
3925
3926           if test "$wxUSE_DEBUG_INFO" = yes; then
3927             echo "$as_me:$LINENO: result: yes" >&5
3928 echo "${ECHO_T}yes" >&6
3929           else
3930             echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932           fi
3933
3934
3935           enablestring=
3936           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3937 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3938           no_cache=0
3939           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3940 if test "${enable_debug_gdb+set}" = set; then
3941   enableval="$enable_debug_gdb"
3942
3943                           if test "$enableval" = yes; then
3944                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3945                           else
3946                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3947                           fi
3948
3949 else
3950
3951                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3952                           if test "x$LINE" != x ; then
3953                             eval "DEFAULT_$LINE"
3954                           else
3955                             no_cache=1
3956                           fi
3957
3958                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3959
3960 fi;
3961
3962           eval "$ac_cv_use_debug_gdb"
3963           if test "$no_cache" != 1; then
3964             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3965           fi
3966
3967           if test "$wxUSE_DEBUG_GDB" = yes; then
3968             echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3970           else
3971             echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3973           fi
3974
3975
3976           enablestring=
3977           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3978 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3979           no_cache=0
3980           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3981 if test "${enable_debug_cntxt+set}" = set; then
3982   enableval="$enable_debug_cntxt"
3983
3984                           if test "$enableval" = yes; then
3985                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3986                           else
3987                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3988                           fi
3989
3990 else
3991
3992                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3993                           if test "x$LINE" != x ; then
3994                             eval "DEFAULT_$LINE"
3995                           else
3996                             no_cache=1
3997                           fi
3998
3999                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4000
4001 fi;
4002
4003           eval "$ac_cv_use_debug_cntxt"
4004           if test "$no_cache" != 1; then
4005             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4006           fi
4007
4008           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4009             echo "$as_me:$LINENO: result: yes" >&5
4010 echo "${ECHO_T}yes" >&6
4011           else
4012             echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014           fi
4015
4016
4017           enablestring=
4018           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4019 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4020           no_cache=0
4021           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4022 if test "${enable_mem_tracing+set}" = set; then
4023   enableval="$enable_mem_tracing"
4024
4025                           if test "$enableval" = yes; then
4026                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4027                           else
4028                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4029                           fi
4030
4031 else
4032
4033                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4034                           if test "x$LINE" != x ; then
4035                             eval "DEFAULT_$LINE"
4036                           else
4037                             no_cache=1
4038                           fi
4039
4040                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4041
4042 fi;
4043
4044           eval "$ac_cv_use_mem_tracing"
4045           if test "$no_cache" != 1; then
4046             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4047           fi
4048
4049           if test "$wxUSE_MEM_TRACING" = yes; then
4050             echo "$as_me:$LINENO: result: yes" >&5
4051 echo "${ECHO_T}yes" >&6
4052           else
4053             echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4055           fi
4056
4057
4058           enablestring=
4059           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4060 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4061           no_cache=0
4062           # Check whether --enable-profile or --disable-profile was given.
4063 if test "${enable_profile+set}" = set; then
4064   enableval="$enable_profile"
4065
4066                           if test "$enableval" = yes; then
4067                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4068                           else
4069                             ac_cv_use_profile='wxUSE_PROFILE=no'
4070                           fi
4071
4072 else
4073
4074                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4075                           if test "x$LINE" != x ; then
4076                             eval "DEFAULT_$LINE"
4077                           else
4078                             no_cache=1
4079                           fi
4080
4081                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4082
4083 fi;
4084
4085           eval "$ac_cv_use_profile"
4086           if test "$no_cache" != 1; then
4087             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4088           fi
4089
4090           if test "$wxUSE_PROFILE" = yes; then
4091             echo "$as_me:$LINENO: result: yes" >&5
4092 echo "${ECHO_T}yes" >&6
4093           else
4094             echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4096           fi
4097
4098
4099           enablestring=
4100           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4101 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4102           no_cache=0
4103           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4104 if test "${enable_no_rtti+set}" = set; then
4105   enableval="$enable_no_rtti"
4106
4107                           if test "$enableval" = yes; then
4108                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4109                           else
4110                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4111                           fi
4112
4113 else
4114
4115                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4116                           if test "x$LINE" != x ; then
4117                             eval "DEFAULT_$LINE"
4118                           else
4119                             no_cache=1
4120                           fi
4121
4122                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4123
4124 fi;
4125
4126           eval "$ac_cv_use_no_rtti"
4127           if test "$no_cache" != 1; then
4128             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4129           fi
4130
4131           if test "$wxUSE_NO_RTTI" = yes; then
4132             echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6
4134           else
4135             echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137           fi
4138
4139
4140           enablestring=
4141           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4142 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4143           no_cache=0
4144           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4145 if test "${enable_no_exceptions+set}" = set; then
4146   enableval="$enable_no_exceptions"
4147
4148                           if test "$enableval" = yes; then
4149                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4150                           else
4151                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4152                           fi
4153
4154 else
4155
4156                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4157                           if test "x$LINE" != x ; then
4158                             eval "DEFAULT_$LINE"
4159                           else
4160                             no_cache=1
4161                           fi
4162
4163                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4164
4165 fi;
4166
4167           eval "$ac_cv_use_no_exceptions"
4168           if test "$no_cache" != 1; then
4169             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4170           fi
4171
4172           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4173             echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6
4175           else
4176             echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178           fi
4179
4180
4181           enablestring=
4182           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4183 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4184           no_cache=0
4185           # Check whether --enable-permissive or --disable-permissive was given.
4186 if test "${enable_permissive+set}" = set; then
4187   enableval="$enable_permissive"
4188
4189                           if test "$enableval" = yes; then
4190                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4191                           else
4192                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4193                           fi
4194
4195 else
4196
4197                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4198                           if test "x$LINE" != x ; then
4199                             eval "DEFAULT_$LINE"
4200                           else
4201                             no_cache=1
4202                           fi
4203
4204                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4205
4206 fi;
4207
4208           eval "$ac_cv_use_permissive"
4209           if test "$no_cache" != 1; then
4210             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4211           fi
4212
4213           if test "$wxUSE_PERMISSIVE" = yes; then
4214             echo "$as_me:$LINENO: result: yes" >&5
4215 echo "${ECHO_T}yes" >&6
4216           else
4217             echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4219           fi
4220
4221
4222           enablestring=
4223           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4224 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4225           no_cache=0
4226           # Check whether --enable-no_deps or --disable-no_deps was given.
4227 if test "${enable_no_deps+set}" = set; then
4228   enableval="$enable_no_deps"
4229
4230                           if test "$enableval" = yes; then
4231                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4232                           else
4233                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4234                           fi
4235
4236 else
4237
4238                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4239                           if test "x$LINE" != x ; then
4240                             eval "DEFAULT_$LINE"
4241                           else
4242                             no_cache=1
4243                           fi
4244
4245                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4246
4247 fi;
4248
4249           eval "$ac_cv_use_no_deps"
4250           if test "$no_cache" != 1; then
4251             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4252           fi
4253
4254           if test "$wxUSE_NO_DEPS" = yes; then
4255             echo "$as_me:$LINENO: result: yes" >&5
4256 echo "${ECHO_T}yes" >&6
4257           else
4258             echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4260           fi
4261
4262
4263           enablestring=
4264           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4265 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4266           no_cache=0
4267           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4268 if test "${enable_universal_binary+set}" = set; then
4269   enableval="$enable_universal_binary"
4270
4271                           if test "$enableval" = yes; then
4272                             ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4273                           else
4274                             ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4275                           fi
4276
4277 else
4278
4279                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4280                           if test "x$LINE" != x ; then
4281                             eval "DEFAULT_$LINE"
4282                           else
4283                             no_cache=1
4284                           fi
4285
4286                           ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4287
4288 fi;
4289
4290           eval "$ac_cv_use_universal_binary"
4291           if test "$no_cache" != 1; then
4292             echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4293           fi
4294
4295           if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4296             echo "$as_me:$LINENO: result: yes" >&5
4297 echo "${ECHO_T}yes" >&6
4298           else
4299             echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4301           fi
4302
4303
4304
4305           enablestring=enable
4306           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4307 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4308           no_cache=0
4309           # Check whether --enable-compat24 or --disable-compat24 was given.
4310 if test "${enable_compat24+set}" = set; then
4311   enableval="$enable_compat24"
4312
4313                           if test "$enableval" = yes; then
4314                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4315                           else
4316                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4317                           fi
4318
4319 else
4320
4321                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4322                           if test "x$LINE" != x ; then
4323                             eval "DEFAULT_$LINE"
4324                           else
4325                             no_cache=1
4326                           fi
4327
4328                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4329
4330 fi;
4331
4332           eval "$ac_cv_use_compat24"
4333           if test "$no_cache" != 1; then
4334             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4335           fi
4336
4337           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4338             echo "$as_me:$LINENO: result: yes" >&5
4339 echo "${ECHO_T}yes" >&6
4340           else
4341             echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343           fi
4344
4345
4346           enablestring=disable
4347           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4348 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4349           no_cache=0
4350           # Check whether --enable-compat26 or --disable-compat26 was given.
4351 if test "${enable_compat26+set}" = set; then
4352   enableval="$enable_compat26"
4353
4354                           if test "$enableval" = yes; then
4355                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4356                           else
4357                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4358                           fi
4359
4360 else
4361
4362                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4363                           if test "x$LINE" != x ; then
4364                             eval "DEFAULT_$LINE"
4365                           else
4366                             no_cache=1
4367                           fi
4368
4369                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4370
4371 fi;
4372
4373           eval "$ac_cv_use_compat26"
4374           if test "$no_cache" != 1; then
4375             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4376           fi
4377
4378           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4379             echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6
4381           else
4382             echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4384           fi
4385
4386
4387
4388           enablestring=
4389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4390 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4391           no_cache=0
4392           # Check whether --enable-rpath or --disable-rpath was given.
4393 if test "${enable_rpath+set}" = set; then
4394   enableval="$enable_rpath"
4395
4396                           if test "$enableval" = yes; then
4397                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4398                           else
4399                             ac_cv_use_rpath='wxUSE_RPATH=no'
4400                           fi
4401
4402 else
4403
4404                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4405                           if test "x$LINE" != x ; then
4406                             eval "DEFAULT_$LINE"
4407                           else
4408                             no_cache=1
4409                           fi
4410
4411                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4412
4413 fi;
4414
4415           eval "$ac_cv_use_rpath"
4416           if test "$no_cache" != 1; then
4417             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4418           fi
4419
4420           if test "$wxUSE_RPATH" = yes; then
4421             echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6
4423           else
4424             echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426           fi
4427
4428
4429
4430
4431
4432           enablestring=
4433           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4434 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4435           no_cache=0
4436           # Check whether --enable-intl or --disable-intl was given.
4437 if test "${enable_intl+set}" = set; then
4438   enableval="$enable_intl"
4439
4440                           if test "$enableval" = yes; then
4441                             ac_cv_use_intl='wxUSE_INTL=yes'
4442                           else
4443                             ac_cv_use_intl='wxUSE_INTL=no'
4444                           fi
4445
4446 else
4447
4448                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4449                           if test "x$LINE" != x ; then
4450                             eval "DEFAULT_$LINE"
4451                           else
4452                             no_cache=1
4453                           fi
4454
4455                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4456
4457 fi;
4458
4459           eval "$ac_cv_use_intl"
4460           if test "$no_cache" != 1; then
4461             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4462           fi
4463
4464           if test "$wxUSE_INTL" = yes; then
4465             echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467           else
4468             echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470           fi
4471
4472
4473           enablestring=
4474           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4475 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4476           no_cache=0
4477           # Check whether --enable-config or --disable-config was given.
4478 if test "${enable_config+set}" = set; then
4479   enableval="$enable_config"
4480
4481                           if test "$enableval" = yes; then
4482                             ac_cv_use_config='wxUSE_CONFIG=yes'
4483                           else
4484                             ac_cv_use_config='wxUSE_CONFIG=no'
4485                           fi
4486
4487 else
4488
4489                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4490                           if test "x$LINE" != x ; then
4491                             eval "DEFAULT_$LINE"
4492                           else
4493                             no_cache=1
4494                           fi
4495
4496                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4497
4498 fi;
4499
4500           eval "$ac_cv_use_config"
4501           if test "$no_cache" != 1; then
4502             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4503           fi
4504
4505           if test "$wxUSE_CONFIG" = yes; then
4506             echo "$as_me:$LINENO: result: yes" >&5
4507 echo "${ECHO_T}yes" >&6
4508           else
4509             echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511           fi
4512
4513
4514
4515           enablestring=
4516           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4517 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4518           no_cache=0
4519           # Check whether --enable-protocols or --disable-protocols was given.
4520 if test "${enable_protocols+set}" = set; then
4521   enableval="$enable_protocols"
4522
4523                           if test "$enableval" = yes; then
4524                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4525                           else
4526                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4527                           fi
4528
4529 else
4530
4531                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4532                           if test "x$LINE" != x ; then
4533                             eval "DEFAULT_$LINE"
4534                           else
4535                             no_cache=1
4536                           fi
4537
4538                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4539
4540 fi;
4541
4542           eval "$ac_cv_use_protocols"
4543           if test "$no_cache" != 1; then
4544             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4545           fi
4546
4547           if test "$wxUSE_PROTOCOL" = yes; then
4548             echo "$as_me:$LINENO: result: yes" >&5
4549 echo "${ECHO_T}yes" >&6
4550           else
4551             echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553           fi
4554
4555
4556           enablestring=
4557           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4558 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4559           no_cache=0
4560           # Check whether --enable-ftp or --disable-ftp was given.
4561 if test "${enable_ftp+set}" = set; then
4562   enableval="$enable_ftp"
4563
4564                           if test "$enableval" = yes; then
4565                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4566                           else
4567                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4568                           fi
4569
4570 else
4571
4572                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4573                           if test "x$LINE" != x ; then
4574                             eval "DEFAULT_$LINE"
4575                           else
4576                             no_cache=1
4577                           fi
4578
4579                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4580
4581 fi;
4582
4583           eval "$ac_cv_use_ftp"
4584           if test "$no_cache" != 1; then
4585             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4586           fi
4587
4588           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4589             echo "$as_me:$LINENO: result: yes" >&5
4590 echo "${ECHO_T}yes" >&6
4591           else
4592             echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594           fi
4595
4596
4597           enablestring=
4598           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4599 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4600           no_cache=0
4601           # Check whether --enable-http or --disable-http was given.
4602 if test "${enable_http+set}" = set; then
4603   enableval="$enable_http"
4604
4605                           if test "$enableval" = yes; then
4606                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4607                           else
4608                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4609                           fi
4610
4611 else
4612
4613                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4614                           if test "x$LINE" != x ; then
4615                             eval "DEFAULT_$LINE"
4616                           else
4617                             no_cache=1
4618                           fi
4619
4620                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4621
4622 fi;
4623
4624           eval "$ac_cv_use_http"
4625           if test "$no_cache" != 1; then
4626             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4627           fi
4628
4629           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4630             echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6
4632           else
4633             echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635           fi
4636
4637
4638           enablestring=
4639           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4640 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4641           no_cache=0
4642           # Check whether --enable-fileproto or --disable-fileproto was given.
4643 if test "${enable_fileproto+set}" = set; then
4644   enableval="$enable_fileproto"
4645
4646                           if test "$enableval" = yes; then
4647                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4648                           else
4649                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4650                           fi
4651
4652 else
4653
4654                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4655                           if test "x$LINE" != x ; then
4656                             eval "DEFAULT_$LINE"
4657                           else
4658                             no_cache=1
4659                           fi
4660
4661                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4662
4663 fi;
4664
4665           eval "$ac_cv_use_fileproto"
4666           if test "$no_cache" != 1; then
4667             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4668           fi
4669
4670           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4671             echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6
4673           else
4674             echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676           fi
4677
4678
4679           enablestring=
4680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4681 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4682           no_cache=0
4683           # Check whether --enable-sockets or --disable-sockets was given.
4684 if test "${enable_sockets+set}" = set; then
4685   enableval="$enable_sockets"
4686
4687                           if test "$enableval" = yes; then
4688                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4689                           else
4690                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4691                           fi
4692
4693 else
4694
4695                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4696                           if test "x$LINE" != x ; then
4697                             eval "DEFAULT_$LINE"
4698                           else
4699                             no_cache=1
4700                           fi
4701
4702                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4703
4704 fi;
4705
4706           eval "$ac_cv_use_sockets"
4707           if test "$no_cache" != 1; then
4708             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4709           fi
4710
4711           if test "$wxUSE_SOCKETS" = yes; then
4712             echo "$as_me:$LINENO: result: yes" >&5
4713 echo "${ECHO_T}yes" >&6
4714           else
4715             echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4717           fi
4718
4719
4720           enablestring=
4721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4722 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4723           no_cache=0
4724           # Check whether --enable-ole or --disable-ole was given.
4725 if test "${enable_ole+set}" = set; then
4726   enableval="$enable_ole"
4727
4728                           if test "$enableval" = yes; then
4729                             ac_cv_use_ole='wxUSE_OLE=yes'
4730                           else
4731                             ac_cv_use_ole='wxUSE_OLE=no'
4732                           fi
4733
4734 else
4735
4736                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4737                           if test "x$LINE" != x ; then
4738                             eval "DEFAULT_$LINE"
4739                           else
4740                             no_cache=1
4741                           fi
4742
4743                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4744
4745 fi;
4746
4747           eval "$ac_cv_use_ole"
4748           if test "$no_cache" != 1; then
4749             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4750           fi
4751
4752           if test "$wxUSE_OLE" = yes; then
4753             echo "$as_me:$LINENO: result: yes" >&5
4754 echo "${ECHO_T}yes" >&6
4755           else
4756             echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4758           fi
4759
4760
4761           enablestring=
4762           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4763 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4764           no_cache=0
4765           # Check whether --enable-dataobj or --disable-dataobj was given.
4766 if test "${enable_dataobj+set}" = set; then
4767   enableval="$enable_dataobj"
4768
4769                           if test "$enableval" = yes; then
4770                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4771                           else
4772                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4773                           fi
4774
4775 else
4776
4777                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4778                           if test "x$LINE" != x ; then
4779                             eval "DEFAULT_$LINE"
4780                           else
4781                             no_cache=1
4782                           fi
4783
4784                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4785
4786 fi;
4787
4788           eval "$ac_cv_use_dataobj"
4789           if test "$no_cache" != 1; then
4790             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4791           fi
4792
4793           if test "$wxUSE_DATAOBJ" = yes; then
4794             echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6
4796           else
4797             echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4799           fi
4800
4801
4802
4803           enablestring=
4804           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4805 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4806           no_cache=0
4807           # Check whether --enable-ipc or --disable-ipc was given.
4808 if test "${enable_ipc+set}" = set; then
4809   enableval="$enable_ipc"
4810
4811                           if test "$enableval" = yes; then
4812                             ac_cv_use_ipc='wxUSE_IPC=yes'
4813                           else
4814                             ac_cv_use_ipc='wxUSE_IPC=no'
4815                           fi
4816
4817 else
4818
4819                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4820                           if test "x$LINE" != x ; then
4821                             eval "DEFAULT_$LINE"
4822                           else
4823                             no_cache=1
4824                           fi
4825
4826                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4827
4828 fi;
4829
4830           eval "$ac_cv_use_ipc"
4831           if test "$no_cache" != 1; then
4832             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4833           fi
4834
4835           if test "$wxUSE_IPC" = yes; then
4836             echo "$as_me:$LINENO: result: yes" >&5
4837 echo "${ECHO_T}yes" >&6
4838           else
4839             echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841           fi
4842
4843
4844
4845           enablestring=
4846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4847 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4848           no_cache=0
4849           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4850 if test "${enable_apple_ieee+set}" = set; then
4851   enableval="$enable_apple_ieee"
4852
4853                           if test "$enableval" = yes; then
4854                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4855                           else
4856                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4857                           fi
4858
4859 else
4860
4861                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4862                           if test "x$LINE" != x ; then
4863                             eval "DEFAULT_$LINE"
4864                           else
4865                             no_cache=1
4866                           fi
4867
4868                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4869
4870 fi;
4871
4872           eval "$ac_cv_use_apple_ieee"
4873           if test "$no_cache" != 1; then
4874             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4875           fi
4876
4877           if test "$wxUSE_APPLE_IEEE" = yes; then
4878             echo "$as_me:$LINENO: result: yes" >&5
4879 echo "${ECHO_T}yes" >&6
4880           else
4881             echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883           fi
4884
4885
4886           enablestring=
4887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4888 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4889           no_cache=0
4890           # Check whether --enable-arcstream or --disable-arcstream was given.
4891 if test "${enable_arcstream+set}" = set; then
4892   enableval="$enable_arcstream"
4893
4894                           if test "$enableval" = yes; then
4895                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4896                           else
4897                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4898                           fi
4899
4900 else
4901
4902                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4903                           if test "x$LINE" != x ; then
4904                             eval "DEFAULT_$LINE"
4905                           else
4906                             no_cache=1
4907                           fi
4908
4909                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4910
4911 fi;
4912
4913           eval "$ac_cv_use_arcstream"
4914           if test "$no_cache" != 1; then
4915             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4916           fi
4917
4918           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4919             echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6
4921           else
4922             echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924           fi
4925
4926
4927           enablestring=
4928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4929 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4930           no_cache=0
4931           # Check whether --enable-backtrace or --disable-backtrace was given.
4932 if test "${enable_backtrace+set}" = set; then
4933   enableval="$enable_backtrace"
4934
4935                           if test "$enableval" = yes; then
4936                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4937                           else
4938                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4939                           fi
4940
4941 else
4942
4943                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4944                           if test "x$LINE" != x ; then
4945                             eval "DEFAULT_$LINE"
4946                           else
4947                             no_cache=1
4948                           fi
4949
4950                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4951
4952 fi;
4953
4954           eval "$ac_cv_use_backtrace"
4955           if test "$no_cache" != 1; then
4956             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4957           fi
4958
4959           if test "$wxUSE_STACKWALKER" = yes; then
4960             echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6
4962           else
4963             echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965           fi
4966
4967
4968           enablestring=
4969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4970 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4971           no_cache=0
4972           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4973 if test "${enable_catch_segvs+set}" = set; then
4974   enableval="$enable_catch_segvs"
4975
4976                           if test "$enableval" = yes; then
4977                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4978                           else
4979                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4980                           fi
4981
4982 else
4983
4984                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4985                           if test "x$LINE" != x ; then
4986                             eval "DEFAULT_$LINE"
4987                           else
4988                             no_cache=1
4989                           fi
4990
4991                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4992
4993 fi;
4994
4995           eval "$ac_cv_use_catch_segvs"
4996           if test "$no_cache" != 1; then
4997             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4998           fi
4999
5000           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5001             echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003           else
5004             echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5006           fi
5007
5008
5009           enablestring=
5010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5011 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5012           no_cache=0
5013           # Check whether --enable-cmdline or --disable-cmdline was given.
5014 if test "${enable_cmdline+set}" = set; then
5015   enableval="$enable_cmdline"
5016
5017                           if test "$enableval" = yes; then
5018                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5019                           else
5020                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5021                           fi
5022
5023 else
5024
5025                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5026                           if test "x$LINE" != x ; then
5027                             eval "DEFAULT_$LINE"
5028                           else
5029                             no_cache=1
5030                           fi
5031
5032                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5033
5034 fi;
5035
5036           eval "$ac_cv_use_cmdline"
5037           if test "$no_cache" != 1; then
5038             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5039           fi
5040
5041           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5042             echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6
5044           else
5045             echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047           fi
5048
5049
5050           enablestring=
5051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5052 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5053           no_cache=0
5054           # Check whether --enable-datetime or --disable-datetime was given.
5055 if test "${enable_datetime+set}" = set; then
5056   enableval="$enable_datetime"
5057
5058                           if test "$enableval" = yes; then
5059                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5060                           else
5061                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5062                           fi
5063
5064 else
5065
5066                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5067                           if test "x$LINE" != x ; then
5068                             eval "DEFAULT_$LINE"
5069                           else
5070                             no_cache=1
5071                           fi
5072
5073                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5074
5075 fi;
5076
5077           eval "$ac_cv_use_datetime"
5078           if test "$no_cache" != 1; then
5079             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5080           fi
5081
5082           if test "$wxUSE_DATETIME" = yes; then
5083             echo "$as_me:$LINENO: result: yes" >&5
5084 echo "${ECHO_T}yes" >&6
5085           else
5086             echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088           fi
5089
5090
5091           enablestring=
5092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5093 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5094           no_cache=0
5095           # Check whether --enable-debugreport or --disable-debugreport was given.
5096 if test "${enable_debugreport+set}" = set; then
5097   enableval="$enable_debugreport"
5098
5099                           if test "$enableval" = yes; then
5100                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5101                           else
5102                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5103                           fi
5104
5105 else
5106
5107                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5108                           if test "x$LINE" != x ; then
5109                             eval "DEFAULT_$LINE"
5110                           else
5111                             no_cache=1
5112                           fi
5113
5114                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5115
5116 fi;
5117
5118           eval "$ac_cv_use_debugreport"
5119           if test "$no_cache" != 1; then
5120             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5121           fi
5122
5123           if test "$wxUSE_DEBUGREPORT" = yes; then
5124             echo "$as_me:$LINENO: result: yes" >&5
5125 echo "${ECHO_T}yes" >&6
5126           else
5127             echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5129           fi
5130
5131
5132           enablestring=
5133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5134 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5135           no_cache=0
5136           # Check whether --enable-dialupman or --disable-dialupman was given.
5137 if test "${enable_dialupman+set}" = set; then
5138   enableval="$enable_dialupman"
5139
5140                           if test "$enableval" = yes; then
5141                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5142                           else
5143                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5144                           fi
5145
5146 else
5147
5148                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5149                           if test "x$LINE" != x ; then
5150                             eval "DEFAULT_$LINE"
5151                           else
5152                             no_cache=1
5153                           fi
5154
5155                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5156
5157 fi;
5158
5159           eval "$ac_cv_use_dialupman"
5160           if test "$no_cache" != 1; then
5161             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5162           fi
5163
5164           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5165             echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6
5167           else
5168             echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170           fi
5171
5172
5173           enablestring=
5174           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5176           no_cache=0
5177           # Check whether --enable-dynlib or --disable-dynlib was given.
5178 if test "${enable_dynlib+set}" = set; then
5179   enableval="$enable_dynlib"
5180
5181                           if test "$enableval" = yes; then
5182                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5183                           else
5184                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5185                           fi
5186
5187 else
5188
5189                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5190                           if test "x$LINE" != x ; then
5191                             eval "DEFAULT_$LINE"
5192                           else
5193                             no_cache=1
5194                           fi
5195
5196                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5197
5198 fi;
5199
5200           eval "$ac_cv_use_dynlib"
5201           if test "$no_cache" != 1; then
5202             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5203           fi
5204
5205           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5206             echo "$as_me:$LINENO: result: yes" >&5
5207 echo "${ECHO_T}yes" >&6
5208           else
5209             echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6
5211           fi
5212
5213
5214           enablestring=
5215           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5216 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5217           no_cache=0
5218           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5219 if test "${enable_dynamicloader+set}" = set; then
5220   enableval="$enable_dynamicloader"
5221
5222                           if test "$enableval" = yes; then
5223                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5224                           else
5225                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5226                           fi
5227
5228 else
5229
5230                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5231                           if test "x$LINE" != x ; then
5232                             eval "DEFAULT_$LINE"
5233                           else
5234                             no_cache=1
5235                           fi
5236
5237                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5238
5239 fi;
5240
5241           eval "$ac_cv_use_dynamicloader"
5242           if test "$no_cache" != 1; then
5243             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5244           fi
5245
5246           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5247             echo "$as_me:$LINENO: result: yes" >&5
5248 echo "${ECHO_T}yes" >&6
5249           else
5250             echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6
5252           fi
5253
5254
5255           enablestring=
5256           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5257 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5258           no_cache=0
5259           # Check whether --enable-exceptions or --disable-exceptions was given.
5260 if test "${enable_exceptions+set}" = set; then
5261   enableval="$enable_exceptions"
5262
5263                           if test "$enableval" = yes; then
5264                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5265                           else
5266                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5267                           fi
5268
5269 else
5270
5271                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5272                           if test "x$LINE" != x ; then
5273                             eval "DEFAULT_$LINE"
5274                           else
5275                             no_cache=1
5276                           fi
5277
5278                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5279
5280 fi;
5281
5282           eval "$ac_cv_use_exceptions"
5283           if test "$no_cache" != 1; then
5284             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5285           fi
5286
5287           if test "$wxUSE_EXCEPTIONS" = yes; then
5288             echo "$as_me:$LINENO: result: yes" >&5
5289 echo "${ECHO_T}yes" >&6
5290           else
5291             echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293           fi
5294
5295
5296           enablestring=
5297           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5298 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5299           no_cache=0
5300           # Check whether --enable-ffile or --disable-ffile was given.
5301 if test "${enable_ffile+set}" = set; then
5302   enableval="$enable_ffile"
5303
5304                           if test "$enableval" = yes; then
5305                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5306                           else
5307                             ac_cv_use_ffile='wxUSE_FFILE=no'
5308                           fi
5309
5310 else
5311
5312                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5313                           if test "x$LINE" != x ; then
5314                             eval "DEFAULT_$LINE"
5315                           else
5316                             no_cache=1
5317                           fi
5318
5319                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5320
5321 fi;
5322
5323           eval "$ac_cv_use_ffile"
5324           if test "$no_cache" != 1; then
5325             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5326           fi
5327
5328           if test "$wxUSE_FFILE" = yes; then
5329             echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5331           else
5332             echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334           fi
5335
5336
5337           enablestring=
5338           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5339 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5340           no_cache=0
5341           # Check whether --enable-file or --disable-file was given.
5342 if test "${enable_file+set}" = set; then
5343   enableval="$enable_file"
5344
5345                           if test "$enableval" = yes; then
5346                             ac_cv_use_file='wxUSE_FILE=yes'
5347                           else
5348                             ac_cv_use_file='wxUSE_FILE=no'
5349                           fi
5350
5351 else
5352
5353                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5354                           if test "x$LINE" != x ; then
5355                             eval "DEFAULT_$LINE"
5356                           else
5357                             no_cache=1
5358                           fi
5359
5360                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5361
5362 fi;
5363
5364           eval "$ac_cv_use_file"
5365           if test "$no_cache" != 1; then
5366             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5367           fi
5368
5369           if test "$wxUSE_FILE" = yes; then
5370             echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372           else
5373             echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5375           fi
5376
5377
5378           enablestring=
5379           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5380 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5381           no_cache=0
5382           # Check whether --enable-filesystem or --disable-filesystem was given.
5383 if test "${enable_filesystem+set}" = set; then
5384   enableval="$enable_filesystem"
5385
5386                           if test "$enableval" = yes; then
5387                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5388                           else
5389                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5390                           fi
5391
5392 else
5393
5394                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5395                           if test "x$LINE" != x ; then
5396                             eval "DEFAULT_$LINE"
5397                           else
5398                             no_cache=1
5399                           fi
5400
5401                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5402
5403 fi;
5404
5405           eval "$ac_cv_use_filesystem"
5406           if test "$no_cache" != 1; then
5407             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5408           fi
5409
5410           if test "$wxUSE_FILESYSTEM" = yes; then
5411             echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6
5413           else
5414             echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416           fi
5417
5418
5419           enablestring=
5420           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5421 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5422           no_cache=0
5423           # Check whether --enable-fontmap or --disable-fontmap was given.
5424 if test "${enable_fontmap+set}" = set; then
5425   enableval="$enable_fontmap"
5426
5427                           if test "$enableval" = yes; then
5428                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5429                           else
5430                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5431                           fi
5432
5433 else
5434
5435                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5436                           if test "x$LINE" != x ; then
5437                             eval "DEFAULT_$LINE"
5438                           else
5439                             no_cache=1
5440                           fi
5441
5442                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5443
5444 fi;
5445
5446           eval "$ac_cv_use_fontmap"
5447           if test "$no_cache" != 1; then
5448             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5449           fi
5450
5451           if test "$wxUSE_FONTMAP" = yes; then
5452             echo "$as_me:$LINENO: result: yes" >&5
5453 echo "${ECHO_T}yes" >&6
5454           else
5455             echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457           fi
5458
5459
5460           enablestring=
5461           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5462 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5463           no_cache=0
5464           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5465 if test "${enable_fs_inet+set}" = set; then
5466   enableval="$enable_fs_inet"
5467
5468                           if test "$enableval" = yes; then
5469                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5470                           else
5471                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5472                           fi
5473
5474 else
5475
5476                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5477                           if test "x$LINE" != x ; then
5478                             eval "DEFAULT_$LINE"
5479                           else
5480                             no_cache=1
5481                           fi
5482
5483                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5484
5485 fi;
5486
5487           eval "$ac_cv_use_fs_inet"
5488           if test "$no_cache" != 1; then
5489             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5490           fi
5491
5492           if test "$wxUSE_FS_INET" = yes; then
5493             echo "$as_me:$LINENO: result: yes" >&5
5494 echo "${ECHO_T}yes" >&6
5495           else
5496             echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498           fi
5499
5500
5501           enablestring=
5502           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5503 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5504           no_cache=0
5505           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5506 if test "${enable_fs_zip+set}" = set; then
5507   enableval="$enable_fs_zip"
5508
5509                           if test "$enableval" = yes; then
5510                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5511                           else
5512                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5513                           fi
5514
5515 else
5516
5517                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5518                           if test "x$LINE" != x ; then
5519                             eval "DEFAULT_$LINE"
5520                           else
5521                             no_cache=1
5522                           fi
5523
5524                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5525
5526 fi;
5527
5528           eval "$ac_cv_use_fs_zip"
5529           if test "$no_cache" != 1; then
5530             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5531           fi
5532
5533           if test "$wxUSE_FS_ZIP" = yes; then
5534             echo "$as_me:$LINENO: result: yes" >&5
5535 echo "${ECHO_T}yes" >&6
5536           else
5537             echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5539           fi
5540
5541
5542           enablestring=
5543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5544 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5545           no_cache=0
5546           # Check whether --enable-geometry or --disable-geometry was given.
5547 if test "${enable_geometry+set}" = set; then
5548   enableval="$enable_geometry"
5549
5550                           if test "$enableval" = yes; then
5551                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5552                           else
5553                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5554                           fi
5555
5556 else
5557
5558                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5559                           if test "x$LINE" != x ; then
5560                             eval "DEFAULT_$LINE"
5561                           else
5562                             no_cache=1
5563                           fi
5564
5565                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5566
5567 fi;
5568
5569           eval "$ac_cv_use_geometry"
5570           if test "$no_cache" != 1; then
5571             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5572           fi
5573
5574           if test "$wxUSE_GEOMETRY" = yes; then
5575             echo "$as_me:$LINENO: result: yes" >&5
5576 echo "${ECHO_T}yes" >&6
5577           else
5578             echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580           fi
5581
5582
5583           enablestring=
5584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5585 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5586           no_cache=0
5587           # Check whether --enable-log or --disable-log was given.
5588 if test "${enable_log+set}" = set; then
5589   enableval="$enable_log"
5590
5591                           if test "$enableval" = yes; then
5592                             ac_cv_use_log='wxUSE_LOG=yes'
5593                           else
5594                             ac_cv_use_log='wxUSE_LOG=no'
5595                           fi
5596
5597 else
5598
5599                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5600                           if test "x$LINE" != x ; then
5601                             eval "DEFAULT_$LINE"
5602                           else
5603                             no_cache=1
5604                           fi
5605
5606                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5607
5608 fi;
5609
5610           eval "$ac_cv_use_log"
5611           if test "$no_cache" != 1; then
5612             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5613           fi
5614
5615           if test "$wxUSE_LOG" = yes; then
5616             echo "$as_me:$LINENO: result: yes" >&5
5617 echo "${ECHO_T}yes" >&6
5618           else
5619             echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5621           fi
5622
5623
5624           enablestring=
5625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5626 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5627           no_cache=0
5628           # Check whether --enable-longlong or --disable-longlong was given.
5629 if test "${enable_longlong+set}" = set; then
5630   enableval="$enable_longlong"
5631
5632                           if test "$enableval" = yes; then
5633                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5634                           else
5635                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5636                           fi
5637
5638 else
5639
5640                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5641                           if test "x$LINE" != x ; then
5642                             eval "DEFAULT_$LINE"
5643                           else
5644                             no_cache=1
5645                           fi
5646
5647                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5648
5649 fi;
5650
5651           eval "$ac_cv_use_longlong"
5652           if test "$no_cache" != 1; then
5653             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5654           fi
5655
5656           if test "$wxUSE_LONGLONG" = yes; then
5657             echo "$as_me:$LINENO: result: yes" >&5
5658 echo "${ECHO_T}yes" >&6
5659           else
5660             echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662           fi
5663
5664
5665           enablestring=
5666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5667 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5668           no_cache=0
5669           # Check whether --enable-mimetype or --disable-mimetype was given.
5670 if test "${enable_mimetype+set}" = set; then
5671   enableval="$enable_mimetype"
5672
5673                           if test "$enableval" = yes; then
5674                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5675                           else
5676                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5677                           fi
5678
5679 else
5680
5681                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5682                           if test "x$LINE" != x ; then
5683                             eval "DEFAULT_$LINE"
5684                           else
5685                             no_cache=1
5686                           fi
5687
5688                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5689
5690 fi;
5691
5692           eval "$ac_cv_use_mimetype"
5693           if test "$no_cache" != 1; then
5694             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5695           fi
5696
5697           if test "$wxUSE_MIMETYPE" = yes; then
5698             echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6
5700           else
5701             echo "$as_me:$LINENO: result: no" >&5
5702 echo "${ECHO_T}no" >&6
5703           fi
5704
5705
5706           enablestring=
5707           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5708 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5709           no_cache=0
5710           # Check whether --enable-mslu or --disable-mslu was given.
5711 if test "${enable_mslu+set}" = set; then
5712   enableval="$enable_mslu"
5713
5714                           if test "$enableval" = yes; then
5715                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5716                           else
5717                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5718                           fi
5719
5720 else
5721
5722                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5723                           if test "x$LINE" != x ; then
5724                             eval "DEFAULT_$LINE"
5725                           else
5726                             no_cache=1
5727                           fi
5728
5729                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5730
5731 fi;
5732
5733           eval "$ac_cv_use_mslu"
5734           if test "$no_cache" != 1; then
5735             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5736           fi
5737
5738           if test "$wxUSE_UNICODE_MSLU" = yes; then
5739             echo "$as_me:$LINENO: result: yes" >&5
5740 echo "${ECHO_T}yes" >&6
5741           else
5742             echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6
5744           fi
5745
5746
5747           enablestring=
5748           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5749 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5750           no_cache=0
5751           # Check whether --enable-snglinst or --disable-snglinst was given.
5752 if test "${enable_snglinst+set}" = set; then
5753   enableval="$enable_snglinst"
5754
5755                           if test "$enableval" = yes; then
5756                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5757                           else
5758                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5759                           fi
5760
5761 else
5762
5763                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5764                           if test "x$LINE" != x ; then
5765                             eval "DEFAULT_$LINE"
5766                           else
5767                             no_cache=1
5768                           fi
5769
5770                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5771
5772 fi;
5773
5774           eval "$ac_cv_use_snglinst"
5775           if test "$no_cache" != 1; then
5776             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5777           fi
5778
5779           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5780             echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6
5782           else
5783             echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785           fi
5786
5787
5788           enablestring=
5789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5790 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5791           no_cache=0
5792           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5793 if test "${enable_std_iostreams+set}" = set; then
5794   enableval="$enable_std_iostreams"
5795
5796                           if test "$enableval" = yes; then
5797                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5798                           else
5799                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5800                           fi
5801
5802 else
5803
5804                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5805                           if test "x$LINE" != x ; then
5806                             eval "DEFAULT_$LINE"
5807                           else
5808                             no_cache=1
5809                           fi
5810
5811                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5812
5813 fi;
5814
5815           eval "$ac_cv_use_std_iostreams"
5816           if test "$no_cache" != 1; then
5817             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5818           fi
5819
5820           if test "$wxUSE_STD_IOSTREAM" = yes; then
5821             echo "$as_me:$LINENO: result: yes" >&5
5822 echo "${ECHO_T}yes" >&6
5823           else
5824             echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826           fi
5827
5828
5829           enablestring=
5830           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5831 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5832           no_cache=0
5833           # Check whether --enable-std_string or --disable-std_string was given.
5834 if test "${enable_std_string+set}" = set; then
5835   enableval="$enable_std_string"
5836
5837                           if test "$enableval" = yes; then
5838                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5839                           else
5840                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5841                           fi
5842
5843 else
5844
5845                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5846                           if test "x$LINE" != x ; then
5847                             eval "DEFAULT_$LINE"
5848                           else
5849                             no_cache=1
5850                           fi
5851
5852                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5853
5854 fi;
5855
5856           eval "$ac_cv_use_std_string"
5857           if test "$no_cache" != 1; then
5858             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5859           fi
5860
5861           if test "$wxUSE_STD_STRING" = yes; then
5862             echo "$as_me:$LINENO: result: yes" >&5
5863 echo "${ECHO_T}yes" >&6
5864           else
5865             echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867           fi
5868
5869
5870           enablestring=
5871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5872 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5873           no_cache=0
5874           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5875 if test "${enable_stdpaths+set}" = set; then
5876   enableval="$enable_stdpaths"
5877
5878                           if test "$enableval" = yes; then
5879                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5880                           else
5881                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5882                           fi
5883
5884 else
5885
5886                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5887                           if test "x$LINE" != x ; then
5888                             eval "DEFAULT_$LINE"
5889                           else
5890                             no_cache=1
5891                           fi
5892
5893                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5894
5895 fi;
5896
5897           eval "$ac_cv_use_stdpaths"
5898           if test "$no_cache" != 1; then
5899             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5900           fi
5901
5902           if test "$wxUSE_STDPATHS" = yes; then
5903             echo "$as_me:$LINENO: result: yes" >&5
5904 echo "${ECHO_T}yes" >&6
5905           else
5906             echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908           fi
5909
5910
5911           enablestring=
5912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5913 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5914           no_cache=0
5915           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5916 if test "${enable_stopwatch+set}" = set; then
5917   enableval="$enable_stopwatch"
5918
5919                           if test "$enableval" = yes; then
5920                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5921                           else
5922                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5923                           fi
5924
5925 else
5926
5927                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5928                           if test "x$LINE" != x ; then
5929                             eval "DEFAULT_$LINE"
5930                           else
5931                             no_cache=1
5932                           fi
5933
5934                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5935
5936 fi;
5937
5938           eval "$ac_cv_use_stopwatch"
5939           if test "$no_cache" != 1; then
5940             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5941           fi
5942
5943           if test "$wxUSE_STOPWATCH" = yes; then
5944             echo "$as_me:$LINENO: result: yes" >&5
5945 echo "${ECHO_T}yes" >&6
5946           else
5947             echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949           fi
5950
5951
5952           enablestring=
5953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5954 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5955           no_cache=0
5956           # Check whether --enable-streams or --disable-streams was given.
5957 if test "${enable_streams+set}" = set; then
5958   enableval="$enable_streams"
5959
5960                           if test "$enableval" = yes; then
5961                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5962                           else
5963                             ac_cv_use_streams='wxUSE_STREAMS=no'
5964                           fi
5965
5966 else
5967
5968                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5969                           if test "x$LINE" != x ; then
5970                             eval "DEFAULT_$LINE"
5971                           else
5972                             no_cache=1
5973                           fi
5974
5975                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5976
5977 fi;
5978
5979           eval "$ac_cv_use_streams"
5980           if test "$no_cache" != 1; then
5981             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5982           fi
5983
5984           if test "$wxUSE_STREAMS" = yes; then
5985             echo "$as_me:$LINENO: result: yes" >&5
5986 echo "${ECHO_T}yes" >&6
5987           else
5988             echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990           fi
5991
5992
5993           enablestring=
5994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5995 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5996           no_cache=0
5997           # Check whether --enable-system_options or --disable-system_options was given.
5998 if test "${enable_system_options+set}" = set; then
5999   enableval="$enable_system_options"
6000
6001                           if test "$enableval" = yes; then
6002                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6003                           else
6004                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6005                           fi
6006
6007 else
6008
6009                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6010                           if test "x$LINE" != x ; then
6011                             eval "DEFAULT_$LINE"
6012                           else
6013                             no_cache=1
6014                           fi
6015
6016                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6017
6018 fi;
6019
6020           eval "$ac_cv_use_system_options"
6021           if test "$no_cache" != 1; then
6022             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6023           fi
6024
6025           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6026             echo "$as_me:$LINENO: result: yes" >&5
6027 echo "${ECHO_T}yes" >&6
6028           else
6029             echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031           fi
6032
6033
6034           enablestring=
6035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6036 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6037           no_cache=0
6038           # Check whether --enable-textbuf or --disable-textbuf was given.
6039 if test "${enable_textbuf+set}" = set; then
6040   enableval="$enable_textbuf"
6041
6042                           if test "$enableval" = yes; then
6043                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6044                           else
6045                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6046                           fi
6047
6048 else
6049
6050                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6051                           if test "x$LINE" != x ; then
6052                             eval "DEFAULT_$LINE"
6053                           else
6054                             no_cache=1
6055                           fi
6056
6057                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6058
6059 fi;
6060
6061           eval "$ac_cv_use_textbuf"
6062           if test "$no_cache" != 1; then
6063             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6064           fi
6065
6066           if test "$wxUSE_TEXTBUFFER" = yes; then
6067             echo "$as_me:$LINENO: result: yes" >&5
6068 echo "${ECHO_T}yes" >&6
6069           else
6070             echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6
6072           fi
6073
6074
6075           enablestring=
6076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6077 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6078           no_cache=0
6079           # Check whether --enable-textfile or --disable-textfile was given.
6080 if test "${enable_textfile+set}" = set; then
6081   enableval="$enable_textfile"
6082
6083                           if test "$enableval" = yes; then
6084                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6085                           else
6086                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6087                           fi
6088
6089 else
6090
6091                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6092                           if test "x$LINE" != x ; then
6093                             eval "DEFAULT_$LINE"
6094                           else
6095                             no_cache=1
6096                           fi
6097
6098                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6099
6100 fi;
6101
6102           eval "$ac_cv_use_textfile"
6103           if test "$no_cache" != 1; then
6104             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6105           fi
6106
6107           if test "$wxUSE_TEXTFILE" = yes; then
6108             echo "$as_me:$LINENO: result: yes" >&5
6109 echo "${ECHO_T}yes" >&6
6110           else
6111             echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6
6113           fi
6114
6115
6116           enablestring=
6117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6118 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6119           no_cache=0
6120           # Check whether --enable-timer or --disable-timer was given.
6121 if test "${enable_timer+set}" = set; then
6122   enableval="$enable_timer"
6123
6124                           if test "$enableval" = yes; then
6125                             ac_cv_use_timer='wxUSE_TIMER=yes'
6126                           else
6127                             ac_cv_use_timer='wxUSE_TIMER=no'
6128                           fi
6129
6130 else
6131
6132                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6133                           if test "x$LINE" != x ; then
6134                             eval "DEFAULT_$LINE"
6135                           else
6136                             no_cache=1
6137                           fi
6138
6139                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6140
6141 fi;
6142
6143           eval "$ac_cv_use_timer"
6144           if test "$no_cache" != 1; then
6145             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6146           fi
6147
6148           if test "$wxUSE_TIMER" = yes; then
6149             echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6
6151           else
6152             echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154           fi
6155
6156
6157           enablestring=
6158           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6159 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6160           no_cache=0
6161           # Check whether --enable-unicode or --disable-unicode was given.
6162 if test "${enable_unicode+set}" = set; then
6163   enableval="$enable_unicode"
6164
6165                           if test "$enableval" = yes; then
6166                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6167                           else
6168                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6169                           fi
6170
6171 else
6172
6173                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6174                           if test "x$LINE" != x ; then
6175                             eval "DEFAULT_$LINE"
6176                           else
6177                             no_cache=1
6178                           fi
6179
6180                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6181
6182 fi;
6183
6184           eval "$ac_cv_use_unicode"
6185           if test "$no_cache" != 1; then
6186             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6187           fi
6188
6189           if test "$wxUSE_UNICODE" = yes; then
6190             echo "$as_me:$LINENO: result: yes" >&5
6191 echo "${ECHO_T}yes" >&6
6192           else
6193             echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6
6195           fi
6196
6197
6198           enablestring=
6199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6200 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6201           no_cache=0
6202           # Check whether --enable-sound or --disable-sound was given.
6203 if test "${enable_sound+set}" = set; then
6204   enableval="$enable_sound"
6205
6206                           if test "$enableval" = yes; then
6207                             ac_cv_use_sound='wxUSE_SOUND=yes'
6208                           else
6209                             ac_cv_use_sound='wxUSE_SOUND=no'
6210                           fi
6211
6212 else
6213
6214                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6215                           if test "x$LINE" != x ; then
6216                             eval "DEFAULT_$LINE"
6217                           else
6218                             no_cache=1
6219                           fi
6220
6221                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6222
6223 fi;
6224
6225           eval "$ac_cv_use_sound"
6226           if test "$no_cache" != 1; then
6227             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6228           fi
6229
6230           if test "$wxUSE_SOUND" = yes; then
6231             echo "$as_me:$LINENO: result: yes" >&5
6232 echo "${ECHO_T}yes" >&6
6233           else
6234             echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6236           fi
6237
6238
6239           enablestring=
6240           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6241 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6242           no_cache=0
6243           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6244 if test "${enable_mediactrl+set}" = set; then
6245   enableval="$enable_mediactrl"
6246
6247                           if test "$enableval" = yes; then
6248                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6249                           else
6250                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6251                           fi
6252
6253 else
6254
6255                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6256                           if test "x$LINE" != x ; then
6257                             eval "DEFAULT_$LINE"
6258                           else
6259                             no_cache=1
6260                           fi
6261
6262                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6263
6264 fi;
6265
6266           eval "$ac_cv_use_mediactrl"
6267           if test "$no_cache" != 1; then
6268             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6269           fi
6270
6271           if test "$wxUSE_MEDIACTRL" = yes; then
6272             echo "$as_me:$LINENO: result: yes" >&5
6273 echo "${ECHO_T}yes" >&6
6274           else
6275             echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6
6277           fi
6278
6279
6280           enablestring=
6281           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6282 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6283           no_cache=0
6284           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6285 if test "${enable_gstreamer8+set}" = set; then
6286   enableval="$enable_gstreamer8"
6287
6288                           if test "$enableval" = yes; then
6289                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6290                           else
6291                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6292                           fi
6293
6294 else
6295
6296                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6297                           if test "x$LINE" != x ; then
6298                             eval "DEFAULT_$LINE"
6299                           else
6300                             no_cache=1
6301                           fi
6302
6303                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6304
6305 fi;
6306
6307           eval "$ac_cv_use_gstreamer8"
6308           if test "$no_cache" != 1; then
6309             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6310           fi
6311
6312           if test "$wxUSE_GSTREAMER8" = yes; then
6313             echo "$as_me:$LINENO: result: yes" >&5
6314 echo "${ECHO_T}yes" >&6
6315           else
6316             echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6
6318           fi
6319
6320
6321           enablestring=
6322           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6323 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6324           no_cache=0
6325           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6326 if test "${enable_printfposparam+set}" = set; then
6327   enableval="$enable_printfposparam"
6328
6329                           if test "$enableval" = yes; then
6330                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6331                           else
6332                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6333                           fi
6334
6335 else
6336
6337                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6338                           if test "x$LINE" != x ; then
6339                             eval "DEFAULT_$LINE"
6340                           else
6341                             no_cache=1
6342                           fi
6343
6344                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6345
6346 fi;
6347
6348           eval "$ac_cv_use_printfposparam"
6349           if test "$no_cache" != 1; then
6350             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6351           fi
6352
6353           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6354             echo "$as_me:$LINENO: result: yes" >&5
6355 echo "${ECHO_T}yes" >&6
6356           else
6357             echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6
6359           fi
6360
6361
6362           enablestring=
6363           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6364 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6365           no_cache=0
6366           # Check whether --enable-zipstream or --disable-zipstream was given.
6367 if test "${enable_zipstream+set}" = set; then
6368   enableval="$enable_zipstream"
6369
6370                           if test "$enableval" = yes; then
6371                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6372                           else
6373                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6374                           fi
6375
6376 else
6377
6378                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6379                           if test "x$LINE" != x ; then
6380                             eval "DEFAULT_$LINE"
6381                           else
6382                             no_cache=1
6383                           fi
6384
6385                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6386
6387 fi;
6388
6389           eval "$ac_cv_use_zipstream"
6390           if test "$no_cache" != 1; then
6391             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6392           fi
6393
6394           if test "$wxUSE_ZIPSTREAM" = yes; then
6395             echo "$as_me:$LINENO: result: yes" >&5
6396 echo "${ECHO_T}yes" >&6
6397           else
6398             echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6
6400           fi
6401
6402
6403
6404           enablestring=
6405           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6406 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6407           no_cache=0
6408           # Check whether --enable-url or --disable-url was given.
6409 if test "${enable_url+set}" = set; then
6410   enableval="$enable_url"
6411
6412                           if test "$enableval" = yes; then
6413                             ac_cv_use_url='wxUSE_URL=yes'
6414                           else
6415                             ac_cv_use_url='wxUSE_URL=no'
6416                           fi
6417
6418 else
6419
6420                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6421                           if test "x$LINE" != x ; then
6422                             eval "DEFAULT_$LINE"
6423                           else
6424                             no_cache=1
6425                           fi
6426
6427                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6428
6429 fi;
6430
6431           eval "$ac_cv_use_url"
6432           if test "$no_cache" != 1; then
6433             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6434           fi
6435
6436           if test "$wxUSE_URL" = yes; then
6437             echo "$as_me:$LINENO: result: yes" >&5
6438 echo "${ECHO_T}yes" >&6
6439           else
6440             echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6
6442           fi
6443
6444
6445           enablestring=
6446           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6447 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6448           no_cache=0
6449           # Check whether --enable-protocol or --disable-protocol was given.
6450 if test "${enable_protocol+set}" = set; then
6451   enableval="$enable_protocol"
6452
6453                           if test "$enableval" = yes; then
6454                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6455                           else
6456                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6457                           fi
6458
6459 else
6460
6461                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6462                           if test "x$LINE" != x ; then
6463                             eval "DEFAULT_$LINE"
6464                           else
6465                             no_cache=1
6466                           fi
6467
6468                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6469
6470 fi;
6471
6472           eval "$ac_cv_use_protocol"
6473           if test "$no_cache" != 1; then
6474             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6475           fi
6476
6477           if test "$wxUSE_PROTOCOL" = yes; then
6478             echo "$as_me:$LINENO: result: yes" >&5
6479 echo "${ECHO_T}yes" >&6
6480           else
6481             echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6
6483           fi
6484
6485
6486           enablestring=
6487           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6488 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6489           no_cache=0
6490           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6491 if test "${enable_protocol_http+set}" = set; then
6492   enableval="$enable_protocol_http"
6493
6494                           if test "$enableval" = yes; then
6495                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6496                           else
6497                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6498                           fi
6499
6500 else
6501
6502                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6503                           if test "x$LINE" != x ; then
6504                             eval "DEFAULT_$LINE"
6505                           else
6506                             no_cache=1
6507                           fi
6508
6509                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6510
6511 fi;
6512
6513           eval "$ac_cv_use_protocol_http"
6514           if test "$no_cache" != 1; then
6515             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6516           fi
6517
6518           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6519             echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6
6521           else
6522             echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6524           fi
6525
6526
6527           enablestring=
6528           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6529 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6530           no_cache=0
6531           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6532 if test "${enable_protocol_ftp+set}" = set; then
6533   enableval="$enable_protocol_ftp"
6534
6535                           if test "$enableval" = yes; then
6536                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6537                           else
6538                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6539                           fi
6540
6541 else
6542
6543                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6544                           if test "x$LINE" != x ; then
6545                             eval "DEFAULT_$LINE"
6546                           else
6547                             no_cache=1
6548                           fi
6549
6550                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6551
6552 fi;
6553
6554           eval "$ac_cv_use_protocol_ftp"
6555           if test "$no_cache" != 1; then
6556             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6557           fi
6558
6559           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6560             echo "$as_me:$LINENO: result: yes" >&5
6561 echo "${ECHO_T}yes" >&6
6562           else
6563             echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6
6565           fi
6566
6567
6568           enablestring=
6569           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6570 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6571           no_cache=0
6572           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6573 if test "${enable_protocol_file+set}" = set; then
6574   enableval="$enable_protocol_file"
6575
6576                           if test "$enableval" = yes; then
6577                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6578                           else
6579                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6580                           fi
6581
6582 else
6583
6584                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6585                           if test "x$LINE" != x ; then
6586                             eval "DEFAULT_$LINE"
6587                           else
6588                             no_cache=1
6589                           fi
6590
6591                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6592
6593 fi;
6594
6595           eval "$ac_cv_use_protocol_file"
6596           if test "$no_cache" != 1; then
6597             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6598           fi
6599
6600           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6601             echo "$as_me:$LINENO: result: yes" >&5
6602 echo "${ECHO_T}yes" >&6
6603           else
6604             echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6
6606           fi
6607
6608
6609
6610
6611
6612           enablestring=
6613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6614 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6615           no_cache=0
6616           # Check whether --enable-threads or --disable-threads was given.
6617 if test "${enable_threads+set}" = set; then
6618   enableval="$enable_threads"
6619
6620                           if test "$enableval" = yes; then
6621                             ac_cv_use_threads='wxUSE_THREADS=yes'
6622                           else
6623                             ac_cv_use_threads='wxUSE_THREADS=no'
6624                           fi
6625
6626 else
6627
6628                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6629                           if test "x$LINE" != x ; then
6630                             eval "DEFAULT_$LINE"
6631                           else
6632                             no_cache=1
6633                           fi
6634
6635                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6636
6637 fi;
6638
6639           eval "$ac_cv_use_threads"
6640           if test "$no_cache" != 1; then
6641             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6642           fi
6643
6644           if test "$wxUSE_THREADS" = yes; then
6645             echo "$as_me:$LINENO: result: yes" >&5
6646 echo "${ECHO_T}yes" >&6
6647           else
6648             echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6
6650           fi
6651
6652
6653 if test "$wxUSE_GUI" = "yes"; then
6654
6655
6656
6657           enablestring=
6658           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6659 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6660           no_cache=0
6661           # Check whether --enable-docview or --disable-docview was given.
6662 if test "${enable_docview+set}" = set; then
6663   enableval="$enable_docview"
6664
6665                           if test "$enableval" = yes; then
6666                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6667                           else
6668                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6669                           fi
6670
6671 else
6672
6673                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6674                           if test "x$LINE" != x ; then
6675                             eval "DEFAULT_$LINE"
6676                           else
6677                             no_cache=1
6678                           fi
6679
6680                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6681
6682 fi;
6683
6684           eval "$ac_cv_use_docview"
6685           if test "$no_cache" != 1; then
6686             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6687           fi
6688
6689           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6690             echo "$as_me:$LINENO: result: yes" >&5
6691 echo "${ECHO_T}yes" >&6
6692           else
6693             echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6695           fi
6696
6697
6698           enablestring=
6699           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6700 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6701           no_cache=0
6702           # Check whether --enable-help or --disable-help was given.
6703 if test "${enable_help+set}" = set; then
6704   enableval="$enable_help"
6705
6706                           if test "$enableval" = yes; then
6707                             ac_cv_use_help='wxUSE_HELP=yes'
6708                           else
6709                             ac_cv_use_help='wxUSE_HELP=no'
6710                           fi
6711
6712 else
6713
6714                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6715                           if test "x$LINE" != x ; then
6716                             eval "DEFAULT_$LINE"
6717                           else
6718                             no_cache=1
6719                           fi
6720
6721                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6722
6723 fi;
6724
6725           eval "$ac_cv_use_help"
6726           if test "$no_cache" != 1; then
6727             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6728           fi
6729
6730           if test "$wxUSE_HELP" = yes; then
6731             echo "$as_me:$LINENO: result: yes" >&5
6732 echo "${ECHO_T}yes" >&6
6733           else
6734             echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6
6736           fi
6737
6738
6739           enablestring=
6740           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6741 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6742           no_cache=0
6743           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6744 if test "${enable_mshtmlhelp+set}" = set; then
6745   enableval="$enable_mshtmlhelp"
6746
6747                           if test "$enableval" = yes; then
6748                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6749                           else
6750                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6751                           fi
6752
6753 else
6754
6755                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6756                           if test "x$LINE" != x ; then
6757                             eval "DEFAULT_$LINE"
6758                           else
6759                             no_cache=1
6760                           fi
6761
6762                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6763
6764 fi;
6765
6766           eval "$ac_cv_use_mshtmlhelp"
6767           if test "$no_cache" != 1; then
6768             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6769           fi
6770
6771           if test "$wxUSE_MS_HTML_HELP" = yes; then
6772             echo "$as_me:$LINENO: result: yes" >&5
6773 echo "${ECHO_T}yes" >&6
6774           else
6775             echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6
6777           fi
6778
6779
6780           enablestring=
6781           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6782 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6783           no_cache=0
6784           # Check whether --enable-html or --disable-html was given.
6785 if test "${enable_html+set}" = set; then
6786   enableval="$enable_html"
6787
6788                           if test "$enableval" = yes; then
6789                             ac_cv_use_html='wxUSE_HTML=yes'
6790                           else
6791                             ac_cv_use_html='wxUSE_HTML=no'
6792                           fi
6793
6794 else
6795
6796                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6797                           if test "x$LINE" != x ; then
6798                             eval "DEFAULT_$LINE"
6799                           else
6800                             no_cache=1
6801                           fi
6802
6803                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6804
6805 fi;
6806
6807           eval "$ac_cv_use_html"
6808           if test "$no_cache" != 1; then
6809             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6810           fi
6811
6812           if test "$wxUSE_HTML" = yes; then
6813             echo "$as_me:$LINENO: result: yes" >&5
6814 echo "${ECHO_T}yes" >&6
6815           else
6816             echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6
6818           fi
6819
6820
6821           enablestring=
6822           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6823 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6824           no_cache=0
6825           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6826 if test "${enable_htmlhelp+set}" = set; then
6827   enableval="$enable_htmlhelp"
6828
6829                           if test "$enableval" = yes; then
6830                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6831                           else
6832                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6833                           fi
6834
6835 else
6836
6837                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6838                           if test "x$LINE" != x ; then
6839                             eval "DEFAULT_$LINE"
6840                           else
6841                             no_cache=1
6842                           fi
6843
6844                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6845
6846 fi;
6847
6848           eval "$ac_cv_use_htmlhelp"
6849           if test "$no_cache" != 1; then
6850             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6851           fi
6852
6853           if test "$wxUSE_WXHTML_HELP" = yes; then
6854             echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6
6856           else
6857             echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6
6859           fi
6860
6861
6862           enablestring=
6863           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6864 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6865           no_cache=0
6866           # Check whether --enable-xrc or --disable-xrc was given.
6867 if test "${enable_xrc+set}" = set; then
6868   enableval="$enable_xrc"
6869
6870                           if test "$enableval" = yes; then
6871                             ac_cv_use_xrc='wxUSE_XRC=yes'
6872                           else
6873                             ac_cv_use_xrc='wxUSE_XRC=no'
6874                           fi
6875
6876 else
6877
6878                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6879                           if test "x$LINE" != x ; then
6880                             eval "DEFAULT_$LINE"
6881                           else
6882                             no_cache=1
6883                           fi
6884
6885                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6886
6887 fi;
6888
6889           eval "$ac_cv_use_xrc"
6890           if test "$no_cache" != 1; then
6891             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6892           fi
6893
6894           if test "$wxUSE_XRC" = yes; then
6895             echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6
6897           else
6898             echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6900           fi
6901
6902
6903           enablestring=
6904           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6905 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6906           no_cache=0
6907           # Check whether --enable-aui or --disable-aui was given.
6908 if test "${enable_aui+set}" = set; then
6909   enableval="$enable_aui"
6910
6911                           if test "$enableval" = yes; then
6912                             ac_cv_use_aui='wxUSE_AUI=yes'
6913                           else
6914                             ac_cv_use_aui='wxUSE_AUI=no'
6915                           fi
6916
6917 else
6918
6919                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6920                           if test "x$LINE" != x ; then
6921                             eval "DEFAULT_$LINE"
6922                           else
6923                             no_cache=1
6924                           fi
6925
6926                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
6927
6928 fi;
6929
6930           eval "$ac_cv_use_aui"
6931           if test "$no_cache" != 1; then
6932             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
6933           fi
6934
6935           if test "$wxUSE_AUI" = yes; then
6936             echo "$as_me:$LINENO: result: yes" >&5
6937 echo "${ECHO_T}yes" >&6
6938           else
6939             echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6
6941           fi
6942
6943
6944           enablestring=
6945           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6946 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6947           no_cache=0
6948           # Check whether --enable-constraints or --disable-constraints was given.
6949 if test "${enable_constraints+set}" = set; then
6950   enableval="$enable_constraints"
6951
6952                           if test "$enableval" = yes; then
6953                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6954                           else
6955                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6956                           fi
6957
6958 else
6959
6960                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6961                           if test "x$LINE" != x ; then
6962                             eval "DEFAULT_$LINE"
6963                           else
6964                             no_cache=1
6965                           fi
6966
6967                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6968
6969 fi;
6970
6971           eval "$ac_cv_use_constraints"
6972           if test "$no_cache" != 1; then
6973             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6974           fi
6975
6976           if test "$wxUSE_CONSTRAINTS" = yes; then
6977             echo "$as_me:$LINENO: result: yes" >&5
6978 echo "${ECHO_T}yes" >&6
6979           else
6980             echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6
6982           fi
6983
6984
6985           enablestring=
6986           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6987 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6988           no_cache=0
6989           # Check whether --enable-printarch or --disable-printarch was given.
6990 if test "${enable_printarch+set}" = set; then
6991   enableval="$enable_printarch"
6992
6993                           if test "$enableval" = yes; then
6994                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6995                           else
6996                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6997                           fi
6998
6999 else
7000
7001                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7002                           if test "x$LINE" != x ; then
7003                             eval "DEFAULT_$LINE"
7004                           else
7005                             no_cache=1
7006                           fi
7007
7008                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7009
7010 fi;
7011
7012           eval "$ac_cv_use_printarch"
7013           if test "$no_cache" != 1; then
7014             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7015           fi
7016
7017           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7018             echo "$as_me:$LINENO: result: yes" >&5
7019 echo "${ECHO_T}yes" >&6
7020           else
7021             echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6
7023           fi
7024
7025
7026           enablestring=
7027           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7028 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7029           no_cache=0
7030           # Check whether --enable-mdi or --disable-mdi was given.
7031 if test "${enable_mdi+set}" = set; then
7032   enableval="$enable_mdi"
7033
7034                           if test "$enableval" = yes; then
7035                             ac_cv_use_mdi='wxUSE_MDI=yes'
7036                           else
7037                             ac_cv_use_mdi='wxUSE_MDI=no'
7038                           fi
7039
7040 else
7041
7042                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7043                           if test "x$LINE" != x ; then
7044                             eval "DEFAULT_$LINE"
7045                           else
7046                             no_cache=1
7047                           fi
7048
7049                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7050
7051 fi;
7052
7053           eval "$ac_cv_use_mdi"
7054           if test "$no_cache" != 1; then
7055             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7056           fi
7057
7058           if test "$wxUSE_MDI" = yes; then
7059             echo "$as_me:$LINENO: result: yes" >&5
7060 echo "${ECHO_T}yes" >&6
7061           else
7062             echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6
7064           fi
7065
7066
7067           enablestring=
7068           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7069 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7070           no_cache=0
7071           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7072 if test "${enable_mdidoc+set}" = set; then
7073   enableval="$enable_mdidoc"
7074
7075                           if test "$enableval" = yes; then
7076                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7077                           else
7078                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7079                           fi
7080
7081 else
7082
7083                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7084                           if test "x$LINE" != x ; then
7085                             eval "DEFAULT_$LINE"
7086                           else
7087                             no_cache=1
7088                           fi
7089
7090                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7091
7092 fi;
7093
7094           eval "$ac_cv_use_mdidoc"
7095           if test "$no_cache" != 1; then
7096             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7097           fi
7098
7099           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7100             echo "$as_me:$LINENO: result: yes" >&5
7101 echo "${ECHO_T}yes" >&6
7102           else
7103             echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7105           fi
7106
7107
7108           enablestring=
7109           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7110 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7111           no_cache=0
7112           # Check whether --enable-loggui or --disable-loggui was given.
7113 if test "${enable_loggui+set}" = set; then
7114   enableval="$enable_loggui"
7115
7116                           if test "$enableval" = yes; then
7117                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7118                           else
7119                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7120                           fi
7121
7122 else
7123
7124                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7125                           if test "x$LINE" != x ; then
7126                             eval "DEFAULT_$LINE"
7127                           else
7128                             no_cache=1
7129                           fi
7130
7131                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7132
7133 fi;
7134
7135           eval "$ac_cv_use_loggui"
7136           if test "$no_cache" != 1; then
7137             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7138           fi
7139
7140           if test "$wxUSE_LOGGUI" = yes; then
7141             echo "$as_me:$LINENO: result: yes" >&5
7142 echo "${ECHO_T}yes" >&6
7143           else
7144             echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7146           fi
7147
7148
7149           enablestring=
7150           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7151 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7152           no_cache=0
7153           # Check whether --enable-logwin or --disable-logwin was given.
7154 if test "${enable_logwin+set}" = set; then
7155   enableval="$enable_logwin"
7156
7157                           if test "$enableval" = yes; then
7158                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7159                           else
7160                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7161                           fi
7162
7163 else
7164
7165                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7166                           if test "x$LINE" != x ; then
7167                             eval "DEFAULT_$LINE"
7168                           else
7169                             no_cache=1
7170                           fi
7171
7172                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7173
7174 fi;
7175
7176           eval "$ac_cv_use_logwin"
7177           if test "$no_cache" != 1; then
7178             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7179           fi
7180
7181           if test "$wxUSE_LOGWINDOW" = yes; then
7182             echo "$as_me:$LINENO: result: yes" >&5
7183 echo "${ECHO_T}yes" >&6
7184           else
7185             echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7187           fi
7188
7189
7190           enablestring=
7191           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7192 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7193           no_cache=0
7194           # Check whether --enable-logdialog or --disable-logdialog was given.
7195 if test "${enable_logdialog+set}" = set; then
7196   enableval="$enable_logdialog"
7197
7198                           if test "$enableval" = yes; then
7199                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7200                           else
7201                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7202                           fi
7203
7204 else
7205
7206                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7207                           if test "x$LINE" != x ; then
7208                             eval "DEFAULT_$LINE"
7209                           else
7210                             no_cache=1
7211                           fi
7212
7213                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7214
7215 fi;
7216
7217           eval "$ac_cv_use_logdialog"
7218           if test "$no_cache" != 1; then
7219             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7220           fi
7221
7222           if test "$wxUSE_LOGDIALOG" = yes; then
7223             echo "$as_me:$LINENO: result: yes" >&5
7224 echo "${ECHO_T}yes" >&6
7225           else
7226             echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7228           fi
7229
7230
7231           enablestring=
7232           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7233 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7234           no_cache=0
7235           # Check whether --enable-webkit or --disable-webkit was given.
7236 if test "${enable_webkit+set}" = set; then
7237   enableval="$enable_webkit"
7238
7239                           if test "$enableval" = yes; then
7240                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7241                           else
7242                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7243                           fi
7244
7245 else
7246
7247                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7248                           if test "x$LINE" != x ; then
7249                             eval "DEFAULT_$LINE"
7250                           else
7251                             no_cache=1
7252                           fi
7253
7254                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7255
7256 fi;
7257
7258           eval "$ac_cv_use_webkit"
7259           if test "$no_cache" != 1; then
7260             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7261           fi
7262
7263           if test "$wxUSE_WEBKIT" = yes; then
7264             echo "$as_me:$LINENO: result: yes" >&5
7265 echo "${ECHO_T}yes" >&6
7266           else
7267             echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6
7269           fi
7270
7271
7272           enablestring=
7273           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7274 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7275           no_cache=0
7276           # Check whether --enable-html or --disable-html was given.
7277 if test "${enable_html+set}" = set; then
7278   enableval="$enable_html"
7279
7280                           if test "$enableval" = yes; then
7281                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7282                           else
7283                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7284                           fi
7285
7286 else
7287
7288                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7289                           if test "x$LINE" != x ; then
7290                             eval "DEFAULT_$LINE"
7291                           else
7292                             no_cache=1
7293                           fi
7294
7295                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7296
7297 fi;
7298
7299           eval "$ac_cv_use_html"
7300           if test "$no_cache" != 1; then
7301             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7302           fi
7303
7304           if test "$wxUSE_RICHTEXT" = yes; then
7305             echo "$as_me:$LINENO: result: yes" >&5
7306 echo "${ECHO_T}yes" >&6
7307           else
7308             echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7310           fi
7311
7312
7313
7314           enablestring=
7315           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7316 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7317           no_cache=0
7318           # Check whether --enable-postscript or --disable-postscript was given.
7319 if test "${enable_postscript+set}" = set; then
7320   enableval="$enable_postscript"
7321
7322                           if test "$enableval" = yes; then
7323                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7324                           else
7325                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7326                           fi
7327
7328 else
7329
7330                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7331                           if test "x$LINE" != x ; then
7332                             eval "DEFAULT_$LINE"
7333                           else
7334                             no_cache=1
7335                           fi
7336
7337                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7338
7339 fi;
7340
7341           eval "$ac_cv_use_postscript"
7342           if test "$no_cache" != 1; then
7343             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7344           fi
7345
7346           if test "$wxUSE_POSTSCRIPT" = yes; then
7347             echo "$as_me:$LINENO: result: yes" >&5
7348 echo "${ECHO_T}yes" >&6
7349           else
7350             echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7352           fi
7353
7354
7355
7356
7357
7358           enablestring=
7359           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7360 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7361           no_cache=0
7362           # Check whether --enable-prologio or --disable-prologio was given.
7363 if test "${enable_prologio+set}" = set; then
7364   enableval="$enable_prologio"
7365
7366                           if test "$enableval" = yes; then
7367                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7368                           else
7369                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7370                           fi
7371
7372 else
7373
7374                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7375                           if test "x$LINE" != x ; then
7376                             eval "DEFAULT_$LINE"
7377                           else
7378                             no_cache=1
7379                           fi
7380
7381                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7382
7383 fi;
7384
7385           eval "$ac_cv_use_prologio"
7386           if test "$no_cache" != 1; then
7387             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7388           fi
7389
7390           if test "$wxUSE_PROLOGIO" = yes; then
7391             echo "$as_me:$LINENO: result: yes" >&5
7392 echo "${ECHO_T}yes" >&6
7393           else
7394             echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396           fi
7397
7398
7399           enablestring=
7400           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7401 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7402           no_cache=0
7403           # Check whether --enable-resources or --disable-resources was given.
7404 if test "${enable_resources+set}" = set; then
7405   enableval="$enable_resources"
7406
7407                           if test "$enableval" = yes; then
7408                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7409                           else
7410                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7411                           fi
7412
7413 else
7414
7415                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7416                           if test "x$LINE" != x ; then
7417                             eval "DEFAULT_$LINE"
7418                           else
7419                             no_cache=1
7420                           fi
7421
7422                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7423
7424 fi;
7425
7426           eval "$ac_cv_use_resources"
7427           if test "$no_cache" != 1; then
7428             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7429           fi
7430
7431           if test "$wxUSE_RESOURCES" = yes; then
7432             echo "$as_me:$LINENO: result: yes" >&5
7433 echo "${ECHO_T}yes" >&6
7434           else
7435             echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437           fi
7438
7439
7440
7441
7442           enablestring=
7443           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7444 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7445           no_cache=0
7446           # Check whether --enable-clipboard or --disable-clipboard was given.
7447 if test "${enable_clipboard+set}" = set; then
7448   enableval="$enable_clipboard"
7449
7450                           if test "$enableval" = yes; then
7451                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7452                           else
7453                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7454                           fi
7455
7456 else
7457
7458                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7459                           if test "x$LINE" != x ; then
7460                             eval "DEFAULT_$LINE"
7461                           else
7462                             no_cache=1
7463                           fi
7464
7465                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7466
7467 fi;
7468
7469           eval "$ac_cv_use_clipboard"
7470           if test "$no_cache" != 1; then
7471             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7472           fi
7473
7474           if test "$wxUSE_CLIPBOARD" = yes; then
7475             echo "$as_me:$LINENO: result: yes" >&5
7476 echo "${ECHO_T}yes" >&6
7477           else
7478             echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480           fi
7481
7482
7483           enablestring=
7484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7485 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7486           no_cache=0
7487           # Check whether --enable-dnd or --disable-dnd was given.
7488 if test "${enable_dnd+set}" = set; then
7489   enableval="$enable_dnd"
7490
7491                           if test "$enableval" = yes; then
7492                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7493                           else
7494                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7495                           fi
7496
7497 else
7498
7499                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7500                           if test "x$LINE" != x ; then
7501                             eval "DEFAULT_$LINE"
7502                           else
7503                             no_cache=1
7504                           fi
7505
7506                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7507
7508 fi;
7509
7510           eval "$ac_cv_use_dnd"
7511           if test "$no_cache" != 1; then
7512             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7513           fi
7514
7515           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7516             echo "$as_me:$LINENO: result: yes" >&5
7517 echo "${ECHO_T}yes" >&6
7518           else
7519             echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7521           fi
7522
7523
7524           enablestring=
7525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7526 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7527           no_cache=0
7528           # Check whether --enable-metafile or --disable-metafile was given.
7529 if test "${enable_metafile+set}" = set; then
7530   enableval="$enable_metafile"
7531
7532                           if test "$enableval" = yes; then
7533                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7534                           else
7535                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7536                           fi
7537
7538 else
7539
7540                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7541                           if test "x$LINE" != x ; then
7542                             eval "DEFAULT_$LINE"
7543                           else
7544                             no_cache=1
7545                           fi
7546
7547                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7548
7549 fi;
7550
7551           eval "$ac_cv_use_metafile"
7552           if test "$no_cache" != 1; then
7553             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7554           fi
7555
7556           if test "$wxUSE_METAFILE" = yes; then
7557             echo "$as_me:$LINENO: result: yes" >&5
7558 echo "${ECHO_T}yes" >&6
7559           else
7560             echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7562           fi
7563
7564
7565
7566
7567
7568           enablestring=
7569           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7570 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7571           no_cache=0
7572           # Check whether --enable-controls or --disable-controls was given.
7573 if test "${enable_controls+set}" = set; then
7574   enableval="$enable_controls"
7575
7576                           if test "$enableval" = yes; then
7577                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7578                           else
7579                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7580                           fi
7581
7582 else
7583
7584                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7585                           if test "x$LINE" != x ; then
7586                             eval "DEFAULT_$LINE"
7587                           else
7588                             no_cache=1
7589                           fi
7590
7591                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7592
7593 fi;
7594
7595           eval "$ac_cv_use_controls"
7596           if test "$no_cache" != 1; then
7597             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7598           fi
7599
7600           if test "$wxUSE_CONTROLS" = yes; then
7601             echo "$as_me:$LINENO: result: yes" >&5
7602 echo "${ECHO_T}yes" >&6
7603           else
7604             echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7606           fi
7607
7608
7609 if test "$wxUSE_CONTROLS" = "yes"; then
7610   DEFAULT_wxUSE_ACCEL=yes
7611   DEFAULT_wxUSE_BMPBUTTON=yes
7612   DEFAULT_wxUSE_BUTTON=yes
7613   DEFAULT_wxUSE_CALCTRL=yes
7614   DEFAULT_wxUSE_CARET=yes
7615   DEFAULT_wxUSE_COMBOBOX=yes
7616   DEFAULT_wxUSE_CHECKBOX=yes
7617   DEFAULT_wxUSE_CHECKLISTBOX=yes
7618   DEFAULT_wxUSE_CHOICE=yes
7619   DEFAULT_wxUSE_CHOICEBOOK=yes
7620   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7621   DEFAULT_wxUSE_COMBOBOX=yes
7622   DEFAULT_wxUSE_DATEPICKCTRL=yes
7623   DEFAULT_wxUSE_DISPLAY=yes
7624   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7625   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7626   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7627   DEFAULT_wxUSE_GAUGE=yes
7628   DEFAULT_wxUSE_GRID=yes
7629   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7630   DEFAULT_wxUSE_DATAVIEWCTRL=no
7631   DEFAULT_wxUSE_IMAGLIST=yes
7632   DEFAULT_wxUSE_LISTBOOK=yes
7633   DEFAULT_wxUSE_LISTBOX=yes
7634   DEFAULT_wxUSE_LISTCTRL=yes
7635   DEFAULT_wxUSE_NOTEBOOK=yes
7636   DEFAULT_wxUSE_RADIOBOX=yes
7637   DEFAULT_wxUSE_RADIOBTN=yes
7638   DEFAULT_wxUSE_SASH=yes
7639   DEFAULT_wxUSE_SCROLLBAR=yes
7640   DEFAULT_wxUSE_SLIDER=yes
7641   DEFAULT_wxUSE_SPINBTN=yes
7642   DEFAULT_wxUSE_SPINCTRL=yes
7643   DEFAULT_wxUSE_SPLITTER=yes
7644   DEFAULT_wxUSE_STATBMP=yes
7645   DEFAULT_wxUSE_STATBOX=yes
7646   DEFAULT_wxUSE_STATLINE=yes
7647   DEFAULT_wxUSE_STATUSBAR=yes
7648   DEFAULT_wxUSE_TAB_DIALOG=yes
7649   DEFAULT_wxUSE_TOGGLEBTN=yes
7650   DEFAULT_wxUSE_TOOLBAR=yes
7651   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7652   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7653   DEFAULT_wxUSE_TOOLTIPS=yes
7654   DEFAULT_wxUSE_TREEBOOK=yes
7655   DEFAULT_wxUSE_TOOLBOOK=yes
7656   DEFAULT_wxUSE_TREECTRL=yes
7657   DEFAULT_wxUSE_POPUPWIN=yes
7658   DEFAULT_wxUSE_TIPWINDOW=yes
7659 elif test "$wxUSE_CONTROLS" = "no"; then
7660   DEFAULT_wxUSE_ACCEL=no
7661   DEFAULT_wxUSE_BMPBUTTON=no
7662   DEFAULT_wxUSE_BUTTON=no
7663   DEFAULT_wxUSE_CALCTRL=no
7664   DEFAULT_wxUSE_CARET=no
7665   DEFAULT_wxUSE_COMBOBOX=no
7666   DEFAULT_wxUSE_CHECKBOX=no
7667   DEFAULT_wxUSE_CHECKLISTBOX=no
7668   DEFAULT_wxUSE_CHOICE=no
7669   DEFAULT_wxUSE_CHOICEBOOK=no
7670   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7671   DEFAULT_wxUSE_COMBOBOX=no
7672   DEFAULT_wxUSE_DATEPICKCTRL=no
7673   DEFAULT_wxUSE_DISPLAY=no
7674   DEFAULT_wxUSE_DIRPICKERCTRL=no
7675   DEFAULT_wxUSE_FILEPICKERCTRL=no
7676   DEFAULT_wxUSE_FONTPICKERCTRL=no
7677   DEFAULT_wxUSE_GAUGE=no
7678   DEFAULT_wxUSE_GRID=no
7679   DEFAULT_wxUSE_HYPERLINKCTRL=no
7680   DEFAULT_wxUSE_DATAVIEWCTRL=no
7681   DEFAULT_wxUSE_IMAGLIST=no
7682   DEFAULT_wxUSE_LISTBOOK=no
7683   DEFAULT_wxUSE_LISTBOX=no
7684   DEFAULT_wxUSE_LISTCTRL=no
7685   DEFAULT_wxUSE_NOTEBOOK=no
7686   DEFAULT_wxUSE_RADIOBOX=no
7687   DEFAULT_wxUSE_RADIOBTN=no
7688   DEFAULT_wxUSE_SASH=no
7689   DEFAULT_wxUSE_SCROLLBAR=no
7690   DEFAULT_wxUSE_SLIDER=no
7691   DEFAULT_wxUSE_SPINBTN=no
7692   DEFAULT_wxUSE_SPINCTRL=no
7693   DEFAULT_wxUSE_SPLITTER=no
7694   DEFAULT_wxUSE_STATBMP=no
7695   DEFAULT_wxUSE_STATBOX=no
7696   DEFAULT_wxUSE_STATLINE=no
7697   DEFAULT_wxUSE_STATUSBAR=no
7698   DEFAULT_wxUSE_TAB_DIALOG=no
7699   DEFAULT_wxUSE_TOGGLEBTN=no
7700   DEFAULT_wxUSE_TOOLBAR=no
7701   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7702   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7703   DEFAULT_wxUSE_TOOLTIPS=no
7704   DEFAULT_wxUSE_TREEBOOK=no
7705   DEFAULT_wxUSE_TOOLBOOK=no
7706   DEFAULT_wxUSE_TREECTRL=no
7707   DEFAULT_wxUSE_POPUPWIN=no
7708   DEFAULT_wxUSE_TIPWINDOW=no
7709 fi
7710
7711
7712           enablestring=
7713           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7714 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7715           no_cache=0
7716           # Check whether --enable-accel or --disable-accel was given.
7717 if test "${enable_accel+set}" = set; then
7718   enableval="$enable_accel"
7719
7720                           if test "$enableval" = yes; then
7721                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7722                           else
7723                             ac_cv_use_accel='wxUSE_ACCEL=no'
7724                           fi
7725
7726 else
7727
7728                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7729                           if test "x$LINE" != x ; then
7730                             eval "DEFAULT_$LINE"
7731                           else
7732                             no_cache=1
7733                           fi
7734
7735                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7736
7737 fi;
7738
7739           eval "$ac_cv_use_accel"
7740           if test "$no_cache" != 1; then
7741             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7742           fi
7743
7744           if test "$wxUSE_ACCEL" = yes; then
7745             echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6
7747           else
7748             echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7750           fi
7751
7752
7753           enablestring=
7754           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7755 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7756           no_cache=0
7757           # Check whether --enable-button or --disable-button was given.
7758 if test "${enable_button+set}" = set; then
7759   enableval="$enable_button"
7760
7761                           if test "$enableval" = yes; then
7762                             ac_cv_use_button='wxUSE_BUTTON=yes'
7763                           else
7764                             ac_cv_use_button='wxUSE_BUTTON=no'
7765                           fi
7766
7767 else
7768
7769                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7770                           if test "x$LINE" != x ; then
7771                             eval "DEFAULT_$LINE"
7772                           else
7773                             no_cache=1
7774                           fi
7775
7776                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7777
7778 fi;
7779
7780           eval "$ac_cv_use_button"
7781           if test "$no_cache" != 1; then
7782             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7783           fi
7784
7785           if test "$wxUSE_BUTTON" = yes; then
7786             echo "$as_me:$LINENO: result: yes" >&5
7787 echo "${ECHO_T}yes" >&6
7788           else
7789             echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7791           fi
7792
7793
7794           enablestring=
7795           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7796 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7797           no_cache=0
7798           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7799 if test "${enable_bmpbutton+set}" = set; then
7800   enableval="$enable_bmpbutton"
7801
7802                           if test "$enableval" = yes; then
7803                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7804                           else
7805                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7806                           fi
7807
7808 else
7809
7810                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7811                           if test "x$LINE" != x ; then
7812                             eval "DEFAULT_$LINE"
7813                           else
7814                             no_cache=1
7815                           fi
7816
7817                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7818
7819 fi;
7820
7821           eval "$ac_cv_use_bmpbutton"
7822           if test "$no_cache" != 1; then
7823             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7824           fi
7825
7826           if test "$wxUSE_BMPBUTTON" = yes; then
7827             echo "$as_me:$LINENO: result: yes" >&5
7828 echo "${ECHO_T}yes" >&6
7829           else
7830             echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832           fi
7833
7834
7835           enablestring=
7836           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7837 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7838           no_cache=0
7839           # Check whether --enable-calendar or --disable-calendar was given.
7840 if test "${enable_calendar+set}" = set; then
7841   enableval="$enable_calendar"
7842
7843                           if test "$enableval" = yes; then
7844                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7845                           else
7846                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7847                           fi
7848
7849 else
7850
7851                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7852                           if test "x$LINE" != x ; then
7853                             eval "DEFAULT_$LINE"
7854                           else
7855                             no_cache=1
7856                           fi
7857
7858                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7859
7860 fi;
7861
7862           eval "$ac_cv_use_calendar"
7863           if test "$no_cache" != 1; then
7864             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7865           fi
7866
7867           if test "$wxUSE_CALCTRL" = yes; then
7868             echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6
7870           else
7871             echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6
7873           fi
7874
7875
7876           enablestring=
7877           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7878 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7879           no_cache=0
7880           # Check whether --enable-caret or --disable-caret was given.
7881 if test "${enable_caret+set}" = set; then
7882   enableval="$enable_caret"
7883
7884                           if test "$enableval" = yes; then
7885                             ac_cv_use_caret='wxUSE_CARET=yes'
7886                           else
7887                             ac_cv_use_caret='wxUSE_CARET=no'
7888                           fi
7889
7890 else
7891
7892                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7893                           if test "x$LINE" != x ; then
7894                             eval "DEFAULT_$LINE"
7895                           else
7896                             no_cache=1
7897                           fi
7898
7899                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7900
7901 fi;
7902
7903           eval "$ac_cv_use_caret"
7904           if test "$no_cache" != 1; then
7905             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7906           fi
7907
7908           if test "$wxUSE_CARET" = yes; then
7909             echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7911           else
7912             echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6
7914           fi
7915
7916
7917           enablestring=
7918           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7919 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7920           no_cache=0
7921           # Check whether --enable-checkbox or --disable-checkbox was given.
7922 if test "${enable_checkbox+set}" = set; then
7923   enableval="$enable_checkbox"
7924
7925                           if test "$enableval" = yes; then
7926                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7927                           else
7928                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7929                           fi
7930
7931 else
7932
7933                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7934                           if test "x$LINE" != x ; then
7935                             eval "DEFAULT_$LINE"
7936                           else
7937                             no_cache=1
7938                           fi
7939
7940                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7941
7942 fi;
7943
7944           eval "$ac_cv_use_checkbox"
7945           if test "$no_cache" != 1; then
7946             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7947           fi
7948
7949           if test "$wxUSE_CHECKBOX" = yes; then
7950             echo "$as_me:$LINENO: result: yes" >&5
7951 echo "${ECHO_T}yes" >&6
7952           else
7953             echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955           fi
7956
7957
7958           enablestring=
7959           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7960 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7961           no_cache=0
7962           # Check whether --enable-checklst or --disable-checklst was given.
7963 if test "${enable_checklst+set}" = set; then
7964   enableval="$enable_checklst"
7965
7966                           if test "$enableval" = yes; then
7967                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7968                           else
7969                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7970                           fi
7971
7972 else
7973
7974                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7975                           if test "x$LINE" != x ; then
7976                             eval "DEFAULT_$LINE"
7977                           else
7978                             no_cache=1
7979                           fi
7980
7981                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7982
7983 fi;
7984
7985           eval "$ac_cv_use_checklst"
7986           if test "$no_cache" != 1; then
7987             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7988           fi
7989
7990           if test "$wxUSE_CHECKLST" = yes; then
7991             echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993           else
7994             echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996           fi
7997
7998
7999           enablestring=
8000           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8001 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8002           no_cache=0
8003           # Check whether --enable-choice or --disable-choice was given.
8004 if test "${enable_choice+set}" = set; then
8005   enableval="$enable_choice"
8006
8007                           if test "$enableval" = yes; then
8008                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8009                           else
8010                             ac_cv_use_choice='wxUSE_CHOICE=no'
8011                           fi
8012
8013 else
8014
8015                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8016                           if test "x$LINE" != x ; then
8017                             eval "DEFAULT_$LINE"
8018                           else
8019                             no_cache=1
8020                           fi
8021
8022                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8023
8024 fi;
8025
8026           eval "$ac_cv_use_choice"
8027           if test "$no_cache" != 1; then
8028             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8029           fi
8030
8031           if test "$wxUSE_CHOICE" = yes; then
8032             echo "$as_me:$LINENO: result: yes" >&5
8033 echo "${ECHO_T}yes" >&6
8034           else
8035             echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8037           fi
8038
8039
8040           enablestring=
8041           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8042 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8043           no_cache=0
8044           # Check whether --enable-choicebook or --disable-choicebook was given.
8045 if test "${enable_choicebook+set}" = set; then
8046   enableval="$enable_choicebook"
8047
8048                           if test "$enableval" = yes; then
8049                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8050                           else
8051                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8052                           fi
8053
8054 else
8055
8056                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8057                           if test "x$LINE" != x ; then
8058                             eval "DEFAULT_$LINE"
8059                           else
8060                             no_cache=1
8061                           fi
8062
8063                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8064
8065 fi;
8066
8067           eval "$ac_cv_use_choicebook"
8068           if test "$no_cache" != 1; then
8069             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8070           fi
8071
8072           if test "$wxUSE_CHOICEBOOK" = yes; then
8073             echo "$as_me:$LINENO: result: yes" >&5
8074 echo "${ECHO_T}yes" >&6
8075           else
8076             echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6
8078           fi
8079
8080
8081           enablestring=
8082           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8083 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8084           no_cache=0
8085           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8086 if test "${enable_colourpicker+set}" = set; then
8087   enableval="$enable_colourpicker"
8088
8089                           if test "$enableval" = yes; then
8090                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8091                           else
8092                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8093                           fi
8094
8095 else
8096
8097                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8098                           if test "x$LINE" != x ; then
8099                             eval "DEFAULT_$LINE"
8100                           else
8101                             no_cache=1
8102                           fi
8103
8104                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8105
8106 fi;
8107
8108           eval "$ac_cv_use_colourpicker"
8109           if test "$no_cache" != 1; then
8110             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8111           fi
8112
8113           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8114             echo "$as_me:$LINENO: result: yes" >&5
8115 echo "${ECHO_T}yes" >&6
8116           else
8117             echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6
8119           fi
8120
8121
8122           enablestring=
8123           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8124 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8125           no_cache=0
8126           # Check whether --enable-combobox or --disable-combobox was given.
8127 if test "${enable_combobox+set}" = set; then
8128   enableval="$enable_combobox"
8129
8130                           if test "$enableval" = yes; then
8131                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8132                           else
8133                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8134                           fi
8135
8136 else
8137
8138                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8139                           if test "x$LINE" != x ; then
8140                             eval "DEFAULT_$LINE"
8141                           else
8142                             no_cache=1
8143                           fi
8144
8145                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8146
8147 fi;
8148
8149           eval "$ac_cv_use_combobox"
8150           if test "$no_cache" != 1; then
8151             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8152           fi
8153
8154           if test "$wxUSE_COMBOBOX" = yes; then
8155             echo "$as_me:$LINENO: result: yes" >&5
8156 echo "${ECHO_T}yes" >&6
8157           else
8158             echo "$as_me:$LINENO: result: no" >&5
8159 echo "${ECHO_T}no" >&6
8160           fi
8161
8162
8163           enablestring=
8164           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8165 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8166           no_cache=0
8167           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8168 if test "${enable_comboctrl+set}" = set; then
8169   enableval="$enable_comboctrl"
8170
8171                           if test "$enableval" = yes; then
8172                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8173                           else
8174                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8175                           fi
8176
8177 else
8178
8179                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8180                           if test "x$LINE" != x ; then
8181                             eval "DEFAULT_$LINE"
8182                           else
8183                             no_cache=1
8184                           fi
8185
8186                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8187
8188 fi;
8189
8190           eval "$ac_cv_use_comboctrl"
8191           if test "$no_cache" != 1; then
8192             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8193           fi
8194
8195           if test "$wxUSE_COMBOCTRL" = yes; then
8196             echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6
8198           else
8199             echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201           fi
8202
8203
8204           enablestring=
8205           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8206 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8207           no_cache=0
8208           # Check whether --enable-datepick or --disable-datepick was given.
8209 if test "${enable_datepick+set}" = set; then
8210   enableval="$enable_datepick"
8211
8212                           if test "$enableval" = yes; then
8213                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8214                           else
8215                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8216                           fi
8217
8218 else
8219
8220                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8221                           if test "x$LINE" != x ; then
8222                             eval "DEFAULT_$LINE"
8223                           else
8224                             no_cache=1
8225                           fi
8226
8227                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8228
8229 fi;
8230
8231           eval "$ac_cv_use_datepick"
8232           if test "$no_cache" != 1; then
8233             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8234           fi
8235
8236           if test "$wxUSE_DATEPICKCTRL" = yes; then
8237             echo "$as_me:$LINENO: result: yes" >&5
8238 echo "${ECHO_T}yes" >&6
8239           else
8240             echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6
8242           fi
8243
8244
8245           enablestring=
8246           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8247 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8248           no_cache=0
8249           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8250 if test "${enable_dirpicker+set}" = set; then
8251   enableval="$enable_dirpicker"
8252
8253                           if test "$enableval" = yes; then
8254                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8255                           else
8256                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8257                           fi
8258
8259 else
8260
8261                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8262                           if test "x$LINE" != x ; then
8263                             eval "DEFAULT_$LINE"
8264                           else
8265                             no_cache=1
8266                           fi
8267
8268                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8269
8270 fi;
8271
8272           eval "$ac_cv_use_dirpicker"
8273           if test "$no_cache" != 1; then
8274             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8275           fi
8276
8277           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8278             echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6
8280           else
8281             echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6
8283           fi
8284
8285
8286           enablestring=
8287           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8288 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8289           no_cache=0
8290           # Check whether --enable-display or --disable-display was given.
8291 if test "${enable_display+set}" = set; then
8292   enableval="$enable_display"
8293
8294                           if test "$enableval" = yes; then
8295                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8296                           else
8297                             ac_cv_use_display='wxUSE_DISPLAY=no'
8298                           fi
8299
8300 else
8301
8302                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8303                           if test "x$LINE" != x ; then
8304                             eval "DEFAULT_$LINE"
8305                           else
8306                             no_cache=1
8307                           fi
8308
8309                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8310
8311 fi;
8312
8313           eval "$ac_cv_use_display"
8314           if test "$no_cache" != 1; then
8315             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8316           fi
8317
8318           if test "$wxUSE_DISPLAY" = yes; then
8319             echo "$as_me:$LINENO: result: yes" >&5
8320 echo "${ECHO_T}yes" >&6
8321           else
8322             echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6
8324           fi
8325
8326
8327           enablestring=
8328           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8329 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8330           no_cache=0
8331           # Check whether --enable-filepicker or --disable-filepicker was given.
8332 if test "${enable_filepicker+set}" = set; then
8333   enableval="$enable_filepicker"
8334
8335                           if test "$enableval" = yes; then
8336                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8337                           else
8338                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8339                           fi
8340
8341 else
8342
8343                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8344                           if test "x$LINE" != x ; then
8345                             eval "DEFAULT_$LINE"
8346                           else
8347                             no_cache=1
8348                           fi
8349
8350                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8351
8352 fi;
8353
8354           eval "$ac_cv_use_filepicker"
8355           if test "$no_cache" != 1; then
8356             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8357           fi
8358
8359           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8360             echo "$as_me:$LINENO: result: yes" >&5
8361 echo "${ECHO_T}yes" >&6
8362           else
8363             echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6
8365           fi
8366
8367
8368           enablestring=
8369           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8370 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8371           no_cache=0
8372           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8373 if test "${enable_fontpicker+set}" = set; then
8374   enableval="$enable_fontpicker"
8375
8376                           if test "$enableval" = yes; then
8377                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8378                           else
8379                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8380                           fi
8381
8382 else
8383
8384                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8385                           if test "x$LINE" != x ; then
8386                             eval "DEFAULT_$LINE"
8387                           else
8388                             no_cache=1
8389                           fi
8390
8391                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8392
8393 fi;
8394
8395           eval "$ac_cv_use_fontpicker"
8396           if test "$no_cache" != 1; then
8397             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8398           fi
8399
8400           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8401             echo "$as_me:$LINENO: result: yes" >&5
8402 echo "${ECHO_T}yes" >&6
8403           else
8404             echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6
8406           fi
8407
8408
8409           enablestring=
8410           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8411 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8412           no_cache=0
8413           # Check whether --enable-gauge or --disable-gauge was given.
8414 if test "${enable_gauge+set}" = set; then
8415   enableval="$enable_gauge"
8416
8417                           if test "$enableval" = yes; then
8418                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8419                           else
8420                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8421                           fi
8422
8423 else
8424
8425                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8426                           if test "x$LINE" != x ; then
8427                             eval "DEFAULT_$LINE"
8428                           else
8429                             no_cache=1
8430                           fi
8431
8432                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8433
8434 fi;
8435
8436           eval "$ac_cv_use_gauge"
8437           if test "$no_cache" != 1; then
8438             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8439           fi
8440
8441           if test "$wxUSE_GAUGE" = yes; then
8442             echo "$as_me:$LINENO: result: yes" >&5
8443 echo "${ECHO_T}yes" >&6
8444           else
8445             echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6
8447           fi
8448
8449
8450           enablestring=
8451           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8452 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8453           no_cache=0
8454           # Check whether --enable-grid or --disable-grid was given.
8455 if test "${enable_grid+set}" = set; then
8456   enableval="$enable_grid"
8457
8458                           if test "$enableval" = yes; then
8459                             ac_cv_use_grid='wxUSE_GRID=yes'
8460                           else
8461                             ac_cv_use_grid='wxUSE_GRID=no'
8462                           fi
8463
8464 else
8465
8466                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8467                           if test "x$LINE" != x ; then
8468                             eval "DEFAULT_$LINE"
8469                           else
8470                             no_cache=1
8471                           fi
8472
8473                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8474
8475 fi;
8476
8477           eval "$ac_cv_use_grid"
8478           if test "$no_cache" != 1; then
8479             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8480           fi
8481
8482           if test "$wxUSE_GRID" = yes; then
8483             echo "$as_me:$LINENO: result: yes" >&5
8484 echo "${ECHO_T}yes" >&6
8485           else
8486             echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6
8488           fi
8489
8490
8491           enablestring=
8492           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8493 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8494           no_cache=0
8495           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8496 if test "${enable_dataviewctrl+set}" = set; then
8497   enableval="$enable_dataviewctrl"
8498
8499                           if test "$enableval" = yes; then
8500                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8501                           else
8502                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8503                           fi
8504
8505 else
8506
8507                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8508                           if test "x$LINE" != x ; then
8509                             eval "DEFAULT_$LINE"
8510                           else
8511                             no_cache=1
8512                           fi
8513
8514                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8515
8516 fi;
8517
8518           eval "$ac_cv_use_dataviewctrl"
8519           if test "$no_cache" != 1; then
8520             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8521           fi
8522
8523           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8524             echo "$as_me:$LINENO: result: yes" >&5
8525 echo "${ECHO_T}yes" >&6
8526           else
8527             echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6
8529           fi
8530
8531
8532           enablestring=
8533           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8534 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8535           no_cache=0
8536           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8537 if test "${enable_hyperlink+set}" = set; then
8538   enableval="$enable_hyperlink"
8539
8540                           if test "$enableval" = yes; then
8541                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8542                           else
8543                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8544                           fi
8545
8546 else
8547
8548                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8549                           if test "x$LINE" != x ; then
8550                             eval "DEFAULT_$LINE"
8551                           else
8552                             no_cache=1
8553                           fi
8554
8555                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8556
8557 fi;
8558
8559           eval "$ac_cv_use_hyperlink"
8560           if test "$no_cache" != 1; then
8561             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8562           fi
8563
8564           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8565             echo "$as_me:$LINENO: result: yes" >&5
8566 echo "${ECHO_T}yes" >&6
8567           else
8568             echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6
8570           fi
8571
8572
8573           enablestring=
8574           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8575 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8576           no_cache=0
8577           # Check whether --enable-imaglist or --disable-imaglist was given.
8578 if test "${enable_imaglist+set}" = set; then
8579   enableval="$enable_imaglist"
8580
8581                           if test "$enableval" = yes; then
8582                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8583                           else
8584                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8585                           fi
8586
8587 else
8588
8589                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8590                           if test "x$LINE" != x ; then
8591                             eval "DEFAULT_$LINE"
8592                           else
8593                             no_cache=1
8594                           fi
8595
8596                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8597
8598 fi;
8599
8600           eval "$ac_cv_use_imaglist"
8601           if test "$no_cache" != 1; then
8602             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8603           fi
8604
8605           if test "$wxUSE_IMAGLIST" = yes; then
8606             echo "$as_me:$LINENO: result: yes" >&5
8607 echo "${ECHO_T}yes" >&6
8608           else
8609             echo "$as_me:$LINENO: result: no" >&5
8610 echo "${ECHO_T}no" >&6
8611           fi
8612
8613
8614           enablestring=
8615           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8616 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8617           no_cache=0
8618           # Check whether --enable-listbook or --disable-listbook was given.
8619 if test "${enable_listbook+set}" = set; then
8620   enableval="$enable_listbook"
8621
8622                           if test "$enableval" = yes; then
8623                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8624                           else
8625                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8626                           fi
8627
8628 else
8629
8630                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8631                           if test "x$LINE" != x ; then
8632                             eval "DEFAULT_$LINE"
8633                           else
8634                             no_cache=1
8635                           fi
8636
8637                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8638
8639 fi;
8640
8641           eval "$ac_cv_use_listbook"
8642           if test "$no_cache" != 1; then
8643             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8644           fi
8645
8646           if test "$wxUSE_LISTBOOK" = yes; then
8647             echo "$as_me:$LINENO: result: yes" >&5
8648 echo "${ECHO_T}yes" >&6
8649           else
8650             echo "$as_me:$LINENO: result: no" >&5
8651 echo "${ECHO_T}no" >&6
8652           fi
8653
8654
8655           enablestring=
8656           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8657 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8658           no_cache=0
8659           # Check whether --enable-listbox or --disable-listbox was given.
8660 if test "${enable_listbox+set}" = set; then
8661   enableval="$enable_listbox"
8662
8663                           if test "$enableval" = yes; then
8664                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8665                           else
8666                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8667                           fi
8668
8669 else
8670
8671                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8672                           if test "x$LINE" != x ; then
8673                             eval "DEFAULT_$LINE"
8674                           else
8675                             no_cache=1
8676                           fi
8677
8678                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8679
8680 fi;
8681
8682           eval "$ac_cv_use_listbox"
8683           if test "$no_cache" != 1; then
8684             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8685           fi
8686
8687           if test "$wxUSE_LISTBOX" = yes; then
8688             echo "$as_me:$LINENO: result: yes" >&5
8689 echo "${ECHO_T}yes" >&6
8690           else
8691             echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8693           fi
8694
8695
8696           enablestring=
8697           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8698 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8699           no_cache=0
8700           # Check whether --enable-listctrl or --disable-listctrl was given.
8701 if test "${enable_listctrl+set}" = set; then
8702   enableval="$enable_listctrl"
8703
8704                           if test "$enableval" = yes; then
8705                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8706                           else
8707                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8708                           fi
8709
8710 else
8711
8712                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8713                           if test "x$LINE" != x ; then
8714                             eval "DEFAULT_$LINE"
8715                           else
8716                             no_cache=1
8717                           fi
8718
8719                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8720
8721 fi;
8722
8723           eval "$ac_cv_use_listctrl"
8724           if test "$no_cache" != 1; then
8725             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8726           fi
8727
8728           if test "$wxUSE_LISTCTRL" = yes; then
8729             echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6
8731           else
8732             echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8734           fi
8735
8736
8737           enablestring=
8738           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8739 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8740           no_cache=0
8741           # Check whether --enable-notebook or --disable-notebook was given.
8742 if test "${enable_notebook+set}" = set; then
8743   enableval="$enable_notebook"
8744
8745                           if test "$enableval" = yes; then
8746                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8747                           else
8748                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8749                           fi
8750
8751 else
8752
8753                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8754                           if test "x$LINE" != x ; then
8755                             eval "DEFAULT_$LINE"
8756                           else
8757                             no_cache=1
8758                           fi
8759
8760                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8761
8762 fi;
8763
8764           eval "$ac_cv_use_notebook"
8765           if test "$no_cache" != 1; then
8766             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8767           fi
8768
8769           if test "$wxUSE_NOTEBOOK" = yes; then
8770             echo "$as_me:$LINENO: result: yes" >&5
8771 echo "${ECHO_T}yes" >&6
8772           else
8773             echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8775           fi
8776
8777
8778           enablestring=
8779           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8780 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8781           no_cache=0
8782           # Check whether --enable-odcombobox or --disable-odcombobox was given.
8783 if test "${enable_odcombobox+set}" = set; then
8784   enableval="$enable_odcombobox"
8785
8786                           if test "$enableval" = yes; then
8787                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8788                           else
8789                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8790                           fi
8791
8792 else
8793
8794                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8795                           if test "x$LINE" != x ; then
8796                             eval "DEFAULT_$LINE"
8797                           else
8798                             no_cache=1
8799                           fi
8800
8801                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8802
8803 fi;
8804
8805           eval "$ac_cv_use_odcombobox"
8806           if test "$no_cache" != 1; then
8807             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8808           fi
8809
8810           if test "$wxUSE_ODCOMBOBOX" = yes; then
8811             echo "$as_me:$LINENO: result: yes" >&5
8812 echo "${ECHO_T}yes" >&6
8813           else
8814             echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816           fi
8817
8818
8819           enablestring=
8820           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8821 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8822           no_cache=0
8823           # Check whether --enable-radiobox or --disable-radiobox was given.
8824 if test "${enable_radiobox+set}" = set; then
8825   enableval="$enable_radiobox"
8826
8827                           if test "$enableval" = yes; then
8828                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8829                           else
8830                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8831                           fi
8832
8833 else
8834
8835                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8836                           if test "x$LINE" != x ; then
8837                             eval "DEFAULT_$LINE"
8838                           else
8839                             no_cache=1
8840                           fi
8841
8842                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8843
8844 fi;
8845
8846           eval "$ac_cv_use_radiobox"
8847           if test "$no_cache" != 1; then
8848             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8849           fi
8850
8851           if test "$wxUSE_RADIOBOX" = yes; then
8852             echo "$as_me:$LINENO: result: yes" >&5
8853 echo "${ECHO_T}yes" >&6
8854           else
8855             echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857           fi
8858
8859
8860           enablestring=
8861           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8862 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8863           no_cache=0
8864           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8865 if test "${enable_radiobtn+set}" = set; then
8866   enableval="$enable_radiobtn"
8867
8868                           if test "$enableval" = yes; then
8869                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8870                           else
8871                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8872                           fi
8873
8874 else
8875
8876                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8877                           if test "x$LINE" != x ; then
8878                             eval "DEFAULT_$LINE"
8879                           else
8880                             no_cache=1
8881                           fi
8882
8883                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8884
8885 fi;
8886
8887           eval "$ac_cv_use_radiobtn"
8888           if test "$no_cache" != 1; then
8889             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8890           fi
8891
8892           if test "$wxUSE_RADIOBTN" = yes; then
8893             echo "$as_me:$LINENO: result: yes" >&5
8894 echo "${ECHO_T}yes" >&6
8895           else
8896             echo "$as_me:$LINENO: result: no" >&5
8897 echo "${ECHO_T}no" >&6
8898           fi
8899
8900
8901           enablestring=
8902           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8903 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8904           no_cache=0
8905           # Check whether --enable-sash or --disable-sash was given.
8906 if test "${enable_sash+set}" = set; then
8907   enableval="$enable_sash"
8908
8909                           if test "$enableval" = yes; then
8910                             ac_cv_use_sash='wxUSE_SASH=yes'
8911                           else
8912                             ac_cv_use_sash='wxUSE_SASH=no'
8913                           fi
8914
8915 else
8916
8917                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8918                           if test "x$LINE" != x ; then
8919                             eval "DEFAULT_$LINE"
8920                           else
8921                             no_cache=1
8922                           fi
8923
8924                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8925
8926 fi;
8927
8928           eval "$ac_cv_use_sash"
8929           if test "$no_cache" != 1; then
8930             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8931           fi
8932
8933           if test "$wxUSE_SASH" = yes; then
8934             echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6
8936           else
8937             echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8939           fi
8940
8941
8942           enablestring=
8943           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8944 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8945           no_cache=0
8946           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8947 if test "${enable_scrollbar+set}" = set; then
8948   enableval="$enable_scrollbar"
8949
8950                           if test "$enableval" = yes; then
8951                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8952                           else
8953                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8954                           fi
8955
8956 else
8957
8958                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8959                           if test "x$LINE" != x ; then
8960                             eval "DEFAULT_$LINE"
8961                           else
8962                             no_cache=1
8963                           fi
8964
8965                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8966
8967 fi;
8968
8969           eval "$ac_cv_use_scrollbar"
8970           if test "$no_cache" != 1; then
8971             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8972           fi
8973
8974           if test "$wxUSE_SCROLLBAR" = yes; then
8975             echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977           else
8978             echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8980           fi
8981
8982
8983           enablestring=
8984           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8985 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8986           no_cache=0
8987           # Check whether --enable-slider or --disable-slider was given.
8988 if test "${enable_slider+set}" = set; then
8989   enableval="$enable_slider"
8990
8991                           if test "$enableval" = yes; then
8992                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8993                           else
8994                             ac_cv_use_slider='wxUSE_SLIDER=no'
8995                           fi
8996
8997 else
8998
8999                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9000                           if test "x$LINE" != x ; then
9001                             eval "DEFAULT_$LINE"
9002                           else
9003                             no_cache=1
9004                           fi
9005
9006                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9007
9008 fi;
9009
9010           eval "$ac_cv_use_slider"
9011           if test "$no_cache" != 1; then
9012             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9013           fi
9014
9015           if test "$wxUSE_SLIDER" = yes; then
9016             echo "$as_me:$LINENO: result: yes" >&5
9017 echo "${ECHO_T}yes" >&6
9018           else
9019             echo "$as_me:$LINENO: result: no" >&5
9020 echo "${ECHO_T}no" >&6
9021           fi
9022
9023
9024           enablestring=
9025           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9026 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9027           no_cache=0
9028           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9029 if test "${enable_spinbtn+set}" = set; then
9030   enableval="$enable_spinbtn"
9031
9032                           if test "$enableval" = yes; then
9033                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9034                           else
9035                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9036                           fi
9037
9038 else
9039
9040                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9041                           if test "x$LINE" != x ; then
9042                             eval "DEFAULT_$LINE"
9043                           else
9044                             no_cache=1
9045                           fi
9046
9047                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9048
9049 fi;
9050
9051           eval "$ac_cv_use_spinbtn"
9052           if test "$no_cache" != 1; then
9053             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9054           fi
9055
9056           if test "$wxUSE_SPINBTN" = yes; then
9057             echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6
9059           else
9060             echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9062           fi
9063
9064
9065           enablestring=
9066           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9067 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9068           no_cache=0
9069           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9070 if test "${enable_spinctrl+set}" = set; then
9071   enableval="$enable_spinctrl"
9072
9073                           if test "$enableval" = yes; then
9074                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9075                           else
9076                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9077                           fi
9078
9079 else
9080
9081                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9082                           if test "x$LINE" != x ; then
9083                             eval "DEFAULT_$LINE"
9084                           else
9085                             no_cache=1
9086                           fi
9087
9088                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9089
9090 fi;
9091
9092           eval "$ac_cv_use_spinctrl"
9093           if test "$no_cache" != 1; then
9094             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9095           fi
9096
9097           if test "$wxUSE_SPINCTRL" = yes; then
9098             echo "$as_me:$LINENO: result: yes" >&5
9099 echo "${ECHO_T}yes" >&6
9100           else
9101             echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6
9103           fi
9104
9105
9106           enablestring=
9107           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9108 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9109           no_cache=0
9110           # Check whether --enable-splitter or --disable-splitter was given.
9111 if test "${enable_splitter+set}" = set; then
9112   enableval="$enable_splitter"
9113
9114                           if test "$enableval" = yes; then
9115                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9116                           else
9117                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9118                           fi
9119
9120 else
9121
9122                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9123                           if test "x$LINE" != x ; then
9124                             eval "DEFAULT_$LINE"
9125                           else
9126                             no_cache=1
9127                           fi
9128
9129                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9130
9131 fi;
9132
9133           eval "$ac_cv_use_splitter"
9134           if test "$no_cache" != 1; then
9135             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9136           fi
9137
9138           if test "$wxUSE_SPLITTER" = yes; then
9139             echo "$as_me:$LINENO: result: yes" >&5
9140 echo "${ECHO_T}yes" >&6
9141           else
9142             echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6
9144           fi
9145
9146
9147           enablestring=
9148           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9149 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9150           no_cache=0
9151           # Check whether --enable-statbmp or --disable-statbmp was given.
9152 if test "${enable_statbmp+set}" = set; then
9153   enableval="$enable_statbmp"
9154
9155                           if test "$enableval" = yes; then
9156                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9157                           else
9158                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9159                           fi
9160
9161 else
9162
9163                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9164                           if test "x$LINE" != x ; then
9165                             eval "DEFAULT_$LINE"
9166                           else
9167                             no_cache=1
9168                           fi
9169
9170                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9171
9172 fi;
9173
9174           eval "$ac_cv_use_statbmp"
9175           if test "$no_cache" != 1; then
9176             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9177           fi
9178
9179           if test "$wxUSE_STATBMP" = yes; then
9180             echo "$as_me:$LINENO: result: yes" >&5
9181 echo "${ECHO_T}yes" >&6
9182           else
9183             echo "$as_me:$LINENO: result: no" >&5
9184 echo "${ECHO_T}no" >&6
9185           fi
9186
9187
9188           enablestring=
9189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9190 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9191           no_cache=0
9192           # Check whether --enable-statbox or --disable-statbox was given.
9193 if test "${enable_statbox+set}" = set; then
9194   enableval="$enable_statbox"
9195
9196                           if test "$enableval" = yes; then
9197                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9198                           else
9199                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9200                           fi
9201
9202 else
9203
9204                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9205                           if test "x$LINE" != x ; then
9206                             eval "DEFAULT_$LINE"
9207                           else
9208                             no_cache=1
9209                           fi
9210
9211                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9212
9213 fi;
9214
9215           eval "$ac_cv_use_statbox"
9216           if test "$no_cache" != 1; then
9217             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9218           fi
9219
9220           if test "$wxUSE_STATBOX" = yes; then
9221             echo "$as_me:$LINENO: result: yes" >&5
9222 echo "${ECHO_T}yes" >&6
9223           else
9224             echo "$as_me:$LINENO: result: no" >&5
9225 echo "${ECHO_T}no" >&6
9226           fi
9227
9228
9229           enablestring=
9230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9231 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9232           no_cache=0
9233           # Check whether --enable-statline or --disable-statline was given.
9234 if test "${enable_statline+set}" = set; then
9235   enableval="$enable_statline"
9236
9237                           if test "$enableval" = yes; then
9238                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9239                           else
9240                             ac_cv_use_statline='wxUSE_STATLINE=no'
9241                           fi
9242
9243 else
9244
9245                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9246                           if test "x$LINE" != x ; then
9247                             eval "DEFAULT_$LINE"
9248                           else
9249                             no_cache=1
9250                           fi
9251
9252                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9253
9254 fi;
9255
9256           eval "$ac_cv_use_statline"
9257           if test "$no_cache" != 1; then
9258             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9259           fi
9260
9261           if test "$wxUSE_STATLINE" = yes; then
9262             echo "$as_me:$LINENO: result: yes" >&5
9263 echo "${ECHO_T}yes" >&6
9264           else
9265             echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6
9267           fi
9268
9269
9270           enablestring=
9271           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9272 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9273           no_cache=0
9274           # Check whether --enable-stattext or --disable-stattext was given.
9275 if test "${enable_stattext+set}" = set; then
9276   enableval="$enable_stattext"
9277
9278                           if test "$enableval" = yes; then
9279                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9280                           else
9281                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9282                           fi
9283
9284 else
9285
9286                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9287                           if test "x$LINE" != x ; then
9288                             eval "DEFAULT_$LINE"
9289                           else
9290                             no_cache=1
9291                           fi
9292
9293                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9294
9295 fi;
9296
9297           eval "$ac_cv_use_stattext"
9298           if test "$no_cache" != 1; then
9299             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9300           fi
9301
9302           if test "$wxUSE_STATTEXT" = yes; then
9303             echo "$as_me:$LINENO: result: yes" >&5
9304 echo "${ECHO_T}yes" >&6
9305           else
9306             echo "$as_me:$LINENO: result: no" >&5
9307 echo "${ECHO_T}no" >&6
9308           fi
9309
9310
9311           enablestring=
9312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9313 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9314           no_cache=0
9315           # Check whether --enable-statusbar or --disable-statusbar was given.
9316 if test "${enable_statusbar+set}" = set; then
9317   enableval="$enable_statusbar"
9318
9319                           if test "$enableval" = yes; then
9320                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9321                           else
9322                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9323                           fi
9324
9325 else
9326
9327                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9328                           if test "x$LINE" != x ; then
9329                             eval "DEFAULT_$LINE"
9330                           else
9331                             no_cache=1
9332                           fi
9333
9334                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9335
9336 fi;
9337
9338           eval "$ac_cv_use_statusbar"
9339           if test "$no_cache" != 1; then
9340             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9341           fi
9342
9343           if test "$wxUSE_STATUSBAR" = yes; then
9344             echo "$as_me:$LINENO: result: yes" >&5
9345 echo "${ECHO_T}yes" >&6
9346           else
9347             echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9349           fi
9350
9351
9352           enablestring=
9353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9354 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9355           no_cache=0
9356           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9357 if test "${enable_tabdialog+set}" = set; then
9358   enableval="$enable_tabdialog"
9359
9360                           if test "$enableval" = yes; then
9361                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9362                           else
9363                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9364                           fi
9365
9366 else
9367
9368                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9369                           if test "x$LINE" != x ; then
9370                             eval "DEFAULT_$LINE"
9371                           else
9372                             no_cache=1
9373                           fi
9374
9375                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9376
9377 fi;
9378
9379           eval "$ac_cv_use_tabdialog"
9380           if test "$no_cache" != 1; then
9381             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9382           fi
9383
9384           if test "$wxUSE_TAB_DIALOG" = yes; then
9385             echo "$as_me:$LINENO: result: yes" >&5
9386 echo "${ECHO_T}yes" >&6
9387           else
9388             echo "$as_me:$LINENO: result: no" >&5
9389 echo "${ECHO_T}no" >&6
9390           fi
9391
9392
9393           enablestring=
9394           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9395 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9396           no_cache=0
9397           # Check whether --enable-textctrl or --disable-textctrl was given.
9398 if test "${enable_textctrl+set}" = set; then
9399   enableval="$enable_textctrl"
9400
9401                           if test "$enableval" = yes; then
9402                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9403                           else
9404                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9405                           fi
9406
9407 else
9408
9409                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9410                           if test "x$LINE" != x ; then
9411                             eval "DEFAULT_$LINE"
9412                           else
9413                             no_cache=1
9414                           fi
9415
9416                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9417
9418 fi;
9419
9420           eval "$ac_cv_use_textctrl"
9421           if test "$no_cache" != 1; then
9422             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9423           fi
9424
9425           if test "$wxUSE_TEXTCTRL" = yes; then
9426             echo "$as_me:$LINENO: result: yes" >&5
9427 echo "${ECHO_T}yes" >&6
9428           else
9429             echo "$as_me:$LINENO: result: no" >&5
9430 echo "${ECHO_T}no" >&6
9431           fi
9432
9433
9434           enablestring=
9435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9436 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9437           no_cache=0
9438           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9439 if test "${enable_togglebtn+set}" = set; then
9440   enableval="$enable_togglebtn"
9441
9442                           if test "$enableval" = yes; then
9443                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9444                           else
9445                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9446                           fi
9447
9448 else
9449
9450                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9451                           if test "x$LINE" != x ; then
9452                             eval "DEFAULT_$LINE"
9453                           else
9454                             no_cache=1
9455                           fi
9456
9457                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9458
9459 fi;
9460
9461           eval "$ac_cv_use_togglebtn"
9462           if test "$no_cache" != 1; then
9463             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9464           fi
9465
9466           if test "$wxUSE_TOGGLEBTN" = yes; then
9467             echo "$as_me:$LINENO: result: yes" >&5
9468 echo "${ECHO_T}yes" >&6
9469           else
9470             echo "$as_me:$LINENO: result: no" >&5
9471 echo "${ECHO_T}no" >&6
9472           fi
9473
9474
9475           enablestring=
9476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9477 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9478           no_cache=0
9479           # Check whether --enable-toolbar or --disable-toolbar was given.
9480 if test "${enable_toolbar+set}" = set; then
9481   enableval="$enable_toolbar"
9482
9483                           if test "$enableval" = yes; then
9484                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9485                           else
9486                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9487                           fi
9488
9489 else
9490
9491                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9492                           if test "x$LINE" != x ; then
9493                             eval "DEFAULT_$LINE"
9494                           else
9495                             no_cache=1
9496                           fi
9497
9498                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9499
9500 fi;
9501
9502           eval "$ac_cv_use_toolbar"
9503           if test "$no_cache" != 1; then
9504             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9505           fi
9506
9507           if test "$wxUSE_TOOLBAR" = yes; then
9508             echo "$as_me:$LINENO: result: yes" >&5
9509 echo "${ECHO_T}yes" >&6
9510           else
9511             echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9513           fi
9514
9515
9516           enablestring=
9517           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9518 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9519           no_cache=0
9520           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9521 if test "${enable_tbarnative+set}" = set; then
9522   enableval="$enable_tbarnative"
9523
9524                           if test "$enableval" = yes; then
9525                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9526                           else
9527                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9528                           fi
9529
9530 else
9531
9532                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9533                           if test "x$LINE" != x ; then
9534                             eval "DEFAULT_$LINE"
9535                           else
9536                             no_cache=1
9537                           fi
9538
9539                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9540
9541 fi;
9542
9543           eval "$ac_cv_use_tbarnative"
9544           if test "$no_cache" != 1; then
9545             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9546           fi
9547
9548           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9549             echo "$as_me:$LINENO: result: yes" >&5
9550 echo "${ECHO_T}yes" >&6
9551           else
9552             echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554           fi
9555
9556
9557           enablestring=
9558           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9559 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9560           no_cache=0
9561           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9562 if test "${enable_tbarsmpl+set}" = set; then
9563   enableval="$enable_tbarsmpl"
9564
9565                           if test "$enableval" = yes; then
9566                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9567                           else
9568                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9569                           fi
9570
9571 else
9572
9573                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9574                           if test "x$LINE" != x ; then
9575                             eval "DEFAULT_$LINE"
9576                           else
9577                             no_cache=1
9578                           fi
9579
9580                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9581
9582 fi;
9583
9584           eval "$ac_cv_use_tbarsmpl"
9585           if test "$no_cache" != 1; then
9586             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9587           fi
9588
9589           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9590             echo "$as_me:$LINENO: result: yes" >&5
9591 echo "${ECHO_T}yes" >&6
9592           else
9593             echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9595           fi
9596
9597
9598           enablestring=
9599           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9600 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9601           no_cache=0
9602           # Check whether --enable-treebook or --disable-treebook was given.
9603 if test "${enable_treebook+set}" = set; then
9604   enableval="$enable_treebook"
9605
9606                           if test "$enableval" = yes; then
9607                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9608                           else
9609                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9610                           fi
9611
9612 else
9613
9614                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9615                           if test "x$LINE" != x ; then
9616                             eval "DEFAULT_$LINE"
9617                           else
9618                             no_cache=1
9619                           fi
9620
9621                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9622
9623 fi;
9624
9625           eval "$ac_cv_use_treebook"
9626           if test "$no_cache" != 1; then
9627             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9628           fi
9629
9630           if test "$wxUSE_TREEBOOK" = yes; then
9631             echo "$as_me:$LINENO: result: yes" >&5
9632 echo "${ECHO_T}yes" >&6
9633           else
9634             echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6
9636           fi
9637
9638
9639           enablestring=
9640           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9641 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9642           no_cache=0
9643           # Check whether --enable-toolbook or --disable-toolbook was given.
9644 if test "${enable_toolbook+set}" = set; then
9645   enableval="$enable_toolbook"
9646
9647                           if test "$enableval" = yes; then
9648                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9649                           else
9650                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9651                           fi
9652
9653 else
9654
9655                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9656                           if test "x$LINE" != x ; then
9657                             eval "DEFAULT_$LINE"
9658                           else
9659                             no_cache=1
9660                           fi
9661
9662                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9663
9664 fi;
9665
9666           eval "$ac_cv_use_toolbook"
9667           if test "$no_cache" != 1; then
9668             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9669           fi
9670
9671           if test "$wxUSE_TOOLBOOK" = yes; then
9672             echo "$as_me:$LINENO: result: yes" >&5
9673 echo "${ECHO_T}yes" >&6
9674           else
9675             echo "$as_me:$LINENO: result: no" >&5
9676 echo "${ECHO_T}no" >&6
9677           fi
9678
9679
9680           enablestring=
9681           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9682 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9683           no_cache=0
9684           # Check whether --enable-treectrl or --disable-treectrl was given.
9685 if test "${enable_treectrl+set}" = set; then
9686   enableval="$enable_treectrl"
9687
9688                           if test "$enableval" = yes; then
9689                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9690                           else
9691                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9692                           fi
9693
9694 else
9695
9696                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9697                           if test "x$LINE" != x ; then
9698                             eval "DEFAULT_$LINE"
9699                           else
9700                             no_cache=1
9701                           fi
9702
9703                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9704
9705 fi;
9706
9707           eval "$ac_cv_use_treectrl"
9708           if test "$no_cache" != 1; then
9709             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9710           fi
9711
9712           if test "$wxUSE_TREECTRL" = yes; then
9713             echo "$as_me:$LINENO: result: yes" >&5
9714 echo "${ECHO_T}yes" >&6
9715           else
9716             echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6
9718           fi
9719
9720
9721           enablestring=
9722           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9723 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9724           no_cache=0
9725           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9726 if test "${enable_tipwindow+set}" = set; then
9727   enableval="$enable_tipwindow"
9728
9729                           if test "$enableval" = yes; then
9730                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9731                           else
9732                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9733                           fi
9734
9735 else
9736
9737                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9738                           if test "x$LINE" != x ; then
9739                             eval "DEFAULT_$LINE"
9740                           else
9741                             no_cache=1
9742                           fi
9743
9744                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9745
9746 fi;
9747
9748           eval "$ac_cv_use_tipwindow"
9749           if test "$no_cache" != 1; then
9750             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9751           fi
9752
9753           if test "$wxUSE_TIPWINDOW" = yes; then
9754             echo "$as_me:$LINENO: result: yes" >&5
9755 echo "${ECHO_T}yes" >&6
9756           else
9757             echo "$as_me:$LINENO: result: no" >&5
9758 echo "${ECHO_T}no" >&6
9759           fi
9760
9761
9762           enablestring=
9763           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9764 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9765           no_cache=0
9766           # Check whether --enable-popupwin or --disable-popupwin was given.
9767 if test "${enable_popupwin+set}" = set; then
9768   enableval="$enable_popupwin"
9769
9770                           if test "$enableval" = yes; then
9771                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9772                           else
9773                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9774                           fi
9775
9776 else
9777
9778                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9779                           if test "x$LINE" != x ; then
9780                             eval "DEFAULT_$LINE"
9781                           else
9782                             no_cache=1
9783                           fi
9784
9785                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9786
9787 fi;
9788
9789           eval "$ac_cv_use_popupwin"
9790           if test "$no_cache" != 1; then
9791             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9792           fi
9793
9794           if test "$wxUSE_POPUPWIN" = yes; then
9795             echo "$as_me:$LINENO: result: yes" >&5
9796 echo "${ECHO_T}yes" >&6
9797           else
9798             echo "$as_me:$LINENO: result: no" >&5
9799 echo "${ECHO_T}no" >&6
9800           fi
9801
9802
9803
9804
9805           enablestring=
9806           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9807 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9808           no_cache=0
9809           # Check whether --enable-commondlg or --disable-commondlg was given.
9810 if test "${enable_commondlg+set}" = set; then
9811   enableval="$enable_commondlg"
9812
9813                           if test "$enableval" = yes; then
9814                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9815                           else
9816                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9817                           fi
9818
9819 else
9820
9821                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9822                           if test "x$LINE" != x ; then
9823                             eval "DEFAULT_$LINE"
9824                           else
9825                             no_cache=1
9826                           fi
9827
9828                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9829
9830 fi;
9831
9832           eval "$ac_cv_use_commondlg"
9833           if test "$no_cache" != 1; then
9834             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9835           fi
9836
9837           if test "$wxUSE_COMMONDLGS" = yes; then
9838             echo "$as_me:$LINENO: result: yes" >&5
9839 echo "${ECHO_T}yes" >&6
9840           else
9841             echo "$as_me:$LINENO: result: no" >&5
9842 echo "${ECHO_T}no" >&6
9843           fi
9844
9845
9846           enablestring=
9847           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9848 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9849           no_cache=0
9850           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9851 if test "${enable_choicedlg+set}" = set; then
9852   enableval="$enable_choicedlg"
9853
9854                           if test "$enableval" = yes; then
9855                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9856                           else
9857                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9858                           fi
9859
9860 else
9861
9862                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9863                           if test "x$LINE" != x ; then
9864                             eval "DEFAULT_$LINE"
9865                           else
9866                             no_cache=1
9867                           fi
9868
9869                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9870
9871 fi;
9872
9873           eval "$ac_cv_use_choicedlg"
9874           if test "$no_cache" != 1; then
9875             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9876           fi
9877
9878           if test "$wxUSE_CHOICEDLG" = yes; then
9879             echo "$as_me:$LINENO: result: yes" >&5
9880 echo "${ECHO_T}yes" >&6
9881           else
9882             echo "$as_me:$LINENO: result: no" >&5
9883 echo "${ECHO_T}no" >&6
9884           fi
9885
9886
9887           enablestring=
9888           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9889 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9890           no_cache=0
9891           # Check whether --enable-coldlg or --disable-coldlg was given.
9892 if test "${enable_coldlg+set}" = set; then
9893   enableval="$enable_coldlg"
9894
9895                           if test "$enableval" = yes; then
9896                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9897                           else
9898                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9899                           fi
9900
9901 else
9902
9903                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9904                           if test "x$LINE" != x ; then
9905                             eval "DEFAULT_$LINE"
9906                           else
9907                             no_cache=1
9908                           fi
9909
9910                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9911
9912 fi;
9913
9914           eval "$ac_cv_use_coldlg"
9915           if test "$no_cache" != 1; then
9916             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9917           fi
9918
9919           if test "$wxUSE_COLOURDLG" = yes; then
9920             echo "$as_me:$LINENO: result: yes" >&5
9921 echo "${ECHO_T}yes" >&6
9922           else
9923             echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6
9925           fi
9926
9927
9928           enablestring=
9929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9930 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9931           no_cache=0
9932           # Check whether --enable-filedlg or --disable-filedlg was given.
9933 if test "${enable_filedlg+set}" = set; then
9934   enableval="$enable_filedlg"
9935
9936                           if test "$enableval" = yes; then
9937                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9938                           else
9939                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9940                           fi
9941
9942 else
9943
9944                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9945                           if test "x$LINE" != x ; then
9946                             eval "DEFAULT_$LINE"
9947                           else
9948                             no_cache=1
9949                           fi
9950
9951                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9952
9953 fi;
9954
9955           eval "$ac_cv_use_filedlg"
9956           if test "$no_cache" != 1; then
9957             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9958           fi
9959
9960           if test "$wxUSE_FILEDLG" = yes; then
9961             echo "$as_me:$LINENO: result: yes" >&5
9962 echo "${ECHO_T}yes" >&6
9963           else
9964             echo "$as_me:$LINENO: result: no" >&5
9965 echo "${ECHO_T}no" >&6
9966           fi
9967
9968
9969           enablestring=
9970           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9971 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9972           no_cache=0
9973           # Check whether --enable-finddlg or --disable-finddlg was given.
9974 if test "${enable_finddlg+set}" = set; then
9975   enableval="$enable_finddlg"
9976
9977                           if test "$enableval" = yes; then
9978                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9979                           else
9980                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9981                           fi
9982
9983 else
9984
9985                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9986                           if test "x$LINE" != x ; then
9987                             eval "DEFAULT_$LINE"
9988                           else
9989                             no_cache=1
9990                           fi
9991
9992                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9993
9994 fi;
9995
9996           eval "$ac_cv_use_finddlg"
9997           if test "$no_cache" != 1; then
9998             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9999           fi
10000
10001           if test "$wxUSE_FINDREPLDLG" = yes; then
10002             echo "$as_me:$LINENO: result: yes" >&5
10003 echo "${ECHO_T}yes" >&6
10004           else
10005             echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10007           fi
10008
10009
10010           enablestring=
10011           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10012 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10013           no_cache=0
10014           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10015 if test "${enable_fontdlg+set}" = set; then
10016   enableval="$enable_fontdlg"
10017
10018                           if test "$enableval" = yes; then
10019                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10020                           else
10021                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10022                           fi
10023
10024 else
10025
10026                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10027                           if test "x$LINE" != x ; then
10028                             eval "DEFAULT_$LINE"
10029                           else
10030                             no_cache=1
10031                           fi
10032
10033                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10034
10035 fi;
10036
10037           eval "$ac_cv_use_fontdlg"
10038           if test "$no_cache" != 1; then
10039             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10040           fi
10041
10042           if test "$wxUSE_FONTDLG" = yes; then
10043             echo "$as_me:$LINENO: result: yes" >&5
10044 echo "${ECHO_T}yes" >&6
10045           else
10046             echo "$as_me:$LINENO: result: no" >&5
10047 echo "${ECHO_T}no" >&6
10048           fi
10049
10050
10051           enablestring=
10052           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10053 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10054           no_cache=0
10055           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10056 if test "${enable_dirdlg+set}" = set; then
10057   enableval="$enable_dirdlg"
10058
10059                           if test "$enableval" = yes; then
10060                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10061                           else
10062                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10063                           fi
10064
10065 else
10066
10067                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10068                           if test "x$LINE" != x ; then
10069                             eval "DEFAULT_$LINE"
10070                           else
10071                             no_cache=1
10072                           fi
10073
10074                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10075
10076 fi;
10077
10078           eval "$ac_cv_use_dirdlg"
10079           if test "$no_cache" != 1; then
10080             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10081           fi
10082
10083           if test "$wxUSE_DIRDLG" = yes; then
10084             echo "$as_me:$LINENO: result: yes" >&5
10085 echo "${ECHO_T}yes" >&6
10086           else
10087             echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10089           fi
10090
10091
10092           enablestring=
10093           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10094 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10095           no_cache=0
10096           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10097 if test "${enable_msgdlg+set}" = set; then
10098   enableval="$enable_msgdlg"
10099
10100                           if test "$enableval" = yes; then
10101                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10102                           else
10103                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10104                           fi
10105
10106 else
10107
10108                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10109                           if test "x$LINE" != x ; then
10110                             eval "DEFAULT_$LINE"
10111                           else
10112                             no_cache=1
10113                           fi
10114
10115                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10116
10117 fi;
10118
10119           eval "$ac_cv_use_msgdlg"
10120           if test "$no_cache" != 1; then
10121             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10122           fi
10123
10124           if test "$wxUSE_MSGDLG" = yes; then
10125             echo "$as_me:$LINENO: result: yes" >&5
10126 echo "${ECHO_T}yes" >&6
10127           else
10128             echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6
10130           fi
10131
10132
10133           enablestring=
10134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10135 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10136           no_cache=0
10137           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10138 if test "${enable_numberdlg+set}" = set; then
10139   enableval="$enable_numberdlg"
10140
10141                           if test "$enableval" = yes; then
10142                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10143                           else
10144                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10145                           fi
10146
10147 else
10148
10149                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10150                           if test "x$LINE" != x ; then
10151                             eval "DEFAULT_$LINE"
10152                           else
10153                             no_cache=1
10154                           fi
10155
10156                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10157
10158 fi;
10159
10160           eval "$ac_cv_use_numberdlg"
10161           if test "$no_cache" != 1; then
10162             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10163           fi
10164
10165           if test "$wxUSE_NUMBERDLG" = yes; then
10166             echo "$as_me:$LINENO: result: yes" >&5
10167 echo "${ECHO_T}yes" >&6
10168           else
10169             echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6
10171           fi
10172
10173
10174           enablestring=
10175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10176 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10177           no_cache=0
10178           # Check whether --enable-splash or --disable-splash was given.
10179 if test "${enable_splash+set}" = set; then
10180   enableval="$enable_splash"
10181
10182                           if test "$enableval" = yes; then
10183                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10184                           else
10185                             ac_cv_use_splash='wxUSE_SPLASH=no'
10186                           fi
10187
10188 else
10189
10190                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10191                           if test "x$LINE" != x ; then
10192                             eval "DEFAULT_$LINE"
10193                           else
10194                             no_cache=1
10195                           fi
10196
10197                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10198
10199 fi;
10200
10201           eval "$ac_cv_use_splash"
10202           if test "$no_cache" != 1; then
10203             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10204           fi
10205
10206           if test "$wxUSE_SPLASH" = yes; then
10207             echo "$as_me:$LINENO: result: yes" >&5
10208 echo "${ECHO_T}yes" >&6
10209           else
10210             echo "$as_me:$LINENO: result: no" >&5
10211 echo "${ECHO_T}no" >&6
10212           fi
10213
10214
10215           enablestring=
10216           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10217 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10218           no_cache=0
10219           # Check whether --enable-textdlg or --disable-textdlg was given.
10220 if test "${enable_textdlg+set}" = set; then
10221   enableval="$enable_textdlg"
10222
10223                           if test "$enableval" = yes; then
10224                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10225                           else
10226                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10227                           fi
10228
10229 else
10230
10231                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10232                           if test "x$LINE" != x ; then
10233                             eval "DEFAULT_$LINE"
10234                           else
10235                             no_cache=1
10236                           fi
10237
10238                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10239
10240 fi;
10241
10242           eval "$ac_cv_use_textdlg"
10243           if test "$no_cache" != 1; then
10244             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10245           fi
10246
10247           if test "$wxUSE_TEXTDLG" = yes; then
10248             echo "$as_me:$LINENO: result: yes" >&5
10249 echo "${ECHO_T}yes" >&6
10250           else
10251             echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6
10253           fi
10254
10255
10256           enablestring=
10257           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10258 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10259           no_cache=0
10260           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10261 if test "${enable_tipdlg+set}" = set; then
10262   enableval="$enable_tipdlg"
10263
10264                           if test "$enableval" = yes; then
10265                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10266                           else
10267                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10268                           fi
10269
10270 else
10271
10272                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10273                           if test "x$LINE" != x ; then
10274                             eval "DEFAULT_$LINE"
10275                           else
10276                             no_cache=1
10277                           fi
10278
10279                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10280
10281 fi;
10282
10283           eval "$ac_cv_use_tipdlg"
10284           if test "$no_cache" != 1; then
10285             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10286           fi
10287
10288           if test "$wxUSE_STARTUP_TIPS" = yes; then
10289             echo "$as_me:$LINENO: result: yes" >&5
10290 echo "${ECHO_T}yes" >&6
10291           else
10292             echo "$as_me:$LINENO: result: no" >&5
10293 echo "${ECHO_T}no" >&6
10294           fi
10295
10296
10297           enablestring=
10298           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10299 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10300           no_cache=0
10301           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10302 if test "${enable_progressdlg+set}" = set; then
10303   enableval="$enable_progressdlg"
10304
10305                           if test "$enableval" = yes; then
10306                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10307                           else
10308                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10309                           fi
10310
10311 else
10312
10313                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10314                           if test "x$LINE" != x ; then
10315                             eval "DEFAULT_$LINE"
10316                           else
10317                             no_cache=1
10318                           fi
10319
10320                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10321
10322 fi;
10323
10324           eval "$ac_cv_use_progressdlg"
10325           if test "$no_cache" != 1; then
10326             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10327           fi
10328
10329           if test "$wxUSE_PROGRESSDLG" = yes; then
10330             echo "$as_me:$LINENO: result: yes" >&5
10331 echo "${ECHO_T}yes" >&6
10332           else
10333             echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10335           fi
10336
10337
10338           enablestring=
10339           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10340 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10341           no_cache=0
10342           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10343 if test "${enable_wizarddlg+set}" = set; then
10344   enableval="$enable_wizarddlg"
10345
10346                           if test "$enableval" = yes; then
10347                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10348                           else
10349                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10350                           fi
10351
10352 else
10353
10354                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10355                           if test "x$LINE" != x ; then
10356                             eval "DEFAULT_$LINE"
10357                           else
10358                             no_cache=1
10359                           fi
10360
10361                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10362
10363 fi;
10364
10365           eval "$ac_cv_use_wizarddlg"
10366           if test "$no_cache" != 1; then
10367             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10368           fi
10369
10370           if test "$wxUSE_WIZARDDLG" = yes; then
10371             echo "$as_me:$LINENO: result: yes" >&5
10372 echo "${ECHO_T}yes" >&6
10373           else
10374             echo "$as_me:$LINENO: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10376           fi
10377
10378
10379
10380
10381           enablestring=
10382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10383 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10384           no_cache=0
10385           # Check whether --enable-menus or --disable-menus was given.
10386 if test "${enable_menus+set}" = set; then
10387   enableval="$enable_menus"
10388
10389                           if test "$enableval" = yes; then
10390                             ac_cv_use_menus='wxUSE_MENUS=yes'
10391                           else
10392                             ac_cv_use_menus='wxUSE_MENUS=no'
10393                           fi
10394
10395 else
10396
10397                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10398                           if test "x$LINE" != x ; then
10399                             eval "DEFAULT_$LINE"
10400                           else
10401                             no_cache=1
10402                           fi
10403
10404                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10405
10406 fi;
10407
10408           eval "$ac_cv_use_menus"
10409           if test "$no_cache" != 1; then
10410             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10411           fi
10412
10413           if test "$wxUSE_MENUS" = yes; then
10414             echo "$as_me:$LINENO: result: yes" >&5
10415 echo "${ECHO_T}yes" >&6
10416           else
10417             echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6
10419           fi
10420
10421
10422           enablestring=
10423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10424 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10425           no_cache=0
10426           # Check whether --enable-miniframe or --disable-miniframe was given.
10427 if test "${enable_miniframe+set}" = set; then
10428   enableval="$enable_miniframe"
10429
10430                           if test "$enableval" = yes; then
10431                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10432                           else
10433                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10434                           fi
10435
10436 else
10437
10438                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10439                           if test "x$LINE" != x ; then
10440                             eval "DEFAULT_$LINE"
10441                           else
10442                             no_cache=1
10443                           fi
10444
10445                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10446
10447 fi;
10448
10449           eval "$ac_cv_use_miniframe"
10450           if test "$no_cache" != 1; then
10451             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10452           fi
10453
10454           if test "$wxUSE_MINIFRAME" = yes; then
10455             echo "$as_me:$LINENO: result: yes" >&5
10456 echo "${ECHO_T}yes" >&6
10457           else
10458             echo "$as_me:$LINENO: result: no" >&5
10459 echo "${ECHO_T}no" >&6
10460           fi
10461
10462
10463           enablestring=
10464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10465 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10466           no_cache=0
10467           # Check whether --enable-tooltips or --disable-tooltips was given.
10468 if test "${enable_tooltips+set}" = set; then
10469   enableval="$enable_tooltips"
10470
10471                           if test "$enableval" = yes; then
10472                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10473                           else
10474                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10475                           fi
10476
10477 else
10478
10479                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10480                           if test "x$LINE" != x ; then
10481                             eval "DEFAULT_$LINE"
10482                           else
10483                             no_cache=1
10484                           fi
10485
10486                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10487
10488 fi;
10489
10490           eval "$ac_cv_use_tooltips"
10491           if test "$no_cache" != 1; then
10492             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10493           fi
10494
10495           if test "$wxUSE_TOOLTIPS" = yes; then
10496             echo "$as_me:$LINENO: result: yes" >&5
10497 echo "${ECHO_T}yes" >&6
10498           else
10499             echo "$as_me:$LINENO: result: no" >&5
10500 echo "${ECHO_T}no" >&6
10501           fi
10502
10503
10504           enablestring=
10505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10506 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10507           no_cache=0
10508           # Check whether --enable-splines or --disable-splines was given.
10509 if test "${enable_splines+set}" = set; then
10510   enableval="$enable_splines"
10511
10512                           if test "$enableval" = yes; then
10513                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10514                           else
10515                             ac_cv_use_splines='wxUSE_SPLINES=no'
10516                           fi
10517
10518 else
10519
10520                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10521                           if test "x$LINE" != x ; then
10522                             eval "DEFAULT_$LINE"
10523                           else
10524                             no_cache=1
10525                           fi
10526
10527                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10528
10529 fi;
10530
10531           eval "$ac_cv_use_splines"
10532           if test "$no_cache" != 1; then
10533             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10534           fi
10535
10536           if test "$wxUSE_SPLINES" = yes; then
10537             echo "$as_me:$LINENO: result: yes" >&5
10538 echo "${ECHO_T}yes" >&6
10539           else
10540             echo "$as_me:$LINENO: result: no" >&5
10541 echo "${ECHO_T}no" >&6
10542           fi
10543
10544
10545           enablestring=
10546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10547 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10548           no_cache=0
10549           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10550 if test "${enable_mousewheel+set}" = set; then
10551   enableval="$enable_mousewheel"
10552
10553                           if test "$enableval" = yes; then
10554                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10555                           else
10556                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10557                           fi
10558
10559 else
10560
10561                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10562                           if test "x$LINE" != x ; then
10563                             eval "DEFAULT_$LINE"
10564                           else
10565                             no_cache=1
10566                           fi
10567
10568                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10569
10570 fi;
10571
10572           eval "$ac_cv_use_mousewheel"
10573           if test "$no_cache" != 1; then
10574             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10575           fi
10576
10577           if test "$wxUSE_MOUSEWHEEL" = yes; then
10578             echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10580           else
10581             echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10583           fi
10584
10585
10586           enablestring=
10587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10588 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10589           no_cache=0
10590           # Check whether --enable-validators or --disable-validators was given.
10591 if test "${enable_validators+set}" = set; then
10592   enableval="$enable_validators"
10593
10594                           if test "$enableval" = yes; then
10595                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10596                           else
10597                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10598                           fi
10599
10600 else
10601
10602                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10603                           if test "x$LINE" != x ; then
10604                             eval "DEFAULT_$LINE"
10605                           else
10606                             no_cache=1
10607                           fi
10608
10609                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10610
10611 fi;
10612
10613           eval "$ac_cv_use_validators"
10614           if test "$no_cache" != 1; then
10615             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10616           fi
10617
10618           if test "$wxUSE_VALIDATORS" = yes; then
10619             echo "$as_me:$LINENO: result: yes" >&5
10620 echo "${ECHO_T}yes" >&6
10621           else
10622             echo "$as_me:$LINENO: result: no" >&5
10623 echo "${ECHO_T}no" >&6
10624           fi
10625
10626
10627           enablestring=
10628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10629 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10630           no_cache=0
10631           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10632 if test "${enable_busyinfo+set}" = set; then
10633   enableval="$enable_busyinfo"
10634
10635                           if test "$enableval" = yes; then
10636                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10637                           else
10638                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10639                           fi
10640
10641 else
10642
10643                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10644                           if test "x$LINE" != x ; then
10645                             eval "DEFAULT_$LINE"
10646                           else
10647                             no_cache=1
10648                           fi
10649
10650                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10651
10652 fi;
10653
10654           eval "$ac_cv_use_busyinfo"
10655           if test "$no_cache" != 1; then
10656             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10657           fi
10658
10659           if test "$wxUSE_BUSYINFO" = yes; then
10660             echo "$as_me:$LINENO: result: yes" >&5
10661 echo "${ECHO_T}yes" >&6
10662           else
10663             echo "$as_me:$LINENO: result: no" >&5
10664 echo "${ECHO_T}no" >&6
10665           fi
10666
10667
10668           enablestring=
10669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10670 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10671           no_cache=0
10672           # Check whether --enable-joystick or --disable-joystick was given.
10673 if test "${enable_joystick+set}" = set; then
10674   enableval="$enable_joystick"
10675
10676                           if test "$enableval" = yes; then
10677                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10678                           else
10679                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10680                           fi
10681
10682 else
10683
10684                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10685                           if test "x$LINE" != x ; then
10686                             eval "DEFAULT_$LINE"
10687                           else
10688                             no_cache=1
10689                           fi
10690
10691                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10692
10693 fi;
10694
10695           eval "$ac_cv_use_joystick"
10696           if test "$no_cache" != 1; then
10697             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10698           fi
10699
10700           if test "$wxUSE_JOYSTICK" = yes; then
10701             echo "$as_me:$LINENO: result: yes" >&5
10702 echo "${ECHO_T}yes" >&6
10703           else
10704             echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10706           fi
10707
10708
10709           enablestring=
10710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10711 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10712           no_cache=0
10713           # Check whether --enable-metafile or --disable-metafile was given.
10714 if test "${enable_metafile+set}" = set; then
10715   enableval="$enable_metafile"
10716
10717                           if test "$enableval" = yes; then
10718                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10719                           else
10720                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10721                           fi
10722
10723 else
10724
10725                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10726                           if test "x$LINE" != x ; then
10727                             eval "DEFAULT_$LINE"
10728                           else
10729                             no_cache=1
10730                           fi
10731
10732                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10733
10734 fi;
10735
10736           eval "$ac_cv_use_metafile"
10737           if test "$no_cache" != 1; then
10738             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10739           fi
10740
10741           if test "$wxUSE_METAFILE" = yes; then
10742             echo "$as_me:$LINENO: result: yes" >&5
10743 echo "${ECHO_T}yes" >&6
10744           else
10745             echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6
10747           fi
10748
10749
10750           enablestring=
10751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10752 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10753           no_cache=0
10754           # Check whether --enable-dragimage or --disable-dragimage was given.
10755 if test "${enable_dragimage+set}" = set; then
10756   enableval="$enable_dragimage"
10757
10758                           if test "$enableval" = yes; then
10759                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10760                           else
10761                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10762                           fi
10763
10764 else
10765
10766                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10767                           if test "x$LINE" != x ; then
10768                             eval "DEFAULT_$LINE"
10769                           else
10770                             no_cache=1
10771                           fi
10772
10773                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10774
10775 fi;
10776
10777           eval "$ac_cv_use_dragimage"
10778           if test "$no_cache" != 1; then
10779             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10780           fi
10781
10782           if test "$wxUSE_DRAGIMAGE" = yes; then
10783             echo "$as_me:$LINENO: result: yes" >&5
10784 echo "${ECHO_T}yes" >&6
10785           else
10786             echo "$as_me:$LINENO: result: no" >&5
10787 echo "${ECHO_T}no" >&6
10788           fi
10789
10790
10791           enablestring=
10792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10793 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10794           no_cache=0
10795           # Check whether --enable-accessibility or --disable-accessibility was given.
10796 if test "${enable_accessibility+set}" = set; then
10797   enableval="$enable_accessibility"
10798
10799                           if test "$enableval" = yes; then
10800                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10801                           else
10802                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10803                           fi
10804
10805 else
10806
10807                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10808                           if test "x$LINE" != x ; then
10809                             eval "DEFAULT_$LINE"
10810                           else
10811                             no_cache=1
10812                           fi
10813
10814                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10815
10816 fi;
10817
10818           eval "$ac_cv_use_accessibility"
10819           if test "$no_cache" != 1; then
10820             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10821           fi
10822
10823           if test "$wxUSE_ACCESSIBILITY" = yes; then
10824             echo "$as_me:$LINENO: result: yes" >&5
10825 echo "${ECHO_T}yes" >&6
10826           else
10827             echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6
10829           fi
10830
10831
10832 if test "$wxUSE_MSW" = "1"; then
10833
10834           enablestring=
10835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10836 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10837           no_cache=0
10838           # Check whether --enable-dccache or --disable-dccache was given.
10839 if test "${enable_dccache+set}" = set; then
10840   enableval="$enable_dccache"
10841
10842                           if test "$enableval" = yes; then
10843                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10844                           else
10845                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10846                           fi
10847
10848 else
10849
10850                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10851                           if test "x$LINE" != x ; then
10852                             eval "DEFAULT_$LINE"
10853                           else
10854                             no_cache=1
10855                           fi
10856
10857                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10858
10859 fi;
10860
10861           eval "$ac_cv_use_dccache"
10862           if test "$no_cache" != 1; then
10863             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10864           fi
10865
10866           if test "$wxUSE_DC_CACHEING" = yes; then
10867             echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6
10869           else
10870             echo "$as_me:$LINENO: result: no" >&5
10871 echo "${ECHO_T}no" >&6
10872           fi
10873
10874 fi
10875
10876
10877
10878           enablestring=
10879           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10880 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10881           no_cache=0
10882           # Check whether --enable-palette or --disable-palette was given.
10883 if test "${enable_palette+set}" = set; then
10884   enableval="$enable_palette"
10885
10886                           if test "$enableval" = yes; then
10887                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10888                           else
10889                             ac_cv_use_palette='wxUSE_PALETTE=no'
10890                           fi
10891
10892 else
10893
10894                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10895                           if test "x$LINE" != x ; then
10896                             eval "DEFAULT_$LINE"
10897                           else
10898                             no_cache=1
10899                           fi
10900
10901                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10902
10903 fi;
10904
10905           eval "$ac_cv_use_palette"
10906           if test "$no_cache" != 1; then
10907             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10908           fi
10909
10910           if test "$wxUSE_PALETTE" = yes; then
10911             echo "$as_me:$LINENO: result: yes" >&5
10912 echo "${ECHO_T}yes" >&6
10913           else
10914             echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6
10916           fi
10917
10918
10919           enablestring=
10920           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10921 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10922           no_cache=0
10923           # Check whether --enable-image or --disable-image was given.
10924 if test "${enable_image+set}" = set; then
10925   enableval="$enable_image"
10926
10927                           if test "$enableval" = yes; then
10928                             ac_cv_use_image='wxUSE_IMAGE=yes'
10929                           else
10930                             ac_cv_use_image='wxUSE_IMAGE=no'
10931                           fi
10932
10933 else
10934
10935                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10936                           if test "x$LINE" != x ; then
10937                             eval "DEFAULT_$LINE"
10938                           else
10939                             no_cache=1
10940                           fi
10941
10942                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10943
10944 fi;
10945
10946           eval "$ac_cv_use_image"
10947           if test "$no_cache" != 1; then
10948             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10949           fi
10950
10951           if test "$wxUSE_IMAGE" = yes; then
10952             echo "$as_me:$LINENO: result: yes" >&5
10953 echo "${ECHO_T}yes" >&6
10954           else
10955             echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957           fi
10958
10959
10960           enablestring=
10961           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10962 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10963           no_cache=0
10964           # Check whether --enable-gif or --disable-gif was given.
10965 if test "${enable_gif+set}" = set; then
10966   enableval="$enable_gif"
10967
10968                           if test "$enableval" = yes; then
10969                             ac_cv_use_gif='wxUSE_GIF=yes'
10970                           else
10971                             ac_cv_use_gif='wxUSE_GIF=no'
10972                           fi
10973
10974 else
10975
10976                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10977                           if test "x$LINE" != x ; then
10978                             eval "DEFAULT_$LINE"
10979                           else
10980                             no_cache=1
10981                           fi
10982
10983                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10984
10985 fi;
10986
10987           eval "$ac_cv_use_gif"
10988           if test "$no_cache" != 1; then
10989             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10990           fi
10991
10992           if test "$wxUSE_GIF" = yes; then
10993             echo "$as_me:$LINENO: result: yes" >&5
10994 echo "${ECHO_T}yes" >&6
10995           else
10996             echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
10998           fi
10999
11000
11001           enablestring=
11002           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11003 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11004           no_cache=0
11005           # Check whether --enable-pcx or --disable-pcx was given.
11006 if test "${enable_pcx+set}" = set; then
11007   enableval="$enable_pcx"
11008
11009                           if test "$enableval" = yes; then
11010                             ac_cv_use_pcx='wxUSE_PCX=yes'
11011                           else
11012                             ac_cv_use_pcx='wxUSE_PCX=no'
11013                           fi
11014
11015 else
11016
11017                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11018                           if test "x$LINE" != x ; then
11019                             eval "DEFAULT_$LINE"
11020                           else
11021                             no_cache=1
11022                           fi
11023
11024                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11025
11026 fi;
11027
11028           eval "$ac_cv_use_pcx"
11029           if test "$no_cache" != 1; then
11030             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11031           fi
11032
11033           if test "$wxUSE_PCX" = yes; then
11034             echo "$as_me:$LINENO: result: yes" >&5
11035 echo "${ECHO_T}yes" >&6
11036           else
11037             echo "$as_me:$LINENO: result: no" >&5
11038 echo "${ECHO_T}no" >&6
11039           fi
11040
11041
11042           enablestring=
11043           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11044 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11045           no_cache=0
11046           # Check whether --enable-iff or --disable-iff was given.
11047 if test "${enable_iff+set}" = set; then
11048   enableval="$enable_iff"
11049
11050                           if test "$enableval" = yes; then
11051                             ac_cv_use_iff='wxUSE_IFF=yes'
11052                           else
11053                             ac_cv_use_iff='wxUSE_IFF=no'
11054                           fi
11055
11056 else
11057
11058                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11059                           if test "x$LINE" != x ; then
11060                             eval "DEFAULT_$LINE"
11061                           else
11062                             no_cache=1
11063                           fi
11064
11065                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11066
11067 fi;
11068
11069           eval "$ac_cv_use_iff"
11070           if test "$no_cache" != 1; then
11071             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11072           fi
11073
11074           if test "$wxUSE_IFF" = yes; then
11075             echo "$as_me:$LINENO: result: yes" >&5
11076 echo "${ECHO_T}yes" >&6
11077           else
11078             echo "$as_me:$LINENO: result: no" >&5
11079 echo "${ECHO_T}no" >&6
11080           fi
11081
11082
11083           enablestring=
11084           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11085 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11086           no_cache=0
11087           # Check whether --enable-pnm or --disable-pnm was given.
11088 if test "${enable_pnm+set}" = set; then
11089   enableval="$enable_pnm"
11090
11091                           if test "$enableval" = yes; then
11092                             ac_cv_use_pnm='wxUSE_PNM=yes'
11093                           else
11094                             ac_cv_use_pnm='wxUSE_PNM=no'
11095                           fi
11096
11097 else
11098
11099                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11100                           if test "x$LINE" != x ; then
11101                             eval "DEFAULT_$LINE"
11102                           else
11103                             no_cache=1
11104                           fi
11105
11106                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11107
11108 fi;
11109
11110           eval "$ac_cv_use_pnm"
11111           if test "$no_cache" != 1; then
11112             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11113           fi
11114
11115           if test "$wxUSE_PNM" = yes; then
11116             echo "$as_me:$LINENO: result: yes" >&5
11117 echo "${ECHO_T}yes" >&6
11118           else
11119             echo "$as_me:$LINENO: result: no" >&5
11120 echo "${ECHO_T}no" >&6
11121           fi
11122
11123
11124           enablestring=
11125           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11126 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11127           no_cache=0
11128           # Check whether --enable-xpm or --disable-xpm was given.
11129 if test "${enable_xpm+set}" = set; then
11130   enableval="$enable_xpm"
11131
11132                           if test "$enableval" = yes; then
11133                             ac_cv_use_xpm='wxUSE_XPM=yes'
11134                           else
11135                             ac_cv_use_xpm='wxUSE_XPM=no'
11136                           fi
11137
11138 else
11139
11140                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11141                           if test "x$LINE" != x ; then
11142                             eval "DEFAULT_$LINE"
11143                           else
11144                             no_cache=1
11145                           fi
11146
11147                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11148
11149 fi;
11150
11151           eval "$ac_cv_use_xpm"
11152           if test "$no_cache" != 1; then
11153             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11154           fi
11155
11156           if test "$wxUSE_XPM" = yes; then
11157             echo "$as_me:$LINENO: result: yes" >&5
11158 echo "${ECHO_T}yes" >&6
11159           else
11160             echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6
11162           fi
11163
11164
11165           enablestring=
11166           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11167 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11168           no_cache=0
11169           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11170 if test "${enable_ico_cur+set}" = set; then
11171   enableval="$enable_ico_cur"
11172
11173                           if test "$enableval" = yes; then
11174                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11175                           else
11176                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11177                           fi
11178
11179 else
11180
11181                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11182                           if test "x$LINE" != x ; then
11183                             eval "DEFAULT_$LINE"
11184                           else
11185                             no_cache=1
11186                           fi
11187
11188                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11189
11190 fi;
11191
11192           eval "$ac_cv_use_ico_cur"
11193           if test "$no_cache" != 1; then
11194             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11195           fi
11196
11197           if test "$wxUSE_ICO_CUR" = yes; then
11198             echo "$as_me:$LINENO: result: yes" >&5
11199 echo "${ECHO_T}yes" >&6
11200           else
11201             echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6
11203           fi
11204
11205
11206 fi
11207
11208
11209
11210 # Check whether --with-flavour or --without-flavour was given.
11211 if test "${with_flavour+set}" = set; then
11212   withval="$with_flavour"
11213   WX_FLAVOUR="$withval"
11214 fi;
11215
11216
11217
11218           enablestring=
11219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11220 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11221           no_cache=0
11222           # Check whether --enable-official_build or --disable-official_build was given.
11223 if test "${enable_official_build+set}" = set; then
11224   enableval="$enable_official_build"
11225
11226                           if test "$enableval" = yes; then
11227                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11228                           else
11229                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11230                           fi
11231
11232 else
11233
11234                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11235                           if test "x$LINE" != x ; then
11236                             eval "DEFAULT_$LINE"
11237                           else
11238                             no_cache=1
11239                           fi
11240
11241                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11242
11243 fi;
11244
11245           eval "$ac_cv_use_official_build"
11246           if test "$no_cache" != 1; then
11247             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11248           fi
11249
11250           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11251             echo "$as_me:$LINENO: result: yes" >&5
11252 echo "${ECHO_T}yes" >&6
11253           else
11254             echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11256           fi
11257
11258 # Check whether --enable-vendor or --disable-vendor was given.
11259 if test "${enable_vendor+set}" = set; then
11260   enableval="$enable_vendor"
11261   VENDOR="$enableval"
11262 fi;
11263 if test "x$VENDOR" = "x"; then
11264     VENDOR="custom"
11265 fi
11266
11267
11268
11269
11270           echo "saving argument cache $wx_arg_cache_file"
11271           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11272
11273
11274
11275 echo "$as_me:$LINENO: checking for toolkit" >&5
11276 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11277
11278 # In Wine, we need to default to MSW, not GTK or MOTIF
11279 if test "$wxUSE_WINE" = "yes"; then
11280     DEFAULT_DEFAULT_wxUSE_GTK=0
11281     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11282     DEFAULT_DEFAULT_wxUSE_MSW=1
11283     wxUSE_SHARED=no
11284 fi
11285
11286
11287 if test "$wxUSE_GUI" = "yes"; then
11288
11289     if test "$USE_BEOS" = 1; then
11290         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11291 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11292    { (exit 1); exit 1; }; }
11293     fi
11294
11295     if test "$TOOLKIT_GIVEN" = 1; then
11296             for toolkit in `echo $ALL_TOOLKITS`; do
11297         var=wxUSE_$toolkit
11298         eval "value=\$${var}"
11299         if test "x$value" = "xno"; then
11300           eval "$var=0"
11301         elif test "x$value" != "x"; then
11302           eval "$var=1"
11303         fi
11304
11305         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11306           eval "wx${toolkit}_VERSION=$value"
11307         fi
11308       done
11309     else
11310             for toolkit in `echo $ALL_TOOLKITS`; do
11311         if test "$has_toolkit_in_cache" != 1; then
11312           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11313         else
11314           var=DEFAULT_wxUSE_$toolkit
11315
11316           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11317           if test "x$version" != "x"; then
11318             eval "wx${toolkit}_VERSION=$version"
11319           fi
11320         fi
11321         eval "wxUSE_$toolkit=\$${var}"
11322       done
11323     fi
11324
11325             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11326                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11327                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11328
11329         case "${host}" in
11330       *-pc-os2_emx | *-pc-os2-emx )
11331         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11332     esac
11333
11334     case "$NUM_TOOLKITS" in
11335       1)
11336       ;;
11337       0)
11338         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11339 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11340    { (exit 1); exit 1; }; }
11341       ;;
11342       *)
11343         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11344 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11345    { (exit 1); exit 1; }; }
11346     esac
11347
11348     # to be removed when --disable-gtk2 isn't needed
11349     if test "x$wxUSE_GTK2" = "xyes"; then
11350         wxGTK_VERSION=2
11351     elif test "x$wxUSE_GTK2" = "xno"; then
11352         wxGTK_VERSION=1
11353     fi
11354
11355         for toolkit in `echo $ALL_TOOLKITS`; do
11356       var=wxUSE_$toolkit
11357       eval "value=\$${var}"
11358       if test "x$value" != x; then
11359         cache_var=CACHE_$toolkit
11360         eval "cache=\$${cache_var}"
11361         if test "$cache" = 1; then
11362           echo "$var=$value" >> ${wx_arg_cache_file}
11363           eval "version=\$wx${toolkit}_VERSION"
11364           if test "x$version" != "x"; then
11365             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11366           fi
11367         fi
11368         if test "$value" = 1; then
11369           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11370           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11371 echo "${ECHO_T}$toolkit_echo" >&6
11372         fi
11373       fi
11374     done
11375 else
11376     if test "x$host_alias" != "x"; then
11377         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11378 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11379     else
11380         echo "$as_me:$LINENO: result: base only" >&5
11381 echo "${ECHO_T}base only" >&6
11382     fi
11383 fi
11384
11385 wants_win32=0
11386 doesnt_want_win32=0
11387 case "${host}" in
11388   *-*-cygwin*)
11389       if test "$wxUSE_MSW" = 1 ; then
11390         wants_win32=1
11391         BAKEFILE_FORCE_PLATFORM=win32
11392       else
11393         doesnt_want_win32=1
11394       fi
11395   ;;
11396   *-*-mingw*)
11397       wants_win32=1
11398   ;;
11399 esac
11400
11401 if test "$wxUSE_WINE" = "yes"; then
11402     wants_win32=1
11403         CC=winegcc
11404     CXX=wineg++
11405     LDFLAGS_GUI="-mwindows"
11406 fi
11407
11408 if test "$wants_win32" = 1 ; then
11409     USE_UNIX=0
11410     USE_WIN32=1
11411     cat >>confdefs.h <<\_ACEOF
11412 #define __WIN32__ 1
11413 _ACEOF
11414
11415     cat >>confdefs.h <<\_ACEOF
11416 #define __WIN95__ 1
11417 _ACEOF
11418
11419     cat >>confdefs.h <<\_ACEOF
11420 #define __WINDOWS__ 1
11421 _ACEOF
11422
11423     cat >>confdefs.h <<\_ACEOF
11424 #define __GNUWIN32__ 1
11425 _ACEOF
11426
11427     cat >>confdefs.h <<\_ACEOF
11428 #define STRICT 1
11429 _ACEOF
11430
11431     cat >>confdefs.h <<\_ACEOF
11432 #define WINVER 0x0400
11433 _ACEOF
11434
11435 fi
11436 if test "$doesnt_want_win32" = 1 ; then
11437     USE_UNIX=1
11438     USE_WIN32=0
11439 fi
11440
11441 if test "$USE_UNIX" = 1 ; then
11442     wxUSE_UNIX=yes
11443     cat >>confdefs.h <<\_ACEOF
11444 #define __UNIX__ 1
11445 _ACEOF
11446
11447 fi
11448
11449
11450 cat >confcache <<\_ACEOF
11451 # This file is a shell script that caches the results of configure
11452 # tests run on this system so they can be shared between configure
11453 # scripts and configure runs, see configure's option --config-cache.
11454 # It is not useful on other systems.  If it contains results you don't
11455 # want to keep, you may remove or edit it.
11456 #
11457 # config.status only pays attention to the cache file if you give it
11458 # the --recheck option to rerun configure.
11459 #
11460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11462 # following values.
11463
11464 _ACEOF
11465
11466 # The following way of writing the cache mishandles newlines in values,
11467 # but we know of no workaround that is simple, portable, and efficient.
11468 # So, don't put newlines in cache variables' values.
11469 # Ultrix sh set writes to stderr and can't be redirected directly,
11470 # and sets the high bit in the cache file unless we assign to the vars.
11471 {
11472   (set) 2>&1 |
11473     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11474     *ac_space=\ *)
11475       # `set' does not quote correctly, so add quotes (double-quote
11476       # substitution turns \\\\ into \\, and sed turns \\ into \).
11477       sed -n \
11478         "s/'/'\\\\''/g;
11479           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11480       ;;
11481     *)
11482       # `set' quotes correctly as required by POSIX, so do not add quotes.
11483       sed -n \
11484         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11485       ;;
11486     esac;
11487 } |
11488   sed '
11489      t clear
11490      : clear
11491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11492      t end
11493      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11494      : end' >>confcache
11495 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11496   if test -w $cache_file; then
11497     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11498     cat confcache >$cache_file
11499   else
11500     echo "not updating unwritable cache $cache_file"
11501   fi
11502 fi
11503 rm -f confcache
11504
11505 CFLAGS=${CFLAGS:=}
11506
11507
11508
11509     ac_ext=c
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11514 if test -n "$ac_tool_prefix"; then
11515   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11517 echo "$as_me:$LINENO: checking for $ac_word" >&5
11518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11519 if test "${ac_cv_prog_CC+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   if test -n "$CC"; then
11523   ac_cv_prog_CC="$CC" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528   IFS=$as_save_IFS
11529   test -z "$as_dir" && as_dir=.
11530   for ac_exec_ext in '' $ac_executable_extensions; do
11531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534     break 2
11535   fi
11536 done
11537 done
11538
11539 fi
11540 fi
11541 CC=$ac_cv_prog_CC
11542 if test -n "$CC"; then
11543   echo "$as_me:$LINENO: result: $CC" >&5
11544 echo "${ECHO_T}$CC" >&6
11545 else
11546   echo "$as_me:$LINENO: result: no" >&5
11547 echo "${ECHO_T}no" >&6
11548 fi
11549
11550 fi
11551 if test -z "$ac_cv_prog_CC"; then
11552   ac_ct_CC=$CC
11553   # Extract the first word of "gcc", so it can be a program name with args.
11554 set dummy gcc; ac_word=$2
11555 echo "$as_me:$LINENO: checking for $ac_word" >&5
11556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   if test -n "$ac_ct_CC"; then
11561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11562 else
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11565 do
11566   IFS=$as_save_IFS
11567   test -z "$as_dir" && as_dir=.
11568   for ac_exec_ext in '' $ac_executable_extensions; do
11569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570     ac_cv_prog_ac_ct_CC="gcc"
11571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572     break 2
11573   fi
11574 done
11575 done
11576
11577 fi
11578 fi
11579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11580 if test -n "$ac_ct_CC"; then
11581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11582 echo "${ECHO_T}$ac_ct_CC" >&6
11583 else
11584   echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6
11586 fi
11587
11588   CC=$ac_ct_CC
11589 else
11590   CC="$ac_cv_prog_CC"
11591 fi
11592
11593 if test -z "$CC"; then
11594   if test -n "$ac_tool_prefix"; then
11595   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11596 set dummy ${ac_tool_prefix}cc; ac_word=$2
11597 echo "$as_me:$LINENO: checking for $ac_word" >&5
11598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599 if test "${ac_cv_prog_CC+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   if test -n "$CC"; then
11603   ac_cv_prog_CC="$CC" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608   IFS=$as_save_IFS
11609   test -z "$as_dir" && as_dir=.
11610   for ac_exec_ext in '' $ac_executable_extensions; do
11611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612     ac_cv_prog_CC="${ac_tool_prefix}cc"
11613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614     break 2
11615   fi
11616 done
11617 done
11618
11619 fi
11620 fi
11621 CC=$ac_cv_prog_CC
11622 if test -n "$CC"; then
11623   echo "$as_me:$LINENO: result: $CC" >&5
11624 echo "${ECHO_T}$CC" >&6
11625 else
11626   echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11628 fi
11629
11630 fi
11631 if test -z "$ac_cv_prog_CC"; then
11632   ac_ct_CC=$CC
11633   # Extract the first word of "cc", so it can be a program name with args.
11634 set dummy cc; ac_word=$2
11635 echo "$as_me:$LINENO: checking for $ac_word" >&5
11636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   if test -n "$ac_ct_CC"; then
11641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11642 else
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11645 do
11646   IFS=$as_save_IFS
11647   test -z "$as_dir" && as_dir=.
11648   for ac_exec_ext in '' $ac_executable_extensions; do
11649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650     ac_cv_prog_ac_ct_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 fi
11658 fi
11659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11660 if test -n "$ac_ct_CC"; then
11661   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11662 echo "${ECHO_T}$ac_ct_CC" >&6
11663 else
11664   echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6
11666 fi
11667
11668   CC=$ac_ct_CC
11669 else
11670   CC="$ac_cv_prog_CC"
11671 fi
11672
11673 fi
11674 if test -z "$CC"; then
11675   # Extract the first word of "cc", so it can be a program name with args.
11676 set dummy cc; ac_word=$2
11677 echo "$as_me:$LINENO: checking for $ac_word" >&5
11678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11679 if test "${ac_cv_prog_CC+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   if test -n "$CC"; then
11683   ac_cv_prog_CC="$CC" # Let the user override the test.
11684 else
11685   ac_prog_rejected=no
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689   IFS=$as_save_IFS
11690   test -z "$as_dir" && as_dir=.
11691   for ac_exec_ext in '' $ac_executable_extensions; do
11692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11694        ac_prog_rejected=yes
11695        continue
11696      fi
11697     ac_cv_prog_CC="cc"
11698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702 done
11703
11704 if test $ac_prog_rejected = yes; then
11705   # We found a bogon in the path, so make sure we never use it.
11706   set dummy $ac_cv_prog_CC
11707   shift
11708   if test $# != 0; then
11709     # We chose a different compiler from the bogus one.
11710     # However, it has the same basename, so the bogon will be chosen
11711     # first if we set CC to just the basename; use the full file name.
11712     shift
11713     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11714   fi
11715 fi
11716 fi
11717 fi
11718 CC=$ac_cv_prog_CC
11719 if test -n "$CC"; then
11720   echo "$as_me:$LINENO: result: $CC" >&5
11721 echo "${ECHO_T}$CC" >&6
11722 else
11723   echo "$as_me:$LINENO: result: no" >&5
11724 echo "${ECHO_T}no" >&6
11725 fi
11726
11727 fi
11728 if test -z "$CC"; then
11729   if test -n "$ac_tool_prefix"; then
11730   for ac_prog in cl
11731   do
11732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11734 echo "$as_me:$LINENO: checking for $ac_word" >&5
11735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11736 if test "${ac_cv_prog_CC+set}" = set; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   if test -n "$CC"; then
11740   ac_cv_prog_CC="$CC" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747   for ac_exec_ext in '' $ac_executable_extensions; do
11748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754 done
11755
11756 fi
11757 fi
11758 CC=$ac_cv_prog_CC
11759 if test -n "$CC"; then
11760   echo "$as_me:$LINENO: result: $CC" >&5
11761 echo "${ECHO_T}$CC" >&6
11762 else
11763   echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11765 fi
11766
11767     test -n "$CC" && break
11768   done
11769 fi
11770 if test -z "$CC"; then
11771   ac_ct_CC=$CC
11772   for ac_prog in cl
11773 do
11774   # Extract the first word of "$ac_prog", so it can be a program name with args.
11775 set dummy $ac_prog; ac_word=$2
11776 echo "$as_me:$LINENO: checking for $ac_word" >&5
11777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11779   echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781   if test -n "$ac_ct_CC"; then
11782   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11783 else
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789   for ac_exec_ext in '' $ac_executable_extensions; do
11790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791     ac_cv_prog_ac_ct_CC="$ac_prog"
11792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796 done
11797
11798 fi
11799 fi
11800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11801 if test -n "$ac_ct_CC"; then
11802   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11803 echo "${ECHO_T}$ac_ct_CC" >&6
11804 else
11805   echo "$as_me:$LINENO: result: no" >&5
11806 echo "${ECHO_T}no" >&6
11807 fi
11808
11809   test -n "$ac_ct_CC" && break
11810 done
11811
11812   CC=$ac_ct_CC
11813 fi
11814
11815 fi
11816
11817
11818 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11819 See \`config.log' for more details." >&5
11820 echo "$as_me: error: no acceptable C compiler found in \$PATH
11821 See \`config.log' for more details." >&2;}
11822    { (exit 1); exit 1; }; }
11823
11824 # Provide some information about the compiler.
11825 echo "$as_me:$LINENO:" \
11826      "checking for C compiler version" >&5
11827 ac_compiler=`set X $ac_compile; echo $2`
11828 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11829   (eval $ac_compiler --version </dev/null >&5) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }
11833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11834   (eval $ac_compiler -v </dev/null >&5) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }
11838 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11839   (eval $ac_compiler -V </dev/null >&5) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }
11843
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850
11851 int
11852 main ()
11853 {
11854
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 ac_clean_files_save=$ac_clean_files
11860 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11861 # Try to create an executable without -o first, disregard a.out.
11862 # It will help us diagnose broken compilers, and finding out an intuition
11863 # of exeext.
11864 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11865 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11866 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11867 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11868   (eval $ac_link_default) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; then
11872   # Find the output, starting from the most likely.  This scheme is
11873 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11874 # resort.
11875
11876 # Be careful to initialize this variable, since it used to be cached.
11877 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11878 ac_cv_exeext=
11879 # b.out is created by i960 compilers.
11880 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11881 do
11882   test -f "$ac_file" || continue
11883   case $ac_file in
11884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11885         ;;
11886     conftest.$ac_ext )
11887         # This is the source file.
11888         ;;
11889     [ab].out )
11890         # We found the default executable, but exeext='' is most
11891         # certainly right.
11892         break;;
11893     *.* )
11894         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11895         # FIXME: I believe we export ac_cv_exeext for Libtool,
11896         # but it would be cool to find out if it's true.  Does anybody
11897         # maintain Libtool? --akim.
11898         export ac_cv_exeext
11899         break;;
11900     * )
11901         break;;
11902   esac
11903 done
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11909 See \`config.log' for more details." >&5
11910 echo "$as_me: error: C compiler cannot create executables
11911 See \`config.log' for more details." >&2;}
11912    { (exit 77); exit 77; }; }
11913 fi
11914
11915 ac_exeext=$ac_cv_exeext
11916 echo "$as_me:$LINENO: result: $ac_file" >&5
11917 echo "${ECHO_T}$ac_file" >&6
11918
11919 # Check the compiler produces executables we can run.  If not, either
11920 # the compiler is broken, or we cross compile.
11921 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11922 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11923 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11924 # If not cross compiling, check that we can run a simple program.
11925 if test "$cross_compiling" != yes; then
11926   if { ac_try='./$ac_file'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932     cross_compiling=no
11933   else
11934     if test "$cross_compiling" = maybe; then
11935         cross_compiling=yes
11936     else
11937         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11938 If you meant to cross compile, use \`--host'.
11939 See \`config.log' for more details." >&5
11940 echo "$as_me: error: cannot run C compiled programs.
11941 If you meant to cross compile, use \`--host'.
11942 See \`config.log' for more details." >&2;}
11943    { (exit 1); exit 1; }; }
11944     fi
11945   fi
11946 fi
11947 echo "$as_me:$LINENO: result: yes" >&5
11948 echo "${ECHO_T}yes" >&6
11949
11950 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11951 ac_clean_files=$ac_clean_files_save
11952 # Check the compiler produces executables we can run.  If not, either
11953 # the compiler is broken, or we cross compile.
11954 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11955 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11956 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11957 echo "${ECHO_T}$cross_compiling" >&6
11958
11959 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11960 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962   (eval $ac_link) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; then
11966   # If both `conftest.exe' and `conftest' are `present' (well, observable)
11967 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11968 # work properly (i.e., refer to `conftest.exe'), while it won't with
11969 # `rm'.
11970 for ac_file in conftest.exe conftest conftest.*; do
11971   test -f "$ac_file" || continue
11972   case $ac_file in
11973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11974     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11975           export ac_cv_exeext
11976           break;;
11977     * ) break;;
11978   esac
11979 done
11980 else
11981   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11982 See \`config.log' for more details." >&5
11983 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11984 See \`config.log' for more details." >&2;}
11985    { (exit 1); exit 1; }; }
11986 fi
11987
11988 rm -f conftest$ac_cv_exeext
11989 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11990 echo "${ECHO_T}$ac_cv_exeext" >&6
11991
11992 rm -f conftest.$ac_ext
11993 EXEEXT=$ac_cv_exeext
11994 ac_exeext=$EXEEXT
11995 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11996 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11997 if test "${ac_cv_objext+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006
12007 int
12008 main ()
12009 {
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.o conftest.obj
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017   (eval $ac_compile) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; then
12021   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12022   case $ac_file in
12023     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12024     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12025        break;;
12026   esac
12027 done
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12033 See \`config.log' for more details." >&5
12034 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12035 See \`config.log' for more details." >&2;}
12036    { (exit 1); exit 1; }; }
12037 fi
12038
12039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12040 fi
12041 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12042 echo "${ECHO_T}$ac_cv_objext" >&6
12043 OBJEXT=$ac_cv_objext
12044 ac_objext=$OBJEXT
12045 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056
12057 int
12058 main ()
12059 {
12060 #ifndef __GNUC__
12061        choke me
12062 #endif
12063
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12070   (eval $ac_compile) 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; } &&
12083          { ac_try='test -s conftest.$ac_objext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_compiler_gnu=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ac_compiler_gnu=no
12095 fi
12096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12098
12099 fi
12100 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12101 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12102 GCC=`test $ac_compiler_gnu = yes && echo yes`
12103 ac_test_CFLAGS=${CFLAGS+set}
12104 ac_save_CFLAGS=$CFLAGS
12105 CFLAGS="-g"
12106 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12107 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12108 if test "${ac_cv_prog_cc_g+set}" = set; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117
12118 int
12119 main ()
12120 {
12121
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12128   (eval $ac_compile) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_prog_cc_g=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_prog_cc_g=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12157 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12158 if test "$ac_test_CFLAGS" = set; then
12159   CFLAGS=$ac_save_CFLAGS
12160 elif test $ac_cv_prog_cc_g = yes; then
12161   if test "$GCC" = yes; then
12162     CFLAGS="-g -O2"
12163   else
12164     CFLAGS="-g"
12165   fi
12166 else
12167   if test "$GCC" = yes; then
12168     CFLAGS="-O2"
12169   else
12170     CFLAGS=
12171   fi
12172 fi
12173 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12174 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12175 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   ac_cv_prog_cc_stdc=no
12179 ac_save_CC=$CC
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h.  */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h.  */
12186 #include <stdarg.h>
12187 #include <stdio.h>
12188 #include <sys/types.h>
12189 #include <sys/stat.h>
12190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12191 struct buf { int x; };
12192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12193 static char *e (p, i)
12194      char **p;
12195      int i;
12196 {
12197   return p[i];
12198 }
12199 static char *f (char * (*g) (char **, int), char **p, ...)
12200 {
12201   char *s;
12202   va_list v;
12203   va_start (v,p);
12204   s = g (p, va_arg (v,int));
12205   va_end (v);
12206   return s;
12207 }
12208
12209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12210    function prototypes and stuff, but not '\xHH' hex character constants.
12211    These don't provoke an error unfortunately, instead are silently treated
12212    as 'x'.  The following induces an error, until -std1 is added to get
12213    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12214    array size at least.  It's necessary to write '\x00'==0 to get something
12215    that's true only with -std1.  */
12216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12217
12218 int test (int i, double x);
12219 struct s1 {int (*f) (int a);};
12220 struct s2 {int (*f) (double a);};
12221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12222 int argc;
12223 char **argv;
12224 int
12225 main ()
12226 {
12227 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 # Don't try gcc -ansi; that turns off useful extensions and
12233 # breaks some systems' header files.
12234 # AIX                   -qlanglvl=ansi
12235 # Ultrix and OSF/1      -std1
12236 # HP-UX 10.20 and later -Ae
12237 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12238 # SVR4                  -Xc -D__EXTENSIONS__
12239 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12240 do
12241   CC="$ac_save_CC $ac_arg"
12242   rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   ac_cv_prog_cc_stdc=$ac_arg
12264 break
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 fi
12270 rm -f conftest.err conftest.$ac_objext
12271 done
12272 rm -f conftest.$ac_ext conftest.$ac_objext
12273 CC=$ac_save_CC
12274
12275 fi
12276
12277 case "x$ac_cv_prog_cc_stdc" in
12278   x|xno)
12279     echo "$as_me:$LINENO: result: none needed" >&5
12280 echo "${ECHO_T}none needed" >&6 ;;
12281   *)
12282     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12283 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12284     CC="$CC $ac_cv_prog_cc_stdc" ;;
12285 esac
12286
12287 # Some people use a C++ compiler to compile C.  Since we use `exit',
12288 # in C++ we need to declare it.  In case someone uses the same compiler
12289 # for both compiling C and C++ we need to have the C++ compiler decide
12290 # the declaration of exit, since it's the most demanding environment.
12291 cat >conftest.$ac_ext <<_ACEOF
12292 #ifndef __cplusplus
12293   choke me
12294 #endif
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298   (eval $ac_compile) 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } &&
12305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; } &&
12311          { ac_try='test -s conftest.$ac_objext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   for ac_declaration in \
12318    '' \
12319    'extern "C" void std::exit (int) throw (); using std::exit;' \
12320    'extern "C" void std::exit (int); using std::exit;' \
12321    'extern "C" void exit (int) throw ();' \
12322    'extern "C" void exit (int);' \
12323    'void exit (int);'
12324 do
12325   cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331 $ac_declaration
12332 #include <stdlib.h>
12333 int
12334 main ()
12335 {
12336 exit (42);
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343   (eval $ac_compile) 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   :
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 continue
12368 fi
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 $ac_declaration
12377 int
12378 main ()
12379 {
12380 exit (42);
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387   (eval $ac_compile) 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } &&
12394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; } &&
12400          { ac_try='test -s conftest.$ac_objext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   break
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 fi
12412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12413 done
12414 rm -f conftest*
12415 if test -n "$ac_declaration"; then
12416   echo '#ifdef __cplusplus' >>confdefs.h
12417   echo $ac_declaration      >>confdefs.h
12418   echo '#endif'             >>confdefs.h
12419 fi
12420
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 fi
12426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12427 ac_ext=c
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432
12433
12434
12435     ac_ext=c
12436 ac_cpp='$CPP $CPPFLAGS'
12437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12440
12441     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12442 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12443 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h.  */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h.  */
12452
12453 int
12454 main ()
12455 {
12456
12457              #ifndef __INTEL_COMPILER
12458                 choke me
12459              #endif
12460
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12487 else
12488   echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 bakefile_cv_c_compiler___INTEL_COMPILER=no
12492
12493 fi
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495
12496
12497 fi
12498 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12499 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12500     ac_ext=c
12501 ac_cpp='$CPP $CPPFLAGS'
12502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
12506     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12507         :; INTELCC=yes
12508     else
12509         :;
12510     fi
12511
12512
12513         if test "x$GCC" != "xyes"; then
12514         if test "xCC" = "xC"; then
12515             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12516 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12517 if test "${bakefile_cv_c_exto+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526
12527 int
12528 main ()
12529 {
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest.$ac_ext.o
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; then
12541   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12542     case $ac_file in
12543         conftest.$ac_ext.o)
12544             bakefile_cv_c_exto="-ext o"
12545             ;;
12546         *)
12547             ;;
12548     esac
12549 done
12550 else
12551   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12552 See \`config.log' for more details." >&5
12553 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12554 See \`config.log' for more details." >&2;}
12555    { (exit 1); exit 1; }; }
12556
12557 fi
12558
12559 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12560
12561 fi
12562 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12563 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12564 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12565     if test "c" = "c"; then
12566         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12567     fi
12568     if test "c" = "cxx"; then
12569         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12570     fi
12571 fi
12572
12573             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12574                 unset ac_cv_prog_cc_g
12575                 ac_test_CFLAGS=${CFLAGS+set}
12576 ac_save_CFLAGS=$CFLAGS
12577 CFLAGS="-g"
12578 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12579 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12580 if test "${ac_cv_prog_cc_g+set}" = set; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589
12590 int
12591 main ()
12592 {
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600   (eval $ac_compile) 2>conftest.er1
12601   ac_status=$?
12602   grep -v '^ *+' conftest.er1 >conftest.err
12603   rm -f conftest.er1
12604   cat conftest.err >&5
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; } &&
12613          { ac_try='test -s conftest.$ac_objext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_cv_prog_cc_g=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 ac_cv_prog_cc_g=no
12625 fi
12626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627 fi
12628 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12629 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12630 if test "$ac_test_CFLAGS" = set; then
12631   CFLAGS=$ac_save_CFLAGS
12632 elif test $ac_cv_prog_cc_g = yes; then
12633   if test "$GCC" = yes; then
12634     CFLAGS="-g -O2"
12635   else
12636     CFLAGS="-g"
12637   fi
12638 else
12639   if test "$GCC" = yes; then
12640     CFLAGS="-O2"
12641   else
12642     CFLAGS=
12643   fi
12644 fi
12645             fi
12646         fi
12647
12648                         case `uname -s` in
12649             AIX*)
12650                 ac_ext=c
12651 ac_cpp='$CPP $CPPFLAGS'
12652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655
12656 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12657 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12658 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12659   echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661   cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667
12668 int
12669 main ()
12670 {
12671 #ifndef __xlC__
12672        choke me
12673 #endif
12674
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681   (eval $ac_compile) 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690   (eval $ac_try) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; } &&
12694          { ac_try='test -s conftest.$ac_objext'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; }; then
12700   bakefile_compiler_xlc=yes
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 bakefile_compiler_xlc=no
12706 fi
12707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12709
12710 fi
12711 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12712 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12713
12714 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12715 ac_ext=c
12716 ac_cpp='$CPP $CPPFLAGS'
12717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721
12722                 ;;
12723
12724             Darwin)
12725                 ac_ext=c
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12732 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12733 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742
12743 int
12744 main ()
12745 {
12746 #ifndef __MWERKS__
12747        choke me
12748 #endif
12749
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756   (eval $ac_compile) 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; } &&
12769          { ac_try='test -s conftest.$ac_objext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   bakefile_compiler_mwerks=yes
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 bakefile_compiler_mwerks=no
12781 fi
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12784
12785 fi
12786 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12787 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12788
12789 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12790 ac_ext=c
12791 ac_cpp='$CPP $CPPFLAGS'
12792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796
12797                 ac_ext=c
12798 ac_cpp='$CPP $CPPFLAGS'
12799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12804 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12805 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12806   echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808   cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814
12815 int
12816 main ()
12817 {
12818 #ifndef __xlC__
12819        choke me
12820 #endif
12821
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828   (eval $ac_compile) 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest.$ac_objext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   bakefile_compiler_xlc=yes
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 bakefile_compiler_xlc=no
12853 fi
12854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12855     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12856
12857 fi
12858 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12859 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12860
12861 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12862 ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868
12869                 ;;
12870
12871             IRIX*)
12872
12873
12874     ac_ext=c
12875 ac_cpp='$CPP $CPPFLAGS'
12876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12879
12880     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12881 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12882 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12883   echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885   cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h.  */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h.  */
12891
12892 int
12893 main ()
12894 {
12895
12896              #ifndef _SGI_COMPILER_VERSION
12897                 choke me
12898              #endif
12899
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906   (eval $ac_compile) 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12931
12932 fi
12933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12934
12935
12936 fi
12937 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12938 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12939     ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12946         :; SGICC=yes
12947     else
12948         :;
12949     fi
12950
12951
12952                 ;;
12953
12954             HP-UX*)
12955
12956
12957     ac_ext=c
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962
12963     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12964 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12965 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968   cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974
12975 int
12976 main ()
12977 {
12978
12979              #ifndef __HP_cc
12980                 choke me
12981              #endif
12982
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989   (eval $ac_compile) 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; } &&
13002          { ac_try='test -s conftest.$ac_objext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   bakefile_cv_c_compiler___HP_cc=yes
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 bakefile_cv_c_compiler___HP_cc=no
13014
13015 fi
13016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017
13018
13019 fi
13020 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13021 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13022     ac_ext=c
13023 ac_cpp='$CPP $CPPFLAGS'
13024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13027
13028     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13029         :; HPCC=yes
13030     else
13031         :;
13032     fi
13033
13034
13035                 ;;
13036
13037             OSF1)
13038
13039
13040     ac_ext=c
13041 ac_cpp='$CPP $CPPFLAGS'
13042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13045
13046     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13047 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13048 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13049   echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051   cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h.  */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h.  */
13057
13058 int
13059 main ()
13060 {
13061
13062              #ifndef __DECC
13063                 choke me
13064              #endif
13065
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072   (eval $ac_compile) 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081   (eval $ac_try) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; } &&
13085          { ac_try='test -s conftest.$ac_objext'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; }; then
13091   bakefile_cv_c_compiler___DECC=yes
13092 else
13093   echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13095
13096 bakefile_cv_c_compiler___DECC=no
13097
13098 fi
13099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100
13101
13102 fi
13103 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13104 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13105     ac_ext=c
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13112         :; COMPAQCC=yes
13113     else
13114         :;
13115     fi
13116
13117
13118                 ;;
13119
13120             SunOS)
13121
13122
13123     ac_ext=c
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13128
13129     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13130 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13131 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140
13141 int
13142 main ()
13143 {
13144
13145              #ifndef __SUNPRO_C
13146                 choke me
13147              #endif
13148
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155   (eval $ac_compile) 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } &&
13162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; } &&
13168          { ac_try='test -s conftest.$ac_objext'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; }; then
13174   bakefile_cv_c_compiler___SUNPRO_C=yes
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 bakefile_cv_c_compiler___SUNPRO_C=no
13180
13181 fi
13182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183
13184
13185 fi
13186 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13187 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13188     ac_ext=c
13189 ac_cpp='$CPP $CPPFLAGS'
13190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13195         :; SUNCC=yes
13196     else
13197         :;
13198     fi
13199
13200
13201                 ;;
13202         esac
13203     fi
13204
13205
13206
13207 ac_ext=c
13208 ac_cpp='$CPP $CPPFLAGS'
13209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13214 # On Suns, sometimes $CPP names a directory.
13215 if test -n "$CPP" && test -d "$CPP"; then
13216   CPP=
13217 fi
13218 if test -z "$CPP"; then
13219   if test "${ac_cv_prog_CPP+set}" = set; then
13220   echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222       # Double quotes because CPP needs to be expanded
13223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13224     do
13225       ac_preproc_ok=false
13226 for ac_c_preproc_warn_flag in '' yes
13227 do
13228   # Use a header file that comes with gcc, so configuring glibc
13229   # with a fresh cross-compiler works.
13230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13231   # <limits.h> exists even on freestanding compilers.
13232   # On the NeXT, cc -E runs the code through the compiler's parser,
13233   # not just through cpp. "Syntax error" is here to catch this case.
13234   cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h.  */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h.  */
13240 #ifdef __STDC__
13241 # include <limits.h>
13242 #else
13243 # include <assert.h>
13244 #endif
13245                      Syntax error
13246 _ACEOF
13247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } >/dev/null; then
13255   if test -s conftest.err; then
13256     ac_cpp_err=$ac_c_preproc_warn_flag
13257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13258   else
13259     ac_cpp_err=
13260   fi
13261 else
13262   ac_cpp_err=yes
13263 fi
13264 if test -z "$ac_cpp_err"; then
13265   :
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270   # Broken: fails on valid input.
13271 continue
13272 fi
13273 rm -f conftest.err conftest.$ac_ext
13274
13275   # OK, works on sane cases.  Now check whether non-existent headers
13276   # can be detected and how.
13277   cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 #include <ac_nonexistent.h>
13284 _ACEOF
13285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } >/dev/null; then
13293   if test -s conftest.err; then
13294     ac_cpp_err=$ac_c_preproc_warn_flag
13295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13296   else
13297     ac_cpp_err=
13298   fi
13299 else
13300   ac_cpp_err=yes
13301 fi
13302 if test -z "$ac_cpp_err"; then
13303   # Broken: success on invalid input.
13304 continue
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309   # Passes both tests.
13310 ac_preproc_ok=:
13311 break
13312 fi
13313 rm -f conftest.err conftest.$ac_ext
13314
13315 done
13316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13317 rm -f conftest.err conftest.$ac_ext
13318 if $ac_preproc_ok; then
13319   break
13320 fi
13321
13322     done
13323     ac_cv_prog_CPP=$CPP
13324
13325 fi
13326   CPP=$ac_cv_prog_CPP
13327 else
13328   ac_cv_prog_CPP=$CPP
13329 fi
13330 echo "$as_me:$LINENO: result: $CPP" >&5
13331 echo "${ECHO_T}$CPP" >&6
13332 ac_preproc_ok=false
13333 for ac_c_preproc_warn_flag in '' yes
13334 do
13335   # Use a header file that comes with gcc, so configuring glibc
13336   # with a fresh cross-compiler works.
13337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13338   # <limits.h> exists even on freestanding compilers.
13339   # On the NeXT, cc -E runs the code through the compiler's parser,
13340   # not just through cpp. "Syntax error" is here to catch this case.
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #ifdef __STDC__
13348 # include <limits.h>
13349 #else
13350 # include <assert.h>
13351 #endif
13352                      Syntax error
13353 _ACEOF
13354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13356   ac_status=$?
13357   grep -v '^ *+' conftest.er1 >conftest.err
13358   rm -f conftest.er1
13359   cat conftest.err >&5
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } >/dev/null; then
13362   if test -s conftest.err; then
13363     ac_cpp_err=$ac_c_preproc_warn_flag
13364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13365   else
13366     ac_cpp_err=
13367   fi
13368 else
13369   ac_cpp_err=yes
13370 fi
13371 if test -z "$ac_cpp_err"; then
13372   :
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377   # Broken: fails on valid input.
13378 continue
13379 fi
13380 rm -f conftest.err conftest.$ac_ext
13381
13382   # OK, works on sane cases.  Now check whether non-existent headers
13383   # can be detected and how.
13384   cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390 #include <ac_nonexistent.h>
13391 _ACEOF
13392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } >/dev/null; then
13400   if test -s conftest.err; then
13401     ac_cpp_err=$ac_c_preproc_warn_flag
13402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13403   else
13404     ac_cpp_err=
13405   fi
13406 else
13407   ac_cpp_err=yes
13408 fi
13409 if test -z "$ac_cpp_err"; then
13410   # Broken: success on invalid input.
13411 continue
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416   # Passes both tests.
13417 ac_preproc_ok=:
13418 break
13419 fi
13420 rm -f conftest.err conftest.$ac_ext
13421
13422 done
13423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13424 rm -f conftest.err conftest.$ac_ext
13425 if $ac_preproc_ok; then
13426   :
13427 else
13428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13429 See \`config.log' for more details." >&5
13430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13431 See \`config.log' for more details." >&2;}
13432    { (exit 1); exit 1; }; }
13433 fi
13434
13435 ac_ext=c
13436 ac_cpp='$CPP $CPPFLAGS'
13437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13440
13441
13442 echo "$as_me:$LINENO: checking for egrep" >&5
13443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13444 if test "${ac_cv_prog_egrep+set}" = set; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13448     then ac_cv_prog_egrep='grep -E'
13449     else ac_cv_prog_egrep='egrep'
13450     fi
13451 fi
13452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13454  EGREP=$ac_cv_prog_egrep
13455
13456
13457 if test $ac_cv_c_compiler_gnu = yes; then
13458     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13459 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13460 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463     ac_pattern="Autoconf.*'x'"
13464   cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470 #include <sgtty.h>
13471 Autoconf TIOCGETP
13472 _ACEOF
13473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13474   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13475   ac_cv_prog_gcc_traditional=yes
13476 else
13477   ac_cv_prog_gcc_traditional=no
13478 fi
13479 rm -f conftest*
13480
13481
13482   if test $ac_cv_prog_gcc_traditional = no; then
13483     cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489 #include <termio.h>
13490 Autoconf TCGETA
13491 _ACEOF
13492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13493   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13494   ac_cv_prog_gcc_traditional=yes
13495 fi
13496 rm -f conftest*
13497
13498   fi
13499 fi
13500 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13501 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13502   if test $ac_cv_prog_gcc_traditional = yes; then
13503     CC="$CC -traditional"
13504   fi
13505 fi
13506
13507
13508 ac_ext=cc
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513
13514
13515 CXXFLAGS=${CXXFLAGS:=}
13516
13517
13518
13519     ac_ext=cc
13520 ac_cpp='$CXXCPP $CPPFLAGS'
13521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524 if test -n "$ac_tool_prefix"; then
13525   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13526   do
13527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13529 echo "$as_me:$LINENO: checking for $ac_word" >&5
13530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13531 if test "${ac_cv_prog_CXX+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   if test -n "$CXX"; then
13535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13536 else
13537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538 for as_dir in $PATH
13539 do
13540   IFS=$as_save_IFS
13541   test -z "$as_dir" && as_dir=.
13542   for ac_exec_ext in '' $ac_executable_extensions; do
13543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13546     break 2
13547   fi
13548 done
13549 done
13550
13551 fi
13552 fi
13553 CXX=$ac_cv_prog_CXX
13554 if test -n "$CXX"; then
13555   echo "$as_me:$LINENO: result: $CXX" >&5
13556 echo "${ECHO_T}$CXX" >&6
13557 else
13558   echo "$as_me:$LINENO: result: no" >&5
13559 echo "${ECHO_T}no" >&6
13560 fi
13561
13562     test -n "$CXX" && break
13563   done
13564 fi
13565 if test -z "$CXX"; then
13566   ac_ct_CXX=$CXX
13567   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13568 do
13569   # Extract the first word of "$ac_prog", so it can be a program name with args.
13570 set dummy $ac_prog; ac_word=$2
13571 echo "$as_me:$LINENO: checking for $ac_word" >&5
13572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13574   echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576   if test -n "$ac_ct_CXX"; then
13577   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13578 else
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13581 do
13582   IFS=$as_save_IFS
13583   test -z "$as_dir" && as_dir=.
13584   for ac_exec_ext in '' $ac_executable_extensions; do
13585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586     ac_cv_prog_ac_ct_CXX="$ac_prog"
13587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13588     break 2
13589   fi
13590 done
13591 done
13592
13593 fi
13594 fi
13595 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13596 if test -n "$ac_ct_CXX"; then
13597   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13598 echo "${ECHO_T}$ac_ct_CXX" >&6
13599 else
13600   echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13602 fi
13603
13604   test -n "$ac_ct_CXX" && break
13605 done
13606 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13607
13608   CXX=$ac_ct_CXX
13609 fi
13610
13611
13612 # Provide some information about the compiler.
13613 echo "$as_me:$LINENO:" \
13614      "checking for C++ compiler version" >&5
13615 ac_compiler=`set X $ac_compile; echo $2`
13616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13617   (eval $ac_compiler --version </dev/null >&5) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }
13621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13622   (eval $ac_compiler -v </dev/null >&5) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }
13626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13627   (eval $ac_compiler -V </dev/null >&5) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }
13631
13632 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643
13644 int
13645 main ()
13646 {
13647 #ifndef __GNUC__
13648        choke me
13649 #endif
13650
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657   (eval $ac_compile) 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ac_compiler_gnu=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_compiler_gnu=no
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13685
13686 fi
13687 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13688 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13689 GXX=`test $ac_compiler_gnu = yes && echo yes`
13690 ac_test_CXXFLAGS=${CXXFLAGS+set}
13691 ac_save_CXXFLAGS=$CXXFLAGS
13692 CXXFLAGS="-g"
13693 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13694 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13695 if test "${ac_cv_prog_cxx_g+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704
13705 int
13706 main ()
13707 {
13708
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715   (eval $ac_compile) 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724   (eval $ac_try) 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; } &&
13728          { ac_try='test -s conftest.$ac_objext'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; }; then
13734   ac_cv_prog_cxx_g=yes
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739 ac_cv_prog_cxx_g=no
13740 fi
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 fi
13743 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13744 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13745 if test "$ac_test_CXXFLAGS" = set; then
13746   CXXFLAGS=$ac_save_CXXFLAGS
13747 elif test $ac_cv_prog_cxx_g = yes; then
13748   if test "$GXX" = yes; then
13749     CXXFLAGS="-g -O2"
13750   else
13751     CXXFLAGS="-g"
13752   fi
13753 else
13754   if test "$GXX" = yes; then
13755     CXXFLAGS="-O2"
13756   else
13757     CXXFLAGS=
13758   fi
13759 fi
13760 for ac_declaration in \
13761    '' \
13762    'extern "C" void std::exit (int) throw (); using std::exit;' \
13763    'extern "C" void std::exit (int); using std::exit;' \
13764    'extern "C" void exit (int) throw ();' \
13765    'extern "C" void exit (int);' \
13766    'void exit (int);'
13767 do
13768   cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 $ac_declaration
13775 #include <stdlib.h>
13776 int
13777 main ()
13778 {
13779 exit (42);
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786   (eval $ac_compile) 2>conftest.er1
13787   ac_status=$?
13788   grep -v '^ *+' conftest.er1 >conftest.err
13789   rm -f conftest.er1
13790   cat conftest.err >&5
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } &&
13793          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; } &&
13799          { ac_try='test -s conftest.$ac_objext'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   :
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 continue
13811 fi
13812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13813   cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_declaration
13820 int
13821 main ()
13822 {
13823 exit (42);
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830   (eval $ac_compile) 2>conftest.er1
13831   ac_status=$?
13832   grep -v '^ *+' conftest.er1 >conftest.err
13833   rm -f conftest.er1
13834   cat conftest.err >&5
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } &&
13837          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839   (eval $ac_try) 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; } &&
13843          { ac_try='test -s conftest.$ac_objext'
13844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845   (eval $ac_try) 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); }; }; then
13849   break
13850 else
13851   echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 fi
13855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13856 done
13857 rm -f conftest*
13858 if test -n "$ac_declaration"; then
13859   echo '#ifdef __cplusplus' >>confdefs.h
13860   echo $ac_declaration      >>confdefs.h
13861   echo '#endif'             >>confdefs.h
13862 fi
13863
13864 ac_ext=cc
13865 ac_cpp='$CXXCPP $CPPFLAGS'
13866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13869
13870
13871
13872     ac_ext=cc
13873 ac_cpp='$CXXCPP $CPPFLAGS'
13874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13877
13878     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13879 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13880 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889
13890 int
13891 main ()
13892 {
13893
13894              #ifndef __INTEL_COMPILER
13895                 choke me
13896              #endif
13897
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904   (eval $ac_compile) 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } &&
13911          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913   (eval $ac_try) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; } &&
13917          { ac_try='test -s conftest.$ac_objext'
13918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919   (eval $ac_try) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }; }; then
13923   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13924 else
13925   echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13929
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932
13933
13934 fi
13935 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13936 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13937     ac_ext=cc
13938 ac_cpp='$CXXCPP $CPPFLAGS'
13939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13942
13943     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13944         :; INTELCXX=yes
13945     else
13946         :;
13947     fi
13948
13949
13950         if test "x$GCXX" != "xyes"; then
13951         if test "xCXX" = "xC"; then
13952             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13953 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13954 if test "${bakefile_cv_cxx_exto+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h.  */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h.  */
13963
13964 int
13965 main ()
13966 {
13967
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext conftest.$ac_ext.o
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; then
13978   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13979     case $ac_file in
13980         conftest.$ac_ext.o)
13981             bakefile_cv_cxx_exto="-ext o"
13982             ;;
13983         *)
13984             ;;
13985     esac
13986 done
13987 else
13988   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13989 See \`config.log' for more details." >&5
13990 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13991 See \`config.log' for more details." >&2;}
13992    { (exit 1); exit 1; }; }
13993
13994 fi
13995
13996 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13997
13998 fi
13999 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14000 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14001 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14002     if test "cxx" = "c"; then
14003         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14004     fi
14005     if test "cxx" = "cxx"; then
14006         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14007     fi
14008 fi
14009
14010             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14011                 unset ac_cv_prog_cc_g
14012                 ac_test_CFLAGS=${CFLAGS+set}
14013 ac_save_CFLAGS=$CFLAGS
14014 CFLAGS="-g"
14015 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14017 if test "${ac_cv_prog_cc_g+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026
14027 int
14028 main ()
14029 {
14030
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest.$ac_objext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_cv_prog_cc_g=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_cv_prog_cc_g=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064 fi
14065 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14066 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14067 if test "$ac_test_CFLAGS" = set; then
14068   CFLAGS=$ac_save_CFLAGS
14069 elif test $ac_cv_prog_cc_g = yes; then
14070   if test "$GCC" = yes; then
14071     CFLAGS="-g -O2"
14072   else
14073     CFLAGS="-g"
14074   fi
14075 else
14076   if test "$GCC" = yes; then
14077     CFLAGS="-O2"
14078   else
14079     CFLAGS=
14080   fi
14081 fi
14082             fi
14083         fi
14084
14085                         case `uname -s` in
14086             AIX*)
14087                 ac_ext=cc
14088 ac_cpp='$CXXCPP $CPPFLAGS'
14089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14092
14093 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14094 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14095 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104
14105 int
14106 main ()
14107 {
14108 #ifndef __xlC__
14109        choke me
14110 #endif
14111
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14118   (eval $ac_compile) 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   bakefile_compiler_xlc=yes
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 bakefile_compiler_xlc=no
14143 fi
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14146
14147 fi
14148 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14149 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14150
14151 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14152 ac_ext=cc
14153 ac_cpp='$CXXCPP $CPPFLAGS'
14154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14157
14158
14159                 ;;
14160
14161             Darwin)
14162                 ac_ext=cc
14163 ac_cpp='$CXXCPP $CPPFLAGS'
14164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14167
14168 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14169 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14170 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179
14180 int
14181 main ()
14182 {
14183 #ifndef __MWERKS__
14184        choke me
14185 #endif
14186
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193   (eval $ac_compile) 2>conftest.er1
14194   ac_status=$?
14195   grep -v '^ *+' conftest.er1 >conftest.err
14196   rm -f conftest.er1
14197   cat conftest.err >&5
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; } &&
14206          { ac_try='test -s conftest.$ac_objext'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   bakefile_compiler_mwerks=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 bakefile_compiler_mwerks=no
14218 fi
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14221
14222 fi
14223 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14224 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14225
14226 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14227 ac_ext=cc
14228 ac_cpp='$CXXCPP $CPPFLAGS'
14229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14232
14233
14234                 ac_ext=cc
14235 ac_cpp='$CXXCPP $CPPFLAGS'
14236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14239
14240 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14241 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14242 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 int
14253 main ()
14254 {
14255 #ifndef __xlC__
14256        choke me
14257 #endif
14258
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265   (eval $ac_compile) 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; } &&
14278          { ac_try='test -s conftest.$ac_objext'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; }; then
14284   bakefile_compiler_xlc=yes
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 bakefile_compiler_xlc=no
14290 fi
14291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14292     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14293
14294 fi
14295 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14296 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14297
14298 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14299 ac_ext=cc
14300 ac_cpp='$CXXCPP $CPPFLAGS'
14301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14304
14305
14306                 ;;
14307
14308             IRIX*)
14309
14310
14311     ac_ext=cc
14312 ac_cpp='$CXXCPP $CPPFLAGS'
14313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14316
14317     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14318 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14319 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14320   echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322   cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h.  */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h.  */
14328
14329 int
14330 main ()
14331 {
14332
14333              #ifndef _SGI_COMPILER_VERSION
14334                 choke me
14335              #endif
14336
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 rm -f conftest.$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343   (eval $ac_compile) 2>conftest.er1
14344   ac_status=$?
14345   grep -v '^ *+' conftest.er1 >conftest.err
14346   rm -f conftest.er1
14347   cat conftest.err >&5
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); } &&
14350          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14368
14369 fi
14370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14371
14372
14373 fi
14374 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14375 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14376     ac_ext=cc
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14381
14382     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14383         :; SGICXX=yes
14384     else
14385         :;
14386     fi
14387
14388
14389                 ;;
14390
14391             HP-UX*)
14392
14393
14394     ac_ext=cc
14395 ac_cpp='$CXXCPP $CPPFLAGS'
14396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14399
14400     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14401 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14402 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411
14412 int
14413 main ()
14414 {
14415
14416              #ifndef __HP_aCC
14417                 choke me
14418              #endif
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } &&
14433          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435   (eval $ac_try) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; } &&
14439          { ac_try='test -s conftest.$ac_objext'
14440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441   (eval $ac_try) 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; }; then
14445   bakefile_cv_cxx_compiler___HP_aCC=yes
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 bakefile_cv_cxx_compiler___HP_aCC=no
14451
14452 fi
14453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14454
14455
14456 fi
14457 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14458 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14459     ac_ext=cc
14460 ac_cpp='$CXXCPP $CPPFLAGS'
14461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14464
14465     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14466         :; HPCXX=yes
14467     else
14468         :;
14469     fi
14470
14471
14472                 ;;
14473
14474             OSF1)
14475
14476
14477     ac_ext=cc
14478 ac_cpp='$CXXCPP $CPPFLAGS'
14479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14482
14483     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14484 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14485 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494
14495 int
14496 main ()
14497 {
14498
14499              #ifndef __DECCXX
14500                 choke me
14501              #endif
14502
14503   ;
14504   return 0;
14505 }
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509   (eval $ac_compile) 2>conftest.er1
14510   ac_status=$?
14511   grep -v '^ *+' conftest.er1 >conftest.err
14512   rm -f conftest.er1
14513   cat conftest.err >&5
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); } &&
14516          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; } &&
14522          { ac_try='test -s conftest.$ac_objext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   bakefile_cv_cxx_compiler___DECCXX=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 bakefile_cv_cxx_compiler___DECCXX=no
14534
14535 fi
14536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537
14538
14539 fi
14540 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14541 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14542     ac_ext=cc
14543 ac_cpp='$CXXCPP $CPPFLAGS'
14544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14547
14548     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14549         :; COMPAQCXX=yes
14550     else
14551         :;
14552     fi
14553
14554
14555                 ;;
14556
14557             SunOS)
14558
14559
14560     ac_ext=cc
14561 ac_cpp='$CXXCPP $CPPFLAGS'
14562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14565
14566     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14567 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14568 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577
14578 int
14579 main ()
14580 {
14581
14582              #ifndef __SUNPRO_CC
14583                 choke me
14584              #endif
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } &&
14599          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601   (eval $ac_try) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); }; } &&
14605          { ac_try='test -s conftest.$ac_objext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14617
14618 fi
14619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14620
14621
14622 fi
14623 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14624 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14625     ac_ext=cc
14626 ac_cpp='$CXXCPP $CPPFLAGS'
14627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14630
14631     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14632         :; SUNCXX=yes
14633     else
14634         :;
14635     fi
14636
14637
14638                 ;;
14639         esac
14640     fi
14641
14642
14643
14644 if test -n "$ac_tool_prefix"; then
14645   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14647 echo "$as_me:$LINENO: checking for $ac_word" >&5
14648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14649 if test "${ac_cv_prog_RANLIB+set}" = set; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   if test -n "$RANLIB"; then
14653   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14654 else
14655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14656 for as_dir in $PATH
14657 do
14658   IFS=$as_save_IFS
14659   test -z "$as_dir" && as_dir=.
14660   for ac_exec_ext in '' $ac_executable_extensions; do
14661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14662     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14664     break 2
14665   fi
14666 done
14667 done
14668
14669 fi
14670 fi
14671 RANLIB=$ac_cv_prog_RANLIB
14672 if test -n "$RANLIB"; then
14673   echo "$as_me:$LINENO: result: $RANLIB" >&5
14674 echo "${ECHO_T}$RANLIB" >&6
14675 else
14676   echo "$as_me:$LINENO: result: no" >&5
14677 echo "${ECHO_T}no" >&6
14678 fi
14679
14680 fi
14681 if test -z "$ac_cv_prog_RANLIB"; then
14682   ac_ct_RANLIB=$RANLIB
14683   # Extract the first word of "ranlib", so it can be a program name with args.
14684 set dummy ranlib; ac_word=$2
14685 echo "$as_me:$LINENO: checking for $ac_word" >&5
14686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14687 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   if test -n "$ac_ct_RANLIB"; then
14691   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14692 else
14693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14694 for as_dir in $PATH
14695 do
14696   IFS=$as_save_IFS
14697   test -z "$as_dir" && as_dir=.
14698   for ac_exec_ext in '' $ac_executable_extensions; do
14699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14700     ac_cv_prog_ac_ct_RANLIB="ranlib"
14701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14702     break 2
14703   fi
14704 done
14705 done
14706
14707   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14708 fi
14709 fi
14710 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14711 if test -n "$ac_ct_RANLIB"; then
14712   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14713 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14714 else
14715   echo "$as_me:$LINENO: result: no" >&5
14716 echo "${ECHO_T}no" >&6
14717 fi
14718
14719   RANLIB=$ac_ct_RANLIB
14720 else
14721   RANLIB="$ac_cv_prog_RANLIB"
14722 fi
14723
14724
14725 if test -n "$ac_tool_prefix"; then
14726   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14727 set dummy ${ac_tool_prefix}ar; ac_word=$2
14728 echo "$as_me:$LINENO: checking for $ac_word" >&5
14729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14730 if test "${ac_cv_prog_AR+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733   if test -n "$AR"; then
14734   ac_cv_prog_AR="$AR" # Let the user override the test.
14735 else
14736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737 for as_dir in $PATH
14738 do
14739   IFS=$as_save_IFS
14740   test -z "$as_dir" && as_dir=.
14741   for ac_exec_ext in '' $ac_executable_extensions; do
14742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14743     ac_cv_prog_AR="${ac_tool_prefix}ar"
14744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14745     break 2
14746   fi
14747 done
14748 done
14749
14750 fi
14751 fi
14752 AR=$ac_cv_prog_AR
14753 if test -n "$AR"; then
14754   echo "$as_me:$LINENO: result: $AR" >&5
14755 echo "${ECHO_T}$AR" >&6
14756 else
14757   echo "$as_me:$LINENO: result: no" >&5
14758 echo "${ECHO_T}no" >&6
14759 fi
14760
14761 fi
14762 if test -z "$ac_cv_prog_AR"; then
14763   ac_ct_AR=$AR
14764   # Extract the first word of "ar", so it can be a program name with args.
14765 set dummy ar; ac_word=$2
14766 echo "$as_me:$LINENO: checking for $ac_word" >&5
14767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14768 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   if test -n "$ac_ct_AR"; then
14772   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14773 else
14774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14776 do
14777   IFS=$as_save_IFS
14778   test -z "$as_dir" && as_dir=.
14779   for ac_exec_ext in '' $ac_executable_extensions; do
14780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781     ac_cv_prog_ac_ct_AR="ar"
14782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14783     break 2
14784   fi
14785 done
14786 done
14787
14788 fi
14789 fi
14790 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14791 if test -n "$ac_ct_AR"; then
14792   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14793 echo "${ECHO_T}$ac_ct_AR" >&6
14794 else
14795   echo "$as_me:$LINENO: result: no" >&5
14796 echo "${ECHO_T}no" >&6
14797 fi
14798
14799   AR=$ac_ct_AR
14800 else
14801   AR="$ac_cv_prog_AR"
14802 fi
14803
14804 if test "x$AR" = "x" ; then
14805     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14806 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14807    { (exit 1); exit 1; }; }
14808 fi
14809
14810 # Find a good install program.  We prefer a C program (faster),
14811 # so one script is as good as another.  But avoid the broken or
14812 # incompatible versions:
14813 # SysV /etc/install, /usr/sbin/install
14814 # SunOS /usr/etc/install
14815 # IRIX /sbin/install
14816 # AIX /bin/install
14817 # AmigaOS /C/install, which installs bootblocks on floppy discs
14818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14821 # OS/2's system install, which has a completely different semantic
14822 # ./install, which can be erroneously created by make from ./install.sh.
14823 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14824 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14825 if test -z "$INSTALL"; then
14826 if test "${ac_cv_path_install+set}" = set; then
14827   echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832   IFS=$as_save_IFS
14833   test -z "$as_dir" && as_dir=.
14834   # Account for people who put trailing slashes in PATH elements.
14835 case $as_dir/ in
14836   ./ | .// | /cC/* | \
14837   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14838   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14839   /usr/ucb/* ) ;;
14840   *)
14841     # OSF1 and SCO ODT 3.0 have their own names for install.
14842     # Don't use installbsd from OSF since it installs stuff as root
14843     # by default.
14844     for ac_prog in ginstall scoinst install; do
14845       for ac_exec_ext in '' $ac_executable_extensions; do
14846         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14847           if test $ac_prog = install &&
14848             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14849             # AIX install.  It has an incompatible calling convention.
14850             :
14851           elif test $ac_prog = install &&
14852             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14853             # program-specific install script used by HP pwplus--don't use.
14854             :
14855           else
14856             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14857             break 3
14858           fi
14859         fi
14860       done
14861     done
14862     ;;
14863 esac
14864 done
14865
14866
14867 fi
14868   if test "${ac_cv_path_install+set}" = set; then
14869     INSTALL=$ac_cv_path_install
14870   else
14871     # As a last resort, use the slow shell script.  We don't cache a
14872     # path for INSTALL within a source directory, because that will
14873     # break other packages using the cache if that directory is
14874     # removed, or if the path is relative.
14875     INSTALL=$ac_install_sh
14876   fi
14877 fi
14878 echo "$as_me:$LINENO: result: $INSTALL" >&5
14879 echo "${ECHO_T}$INSTALL" >&6
14880
14881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14882 # It thinks the first close brace ends the variable substitution.
14883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14884
14885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14886
14887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14888
14889
14890 case ${INSTALL} in
14891   /* ) # Absolute
14892      ;;
14893   ?:* ) # Drive letter, considered as absolute.
14894      ;;
14895   *)
14896      INSTALL=`pwd`/${INSTALL} ;;
14897 esac
14898
14899
14900 case "${host}" in
14901
14902                 *-*-darwin* )
14903         INSTALL_PROGRAM="cp -fp"
14904         INSTALL_DATA="cp -fp"
14905         ;;
14906     *)
14907         ;;
14908 esac
14909
14910 if test -n "$ac_tool_prefix"; then
14911   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14912 set dummy ${ac_tool_prefix}strip; ac_word=$2
14913 echo "$as_me:$LINENO: checking for $ac_word" >&5
14914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14915 if test "${ac_cv_prog_STRIP+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918   if test -n "$STRIP"; then
14919   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14920 else
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14923 do
14924   IFS=$as_save_IFS
14925   test -z "$as_dir" && as_dir=.
14926   for ac_exec_ext in '' $ac_executable_extensions; do
14927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14928     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14930     break 2
14931   fi
14932 done
14933 done
14934
14935 fi
14936 fi
14937 STRIP=$ac_cv_prog_STRIP
14938 if test -n "$STRIP"; then
14939   echo "$as_me:$LINENO: result: $STRIP" >&5
14940 echo "${ECHO_T}$STRIP" >&6
14941 else
14942   echo "$as_me:$LINENO: result: no" >&5
14943 echo "${ECHO_T}no" >&6
14944 fi
14945
14946 fi
14947 if test -z "$ac_cv_prog_STRIP"; then
14948   ac_ct_STRIP=$STRIP
14949   # Extract the first word of "strip", so it can be a program name with args.
14950 set dummy strip; ac_word=$2
14951 echo "$as_me:$LINENO: checking for $ac_word" >&5
14952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14954   echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956   if test -n "$ac_ct_STRIP"; then
14957   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14958 else
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14961 do
14962   IFS=$as_save_IFS
14963   test -z "$as_dir" && as_dir=.
14964   for ac_exec_ext in '' $ac_executable_extensions; do
14965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14966     ac_cv_prog_ac_ct_STRIP="strip"
14967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14968     break 2
14969   fi
14970 done
14971 done
14972
14973   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14974 fi
14975 fi
14976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14977 if test -n "$ac_ct_STRIP"; then
14978   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14979 echo "${ECHO_T}$ac_ct_STRIP" >&6
14980 else
14981   echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6
14983 fi
14984
14985   STRIP=$ac_ct_STRIP
14986 else
14987   STRIP="$ac_cv_prog_STRIP"
14988 fi
14989
14990
14991 if test "$wxUSE_WINE" = "yes"; then
14992     if test -n "$ac_tool_prefix"; then
14993   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14994 set dummy ${ac_tool_prefix}wrc; ac_word=$2
14995 echo "$as_me:$LINENO: checking for $ac_word" >&5
14996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14997 if test "${ac_cv_prog_WINDRES+set}" = set; then
14998   echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000   if test -n "$WINDRES"; then
15001   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15002 else
15003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004 for as_dir in $PATH
15005 do
15006   IFS=$as_save_IFS
15007   test -z "$as_dir" && as_dir=.
15008   for ac_exec_ext in '' $ac_executable_extensions; do
15009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15010     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15012     break 2
15013   fi
15014 done
15015 done
15016
15017 fi
15018 fi
15019 WINDRES=$ac_cv_prog_WINDRES
15020 if test -n "$WINDRES"; then
15021   echo "$as_me:$LINENO: result: $WINDRES" >&5
15022 echo "${ECHO_T}$WINDRES" >&6
15023 else
15024   echo "$as_me:$LINENO: result: no" >&5
15025 echo "${ECHO_T}no" >&6
15026 fi
15027
15028 fi
15029 if test -z "$ac_cv_prog_WINDRES"; then
15030   ac_ct_WINDRES=$WINDRES
15031   # Extract the first word of "wrc", so it can be a program name with args.
15032 set dummy wrc; ac_word=$2
15033 echo "$as_me:$LINENO: checking for $ac_word" >&5
15034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15035 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   if test -n "$ac_ct_WINDRES"; then
15039   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15040 else
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $PATH
15043 do
15044   IFS=$as_save_IFS
15045   test -z "$as_dir" && as_dir=.
15046   for ac_exec_ext in '' $ac_executable_extensions; do
15047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048     ac_cv_prog_ac_ct_WINDRES="wrc"
15049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050     break 2
15051   fi
15052 done
15053 done
15054
15055 fi
15056 fi
15057 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15058 if test -n "$ac_ct_WINDRES"; then
15059   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15060 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15061 else
15062   echo "$as_me:$LINENO: result: no" >&5
15063 echo "${ECHO_T}no" >&6
15064 fi
15065
15066   WINDRES=$ac_ct_WINDRES
15067 else
15068   WINDRES="$ac_cv_prog_WINDRES"
15069 fi
15070
15071     RESCOMP="$WINDRES"
15072 else
15073     case "${host}" in
15074     *-*-cygwin* | *-*-mingw32* )
15075                                 if test -n "$ac_tool_prefix"; then
15076   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}windres; ac_word=$2
15078 echo "$as_me:$LINENO: checking for $ac_word" >&5
15079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15080 if test "${ac_cv_prog_WINDRES+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   if test -n "$WINDRES"; then
15084   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089   IFS=$as_save_IFS
15090   test -z "$as_dir" && as_dir=.
15091   for ac_exec_ext in '' $ac_executable_extensions; do
15092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15095     break 2
15096   fi
15097 done
15098 done
15099
15100 fi
15101 fi
15102 WINDRES=$ac_cv_prog_WINDRES
15103 if test -n "$WINDRES"; then
15104   echo "$as_me:$LINENO: result: $WINDRES" >&5
15105 echo "${ECHO_T}$WINDRES" >&6
15106 else
15107   echo "$as_me:$LINENO: result: no" >&5
15108 echo "${ECHO_T}no" >&6
15109 fi
15110
15111 fi
15112 if test -z "$ac_cv_prog_WINDRES"; then
15113   ac_ct_WINDRES=$WINDRES
15114   # Extract the first word of "windres", so it can be a program name with args.
15115 set dummy windres; ac_word=$2
15116 echo "$as_me:$LINENO: checking for $ac_word" >&5
15117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15118 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15119   echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121   if test -n "$ac_ct_WINDRES"; then
15122   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15123 else
15124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15125 for as_dir in $PATH
15126 do
15127   IFS=$as_save_IFS
15128   test -z "$as_dir" && as_dir=.
15129   for ac_exec_ext in '' $ac_executable_extensions; do
15130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15131     ac_cv_prog_ac_ct_WINDRES="windres"
15132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15133     break 2
15134   fi
15135 done
15136 done
15137
15138 fi
15139 fi
15140 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15141 if test -n "$ac_ct_WINDRES"; then
15142   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15143 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15144 else
15145   echo "$as_me:$LINENO: result: no" >&5
15146 echo "${ECHO_T}no" >&6
15147 fi
15148
15149   WINDRES=$ac_ct_WINDRES
15150 else
15151   WINDRES="$ac_cv_prog_WINDRES"
15152 fi
15153
15154         RESCOMP="$WINDRES"
15155         if test -n "$ac_tool_prefix"; then
15156   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15157 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15158 echo "$as_me:$LINENO: checking for $ac_word" >&5
15159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15160 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   if test -n "$DLLTOOL"; then
15164   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15165 else
15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15168 do
15169   IFS=$as_save_IFS
15170   test -z "$as_dir" && as_dir=.
15171   for ac_exec_ext in '' $ac_executable_extensions; do
15172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15175     break 2
15176   fi
15177 done
15178 done
15179
15180 fi
15181 fi
15182 DLLTOOL=$ac_cv_prog_DLLTOOL
15183 if test -n "$DLLTOOL"; then
15184   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15185 echo "${ECHO_T}$DLLTOOL" >&6
15186 else
15187   echo "$as_me:$LINENO: result: no" >&5
15188 echo "${ECHO_T}no" >&6
15189 fi
15190
15191 fi
15192 if test -z "$ac_cv_prog_DLLTOOL"; then
15193   ac_ct_DLLTOOL=$DLLTOOL
15194   # Extract the first word of "dlltool", so it can be a program name with args.
15195 set dummy dlltool; ac_word=$2
15196 echo "$as_me:$LINENO: checking for $ac_word" >&5
15197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15198 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   if test -n "$ac_ct_DLLTOOL"; then
15202   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15203 else
15204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15205 for as_dir in $PATH
15206 do
15207   IFS=$as_save_IFS
15208   test -z "$as_dir" && as_dir=.
15209   for ac_exec_ext in '' $ac_executable_extensions; do
15210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15211     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15213     break 2
15214   fi
15215 done
15216 done
15217
15218 fi
15219 fi
15220 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15221 if test -n "$ac_ct_DLLTOOL"; then
15222   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15223 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15224 else
15225   echo "$as_me:$LINENO: result: no" >&5
15226 echo "${ECHO_T}no" >&6
15227 fi
15228
15229   DLLTOOL=$ac_ct_DLLTOOL
15230 else
15231   DLLTOOL="$ac_cv_prog_DLLTOOL"
15232 fi
15233
15234         ;;
15235     esac
15236 fi
15237
15238 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15239 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15240 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243
15244     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15245             egrep -s GNU > /dev/null); then
15246         wx_cv_prog_makeisgnu="yes"
15247     else
15248         wx_cv_prog_makeisgnu="no"
15249     fi
15250
15251 fi
15252 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15253 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15254
15255 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15256     IF_GNU_MAKE=""
15257 else
15258     IF_GNU_MAKE="#"
15259 fi
15260
15261
15262
15263 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15264 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15265 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15266 if test "${wx_cv_prog_makevpath+set}" = set; then
15267   echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269
15270 cat - << EOF > confMake
15271 check : file
15272         cp \$? \$@
15273         cp \$? final_file
15274 EOF
15275
15276 if test ! -d sub ; then
15277   mkdir sub
15278 fi
15279 echo dummy > sub/file
15280 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15281 RESULT=$?
15282 rm -f sub/file check final_file confMake
15283 rmdir sub
15284 if test "$RESULT" = 0; then
15285   wx_cv_prog_makevpath="yes"
15286 else
15287   wx_cv_prog_makevpath="no"
15288 fi
15289
15290 fi
15291 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15292 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15293
15294 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15295 { { echo "$as_me:$LINENO: error:
15296 You need a make-utility that is able to use the variable
15297 VPATH correctly.
15298 If your version of make does not support VPATH correctly,
15299 please install GNU-make (possibly as gmake), and start
15300 configure with the following command:
15301 export MAKE=gmake; ./configure  for sh-type shells
15302 setenv MAKE gmake; ./configure  for csh-type shells
15303 Also please do remember to use gmake in this case every time
15304 you are trying to compile.
15305 " >&5
15306 echo "$as_me: error:
15307 You need a make-utility that is able to use the variable
15308 VPATH correctly.
15309 If your version of make does not support VPATH correctly,
15310 please install GNU-make (possibly as gmake), and start
15311 configure with the following command:
15312 export MAKE=gmake; ./configure  for sh-type shells
15313 setenv MAKE gmake; ./configure  for csh-type shells
15314 Also please do remember to use gmake in this case every time
15315 you are trying to compile.
15316 " >&2;}
15317    { (exit 1); exit 1; }; }
15318 fi fi
15319 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15320 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15321 LN_S=$as_ln_s
15322 if test "$LN_S" = "ln -s"; then
15323   echo "$as_me:$LINENO: result: yes" >&5
15324 echo "${ECHO_T}yes" >&6
15325 else
15326   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15327 echo "${ECHO_T}no, using $LN_S" >&6
15328 fi
15329
15330
15331
15332
15333 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15334     CXXFLAGS="-qunique $CXXFLAGS"
15335 fi
15336
15337 case "${host}" in
15338   powerpc-*-darwin* )
15339     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15340 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15341     cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347
15348 int
15349 main ()
15350 {
15351 #ifndef __POWERPC__
15352         choke me for lack of PowerPC
15353 #endif
15354
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361   (eval $ac_compile) 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370   (eval $ac_try) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } &&
15374          { ac_try='test -s conftest.$ac_objext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   echo "$as_me:$LINENO: result: yes" >&5
15381 echo "${ECHO_T}yes" >&6
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 echo "$as_me:$LINENO: result: no" >&5
15387 echo "${ECHO_T}no" >&6
15388         cat >>confdefs.h <<\_ACEOF
15389 #define __POWERPC__ 1
15390 _ACEOF
15391
15392
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395   ;;
15396 esac
15397
15398 case "${host}" in
15399   *-*-darwin* )
15400     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15401 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $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 #include <CoreFoundation/CFBase.h>
15409
15410 int
15411 main ()
15412 {
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420   (eval $ac_compile) 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429   (eval $ac_try) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   echo "$as_me:$LINENO: result: yes" >&5
15440 echo "${ECHO_T}yes" >&6
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15447         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15448 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15449         cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455 #define __CF_USE_FRAMEWORK_INCLUDES__
15456 #include <CoreFoundation/CFBase.h>
15457
15458 int
15459 main ()
15460 {
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468   (eval $ac_compile) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; } &&
15481          { ac_try='test -s conftest.$ac_objext'
15482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483   (eval $ac_try) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }; }; then
15487   echo "$as_me:$LINENO: result: yes" >&5
15488 echo "${ECHO_T}yes" >&6
15489                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15495 See \`config.log' for more details." >&5
15496 echo "$as_me: error: no.  CoreFoundation not available.
15497 See \`config.log' for more details." >&2;}
15498    { (exit 1); exit 1; }; }
15499
15500 fi
15501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502
15503
15504 fi
15505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506   ;;
15507 esac
15508
15509 case "${host}" in
15510   *-pc-os2_emx | *-pc-os2-emx )
15511                                                       ac_ext=c
15512 ac_cpp='$CPP $CPPFLAGS'
15513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15516
15517       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15518                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15519 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15520 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15521   echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523   ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lcExt  $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531
15532 /* Override any gcc2 internal prototype to avoid an error.  */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 /* We use char because int might match the return type of a gcc2
15537    builtin and then its argument prototype would still apply.  */
15538 char drand48 ();
15539 int
15540 main ()
15541 {
15542 drand48 ();
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549   (eval $ac_link) 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558   (eval $ac_try) 2>&5
15559   ac_status=$?
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); }; } &&
15562          { ac_try='test -s conftest$ac_exeext'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; }; then
15568   ac_cv_lib_cExt_drand48=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_cv_lib_cExt_drand48=no
15574 fi
15575 rm -f conftest.err conftest.$ac_objext \
15576       conftest$ac_exeext conftest.$ac_ext
15577 LIBS=$ac_check_lib_save_LIBS
15578 fi
15579 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15580 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15581 if test $ac_cv_lib_cExt_drand48 = yes; then
15582   LIBS="$LIBS -lcExt"
15583 fi
15584
15585       else
15586                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15587       fi
15588                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15589 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15590 if test "${wx_cv_gccversion+set}" = set; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593
15594           if test "$cross_compiling" = yes; then
15595                 wx_cv_gccversion="EMX2"
15596
15597 else
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604
15605                   #include <stdio.h>
15606
15607                   int main()
15608                   {
15609                       FILE *f=fopen("conftestval", "w");
15610                       if (!f) exit(1);
15611                       fprintf(f,
15612                   #if (__GNUC__ < 3)
15613                               "EMX2"
15614                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15615                               "EMX3"
15616                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15617                               "Innotek5"
15618                   #else
15619                               "Innotek6"
15620                   #endif
15621                       );
15622                       exit(0);
15623                   }
15624
15625 _ACEOF
15626 rm -f conftest$ac_exeext
15627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15628   (eval $ac_link) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   wx_cv_gccversion=`cat conftestval`
15638 else
15639   echo "$as_me: program exited with status $ac_status" >&5
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ( exit $ac_status )
15644 wx_cv_gccversion="EMX2"
15645 fi
15646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15647 fi
15648
15649 fi
15650 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15651 echo "${ECHO_T}$wx_cv_gccversion" >&6
15652       ac_ext=cc
15653 ac_cpp='$CXXCPP $CPPFLAGS'
15654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15657
15658       if test "$wx_cv_gccversion" = "EMX2"; then
15659           LIBS="$LIBS -lstdcpp"
15660           LDFLAGS="$LDFLAGS -Zsysv-signals"
15661       else
15662           if test "$wx_cv_gccversion" = "EMX3"; then
15663               LIBS="$LIBS -lstdcxx -lgcc"
15664               LDFLAGS="$LDFLAGS -Zsysv-signals"
15665           else
15666               LIBS="$LIBS -lstdc++"
15667           fi
15668       fi
15669       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15670         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15671 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15672         wxUSE_OMF=yes
15673         enable_omf=yes
15674       fi
15675         ;;
15676   *)
15677
15678       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15679 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15680 if test "${ac_cv_string_strcasecmp+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683
15684           cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690
15691               #include <string.h>
15692
15693 int
15694 main ()
15695 {
15696
15697                   strcasecmp("foo", "bar");
15698
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705   (eval $ac_link) 2>conftest.er1
15706   ac_status=$?
15707   grep -v '^ *+' conftest.er1 >conftest.err
15708   rm -f conftest.er1
15709   cat conftest.err >&5
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); } &&
15712          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714   (eval $ac_try) 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); }; } &&
15718          { ac_try='test -s conftest$ac_exeext'
15719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720   (eval $ac_try) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; }; then
15724   ac_cv_string_strcasecmp=yes
15725 else
15726   echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 ac_cv_string_strcasecmp=no
15730
15731 fi
15732 rm -f conftest.err conftest.$ac_objext \
15733       conftest$ac_exeext conftest.$ac_ext
15734
15735 fi
15736 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15737 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15738
15739       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15740           cat >>confdefs.h <<\_ACEOF
15741 #define HAVE_STRCASECMP_IN_STRING_H 1
15742 _ACEOF
15743
15744       else
15745           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15746 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15747 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750
15751               cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757
15758                   #include <strings.h>
15759
15760 int
15761 main ()
15762 {
15763
15764                       strcasecmp("foo", "bar");
15765
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest.$ac_objext conftest$ac_exeext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772   (eval $ac_link) 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } &&
15785          { ac_try='test -s conftest$ac_exeext'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791   ac_cv_strings_strcasecmp=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 ac_cv_strings_strcasecmp=no
15797
15798 fi
15799 rm -f conftest.err conftest.$ac_objext \
15800       conftest$ac_exeext conftest.$ac_ext
15801
15802 fi
15803 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15804 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15805
15806           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15807               cat >>confdefs.h <<\_ACEOF
15808 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15809 _ACEOF
15810
15811           else
15812               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15813 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15814    { (exit 1); exit 1; }; }
15815           fi
15816       fi
15817
15818         ;;
15819 esac
15820
15821
15822 ac_ext=cc
15823 ac_cpp='$CXXCPP $CPPFLAGS'
15824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15827 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15829 if test -z "$CXXCPP"; then
15830   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15831   echo $ECHO_N "(cached) $ECHO_C" >&6
15832 else
15833       # Double quotes because CXXCPP needs to be expanded
15834     for CXXCPP in "$CXX -E" "/lib/cpp"
15835     do
15836       ac_preproc_ok=false
15837 for ac_cxx_preproc_warn_flag in '' yes
15838 do
15839   # Use a header file that comes with gcc, so configuring glibc
15840   # with a fresh cross-compiler works.
15841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15842   # <limits.h> exists even on freestanding compilers.
15843   # On the NeXT, cc -E runs the code through the compiler's parser,
15844   # not just through cpp. "Syntax error" is here to catch this case.
15845   cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 #ifdef __STDC__
15852 # include <limits.h>
15853 #else
15854 # include <assert.h>
15855 #endif
15856                      Syntax error
15857 _ACEOF
15858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15860   ac_status=$?
15861   grep -v '^ *+' conftest.er1 >conftest.err
15862   rm -f conftest.er1
15863   cat conftest.err >&5
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } >/dev/null; then
15866   if test -s conftest.err; then
15867     ac_cpp_err=$ac_cxx_preproc_warn_flag
15868     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15869   else
15870     ac_cpp_err=
15871   fi
15872 else
15873   ac_cpp_err=yes
15874 fi
15875 if test -z "$ac_cpp_err"; then
15876   :
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881   # Broken: fails on valid input.
15882 continue
15883 fi
15884 rm -f conftest.err conftest.$ac_ext
15885
15886   # OK, works on sane cases.  Now check whether non-existent headers
15887   # can be detected and how.
15888   cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894 #include <ac_nonexistent.h>
15895 _ACEOF
15896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } >/dev/null; then
15904   if test -s conftest.err; then
15905     ac_cpp_err=$ac_cxx_preproc_warn_flag
15906     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15907   else
15908     ac_cpp_err=
15909   fi
15910 else
15911   ac_cpp_err=yes
15912 fi
15913 if test -z "$ac_cpp_err"; then
15914   # Broken: success on invalid input.
15915 continue
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920   # Passes both tests.
15921 ac_preproc_ok=:
15922 break
15923 fi
15924 rm -f conftest.err conftest.$ac_ext
15925
15926 done
15927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15928 rm -f conftest.err conftest.$ac_ext
15929 if $ac_preproc_ok; then
15930   break
15931 fi
15932
15933     done
15934     ac_cv_prog_CXXCPP=$CXXCPP
15935
15936 fi
15937   CXXCPP=$ac_cv_prog_CXXCPP
15938 else
15939   ac_cv_prog_CXXCPP=$CXXCPP
15940 fi
15941 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15942 echo "${ECHO_T}$CXXCPP" >&6
15943 ac_preproc_ok=false
15944 for ac_cxx_preproc_warn_flag in '' yes
15945 do
15946   # Use a header file that comes with gcc, so configuring glibc
15947   # with a fresh cross-compiler works.
15948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15949   # <limits.h> exists even on freestanding compilers.
15950   # On the NeXT, cc -E runs the code through the compiler's parser,
15951   # not just through cpp. "Syntax error" is here to catch this case.
15952   cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958 #ifdef __STDC__
15959 # include <limits.h>
15960 #else
15961 # include <assert.h>
15962 #endif
15963                      Syntax error
15964 _ACEOF
15965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15967   ac_status=$?
15968   grep -v '^ *+' conftest.er1 >conftest.err
15969   rm -f conftest.er1
15970   cat conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } >/dev/null; then
15973   if test -s conftest.err; then
15974     ac_cpp_err=$ac_cxx_preproc_warn_flag
15975     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15976   else
15977     ac_cpp_err=
15978   fi
15979 else
15980   ac_cpp_err=yes
15981 fi
15982 if test -z "$ac_cpp_err"; then
15983   :
15984 else
15985   echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15987
15988   # Broken: fails on valid input.
15989 continue
15990 fi
15991 rm -f conftest.err conftest.$ac_ext
15992
15993   # OK, works on sane cases.  Now check whether non-existent headers
15994   # can be detected and how.
15995   cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 #include <ac_nonexistent.h>
16002 _ACEOF
16003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } >/dev/null; then
16011   if test -s conftest.err; then
16012     ac_cpp_err=$ac_cxx_preproc_warn_flag
16013     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16014   else
16015     ac_cpp_err=
16016   fi
16017 else
16018   ac_cpp_err=yes
16019 fi
16020 if test -z "$ac_cpp_err"; then
16021   # Broken: success on invalid input.
16022 continue
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027   # Passes both tests.
16028 ac_preproc_ok=:
16029 break
16030 fi
16031 rm -f conftest.err conftest.$ac_ext
16032
16033 done
16034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16035 rm -f conftest.err conftest.$ac_ext
16036 if $ac_preproc_ok; then
16037   :
16038 else
16039   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16040 See \`config.log' for more details." >&5
16041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16042 See \`config.log' for more details." >&2;}
16043    { (exit 1); exit 1; }; }
16044 fi
16045
16046 ac_ext=cc
16047 ac_cpp='$CXXCPP $CPPFLAGS'
16048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16051
16052
16053 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16054 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16055 if test "${ac_cv_header_stdc+set}" = set; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058   cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064 #include <stdlib.h>
16065 #include <stdarg.h>
16066 #include <string.h>
16067 #include <float.h>
16068
16069 int
16070 main ()
16071 {
16072
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079   (eval $ac_compile) 2>conftest.er1
16080   ac_status=$?
16081   grep -v '^ *+' conftest.er1 >conftest.err
16082   rm -f conftest.er1
16083   cat conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; } &&
16092          { ac_try='test -s conftest.$ac_objext'
16093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094   (eval $ac_try) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; }; then
16098   ac_cv_header_stdc=yes
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_cv_header_stdc=no
16104 fi
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16106
16107 if test $ac_cv_header_stdc = yes; then
16108   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16109   cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115 #include <string.h>
16116
16117 _ACEOF
16118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16119   $EGREP "memchr" >/dev/null 2>&1; then
16120   :
16121 else
16122   ac_cv_header_stdc=no
16123 fi
16124 rm -f conftest*
16125
16126 fi
16127
16128 if test $ac_cv_header_stdc = yes; then
16129   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #include <stdlib.h>
16137
16138 _ACEOF
16139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16140   $EGREP "free" >/dev/null 2>&1; then
16141   :
16142 else
16143   ac_cv_header_stdc=no
16144 fi
16145 rm -f conftest*
16146
16147 fi
16148
16149 if test $ac_cv_header_stdc = yes; then
16150   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16151   if test "$cross_compiling" = yes; then
16152   :
16153 else
16154   cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 #include <ctype.h>
16161 #if ((' ' & 0x0FF) == 0x020)
16162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16164 #else
16165 # define ISLOWER(c) \
16166                    (('a' <= (c) && (c) <= 'i') \
16167                      || ('j' <= (c) && (c) <= 'r') \
16168                      || ('s' <= (c) && (c) <= 'z'))
16169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16170 #endif
16171
16172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16173 int
16174 main ()
16175 {
16176   int i;
16177   for (i = 0; i < 256; i++)
16178     if (XOR (islower (i), ISLOWER (i))
16179         || toupper (i) != TOUPPER (i))
16180       exit(2);
16181   exit (0);
16182 }
16183 _ACEOF
16184 rm -f conftest$ac_exeext
16185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16186   (eval $ac_link) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191   (eval $ac_try) 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; }; then
16195   :
16196 else
16197   echo "$as_me: program exited with status $ac_status" >&5
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201 ( exit $ac_status )
16202 ac_cv_header_stdc=no
16203 fi
16204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16205 fi
16206 fi
16207 fi
16208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16210 if test $ac_cv_header_stdc = yes; then
16211
16212 cat >>confdefs.h <<\_ACEOF
16213 #define STDC_HEADERS 1
16214 _ACEOF
16215
16216 fi
16217
16218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16229                   inttypes.h stdint.h unistd.h
16230 do
16231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_header" >&5
16233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 $ac_includes_default
16244
16245 #include <$ac_header>
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16249   (eval $ac_compile) 2>conftest.er1
16250   ac_status=$?
16251   grep -v '^ *+' conftest.er1 >conftest.err
16252   rm -f conftest.er1
16253   cat conftest.err >&5
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } &&
16256          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; } &&
16262          { ac_try='test -s conftest.$ac_objext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268   eval "$as_ac_Header=yes"
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 eval "$as_ac_Header=no"
16274 fi
16275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16280   cat >>confdefs.h <<_ACEOF
16281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16282 _ACEOF
16283
16284 fi
16285
16286 done
16287
16288
16289
16290 for ac_header in stdlib.h
16291 do
16292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16294   echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 fi
16299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16301 else
16302   # Is the header compilable?
16303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311 $ac_includes_default
16312 #include <$ac_header>
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316   (eval $ac_compile) 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; } &&
16329          { ac_try='test -s conftest.$ac_objext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   ac_header_compiler=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_compiler=no
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6
16345
16346 # Is the header present?
16347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 #include <$ac_header>
16356 _ACEOF
16357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } >/dev/null; then
16365   if test -s conftest.err; then
16366     ac_cpp_err=$ac_cxx_preproc_warn_flag
16367     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16368   else
16369     ac_cpp_err=
16370   fi
16371 else
16372   ac_cpp_err=yes
16373 fi
16374 if test -z "$ac_cpp_err"; then
16375   ac_header_preproc=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380   ac_header_preproc=no
16381 fi
16382 rm -f conftest.err conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384 echo "${ECHO_T}$ac_header_preproc" >&6
16385
16386 # So?  What about this header?
16387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16388   yes:no: )
16389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393     ac_header_preproc=yes
16394     ;;
16395   no:yes:* )
16396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16408     (
16409       cat <<\_ASBOX
16410 ## ----------------------------------------- ##
16411 ## Report this to wx-dev@lists.wxwidgets.org ##
16412 ## ----------------------------------------- ##
16413 _ASBOX
16414     ) |
16415       sed "s/^/$as_me: WARNING:     /" >&2
16416     ;;
16417 esac
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421   echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423   eval "$as_ac_Header=\$ac_header_preproc"
16424 fi
16425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16427
16428 fi
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430   cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438
16439 for ac_header in malloc.h
16440 do
16441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443   echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 fi
16448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16450 else
16451   # Is the header compilable?
16452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16454 cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 $ac_includes_default
16461 #include <$ac_header>
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465   (eval $ac_compile) 2>conftest.er1
16466   ac_status=$?
16467   grep -v '^ *+' conftest.er1 >conftest.err
16468   rm -f conftest.er1
16469   cat conftest.err >&5
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } &&
16472          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480   (eval $ac_try) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_header_compiler=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_header_compiler=no
16490 fi
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16493 echo "${ECHO_T}$ac_header_compiler" >&6
16494
16495 # Is the header present?
16496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16498 cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504 #include <$ac_header>
16505 _ACEOF
16506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } >/dev/null; then
16514   if test -s conftest.err; then
16515     ac_cpp_err=$ac_cxx_preproc_warn_flag
16516     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16517   else
16518     ac_cpp_err=
16519   fi
16520 else
16521   ac_cpp_err=yes
16522 fi
16523 if test -z "$ac_cpp_err"; then
16524   ac_header_preproc=yes
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529   ac_header_preproc=no
16530 fi
16531 rm -f conftest.err conftest.$ac_ext
16532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16533 echo "${ECHO_T}$ac_header_preproc" >&6
16534
16535 # So?  What about this header?
16536 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16537   yes:no: )
16538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16542     ac_header_preproc=yes
16543     ;;
16544   no:yes:* )
16545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16557     (
16558       cat <<\_ASBOX
16559 ## ----------------------------------------- ##
16560 ## Report this to wx-dev@lists.wxwidgets.org ##
16561 ## ----------------------------------------- ##
16562 _ASBOX
16563     ) |
16564       sed "s/^/$as_me: WARNING:     /" >&2
16565     ;;
16566 esac
16567 echo "$as_me:$LINENO: checking for $ac_header" >&5
16568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   eval "$as_ac_Header=\$ac_header_preproc"
16573 fi
16574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16576
16577 fi
16578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579   cat >>confdefs.h <<_ACEOF
16580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16581 _ACEOF
16582
16583 fi
16584
16585 done
16586
16587
16588 for ac_header in unistd.h
16589 do
16590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16592   echo "$as_me:$LINENO: checking for $ac_header" >&5
16593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 fi
16597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16599 else
16600   # Is the header compilable?
16601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 $ac_includes_default
16610 #include <$ac_header>
16611 _ACEOF
16612 rm -f conftest.$ac_objext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16614   (eval $ac_compile) 2>conftest.er1
16615   ac_status=$?
16616   grep -v '^ *+' conftest.er1 >conftest.err
16617   rm -f conftest.er1
16618   cat conftest.err >&5
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); } &&
16621          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623   (eval $ac_try) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; } &&
16627          { ac_try='test -s conftest.$ac_objext'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; }; then
16633   ac_header_compiler=yes
16634 else
16635   echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 ac_header_compiler=no
16639 fi
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16642 echo "${ECHO_T}$ac_header_compiler" >&6
16643
16644 # Is the header present?
16645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653 #include <$ac_header>
16654 _ACEOF
16655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } >/dev/null; then
16663   if test -s conftest.err; then
16664     ac_cpp_err=$ac_cxx_preproc_warn_flag
16665     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16666   else
16667     ac_cpp_err=
16668   fi
16669 else
16670   ac_cpp_err=yes
16671 fi
16672 if test -z "$ac_cpp_err"; then
16673   ac_header_preproc=yes
16674 else
16675   echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16677
16678   ac_header_preproc=no
16679 fi
16680 rm -f conftest.err conftest.$ac_ext
16681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16682 echo "${ECHO_T}$ac_header_preproc" >&6
16683
16684 # So?  What about this header?
16685 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16686   yes:no: )
16687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16691     ac_header_preproc=yes
16692     ;;
16693   no:yes:* )
16694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16706     (
16707       cat <<\_ASBOX
16708 ## ----------------------------------------- ##
16709 ## Report this to wx-dev@lists.wxwidgets.org ##
16710 ## ----------------------------------------- ##
16711 _ASBOX
16712     ) |
16713       sed "s/^/$as_me: WARNING:     /" >&2
16714     ;;
16715 esac
16716 echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   eval "$as_ac_Header=\$ac_header_preproc"
16722 fi
16723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16725
16726 fi
16727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16728   cat >>confdefs.h <<_ACEOF
16729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16730 _ACEOF
16731
16732 fi
16733
16734 done
16735
16736
16737 for ac_header in wchar.h
16738 do
16739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16741   echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 fi
16746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16748 else
16749   # Is the header compilable?
16750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 $ac_includes_default
16759 #include <$ac_header>
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763   (eval $ac_compile) 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } &&
16770          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest.$ac_objext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ac_header_compiler=yes
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 ac_header_compiler=no
16788 fi
16789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791 echo "${ECHO_T}$ac_header_compiler" >&6
16792
16793 # Is the header present?
16794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 #include <$ac_header>
16803 _ACEOF
16804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } >/dev/null; then
16812   if test -s conftest.err; then
16813     ac_cpp_err=$ac_cxx_preproc_warn_flag
16814     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16815   else
16816     ac_cpp_err=
16817   fi
16818 else
16819   ac_cpp_err=yes
16820 fi
16821 if test -z "$ac_cpp_err"; then
16822   ac_header_preproc=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827   ac_header_preproc=no
16828 fi
16829 rm -f conftest.err conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831 echo "${ECHO_T}$ac_header_preproc" >&6
16832
16833 # So?  What about this header?
16834 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16835   yes:no: )
16836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16840     ac_header_preproc=yes
16841     ;;
16842   no:yes:* )
16843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16855     (
16856       cat <<\_ASBOX
16857 ## ----------------------------------------- ##
16858 ## Report this to wx-dev@lists.wxwidgets.org ##
16859 ## ----------------------------------------- ##
16860 _ASBOX
16861     ) |
16862       sed "s/^/$as_me: WARNING:     /" >&2
16863     ;;
16864 esac
16865 echo "$as_me:$LINENO: checking for $ac_header" >&5
16866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   eval "$as_ac_Header=\$ac_header_preproc"
16871 fi
16872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16874
16875 fi
16876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16877   cat >>confdefs.h <<_ACEOF
16878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16879 _ACEOF
16880
16881 fi
16882
16883 done
16884
16885
16886 if test "$ac_cv_header_wchar_h" != "yes"; then
16887
16888 for ac_header in wcstr.h
16889 do
16890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16892   echo "$as_me:$LINENO: checking for $ac_header" >&5
16893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16895   echo $ECHO_N "(cached) $ECHO_C" >&6
16896 fi
16897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16899 else
16900   # Is the header compilable?
16901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 $ac_includes_default
16910 #include <$ac_header>
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914   (eval $ac_compile) 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } &&
16921          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest.$ac_objext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   ac_header_compiler=yes
16934 else
16935   echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_header_compiler=no
16939 fi
16940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 echo "${ECHO_T}$ac_header_compiler" >&6
16943
16944 # Is the header present?
16945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #include <$ac_header>
16954 _ACEOF
16955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } >/dev/null; then
16963   if test -s conftest.err; then
16964     ac_cpp_err=$ac_cxx_preproc_warn_flag
16965     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16966   else
16967     ac_cpp_err=
16968   fi
16969 else
16970   ac_cpp_err=yes
16971 fi
16972 if test -z "$ac_cpp_err"; then
16973   ac_header_preproc=yes
16974 else
16975   echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978   ac_header_preproc=no
16979 fi
16980 rm -f conftest.err conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16982 echo "${ECHO_T}$ac_header_preproc" >&6
16983
16984 # So?  What about this header?
16985 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16986   yes:no: )
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16991     ac_header_preproc=yes
16992     ;;
16993   no:yes:* )
16994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17006     (
17007       cat <<\_ASBOX
17008 ## ----------------------------------------- ##
17009 ## Report this to wx-dev@lists.wxwidgets.org ##
17010 ## ----------------------------------------- ##
17011 _ASBOX
17012     ) |
17013       sed "s/^/$as_me: WARNING:     /" >&2
17014     ;;
17015 esac
17016 echo "$as_me:$LINENO: checking for $ac_header" >&5
17017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17019   echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021   eval "$as_ac_Header=\$ac_header_preproc"
17022 fi
17023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17025
17026 fi
17027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17028   cat >>confdefs.h <<_ACEOF
17029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030 _ACEOF
17031
17032 fi
17033
17034 done
17035
17036 fi
17037
17038
17039 for ac_header in fnmatch.h
17040 do
17041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17043   echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 fi
17048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17050 else
17051   # Is the header compilable?
17052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060 $ac_includes_default
17061 #include <$ac_header>
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065   (eval $ac_compile) 2>conftest.er1
17066   ac_status=$?
17067   grep -v '^ *+' conftest.er1 >conftest.err
17068   rm -f conftest.er1
17069   cat conftest.err >&5
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); } &&
17072          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; } &&
17078          { ac_try='test -s conftest.$ac_objext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_header_compiler=yes
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 ac_header_compiler=no
17090 fi
17091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17093 echo "${ECHO_T}$ac_header_compiler" >&6
17094
17095 # Is the header present?
17096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104 #include <$ac_header>
17105 _ACEOF
17106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17108   ac_status=$?
17109   grep -v '^ *+' conftest.er1 >conftest.err
17110   rm -f conftest.er1
17111   cat conftest.err >&5
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } >/dev/null; then
17114   if test -s conftest.err; then
17115     ac_cpp_err=$ac_cxx_preproc_warn_flag
17116     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17117   else
17118     ac_cpp_err=
17119   fi
17120 else
17121   ac_cpp_err=yes
17122 fi
17123 if test -z "$ac_cpp_err"; then
17124   ac_header_preproc=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129   ac_header_preproc=no
17130 fi
17131 rm -f conftest.err conftest.$ac_ext
17132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17133 echo "${ECHO_T}$ac_header_preproc" >&6
17134
17135 # So?  What about this header?
17136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17137   yes:no: )
17138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17142     ac_header_preproc=yes
17143     ;;
17144   no:yes:* )
17145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17157     (
17158       cat <<\_ASBOX
17159 ## ----------------------------------------- ##
17160 ## Report this to wx-dev@lists.wxwidgets.org ##
17161 ## ----------------------------------------- ##
17162 _ASBOX
17163     ) |
17164       sed "s/^/$as_me: WARNING:     /" >&2
17165     ;;
17166 esac
17167 echo "$as_me:$LINENO: checking for $ac_header" >&5
17168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17170   echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172   eval "$as_ac_Header=\$ac_header_preproc"
17173 fi
17174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17176
17177 fi
17178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17179   cat >>confdefs.h <<_ACEOF
17180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17181 _ACEOF
17182
17183 fi
17184
17185 done
17186
17187
17188
17189 for ac_header in langinfo.h
17190 do
17191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17193   echo "$as_me:$LINENO: checking for $ac_header" >&5
17194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 fi
17198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17200 else
17201   # Is the header compilable?
17202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210 $ac_includes_default
17211 #include <$ac_header>
17212 _ACEOF
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215   (eval $ac_compile) 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224   (eval $ac_try) 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); }; } &&
17228          { ac_try='test -s conftest.$ac_objext'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   ac_header_compiler=yes
17235 else
17236   echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239 ac_header_compiler=no
17240 fi
17241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17243 echo "${ECHO_T}$ac_header_compiler" >&6
17244
17245 # Is the header present?
17246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 #include <$ac_header>
17255 _ACEOF
17256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } >/dev/null; then
17264   if test -s conftest.err; then
17265     ac_cpp_err=$ac_cxx_preproc_warn_flag
17266     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17267   else
17268     ac_cpp_err=
17269   fi
17270 else
17271   ac_cpp_err=yes
17272 fi
17273 if test -z "$ac_cpp_err"; then
17274   ac_header_preproc=yes
17275 else
17276   echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279   ac_header_preproc=no
17280 fi
17281 rm -f conftest.err conftest.$ac_ext
17282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17283 echo "${ECHO_T}$ac_header_preproc" >&6
17284
17285 # So?  What about this header?
17286 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17287   yes:no: )
17288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17292     ac_header_preproc=yes
17293     ;;
17294   no:yes:* )
17295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17307     (
17308       cat <<\_ASBOX
17309 ## ----------------------------------------- ##
17310 ## Report this to wx-dev@lists.wxwidgets.org ##
17311 ## ----------------------------------------- ##
17312 _ASBOX
17313     ) |
17314       sed "s/^/$as_me: WARNING:     /" >&2
17315     ;;
17316 esac
17317 echo "$as_me:$LINENO: checking for $ac_header" >&5
17318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322   eval "$as_ac_Header=\$ac_header_preproc"
17323 fi
17324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17326
17327 fi
17328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17329   cat >>confdefs.h <<_ACEOF
17330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17331 _ACEOF
17332
17333 fi
17334
17335 done
17336
17337
17338 case "${host}" in
17339   *-pc-os2_emx | *-pc-os2-emx )
17340                   if test $ac_cv_header_langinfo_h = "yes" \
17341                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17342                      -o "$wx_cv_gccversion" = "EMX3" \
17343                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17344           LIBS="$LIBS -lintl"
17345       fi
17346   ;;
17347 esac
17348
17349
17350 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17351 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17352 if test "${ac_cv_c_const+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355   cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361
17362 int
17363 main ()
17364 {
17365 /* FIXME: Include the comments suggested by Paul. */
17366 #ifndef __cplusplus
17367   /* Ultrix mips cc rejects this.  */
17368   typedef int charset[2];
17369   const charset x;
17370   /* SunOS 4.1.1 cc rejects this.  */
17371   char const *const *ccp;
17372   char **p;
17373   /* NEC SVR4.0.2 mips cc rejects this.  */
17374   struct point {int x, y;};
17375   static struct point const zero = {0,0};
17376   /* AIX XL C 1.02.0.0 rejects this.
17377      It does not let you subtract one const X* pointer from another in
17378      an arm of an if-expression whose if-part is not a constant
17379      expression */
17380   const char *g = "string";
17381   ccp = &g + (g ? g-g : 0);
17382   /* HPUX 7.0 cc rejects these. */
17383   ++ccp;
17384   p = (char**) ccp;
17385   ccp = (char const *const *) p;
17386   { /* SCO 3.2v4 cc rejects this.  */
17387     char *t;
17388     char const *s = 0 ? (char *) 0 : (char const *) 0;
17389
17390     *t++ = 0;
17391   }
17392   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17393     int x[] = {25, 17};
17394     const int *foo = &x[0];
17395     ++foo;
17396   }
17397   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17398     typedef const int *iptr;
17399     iptr p = 0;
17400     ++p;
17401   }
17402   { /* AIX XL C 1.02.0.0 rejects this saying
17403        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17404     struct s { int j; const int *ap[3]; };
17405     struct s *b; b->j = 5;
17406   }
17407   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17408     const int foo = 10;
17409   }
17410 #endif
17411
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418   (eval $ac_compile) 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427   (eval $ac_try) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; } &&
17431          { ac_try='test -s conftest.$ac_objext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_c_const=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 ac_cv_c_const=no
17443 fi
17444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17445 fi
17446 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17447 echo "${ECHO_T}$ac_cv_c_const" >&6
17448 if test $ac_cv_c_const = no; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define const
17452 _ACEOF
17453
17454 fi
17455
17456 echo "$as_me:$LINENO: checking for inline" >&5
17457 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17458 if test "${ac_cv_c_inline+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   ac_cv_c_inline=no
17462 for ac_kw in inline __inline__ __inline; do
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 #ifndef __cplusplus
17470 typedef int foo_t;
17471 static $ac_kw foo_t static_foo () {return 0; }
17472 $ac_kw foo_t foo () {return 0; }
17473 #endif
17474
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478   (eval $ac_compile) 2>conftest.er1
17479   ac_status=$?
17480   grep -v '^ *+' conftest.er1 >conftest.err
17481   rm -f conftest.er1
17482   cat conftest.err >&5
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } &&
17485          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest.$ac_objext'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   ac_cv_c_inline=$ac_kw; break
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 fi
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17504 done
17505
17506 fi
17507 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17508 echo "${ECHO_T}$ac_cv_c_inline" >&6
17509
17510
17511 case $ac_cv_c_inline in
17512   inline | yes) ;;
17513   *)
17514     case $ac_cv_c_inline in
17515       no) ac_val=;;
17516       *) ac_val=$ac_cv_c_inline;;
17517     esac
17518     cat >>confdefs.h <<_ACEOF
17519 #ifndef __cplusplus
17520 #define inline $ac_val
17521 #endif
17522 _ACEOF
17523     ;;
17524 esac
17525
17526
17527 echo "$as_me:$LINENO: checking for char" >&5
17528 echo $ECHO_N "checking for char... $ECHO_C" >&6
17529 if test "${ac_cv_type_char+set}" = set; then
17530   echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532   cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 $ac_includes_default
17539 int
17540 main ()
17541 {
17542 if ((char *) 0)
17543   return 0;
17544 if (sizeof (char))
17545   return 0;
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552   (eval $ac_compile) 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; } &&
17565          { ac_try='test -s conftest.$ac_objext'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   ac_cv_type_char=yes
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_cv_type_char=no
17577 fi
17578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17579 fi
17580 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17581 echo "${ECHO_T}$ac_cv_type_char" >&6
17582
17583 echo "$as_me:$LINENO: checking size of char" >&5
17584 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17585 if test "${ac_cv_sizeof_char+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   if test "$ac_cv_type_char" = yes; then
17589   # The cast to unsigned long works around a bug in the HP C Compiler
17590   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17591   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17592   # This bug is HP SR number 8606223364.
17593   if test "$cross_compiling" = yes; then
17594   # Depending upon the size, compute the lo and hi bounds.
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601 $ac_includes_default
17602 int
17603 main ()
17604 {
17605 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17606 test_array [0] = 0
17607
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17614   (eval $ac_compile) 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } &&
17621          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623   (eval $ac_try) 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); }; } &&
17627          { ac_try='test -s conftest.$ac_objext'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; }; then
17633   ac_lo=0 ac_mid=0
17634   while :; do
17635     cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h.  */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h.  */
17641 $ac_includes_default
17642 int
17643 main ()
17644 {
17645 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17646 test_array [0] = 0
17647
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654   (eval $ac_compile) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; } &&
17667          { ac_try='test -s conftest.$ac_objext'
17668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669   (eval $ac_try) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); }; }; then
17673   ac_hi=$ac_mid; break
17674 else
17675   echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 ac_lo=`expr $ac_mid + 1`
17679                     if test $ac_lo -le $ac_mid; then
17680                       ac_lo= ac_hi=
17681                       break
17682                     fi
17683                     ac_mid=`expr 2 '*' $ac_mid + 1`
17684 fi
17685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17686   done
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697 $ac_includes_default
17698 int
17699 main ()
17700 {
17701 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17702 test_array [0] = 0
17703
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17710   (eval $ac_compile) 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest.$ac_objext'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_hi=-1 ac_mid=-1
17730   while :; do
17731     cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737 $ac_includes_default
17738 int
17739 main ()
17740 {
17741 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17742 test_array [0] = 0
17743
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750   (eval $ac_compile) 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; } &&
17763          { ac_try='test -s conftest.$ac_objext'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; }; then
17769   ac_lo=$ac_mid; break
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ac_hi=`expr '(' $ac_mid ')' - 1`
17775                        if test $ac_mid -le $ac_hi; then
17776                          ac_lo= ac_hi=
17777                          break
17778                        fi
17779                        ac_mid=`expr 2 '*' $ac_mid`
17780 fi
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782   done
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 ac_lo= ac_hi=
17788 fi
17789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790 fi
17791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17792 # Binary search between lo and hi bounds.
17793 while test "x$ac_lo" != "x$ac_hi"; do
17794   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17795   cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801 $ac_includes_default
17802 int
17803 main ()
17804 {
17805 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17806 test_array [0] = 0
17807
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext
17813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17814   (eval $ac_compile) 2>conftest.er1
17815   ac_status=$?
17816   grep -v '^ *+' conftest.er1 >conftest.err
17817   rm -f conftest.er1
17818   cat conftest.err >&5
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); } &&
17821          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; } &&
17827          { ac_try='test -s conftest.$ac_objext'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; }; then
17833   ac_hi=$ac_mid
17834 else
17835   echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_lo=`expr '(' $ac_mid ')' + 1`
17839 fi
17840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17841 done
17842 case $ac_lo in
17843 ?*) ac_cv_sizeof_char=$ac_lo;;
17844 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17845 See \`config.log' for more details." >&5
17846 echo "$as_me: error: cannot compute sizeof (char), 77
17847 See \`config.log' for more details." >&2;}
17848    { (exit 1); exit 1; }; } ;;
17849 esac
17850 else
17851   if test "$cross_compiling" = yes; then
17852   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17853 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17854    { (exit 1); exit 1; }; }
17855 else
17856   cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h.  */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h.  */
17862 $ac_includes_default
17863 long longval () { return (long) (sizeof (char)); }
17864 unsigned long ulongval () { return (long) (sizeof (char)); }
17865 #include <stdio.h>
17866 #include <stdlib.h>
17867 int
17868 main ()
17869 {
17870
17871   FILE *f = fopen ("conftest.val", "w");
17872   if (! f)
17873     exit (1);
17874   if (((long) (sizeof (char))) < 0)
17875     {
17876       long i = longval ();
17877       if (i != ((long) (sizeof (char))))
17878         exit (1);
17879       fprintf (f, "%ld\n", i);
17880     }
17881   else
17882     {
17883       unsigned long i = ulongval ();
17884       if (i != ((long) (sizeof (char))))
17885         exit (1);
17886       fprintf (f, "%lu\n", i);
17887     }
17888   exit (ferror (f) || fclose (f) != 0);
17889
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896   (eval $ac_link) 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901   (eval $ac_try) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; }; then
17905   ac_cv_sizeof_char=`cat conftest.val`
17906 else
17907   echo "$as_me: program exited with status $ac_status" >&5
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 ( exit $ac_status )
17912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17913 See \`config.log' for more details." >&5
17914 echo "$as_me: error: cannot compute sizeof (char), 77
17915 See \`config.log' for more details." >&2;}
17916    { (exit 1); exit 1; }; }
17917 fi
17918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17919 fi
17920 fi
17921 rm -f conftest.val
17922 else
17923   ac_cv_sizeof_char=0
17924 fi
17925 fi
17926 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17927 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17928 cat >>confdefs.h <<_ACEOF
17929 #define SIZEOF_CHAR $ac_cv_sizeof_char
17930 _ACEOF
17931
17932
17933 echo "$as_me:$LINENO: checking for short" >&5
17934 echo $ECHO_N "checking for short... $ECHO_C" >&6
17935 if test "${ac_cv_type_short+set}" = set; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938   cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944 $ac_includes_default
17945 int
17946 main ()
17947 {
17948 if ((short *) 0)
17949   return 0;
17950 if (sizeof (short))
17951   return 0;
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17958   (eval $ac_compile) 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } &&
17965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967   (eval $ac_try) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; } &&
17971          { ac_try='test -s conftest.$ac_objext'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; }; then
17977   ac_cv_type_short=yes
17978 else
17979   echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 ac_cv_type_short=no
17983 fi
17984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 fi
17986 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17987 echo "${ECHO_T}$ac_cv_type_short" >&6
17988
17989 echo "$as_me:$LINENO: checking size of short" >&5
17990 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17991 if test "${ac_cv_sizeof_short+set}" = set; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994   if test "$ac_cv_type_short" = yes; then
17995   # The cast to unsigned long works around a bug in the HP C Compiler
17996   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17997   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17998   # This bug is HP SR number 8606223364.
17999   if test "$cross_compiling" = yes; then
18000   # Depending upon the size, compute the lo and hi bounds.
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 $ac_includes_default
18008 int
18009 main ()
18010 {
18011 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18012 test_array [0] = 0
18013
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020   (eval $ac_compile) 2>conftest.er1
18021   ac_status=$?
18022   grep -v '^ *+' conftest.er1 >conftest.err
18023   rm -f conftest.er1
18024   cat conftest.err >&5
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); } &&
18027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest.$ac_objext'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   ac_lo=0 ac_mid=0
18040   while :; do
18041     cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 $ac_includes_default
18048 int
18049 main ()
18050 {
18051 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18052 test_array [0] = 0
18053
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>conftest.er1
18061   ac_status=$?
18062   grep -v '^ *+' conftest.er1 >conftest.err
18063   rm -f conftest.er1
18064   cat conftest.err >&5
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); } &&
18067          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069   (eval $ac_try) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; } &&
18073          { ac_try='test -s conftest.$ac_objext'
18074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075   (eval $ac_try) 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; }; then
18079   ac_hi=$ac_mid; break
18080 else
18081   echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 ac_lo=`expr $ac_mid + 1`
18085                     if test $ac_lo -le $ac_mid; then
18086                       ac_lo= ac_hi=
18087                       break
18088                     fi
18089                     ac_mid=`expr 2 '*' $ac_mid + 1`
18090 fi
18091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18092   done
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103 $ac_includes_default
18104 int
18105 main ()
18106 {
18107 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18108 test_array [0] = 0
18109
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116   (eval $ac_compile) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125   (eval $ac_try) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest.$ac_objext'
18130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131   (eval $ac_try) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; }; then
18135   ac_hi=-1 ac_mid=-1
18136   while :; do
18137     cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143 $ac_includes_default
18144 int
18145 main ()
18146 {
18147 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18148 test_array [0] = 0
18149
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156   (eval $ac_compile) 2>conftest.er1
18157   ac_status=$?
18158   grep -v '^ *+' conftest.er1 >conftest.err
18159   rm -f conftest.er1
18160   cat conftest.err >&5
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest.$ac_objext'
18170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171   (eval $ac_try) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_lo=$ac_mid; break
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_hi=`expr '(' $ac_mid ')' - 1`
18181                        if test $ac_mid -le $ac_hi; then
18182                          ac_lo= ac_hi=
18183                          break
18184                        fi
18185                        ac_mid=`expr 2 '*' $ac_mid`
18186 fi
18187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188   done
18189 else
18190   echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193 ac_lo= ac_hi=
18194 fi
18195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196 fi
18197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18198 # Binary search between lo and hi bounds.
18199 while test "x$ac_lo" != "x$ac_hi"; do
18200   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18201   cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 $ac_includes_default
18208 int
18209 main ()
18210 {
18211 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18212 test_array [0] = 0
18213
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220   (eval $ac_compile) 2>conftest.er1
18221   ac_status=$?
18222   grep -v '^ *+' conftest.er1 >conftest.err
18223   rm -f conftest.er1
18224   cat conftest.err >&5
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); } &&
18227          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; } &&
18233          { ac_try='test -s conftest.$ac_objext'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239   ac_hi=$ac_mid
18240 else
18241   echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18243
18244 ac_lo=`expr '(' $ac_mid ')' + 1`
18245 fi
18246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18247 done
18248 case $ac_lo in
18249 ?*) ac_cv_sizeof_short=$ac_lo;;
18250 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18251 See \`config.log' for more details." >&5
18252 echo "$as_me: error: cannot compute sizeof (short), 77
18253 See \`config.log' for more details." >&2;}
18254    { (exit 1); exit 1; }; } ;;
18255 esac
18256 else
18257   if test "$cross_compiling" = yes; then
18258   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18259 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18260    { (exit 1); exit 1; }; }
18261 else
18262   cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268 $ac_includes_default
18269 long longval () { return (long) (sizeof (short)); }
18270 unsigned long ulongval () { return (long) (sizeof (short)); }
18271 #include <stdio.h>
18272 #include <stdlib.h>
18273 int
18274 main ()
18275 {
18276
18277   FILE *f = fopen ("conftest.val", "w");
18278   if (! f)
18279     exit (1);
18280   if (((long) (sizeof (short))) < 0)
18281     {
18282       long i = longval ();
18283       if (i != ((long) (sizeof (short))))
18284         exit (1);
18285       fprintf (f, "%ld\n", i);
18286     }
18287   else
18288     {
18289       unsigned long i = ulongval ();
18290       if (i != ((long) (sizeof (short))))
18291         exit (1);
18292       fprintf (f, "%lu\n", i);
18293     }
18294   exit (ferror (f) || fclose (f) != 0);
18295
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest$ac_exeext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302   (eval $ac_link) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307   (eval $ac_try) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); }; }; then
18311   ac_cv_sizeof_short=`cat conftest.val`
18312 else
18313   echo "$as_me: program exited with status $ac_status" >&5
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ( exit $ac_status )
18318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18319 See \`config.log' for more details." >&5
18320 echo "$as_me: error: cannot compute sizeof (short), 77
18321 See \`config.log' for more details." >&2;}
18322    { (exit 1); exit 1; }; }
18323 fi
18324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18325 fi
18326 fi
18327 rm -f conftest.val
18328 else
18329   ac_cv_sizeof_short=0
18330 fi
18331 fi
18332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18333 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18334 cat >>confdefs.h <<_ACEOF
18335 #define SIZEOF_SHORT $ac_cv_sizeof_short
18336 _ACEOF
18337
18338
18339 echo "$as_me:$LINENO: checking for void *" >&5
18340 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18341 if test "${ac_cv_type_void_p+set}" = set; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344   cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h.  */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h.  */
18350 $ac_includes_default
18351 int
18352 main ()
18353 {
18354 if ((void * *) 0)
18355   return 0;
18356 if (sizeof (void *))
18357   return 0;
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18364   (eval $ac_compile) 2>conftest.er1
18365   ac_status=$?
18366   grep -v '^ *+' conftest.er1 >conftest.err
18367   rm -f conftest.er1
18368   cat conftest.err >&5
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } &&
18371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373   (eval $ac_try) 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; } &&
18377          { ac_try='test -s conftest.$ac_objext'
18378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379   (eval $ac_try) 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; }; then
18383   ac_cv_type_void_p=yes
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 ac_cv_type_void_p=no
18389 fi
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 fi
18392 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18393 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18394
18395 echo "$as_me:$LINENO: checking size of void *" >&5
18396 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18397 if test "${ac_cv_sizeof_void_p+set}" = set; then
18398   echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400   if test "$ac_cv_type_void_p" = yes; then
18401   # The cast to unsigned long works around a bug in the HP C Compiler
18402   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18403   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18404   # This bug is HP SR number 8606223364.
18405   if test "$cross_compiling" = yes; then
18406   # Depending upon the size, compute the lo and hi bounds.
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413 $ac_includes_default
18414 int
18415 main ()
18416 {
18417 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18418 test_array [0] = 0
18419
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18426   (eval $ac_compile) 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } &&
18433          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; } &&
18439          { ac_try='test -s conftest.$ac_objext'
18440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441   (eval $ac_try) 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); }; }; then
18445   ac_lo=0 ac_mid=0
18446   while :; do
18447     cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453 $ac_includes_default
18454 int
18455 main ()
18456 {
18457 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18458 test_array [0] = 0
18459
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466   (eval $ac_compile) 2>conftest.er1
18467   ac_status=$?
18468   grep -v '^ *+' conftest.er1 >conftest.err
18469   rm -f conftest.er1
18470   cat conftest.err >&5
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); } &&
18473          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475   (eval $ac_try) 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); }; } &&
18479          { ac_try='test -s conftest.$ac_objext'
18480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481   (eval $ac_try) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); }; }; then
18485   ac_hi=$ac_mid; break
18486 else
18487   echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 ac_lo=`expr $ac_mid + 1`
18491                     if test $ac_lo -le $ac_mid; then
18492                       ac_lo= ac_hi=
18493                       break
18494                     fi
18495                     ac_mid=`expr 2 '*' $ac_mid + 1`
18496 fi
18497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18498   done
18499 else
18500   echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509 $ac_includes_default
18510 int
18511 main ()
18512 {
18513 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18514 test_array [0] = 0
18515
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522   (eval $ac_compile) 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } &&
18529          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_hi=-1 ac_mid=-1
18542   while :; do
18543     cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549 $ac_includes_default
18550 int
18551 main ()
18552 {
18553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18554 test_array [0] = 0
18555
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562   (eval $ac_compile) 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; } &&
18575          { ac_try='test -s conftest.$ac_objext'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   ac_lo=$ac_mid; break
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_hi=`expr '(' $ac_mid ')' - 1`
18587                        if test $ac_mid -le $ac_hi; then
18588                          ac_lo= ac_hi=
18589                          break
18590                        fi
18591                        ac_mid=`expr 2 '*' $ac_mid`
18592 fi
18593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18594   done
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 ac_lo= ac_hi=
18600 fi
18601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18602 fi
18603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18604 # Binary search between lo and hi bounds.
18605 while test "x$ac_lo" != "x$ac_hi"; do
18606   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18607   cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h.  */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h.  */
18613 $ac_includes_default
18614 int
18615 main ()
18616 {
18617 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18618 test_array [0] = 0
18619
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18626   (eval $ac_compile) 2>conftest.er1
18627   ac_status=$?
18628   grep -v '^ *+' conftest.er1 >conftest.err
18629   rm -f conftest.er1
18630   cat conftest.err >&5
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); } &&
18633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635   (eval $ac_try) 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; } &&
18639          { ac_try='test -s conftest.$ac_objext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_hi=$ac_mid
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_lo=`expr '(' $ac_mid ')' + 1`
18651 fi
18652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18653 done
18654 case $ac_lo in
18655 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18656 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18657 See \`config.log' for more details." >&5
18658 echo "$as_me: error: cannot compute sizeof (void *), 77
18659 See \`config.log' for more details." >&2;}
18660    { (exit 1); exit 1; }; } ;;
18661 esac
18662 else
18663   if test "$cross_compiling" = yes; then
18664   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18665 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18666    { (exit 1); exit 1; }; }
18667 else
18668   cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674 $ac_includes_default
18675 long longval () { return (long) (sizeof (void *)); }
18676 unsigned long ulongval () { return (long) (sizeof (void *)); }
18677 #include <stdio.h>
18678 #include <stdlib.h>
18679 int
18680 main ()
18681 {
18682
18683   FILE *f = fopen ("conftest.val", "w");
18684   if (! f)
18685     exit (1);
18686   if (((long) (sizeof (void *))) < 0)
18687     {
18688       long i = longval ();
18689       if (i != ((long) (sizeof (void *))))
18690         exit (1);
18691       fprintf (f, "%ld\n", i);
18692     }
18693   else
18694     {
18695       unsigned long i = ulongval ();
18696       if (i != ((long) (sizeof (void *))))
18697         exit (1);
18698       fprintf (f, "%lu\n", i);
18699     }
18700   exit (ferror (f) || fclose (f) != 0);
18701
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest$ac_exeext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708   (eval $ac_link) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713   (eval $ac_try) 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_sizeof_void_p=`cat conftest.val`
18718 else
18719   echo "$as_me: program exited with status $ac_status" >&5
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723 ( exit $ac_status )
18724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18725 See \`config.log' for more details." >&5
18726 echo "$as_me: error: cannot compute sizeof (void *), 77
18727 See \`config.log' for more details." >&2;}
18728    { (exit 1); exit 1; }; }
18729 fi
18730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 fi
18733 rm -f conftest.val
18734 else
18735   ac_cv_sizeof_void_p=0
18736 fi
18737 fi
18738 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18739 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18740 cat >>confdefs.h <<_ACEOF
18741 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18742 _ACEOF
18743
18744
18745 echo "$as_me:$LINENO: checking for int" >&5
18746 echo $ECHO_N "checking for int... $ECHO_C" >&6
18747 if test "${ac_cv_type_int+set}" = set; then
18748   echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750   cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 $ac_includes_default
18757 int
18758 main ()
18759 {
18760 if ((int *) 0)
18761   return 0;
18762 if (sizeof (int))
18763   return 0;
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18770   (eval $ac_compile) 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } &&
18777          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779   (eval $ac_try) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; } &&
18783          { ac_try='test -s conftest.$ac_objext'
18784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785   (eval $ac_try) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; }; then
18789   ac_cv_type_int=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_cv_type_int=no
18795 fi
18796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18797 fi
18798 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18799 echo "${ECHO_T}$ac_cv_type_int" >&6
18800
18801 echo "$as_me:$LINENO: checking size of int" >&5
18802 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18803 if test "${ac_cv_sizeof_int+set}" = set; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   if test "$ac_cv_type_int" = yes; then
18807   # The cast to unsigned long works around a bug in the HP C Compiler
18808   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18809   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18810   # This bug is HP SR number 8606223364.
18811   if test "$cross_compiling" = yes; then
18812   # Depending upon the size, compute the lo and hi bounds.
18813 cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h.  */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h.  */
18819 $ac_includes_default
18820 int
18821 main ()
18822 {
18823 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18824 test_array [0] = 0
18825
18826   ;
18827   return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832   (eval $ac_compile) 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } &&
18839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841   (eval $ac_try) 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; } &&
18845          { ac_try='test -s conftest.$ac_objext'
18846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847   (eval $ac_try) 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; }; then
18851   ac_lo=0 ac_mid=0
18852   while :; do
18853     cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859 $ac_includes_default
18860 int
18861 main ()
18862 {
18863 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18864 test_array [0] = 0
18865
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18872   (eval $ac_compile) 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } &&
18879          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881   (eval $ac_try) 2>&5
18882   ac_status=$?
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); }; } &&
18885          { ac_try='test -s conftest.$ac_objext'
18886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887   (eval $ac_try) 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; }; then
18891   ac_hi=$ac_mid; break
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_lo=`expr $ac_mid + 1`
18897                     if test $ac_lo -le $ac_mid; then
18898                       ac_lo= ac_hi=
18899                       break
18900                     fi
18901                     ac_mid=`expr 2 '*' $ac_mid + 1`
18902 fi
18903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18904   done
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915 $ac_includes_default
18916 int
18917 main ()
18918 {
18919 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18920 test_array [0] = 0
18921
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18928   (eval $ac_compile) 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } &&
18935          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; } &&
18941          { ac_try='test -s conftest.$ac_objext'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; }; then
18947   ac_hi=-1 ac_mid=-1
18948   while :; do
18949     cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955 $ac_includes_default
18956 int
18957 main ()
18958 {
18959 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18960 test_array [0] = 0
18961
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968   (eval $ac_compile) 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } &&
18975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977   (eval $ac_try) 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; } &&
18981          { ac_try='test -s conftest.$ac_objext'
18982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983   (eval $ac_try) 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; }; then
18987   ac_lo=$ac_mid; break
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_hi=`expr '(' $ac_mid ')' - 1`
18993                        if test $ac_mid -le $ac_hi; then
18994                          ac_lo= ac_hi=
18995                          break
18996                        fi
18997                        ac_mid=`expr 2 '*' $ac_mid`
18998 fi
18999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19000   done
19001 else
19002   echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_lo= ac_hi=
19006 fi
19007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19008 fi
19009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19010 # Binary search between lo and hi bounds.
19011 while test "x$ac_lo" != "x$ac_hi"; do
19012   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19013   cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 $ac_includes_default
19020 int
19021 main ()
19022 {
19023 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19024 test_array [0] = 0
19025
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032   (eval $ac_compile) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; } &&
19045          { ac_try='test -s conftest.$ac_objext'
19046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047   (eval $ac_try) 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; }; then
19051   ac_hi=$ac_mid
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_lo=`expr '(' $ac_mid ')' + 1`
19057 fi
19058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 done
19060 case $ac_lo in
19061 ?*) ac_cv_sizeof_int=$ac_lo;;
19062 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19063 See \`config.log' for more details." >&5
19064 echo "$as_me: error: cannot compute sizeof (int), 77
19065 See \`config.log' for more details." >&2;}
19066    { (exit 1); exit 1; }; } ;;
19067 esac
19068 else
19069   if test "$cross_compiling" = yes; then
19070   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19071 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19072    { (exit 1); exit 1; }; }
19073 else
19074   cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080 $ac_includes_default
19081 long longval () { return (long) (sizeof (int)); }
19082 unsigned long ulongval () { return (long) (sizeof (int)); }
19083 #include <stdio.h>
19084 #include <stdlib.h>
19085 int
19086 main ()
19087 {
19088
19089   FILE *f = fopen ("conftest.val", "w");
19090   if (! f)
19091     exit (1);
19092   if (((long) (sizeof (int))) < 0)
19093     {
19094       long i = longval ();
19095       if (i != ((long) (sizeof (int))))
19096         exit (1);
19097       fprintf (f, "%ld\n", i);
19098     }
19099   else
19100     {
19101       unsigned long i = ulongval ();
19102       if (i != ((long) (sizeof (int))))
19103         exit (1);
19104       fprintf (f, "%lu\n", i);
19105     }
19106   exit (ferror (f) || fclose (f) != 0);
19107
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest$ac_exeext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114   (eval $ac_link) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_sizeof_int=`cat conftest.val`
19124 else
19125   echo "$as_me: program exited with status $ac_status" >&5
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ( exit $ac_status )
19130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19131 See \`config.log' for more details." >&5
19132 echo "$as_me: error: cannot compute sizeof (int), 77
19133 See \`config.log' for more details." >&2;}
19134    { (exit 1); exit 1; }; }
19135 fi
19136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19137 fi
19138 fi
19139 rm -f conftest.val
19140 else
19141   ac_cv_sizeof_int=0
19142 fi
19143 fi
19144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19145 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19146 cat >>confdefs.h <<_ACEOF
19147 #define SIZEOF_INT $ac_cv_sizeof_int
19148 _ACEOF
19149
19150
19151 echo "$as_me:$LINENO: checking for long" >&5
19152 echo $ECHO_N "checking for long... $ECHO_C" >&6
19153 if test "${ac_cv_type_long+set}" = set; then
19154   echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156   cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 $ac_includes_default
19163 int
19164 main ()
19165 {
19166 if ((long *) 0)
19167   return 0;
19168 if (sizeof (long))
19169   return 0;
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19176   (eval $ac_compile) 2>conftest.er1
19177   ac_status=$?
19178   grep -v '^ *+' conftest.er1 >conftest.err
19179   rm -f conftest.er1
19180   cat conftest.err >&5
19181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182   (exit $ac_status); } &&
19183          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185   (eval $ac_try) 2>&5
19186   ac_status=$?
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); }; } &&
19189          { ac_try='test -s conftest.$ac_objext'
19190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191   (eval $ac_try) 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; }; then
19195   ac_cv_type_long=yes
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_type_long=no
19201 fi
19202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 fi
19204 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19205 echo "${ECHO_T}$ac_cv_type_long" >&6
19206
19207 echo "$as_me:$LINENO: checking size of long" >&5
19208 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19209 if test "${ac_cv_sizeof_long+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   if test "$ac_cv_type_long" = yes; then
19213   # The cast to unsigned long works around a bug in the HP C Compiler
19214   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19215   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19216   # This bug is HP SR number 8606223364.
19217   if test "$cross_compiling" = yes; then
19218   # Depending upon the size, compute the lo and hi bounds.
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 $ac_includes_default
19226 int
19227 main ()
19228 {
19229 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19230 test_array [0] = 0
19231
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19238   (eval $ac_compile) 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; } &&
19251          { ac_try='test -s conftest.$ac_objext'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   ac_lo=0 ac_mid=0
19258   while :; do
19259     cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 $ac_includes_default
19266 int
19267 main ()
19268 {
19269 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19270 test_array [0] = 0
19271
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278   (eval $ac_compile) 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest.$ac_objext'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; }; then
19297   ac_hi=$ac_mid; break
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ac_lo=`expr $ac_mid + 1`
19303                     if test $ac_lo -le $ac_mid; then
19304                       ac_lo= ac_hi=
19305                       break
19306                     fi
19307                     ac_mid=`expr 2 '*' $ac_mid + 1`
19308 fi
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310   done
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321 $ac_includes_default
19322 int
19323 main ()
19324 {
19325 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19326 test_array [0] = 0
19327
19328   ;
19329   return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334   (eval $ac_compile) 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; } &&
19347          { ac_try='test -s conftest.$ac_objext'
19348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349   (eval $ac_try) 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; }; then
19353   ac_hi=-1 ac_mid=-1
19354   while :; do
19355     cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 $ac_includes_default
19362 int
19363 main ()
19364 {
19365 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19366 test_array [0] = 0
19367
19368   ;
19369   return 0;
19370 }
19371 _ACEOF
19372 rm -f conftest.$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374   (eval $ac_compile) 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } &&
19381          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest.$ac_objext'
19388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389   (eval $ac_try) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_lo=$ac_mid; break
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_hi=`expr '(' $ac_mid ')' - 1`
19399                        if test $ac_mid -le $ac_hi; then
19400                          ac_lo= ac_hi=
19401                          break
19402                        fi
19403                        ac_mid=`expr 2 '*' $ac_mid`
19404 fi
19405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19406   done
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ac_lo= ac_hi=
19412 fi
19413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414 fi
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416 # Binary search between lo and hi bounds.
19417 while test "x$ac_lo" != "x$ac_hi"; do
19418   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19419   cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 $ac_includes_default
19426 int
19427 main ()
19428 {
19429 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19430 test_array [0] = 0
19431
19432   ;
19433   return 0;
19434 }
19435 _ACEOF
19436 rm -f conftest.$ac_objext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19438   (eval $ac_compile) 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } &&
19445          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447   (eval $ac_try) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; } &&
19451          { ac_try='test -s conftest.$ac_objext'
19452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453   (eval $ac_try) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; }; then
19457   ac_hi=$ac_mid
19458 else
19459   echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_lo=`expr '(' $ac_mid ')' + 1`
19463 fi
19464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19465 done
19466 case $ac_lo in
19467 ?*) ac_cv_sizeof_long=$ac_lo;;
19468 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19469 See \`config.log' for more details." >&5
19470 echo "$as_me: error: cannot compute sizeof (long), 77
19471 See \`config.log' for more details." >&2;}
19472    { (exit 1); exit 1; }; } ;;
19473 esac
19474 else
19475   if test "$cross_compiling" = yes; then
19476   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19477 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19478    { (exit 1); exit 1; }; }
19479 else
19480   cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486 $ac_includes_default
19487 long longval () { return (long) (sizeof (long)); }
19488 unsigned long ulongval () { return (long) (sizeof (long)); }
19489 #include <stdio.h>
19490 #include <stdlib.h>
19491 int
19492 main ()
19493 {
19494
19495   FILE *f = fopen ("conftest.val", "w");
19496   if (! f)
19497     exit (1);
19498   if (((long) (sizeof (long))) < 0)
19499     {
19500       long i = longval ();
19501       if (i != ((long) (sizeof (long))))
19502         exit (1);
19503       fprintf (f, "%ld\n", i);
19504     }
19505   else
19506     {
19507       unsigned long i = ulongval ();
19508       if (i != ((long) (sizeof (long))))
19509         exit (1);
19510       fprintf (f, "%lu\n", i);
19511     }
19512   exit (ferror (f) || fclose (f) != 0);
19513
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest$ac_exeext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520   (eval $ac_link) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525   (eval $ac_try) 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; }; then
19529   ac_cv_sizeof_long=`cat conftest.val`
19530 else
19531   echo "$as_me: program exited with status $ac_status" >&5
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 ( exit $ac_status )
19536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19537 See \`config.log' for more details." >&5
19538 echo "$as_me: error: cannot compute sizeof (long), 77
19539 See \`config.log' for more details." >&2;}
19540    { (exit 1); exit 1; }; }
19541 fi
19542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19543 fi
19544 fi
19545 rm -f conftest.val
19546 else
19547   ac_cv_sizeof_long=0
19548 fi
19549 fi
19550 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19551 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19552 cat >>confdefs.h <<_ACEOF
19553 #define SIZEOF_LONG $ac_cv_sizeof_long
19554 _ACEOF
19555
19556
19557 echo "$as_me:$LINENO: checking for size_t" >&5
19558 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19559 if test "${ac_cv_type_size_t+set}" = set; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 $ac_includes_default
19569 int
19570 main ()
19571 {
19572 if ((size_t *) 0)
19573   return 0;
19574 if (sizeof (size_t))
19575   return 0;
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582   (eval $ac_compile) 2>conftest.er1
19583   ac_status=$?
19584   grep -v '^ *+' conftest.er1 >conftest.err
19585   rm -f conftest.er1
19586   cat conftest.err >&5
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); } &&
19589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591   (eval $ac_try) 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; } &&
19595          { ac_try='test -s conftest.$ac_objext'
19596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597   (eval $ac_try) 2>&5
19598   ac_status=$?
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); }; }; then
19601   ac_cv_type_size_t=yes
19602 else
19603   echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19605
19606 ac_cv_type_size_t=no
19607 fi
19608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19609 fi
19610 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19611 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19612
19613 echo "$as_me:$LINENO: checking size of size_t" >&5
19614 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19615 if test "${ac_cv_sizeof_size_t+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   if test "$ac_cv_type_size_t" = yes; then
19619   # The cast to unsigned long works around a bug in the HP C Compiler
19620   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19621   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19622   # This bug is HP SR number 8606223364.
19623   if test "$cross_compiling" = yes; then
19624   # Depending upon the size, compute the lo and hi bounds.
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 $ac_includes_default
19632 int
19633 main ()
19634 {
19635 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19636 test_array [0] = 0
19637
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644   (eval $ac_compile) 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   ac_lo=0 ac_mid=0
19664   while :; do
19665     cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672 int
19673 main ()
19674 {
19675 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19676 test_array [0] = 0
19677
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684   (eval $ac_compile) 2>conftest.er1
19685   ac_status=$?
19686   grep -v '^ *+' conftest.er1 >conftest.err
19687   rm -f conftest.er1
19688   cat conftest.err >&5
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); } &&
19691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693   (eval $ac_try) 2>&5
19694   ac_status=$?
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); }; } &&
19697          { ac_try='test -s conftest.$ac_objext'
19698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699   (eval $ac_try) 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_hi=$ac_mid; break
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_lo=`expr $ac_mid + 1`
19709                     if test $ac_lo -le $ac_mid; then
19710                       ac_lo= ac_hi=
19711                       break
19712                     fi
19713                     ac_mid=`expr 2 '*' $ac_mid + 1`
19714 fi
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716   done
19717 else
19718   echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 $ac_includes_default
19728 int
19729 main ()
19730 {
19731 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19732 test_array [0] = 0
19733
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740   (eval $ac_compile) 2>conftest.er1
19741   ac_status=$?
19742   grep -v '^ *+' conftest.er1 >conftest.err
19743   rm -f conftest.er1
19744   cat conftest.err >&5
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } &&
19747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749   (eval $ac_try) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; } &&
19753          { ac_try='test -s conftest.$ac_objext'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   ac_hi=-1 ac_mid=-1
19760   while :; do
19761     cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h.  */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h.  */
19767 $ac_includes_default
19768 int
19769 main ()
19770 {
19771 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19772 test_array [0] = 0
19773
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780   (eval $ac_compile) 2>conftest.er1
19781   ac_status=$?
19782   grep -v '^ *+' conftest.er1 >conftest.err
19783   rm -f conftest.er1
19784   cat conftest.err >&5
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } &&
19787          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest.$ac_objext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_lo=$ac_mid; break
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_hi=`expr '(' $ac_mid ')' - 1`
19805                        if test $ac_mid -le $ac_hi; then
19806                          ac_lo= ac_hi=
19807                          break
19808                        fi
19809                        ac_mid=`expr 2 '*' $ac_mid`
19810 fi
19811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19812   done
19813 else
19814   echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ac_lo= ac_hi=
19818 fi
19819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19820 fi
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 # Binary search between lo and hi bounds.
19823 while test "x$ac_lo" != "x$ac_hi"; do
19824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19825   cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 $ac_includes_default
19832 int
19833 main ()
19834 {
19835 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19836 test_array [0] = 0
19837
19838   ;
19839   return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19844   (eval $ac_compile) 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } &&
19851          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853   (eval $ac_try) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest.$ac_objext'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; }; then
19863   ac_hi=$ac_mid
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ac_lo=`expr '(' $ac_mid ')' + 1`
19869 fi
19870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19871 done
19872 case $ac_lo in
19873 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19874 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19875 See \`config.log' for more details." >&5
19876 echo "$as_me: error: cannot compute sizeof (size_t), 77
19877 See \`config.log' for more details." >&2;}
19878    { (exit 1); exit 1; }; } ;;
19879 esac
19880 else
19881   if test "$cross_compiling" = yes; then
19882   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19883 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19884    { (exit 1); exit 1; }; }
19885 else
19886   cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892 $ac_includes_default
19893 long longval () { return (long) (sizeof (size_t)); }
19894 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19895 #include <stdio.h>
19896 #include <stdlib.h>
19897 int
19898 main ()
19899 {
19900
19901   FILE *f = fopen ("conftest.val", "w");
19902   if (! f)
19903     exit (1);
19904   if (((long) (sizeof (size_t))) < 0)
19905     {
19906       long i = longval ();
19907       if (i != ((long) (sizeof (size_t))))
19908         exit (1);
19909       fprintf (f, "%ld\n", i);
19910     }
19911   else
19912     {
19913       unsigned long i = ulongval ();
19914       if (i != ((long) (sizeof (size_t))))
19915         exit (1);
19916       fprintf (f, "%lu\n", i);
19917     }
19918   exit (ferror (f) || fclose (f) != 0);
19919
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   ac_cv_sizeof_size_t=`cat conftest.val`
19936 else
19937   echo "$as_me: program exited with status $ac_status" >&5
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ( exit $ac_status )
19942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19943 See \`config.log' for more details." >&5
19944 echo "$as_me: error: cannot compute sizeof (size_t), 77
19945 See \`config.log' for more details." >&2;}
19946    { (exit 1); exit 1; }; }
19947 fi
19948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19949 fi
19950 fi
19951 rm -f conftest.val
19952 else
19953   ac_cv_sizeof_size_t=0
19954 fi
19955 fi
19956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19957 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19958 cat >>confdefs.h <<_ACEOF
19959 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19960 _ACEOF
19961
19962
19963
19964 case "${host}" in
19965     arm-*-linux* )
19966         echo "$as_me:$LINENO: checking for long long" >&5
19967 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19968 if test "${ac_cv_type_long_long+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971   cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977 $ac_includes_default
19978 int
19979 main ()
19980 {
19981 if ((long long *) 0)
19982   return 0;
19983 if (sizeof (long long))
19984   return 0;
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991   (eval $ac_compile) 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } &&
19998          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } &&
20004          { ac_try='test -s conftest.$ac_objext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_cv_type_long_long=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_cv_type_long_long=no
20016 fi
20017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 fi
20019 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20020 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20021
20022 echo "$as_me:$LINENO: checking size of long long" >&5
20023 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20024 if test "${ac_cv_sizeof_long_long+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   if test "$ac_cv_type_long_long" = yes; then
20028   # The cast to unsigned long works around a bug in the HP C Compiler
20029   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20030   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20031   # This bug is HP SR number 8606223364.
20032   if test "$cross_compiling" = yes; then
20033   # Depending upon the size, compute the lo and hi bounds.
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 $ac_includes_default
20041 int
20042 main ()
20043 {
20044 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20045 test_array [0] = 0
20046
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053   (eval $ac_compile) 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062   (eval $ac_try) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; } &&
20066          { ac_try='test -s conftest.$ac_objext'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   ac_lo=0 ac_mid=0
20073   while :; do
20074     cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 $ac_includes_default
20081 int
20082 main ()
20083 {
20084 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20085 test_array [0] = 0
20086
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20093   (eval $ac_compile) 2>conftest.er1
20094   ac_status=$?
20095   grep -v '^ *+' conftest.er1 >conftest.err
20096   rm -f conftest.er1
20097   cat conftest.err >&5
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } &&
20100          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102   (eval $ac_try) 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; } &&
20106          { ac_try='test -s conftest.$ac_objext'
20107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108   (eval $ac_try) 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); }; }; then
20112   ac_hi=$ac_mid; break
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 ac_lo=`expr $ac_mid + 1`
20118                     if test $ac_lo -le $ac_mid; then
20119                       ac_lo= ac_hi=
20120                       break
20121                     fi
20122                     ac_mid=`expr 2 '*' $ac_mid + 1`
20123 fi
20124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125   done
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 int
20138 main ()
20139 {
20140 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20141 test_array [0] = 0
20142
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149   (eval $ac_compile) 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; } &&
20162          { ac_try='test -s conftest.$ac_objext'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; }; then
20168   ac_hi=-1 ac_mid=-1
20169   while :; do
20170     cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 $ac_includes_default
20177 int
20178 main ()
20179 {
20180 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20181 test_array [0] = 0
20182
20183   ;
20184   return 0;
20185 }
20186 _ACEOF
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189   (eval $ac_compile) 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } &&
20196          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest.$ac_objext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_lo=$ac_mid; break
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 ac_hi=`expr '(' $ac_mid ')' - 1`
20214                        if test $ac_mid -le $ac_hi; then
20215                          ac_lo= ac_hi=
20216                          break
20217                        fi
20218                        ac_mid=`expr 2 '*' $ac_mid`
20219 fi
20220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20221   done
20222 else
20223   echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 ac_lo= ac_hi=
20227 fi
20228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20229 fi
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 # Binary search between lo and hi bounds.
20232 while test "x$ac_lo" != "x$ac_hi"; do
20233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 $ac_includes_default
20241 int
20242 main ()
20243 {
20244 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20245 test_array [0] = 0
20246
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253   (eval $ac_compile) 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262   (eval $ac_try) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); }; } &&
20266          { ac_try='test -s conftest.$ac_objext'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; }; then
20272   ac_hi=$ac_mid
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_lo=`expr '(' $ac_mid ')' + 1`
20278 fi
20279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 done
20281 case $ac_lo in
20282 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20283 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20284 See \`config.log' for more details." >&5
20285 echo "$as_me: error: cannot compute sizeof (long long), 77
20286 See \`config.log' for more details." >&2;}
20287    { (exit 1); exit 1; }; } ;;
20288 esac
20289 else
20290   if test "$cross_compiling" = yes; then
20291   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20292 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20293    { (exit 1); exit 1; }; }
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 $ac_includes_default
20302 long longval () { return (long) (sizeof (long long)); }
20303 unsigned long ulongval () { return (long) (sizeof (long long)); }
20304 #include <stdio.h>
20305 #include <stdlib.h>
20306 int
20307 main ()
20308 {
20309
20310   FILE *f = fopen ("conftest.val", "w");
20311   if (! f)
20312     exit (1);
20313   if (((long) (sizeof (long long))) < 0)
20314     {
20315       long i = longval ();
20316       if (i != ((long) (sizeof (long long))))
20317         exit (1);
20318       fprintf (f, "%ld\n", i);
20319     }
20320   else
20321     {
20322       unsigned long i = ulongval ();
20323       if (i != ((long) (sizeof (long long))))
20324         exit (1);
20325       fprintf (f, "%lu\n", i);
20326     }
20327   exit (ferror (f) || fclose (f) != 0);
20328
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest$ac_exeext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335   (eval $ac_link) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_cv_sizeof_long_long=`cat conftest.val`
20345 else
20346   echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ( exit $ac_status )
20351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20352 See \`config.log' for more details." >&5
20353 echo "$as_me: error: cannot compute sizeof (long long), 77
20354 See \`config.log' for more details." >&2;}
20355    { (exit 1); exit 1; }; }
20356 fi
20357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 fi
20359 fi
20360 rm -f conftest.val
20361 else
20362   ac_cv_sizeof_long_long=0
20363 fi
20364 fi
20365 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20366 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20367 cat >>confdefs.h <<_ACEOF
20368 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20369 _ACEOF
20370
20371
20372     ;;
20373     *-hp-hpux* )
20374         echo "$as_me:$LINENO: checking for long long" >&5
20375 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20376 if test "${ac_cv_type_long_long+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379   cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385 $ac_includes_default
20386 int
20387 main ()
20388 {
20389 if ((long long *) 0)
20390   return 0;
20391 if (sizeof (long long))
20392   return 0;
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 rm -f conftest.$ac_objext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20399   (eval $ac_compile) 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } &&
20406          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest.$ac_objext'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; }; then
20418   ac_cv_type_long_long=yes
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423 ac_cv_type_long_long=no
20424 fi
20425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426 fi
20427 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20428 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20429
20430 echo "$as_me:$LINENO: checking size of long long" >&5
20431 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20432 if test "${ac_cv_sizeof_long_long+set}" = set; then
20433   echo $ECHO_N "(cached) $ECHO_C" >&6
20434 else
20435   if test "$ac_cv_type_long_long" = yes; then
20436   # The cast to unsigned long works around a bug in the HP C Compiler
20437   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20438   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20439   # This bug is HP SR number 8606223364.
20440   if test "$cross_compiling" = yes; then
20441   # Depending upon the size, compute the lo and hi bounds.
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448 $ac_includes_default
20449 int
20450 main ()
20451 {
20452 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20453 test_array [0] = 0
20454
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461   (eval $ac_compile) 2>conftest.er1
20462   ac_status=$?
20463   grep -v '^ *+' conftest.er1 >conftest.err
20464   rm -f conftest.er1
20465   cat conftest.err >&5
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } &&
20468          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; } &&
20474          { ac_try='test -s conftest.$ac_objext'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480   ac_lo=0 ac_mid=0
20481   while :; do
20482     cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 $ac_includes_default
20489 int
20490 main ()
20491 {
20492 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20493 test_array [0] = 0
20494
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501   (eval $ac_compile) 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } &&
20508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510   (eval $ac_try) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; } &&
20514          { ac_try='test -s conftest.$ac_objext'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_hi=$ac_mid; break
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_lo=`expr $ac_mid + 1`
20526                     if test $ac_lo -le $ac_mid; then
20527                       ac_lo= ac_hi=
20528                       break
20529                     fi
20530                     ac_mid=`expr 2 '*' $ac_mid + 1`
20531 fi
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533   done
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 $ac_includes_default
20545 int
20546 main ()
20547 {
20548 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20549 test_array [0] = 0
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557   (eval $ac_compile) 2>conftest.er1
20558   ac_status=$?
20559   grep -v '^ *+' conftest.er1 >conftest.err
20560   rm -f conftest.er1
20561   cat conftest.err >&5
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } &&
20564          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566   (eval $ac_try) 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; } &&
20570          { ac_try='test -s conftest.$ac_objext'
20571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572   (eval $ac_try) 2>&5
20573   ac_status=$?
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); }; }; then
20576   ac_hi=-1 ac_mid=-1
20577   while :; do
20578     cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 $ac_includes_default
20585 int
20586 main ()
20587 {
20588 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20589 test_array [0] = 0
20590
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20597   (eval $ac_compile) 2>conftest.er1
20598   ac_status=$?
20599   grep -v '^ *+' conftest.er1 >conftest.err
20600   rm -f conftest.er1
20601   cat conftest.err >&5
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } &&
20604          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; } &&
20610          { ac_try='test -s conftest.$ac_objext'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }; then
20616   ac_lo=$ac_mid; break
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 ac_hi=`expr '(' $ac_mid ')' - 1`
20622                        if test $ac_mid -le $ac_hi; then
20623                          ac_lo= ac_hi=
20624                          break
20625                        fi
20626                        ac_mid=`expr 2 '*' $ac_mid`
20627 fi
20628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629   done
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 ac_lo= ac_hi=
20635 fi
20636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20637 fi
20638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20639 # Binary search between lo and hi bounds.
20640 while test "x$ac_lo" != "x$ac_hi"; do
20641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649 int
20650 main ()
20651 {
20652 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20653 test_array [0] = 0
20654
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661   (eval $ac_compile) 2>conftest.er1
20662   ac_status=$?
20663   grep -v '^ *+' conftest.er1 >conftest.err
20664   rm -f conftest.er1
20665   cat conftest.err >&5
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } &&
20668          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; } &&
20674          { ac_try='test -s conftest.$ac_objext'
20675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676   (eval $ac_try) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; }; then
20680   ac_hi=$ac_mid
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 ac_lo=`expr '(' $ac_mid ')' + 1`
20686 fi
20687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20688 done
20689 case $ac_lo in
20690 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20691 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20692 See \`config.log' for more details." >&5
20693 echo "$as_me: error: cannot compute sizeof (long long), 77
20694 See \`config.log' for more details." >&2;}
20695    { (exit 1); exit 1; }; } ;;
20696 esac
20697 else
20698   if test "$cross_compiling" = yes; then
20699   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20700 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20701    { (exit 1); exit 1; }; }
20702 else
20703   cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 $ac_includes_default
20710 long longval () { return (long) (sizeof (long long)); }
20711 unsigned long ulongval () { return (long) (sizeof (long long)); }
20712 #include <stdio.h>
20713 #include <stdlib.h>
20714 int
20715 main ()
20716 {
20717
20718   FILE *f = fopen ("conftest.val", "w");
20719   if (! f)
20720     exit (1);
20721   if (((long) (sizeof (long long))) < 0)
20722     {
20723       long i = longval ();
20724       if (i != ((long) (sizeof (long long))))
20725         exit (1);
20726       fprintf (f, "%ld\n", i);
20727     }
20728   else
20729     {
20730       unsigned long i = ulongval ();
20731       if (i != ((long) (sizeof (long long))))
20732         exit (1);
20733       fprintf (f, "%lu\n", i);
20734     }
20735   exit (ferror (f) || fclose (f) != 0);
20736
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest$ac_exeext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20743   (eval $ac_link) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748   (eval $ac_try) 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_cv_sizeof_long_long=`cat conftest.val`
20753 else
20754   echo "$as_me: program exited with status $ac_status" >&5
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 ( exit $ac_status )
20759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20760 See \`config.log' for more details." >&5
20761 echo "$as_me: error: cannot compute sizeof (long long), 77
20762 See \`config.log' for more details." >&2;}
20763    { (exit 1); exit 1; }; }
20764 fi
20765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20766 fi
20767 fi
20768 rm -f conftest.val
20769 else
20770   ac_cv_sizeof_long_long=0
20771 fi
20772 fi
20773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20774 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20775 cat >>confdefs.h <<_ACEOF
20776 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20777 _ACEOF
20778
20779
20780         if test "$ac_cv_sizeof_long_long" != "0"; then
20781                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20782         fi
20783     ;;
20784     * )
20785         echo "$as_me:$LINENO: checking for long long" >&5
20786 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20787 if test "${ac_cv_type_long_long+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 $ac_includes_default
20797 int
20798 main ()
20799 {
20800 if ((long long *) 0)
20801   return 0;
20802 if (sizeof (long long))
20803   return 0;
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810   (eval $ac_compile) 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; } &&
20823          { ac_try='test -s conftest.$ac_objext'
20824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825   (eval $ac_try) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; }; then
20829   ac_cv_type_long_long=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 ac_cv_type_long_long=no
20835 fi
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837 fi
20838 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20839 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20840
20841 echo "$as_me:$LINENO: checking size of long long" >&5
20842 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20843 if test "${ac_cv_sizeof_long_long+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846   if test "$ac_cv_type_long_long" = yes; then
20847   # The cast to unsigned long works around a bug in the HP C Compiler
20848   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20849   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20850   # This bug is HP SR number 8606223364.
20851   if test "$cross_compiling" = yes; then
20852   # Depending upon the size, compute the lo and hi bounds.
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 $ac_includes_default
20860 int
20861 main ()
20862 {
20863 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20864 test_array [0] = 0
20865
20866   ;
20867   return 0;
20868 }
20869 _ACEOF
20870 rm -f conftest.$ac_objext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20872   (eval $ac_compile) 2>conftest.er1
20873   ac_status=$?
20874   grep -v '^ *+' conftest.er1 >conftest.err
20875   rm -f conftest.er1
20876   cat conftest.err >&5
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); } &&
20879          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881   (eval $ac_try) 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; } &&
20885          { ac_try='test -s conftest.$ac_objext'
20886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887   (eval $ac_try) 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; }; then
20891   ac_lo=0 ac_mid=0
20892   while :; do
20893     cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 $ac_includes_default
20900 int
20901 main ()
20902 {
20903 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20904 test_array [0] = 0
20905
20906   ;
20907   return 0;
20908 }
20909 _ACEOF
20910 rm -f conftest.$ac_objext
20911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20912   (eval $ac_compile) 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } &&
20919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921   (eval $ac_try) 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; } &&
20925          { ac_try='test -s conftest.$ac_objext'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; }; then
20931   ac_hi=$ac_mid; break
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_lo=`expr $ac_mid + 1`
20937                     if test $ac_lo -le $ac_mid; then
20938                       ac_lo= ac_hi=
20939                       break
20940                     fi
20941                     ac_mid=`expr 2 '*' $ac_mid + 1`
20942 fi
20943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20944   done
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955 $ac_includes_default
20956 int
20957 main ()
20958 {
20959 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20960 test_array [0] = 0
20961
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20968   (eval $ac_compile) 2>conftest.er1
20969   ac_status=$?
20970   grep -v '^ *+' conftest.er1 >conftest.err
20971   rm -f conftest.er1
20972   cat conftest.err >&5
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } &&
20975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977   (eval $ac_try) 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); }; } &&
20981          { ac_try='test -s conftest.$ac_objext'
20982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983   (eval $ac_try) 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; }; then
20987   ac_hi=-1 ac_mid=-1
20988   while :; do
20989     cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 $ac_includes_default
20996 int
20997 main ()
20998 {
20999 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21000 test_array [0] = 0
21001
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008   (eval $ac_compile) 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } &&
21015          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; } &&
21021          { ac_try='test -s conftest.$ac_objext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_lo=$ac_mid; break
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ac_hi=`expr '(' $ac_mid ')' - 1`
21033                        if test $ac_mid -le $ac_hi; then
21034                          ac_lo= ac_hi=
21035                          break
21036                        fi
21037                        ac_mid=`expr 2 '*' $ac_mid`
21038 fi
21039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21040   done
21041 else
21042   echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_lo= ac_hi=
21046 fi
21047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21048 fi
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 # Binary search between lo and hi bounds.
21051 while test "x$ac_lo" != "x$ac_hi"; do
21052   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 $ac_includes_default
21060 int
21061 main ()
21062 {
21063 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21064 test_array [0] = 0
21065
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072   (eval $ac_compile) 2>conftest.er1
21073   ac_status=$?
21074   grep -v '^ *+' conftest.er1 >conftest.err
21075   rm -f conftest.er1
21076   cat conftest.err >&5
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } &&
21079          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; } &&
21085          { ac_try='test -s conftest.$ac_objext'
21086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087   (eval $ac_try) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; }; then
21091   ac_hi=$ac_mid
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 ac_lo=`expr '(' $ac_mid ')' + 1`
21097 fi
21098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21099 done
21100 case $ac_lo in
21101 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21103 See \`config.log' for more details." >&5
21104 echo "$as_me: error: cannot compute sizeof (long long), 77
21105 See \`config.log' for more details." >&2;}
21106    { (exit 1); exit 1; }; } ;;
21107 esac
21108 else
21109   if test "$cross_compiling" = yes; then
21110   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21111 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21112    { (exit 1); exit 1; }; }
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 $ac_includes_default
21121 long longval () { return (long) (sizeof (long long)); }
21122 unsigned long ulongval () { return (long) (sizeof (long long)); }
21123 #include <stdio.h>
21124 #include <stdlib.h>
21125 int
21126 main ()
21127 {
21128
21129   FILE *f = fopen ("conftest.val", "w");
21130   if (! f)
21131     exit (1);
21132   if (((long) (sizeof (long long))) < 0)
21133     {
21134       long i = longval ();
21135       if (i != ((long) (sizeof (long long))))
21136         exit (1);
21137       fprintf (f, "%ld\n", i);
21138     }
21139   else
21140     {
21141       unsigned long i = ulongval ();
21142       if (i != ((long) (sizeof (long long))))
21143         exit (1);
21144       fprintf (f, "%lu\n", i);
21145     }
21146   exit (ferror (f) || fclose (f) != 0);
21147
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest$ac_exeext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21154   (eval $ac_link) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159   (eval $ac_try) 2>&5
21160   ac_status=$?
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); }; }; then
21163   ac_cv_sizeof_long_long=`cat conftest.val`
21164 else
21165   echo "$as_me: program exited with status $ac_status" >&5
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ( exit $ac_status )
21170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21171 See \`config.log' for more details." >&5
21172 echo "$as_me: error: cannot compute sizeof (long long), 77
21173 See \`config.log' for more details." >&2;}
21174    { (exit 1); exit 1; }; }
21175 fi
21176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21177 fi
21178 fi
21179 rm -f conftest.val
21180 else
21181   ac_cv_sizeof_long_long=0
21182 fi
21183 fi
21184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21185 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21186 cat >>confdefs.h <<_ACEOF
21187 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21188 _ACEOF
21189
21190
21191 esac
21192
21193 echo "$as_me:$LINENO: checking for wchar_t" >&5
21194 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21195 if test "${ac_cv_type_wchar_t+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21206         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21207         #  error "fake wchar_t"
21208         #endif
21209         #ifdef HAVE_WCHAR_H
21210         #  ifdef __CYGWIN__
21211         #    include <stddef.h>
21212         #  endif
21213         #  include <wchar.h>
21214         #endif
21215         #ifdef HAVE_STDLIB_H
21216         #  include <stdlib.h>
21217         #endif
21218         #include <stdio.h>
21219
21220
21221
21222 int
21223 main ()
21224 {
21225 if ((wchar_t *) 0)
21226   return 0;
21227 if (sizeof (wchar_t))
21228   return 0;
21229   ;
21230   return 0;
21231 }
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21235   (eval $ac_compile) 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } &&
21242          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244   (eval $ac_try) 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; } &&
21248          { ac_try='test -s conftest.$ac_objext'
21249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250   (eval $ac_try) 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); }; }; then
21254   ac_cv_type_wchar_t=yes
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259 ac_cv_type_wchar_t=no
21260 fi
21261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262 fi
21263 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21264 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21265
21266 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21267 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21268 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271   if test "$ac_cv_type_wchar_t" = yes; then
21272   # The cast to unsigned long works around a bug in the HP C Compiler
21273   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21274   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21275   # This bug is HP SR number 8606223364.
21276   if test "$cross_compiling" = yes; then
21277   # Depending upon the size, compute the lo and hi bounds.
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284
21285         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21286         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21287         #  error "fake wchar_t"
21288         #endif
21289         #ifdef HAVE_WCHAR_H
21290         #  ifdef __CYGWIN__
21291         #    include <stddef.h>
21292         #  endif
21293         #  include <wchar.h>
21294         #endif
21295         #ifdef HAVE_STDLIB_H
21296         #  include <stdlib.h>
21297         #endif
21298         #include <stdio.h>
21299
21300
21301
21302 int
21303 main ()
21304 {
21305 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21306 test_array [0] = 0
21307
21308   ;
21309   return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21314   (eval $ac_compile) 2>conftest.er1
21315   ac_status=$?
21316   grep -v '^ *+' conftest.er1 >conftest.err
21317   rm -f conftest.er1
21318   cat conftest.err >&5
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); } &&
21321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323   (eval $ac_try) 2>&5
21324   ac_status=$?
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); }; } &&
21327          { ac_try='test -s conftest.$ac_objext'
21328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329   (eval $ac_try) 2>&5
21330   ac_status=$?
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); }; }; then
21333   ac_lo=0 ac_mid=0
21334   while :; do
21335     cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341
21342         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21343         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21344         #  error "fake wchar_t"
21345         #endif
21346         #ifdef HAVE_WCHAR_H
21347         #  ifdef __CYGWIN__
21348         #    include <stddef.h>
21349         #  endif
21350         #  include <wchar.h>
21351         #endif
21352         #ifdef HAVE_STDLIB_H
21353         #  include <stdlib.h>
21354         #endif
21355         #include <stdio.h>
21356
21357
21358
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371   (eval $ac_compile) 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } &&
21378          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380   (eval $ac_try) 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); }; } &&
21384          { ac_try='test -s conftest.$ac_objext'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; }; then
21390   ac_hi=$ac_mid; break
21391 else
21392   echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ac_lo=`expr $ac_mid + 1`
21396                     if test $ac_lo -le $ac_mid; then
21397                       ac_lo= ac_hi=
21398                       break
21399                     fi
21400                     ac_mid=`expr 2 '*' $ac_mid + 1`
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403   done
21404 else
21405   echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414
21415         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21416         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21417         #  error "fake wchar_t"
21418         #endif
21419         #ifdef HAVE_WCHAR_H
21420         #  ifdef __CYGWIN__
21421         #    include <stddef.h>
21422         #  endif
21423         #  include <wchar.h>
21424         #endif
21425         #ifdef HAVE_STDLIB_H
21426         #  include <stdlib.h>
21427         #endif
21428         #include <stdio.h>
21429
21430
21431
21432 int
21433 main ()
21434 {
21435 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21436 test_array [0] = 0
21437
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21444   (eval $ac_compile) 2>conftest.er1
21445   ac_status=$?
21446   grep -v '^ *+' conftest.er1 >conftest.err
21447   rm -f conftest.er1
21448   cat conftest.err >&5
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } &&
21451          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; } &&
21457          { ac_try='test -s conftest.$ac_objext'
21458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459   (eval $ac_try) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }; then
21463   ac_hi=-1 ac_mid=-1
21464   while :; do
21465     cat >conftest.$ac_ext <<_ACEOF
21466 /* confdefs.h.  */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h.  */
21471
21472         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21473         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21474         #  error "fake wchar_t"
21475         #endif
21476         #ifdef HAVE_WCHAR_H
21477         #  ifdef __CYGWIN__
21478         #    include <stddef.h>
21479         #  endif
21480         #  include <wchar.h>
21481         #endif
21482         #ifdef HAVE_STDLIB_H
21483         #  include <stdlib.h>
21484         #endif
21485         #include <stdio.h>
21486
21487
21488
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21493 test_array [0] = 0
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501   (eval $ac_compile) 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; } &&
21514          { ac_try='test -s conftest.$ac_objext'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   ac_lo=$ac_mid; break
21521 else
21522   echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ac_hi=`expr '(' $ac_mid ')' - 1`
21526                        if test $ac_mid -le $ac_hi; then
21527                          ac_lo= ac_hi=
21528                          break
21529                        fi
21530                        ac_mid=`expr 2 '*' $ac_mid`
21531 fi
21532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533   done
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ac_lo= ac_hi=
21539 fi
21540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541 fi
21542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21543 # Binary search between lo and hi bounds.
21544 while test "x$ac_lo" != "x$ac_hi"; do
21545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552
21553         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21554         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21555         #  error "fake wchar_t"
21556         #endif
21557         #ifdef HAVE_WCHAR_H
21558         #  ifdef __CYGWIN__
21559         #    include <stddef.h>
21560         #  endif
21561         #  include <wchar.h>
21562         #endif
21563         #ifdef HAVE_STDLIB_H
21564         #  include <stdlib.h>
21565         #endif
21566         #include <stdio.h>
21567
21568
21569
21570 int
21571 main ()
21572 {
21573 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21574 test_array [0] = 0
21575
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582   (eval $ac_compile) 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } &&
21589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591   (eval $ac_try) 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; } &&
21595          { ac_try='test -s conftest.$ac_objext'
21596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597   (eval $ac_try) 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); }; }; then
21601   ac_hi=$ac_mid
21602 else
21603   echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 ac_lo=`expr '(' $ac_mid ')' + 1`
21607 fi
21608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609 done
21610 case $ac_lo in
21611 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21612 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21613 See \`config.log' for more details." >&5
21614 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21615 See \`config.log' for more details." >&2;}
21616    { (exit 1); exit 1; }; } ;;
21617 esac
21618 else
21619   if test "$cross_compiling" = yes; then
21620   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21621 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21622    { (exit 1); exit 1; }; }
21623 else
21624   cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h.  */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h.  */
21630
21631         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21632         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21633         #  error "fake wchar_t"
21634         #endif
21635         #ifdef HAVE_WCHAR_H
21636         #  ifdef __CYGWIN__
21637         #    include <stddef.h>
21638         #  endif
21639         #  include <wchar.h>
21640         #endif
21641         #ifdef HAVE_STDLIB_H
21642         #  include <stdlib.h>
21643         #endif
21644         #include <stdio.h>
21645
21646
21647
21648 long longval () { return (long) (sizeof (wchar_t)); }
21649 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21650 #include <stdio.h>
21651 #include <stdlib.h>
21652 int
21653 main ()
21654 {
21655
21656   FILE *f = fopen ("conftest.val", "w");
21657   if (! f)
21658     exit (1);
21659   if (((long) (sizeof (wchar_t))) < 0)
21660     {
21661       long i = longval ();
21662       if (i != ((long) (sizeof (wchar_t))))
21663         exit (1);
21664       fprintf (f, "%ld\n", i);
21665     }
21666   else
21667     {
21668       unsigned long i = ulongval ();
21669       if (i != ((long) (sizeof (wchar_t))))
21670         exit (1);
21671       fprintf (f, "%lu\n", i);
21672     }
21673   exit (ferror (f) || fclose (f) != 0);
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681   (eval $ac_link) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   ac_cv_sizeof_wchar_t=`cat conftest.val`
21691 else
21692   echo "$as_me: program exited with status $ac_status" >&5
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ( exit $ac_status )
21697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21698 See \`config.log' for more details." >&5
21699 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21700 See \`config.log' for more details." >&2;}
21701    { (exit 1); exit 1; }; }
21702 fi
21703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21704 fi
21705 fi
21706 rm -f conftest.val
21707 else
21708   ac_cv_sizeof_wchar_t=0
21709 fi
21710 fi
21711 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21712 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21713 cat >>confdefs.h <<_ACEOF
21714 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21715 _ACEOF
21716
21717
21718 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21719     wxUSE_WCHAR_T=yes
21720 else
21721     wxUSE_WCHAR_T=no
21722 fi
21723
21724 echo "$as_me:$LINENO: checking for va_copy" >&5
21725 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21726 if test "${wx_cv_func_va_copy+set}" = set; then
21727   echo $ECHO_N "(cached) $ECHO_C" >&6
21728 else
21729
21730         cat >conftest.$ac_ext <<_ACEOF
21731
21732             #include <stdarg.h>
21733             void foo(char *f, ...)
21734             {
21735                 va_list ap1, ap2;
21736                 va_start(ap1, f);
21737                 va_copy(ap2, ap1);
21738                 va_end(ap2);
21739                 va_end(ap1);
21740             }
21741             int main()
21742             {
21743                 foo("hi", 17);
21744                 return 0;
21745             }
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749   (eval $ac_link) 2>conftest.er1
21750   ac_status=$?
21751   grep -v '^ *+' conftest.er1 >conftest.err
21752   rm -f conftest.er1
21753   cat conftest.err >&5
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } &&
21756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758   (eval $ac_try) 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; } &&
21762          { ac_try='test -s conftest$ac_exeext'
21763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; }; then
21768   wx_cv_func_va_copy=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 wx_cv_func_va_copy=no
21774
21775 fi
21776 rm -f conftest.err conftest.$ac_objext \
21777       conftest$ac_exeext conftest.$ac_ext
21778
21779
21780 fi
21781 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21782 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21783
21784 if test $wx_cv_func_va_copy = "yes"; then
21785     cat >>confdefs.h <<\_ACEOF
21786 #define HAVE_VA_COPY 1
21787 _ACEOF
21788
21789 else
21790         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21791 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21792 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21793   echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795
21796             if test "$cross_compiling" = yes; then
21797                   wx_cv_type_va_list_lvalue=yes
21798
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801
21802                 #include <stdarg.h>
21803                 int foo(char *f, ...)
21804                 {
21805                     va_list ap1, ap2;
21806                     va_start(ap1, f);
21807                     ap2 = ap1;
21808                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21809                         return 1;
21810                     va_end(ap2);
21811                     va_end(ap1);
21812                     return 0;
21813                 }
21814                 int main()
21815                 {
21816                     return foo("hi", 17);
21817                 }
21818 _ACEOF
21819 rm -f conftest$ac_exeext
21820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21821   (eval $ac_link) 2>&5
21822   ac_status=$?
21823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826   (eval $ac_try) 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); }; }; then
21830   wx_cv_type_va_list_lvalue=yes
21831 else
21832   echo "$as_me: program exited with status $ac_status" >&5
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ( exit $ac_status )
21837 wx_cv_type_va_list_lvalue=no
21838 fi
21839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21840 fi
21841
21842
21843 fi
21844 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21845 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21846
21847     if test $wx_cv_type_va_list_lvalue != "yes"; then
21848                         cat >>confdefs.h <<\_ACEOF
21849 #define VA_LIST_IS_ARRAY 1
21850 _ACEOF
21851
21852     fi
21853 fi
21854
21855 # Check whether --enable-largefile or --disable-largefile was given.
21856 if test "${enable_largefile+set}" = set; then
21857   enableval="$enable_largefile"
21858
21859 fi;
21860 if test "$enable_largefile" != no; then
21861             wx_largefile=no
21862
21863     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21864 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868
21869           cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 #define _FILE_OFFSET_BITS 64
21876                           #include <sys/types.h>
21877 int
21878 main ()
21879 {
21880 typedef struct {
21881     unsigned int field: sizeof(off_t) == 8;
21882 } wxlf;
21883
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21890   (eval $ac_compile) 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } &&
21897          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; } &&
21903          { ac_try='test -s conftest.$ac_objext'
21904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905   (eval $ac_try) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; }; then
21909   ac_cv_sys_file_offset_bits=64
21910 else
21911   echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914 ac_cv_sys_file_offset_bits=no
21915 fi
21916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21917
21918
21919 fi
21920 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21921 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21922
21923     if test "$ac_cv_sys_file_offset_bits" != no; then
21924         wx_largefile=yes
21925         cat >>confdefs.h <<_ACEOF
21926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21927 _ACEOF
21928
21929     fi
21930
21931     if test "x$wx_largefile" != "xyes"; then
21932
21933     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21934 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21935 if test "${ac_cv_sys_large_files+set}" = set; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938
21939           cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 #define _LARGE_FILES 1
21946                           #include <sys/types.h>
21947 int
21948 main ()
21949 {
21950 typedef struct {
21951     unsigned int field: sizeof(off_t) == 8;
21952 } wxlf;
21953
21954   ;
21955   return 0;
21956 }
21957 _ACEOF
21958 rm -f conftest.$ac_objext
21959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21960   (eval $ac_compile) 2>conftest.er1
21961   ac_status=$?
21962   grep -v '^ *+' conftest.er1 >conftest.err
21963   rm -f conftest.er1
21964   cat conftest.err >&5
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); } &&
21967          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969   (eval $ac_try) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; } &&
21973          { ac_try='test -s conftest.$ac_objext'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   ac_cv_sys_large_files=1
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 ac_cv_sys_large_files=no
21985 fi
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987
21988
21989 fi
21990 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21991 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21992
21993     if test "$ac_cv_sys_large_files" != no; then
21994         wx_largefile=yes
21995         cat >>confdefs.h <<_ACEOF
21996 #define _LARGE_FILES $ac_cv_sys_large_files
21997 _ACEOF
21998
21999     fi
22000
22001     fi
22002
22003     echo "$as_me:$LINENO: checking if large file support is available" >&5
22004 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22005     if test "x$wx_largefile" = "xyes"; then
22006         cat >>confdefs.h <<\_ACEOF
22007 #define HAVE_LARGEFILE_SUPPORT 1
22008 _ACEOF
22009
22010     fi
22011     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22012 echo "${ECHO_T}$wx_largefile" >&6
22013 fi
22014
22015
22016 if test "x$wx_largefile" = "xyes"; then
22017     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22018         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22019
22020                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22021             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22022 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22023 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026
22027                     cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033
22034 int
22035 main ()
22036 {
22037
22038                             #ifndef __STDC_EXT__
22039                                 choke me
22040                             #endif
22041
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048   (eval $ac_compile) 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057   (eval $ac_try) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; } &&
22061          { ac_try='test -s conftest.$ac_objext'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067   wx_cv_STDC_EXT_required=no
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 wx_cv_STDC_EXT_required=yes
22073
22074 fi
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076
22077
22078 fi
22079 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22080 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22081             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22082                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22083             fi
22084         fi
22085     else
22086         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22087     fi
22088         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22089 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22090 if test "${ac_cv_sys_largefile_source+set}" = set; then
22091   echo $ECHO_N "(cached) $ECHO_C" >&6
22092 else
22093   while :; do
22094   ac_cv_sys_largefile_source=no
22095   cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101 #include <stdio.h>
22102 int
22103 main ()
22104 {
22105 return !fseeko;
22106   ;
22107   return 0;
22108 }
22109 _ACEOF
22110 rm -f conftest.$ac_objext
22111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22112   (eval $ac_compile) 2>conftest.er1
22113   ac_status=$?
22114   grep -v '^ *+' conftest.er1 >conftest.err
22115   rm -f conftest.er1
22116   cat conftest.err >&5
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); } &&
22119          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121   (eval $ac_try) 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; } &&
22125          { ac_try='test -s conftest.$ac_objext'
22126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127   (eval $ac_try) 2>&5
22128   ac_status=$?
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); }; }; then
22131   break
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136 fi
22137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22138   cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #define _LARGEFILE_SOURCE 1
22145 #include <stdio.h>
22146 int
22147 main ()
22148 {
22149 return !fseeko;
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22156   (eval $ac_compile) 2>conftest.er1
22157   ac_status=$?
22158   grep -v '^ *+' conftest.er1 >conftest.err
22159   rm -f conftest.er1
22160   cat conftest.err >&5
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } &&
22163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165   (eval $ac_try) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); }; } &&
22169          { ac_try='test -s conftest.$ac_objext'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   ac_cv_sys_largefile_source=1; break
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 fi
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182   break
22183 done
22184 fi
22185 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22186 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22187 if test "$ac_cv_sys_largefile_source" != no; then
22188
22189 cat >>confdefs.h <<_ACEOF
22190 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22191 _ACEOF
22192
22193 fi
22194 rm -f conftest*
22195
22196 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22197 # in glibc 2.1.3, but that breaks too many other things.
22198 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22199 echo "$as_me:$LINENO: checking for fseeko" >&5
22200 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22201 if test "${ac_cv_func_fseeko+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h.  */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h.  */
22210 #include <stdio.h>
22211 int
22212 main ()
22213 {
22214 return fseeko && fseeko (stdin, 0, 0);
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22221   (eval $ac_link) 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } &&
22228          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230   (eval $ac_try) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); }; } &&
22234          { ac_try='test -s conftest$ac_exeext'
22235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236   (eval $ac_try) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); }; }; then
22240   ac_cv_func_fseeko=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 ac_cv_func_fseeko=no
22246 fi
22247 rm -f conftest.err conftest.$ac_objext \
22248       conftest$ac_exeext conftest.$ac_ext
22249 fi
22250 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22251 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22252 if test $ac_cv_func_fseeko = yes; then
22253
22254 cat >>confdefs.h <<\_ACEOF
22255 #define HAVE_FSEEKO 1
22256 _ACEOF
22257
22258 fi
22259
22260     if test "$ac_cv_sys_largefile_source" != no; then
22261         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22262     fi
22263 fi
22264
22265 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22266 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22267 if test "${ac_cv_c_bigendian+set}" = set; then
22268   echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270   ac_cv_c_bigendian=unknown
22271 # See if sys/param.h defines the BYTE_ORDER macro.
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 #include <sys/types.h>
22279 #include <sys/param.h>
22280 int
22281 main ()
22282 {
22283
22284 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22285  bogus endian macros
22286 #endif
22287   ;
22288   return 0;
22289 }
22290 _ACEOF
22291 rm -f conftest.$ac_objext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22293   (eval $ac_compile) 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } &&
22300          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
22306          { ac_try='test -s conftest.$ac_objext'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   # It does; now see whether it defined to BIG_ENDIAN or not.
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319 #include <sys/types.h>
22320 #include <sys/param.h>
22321 int
22322 main ()
22323 {
22324
22325 #if BYTE_ORDER != BIG_ENDIAN
22326  not big endian
22327 #endif
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 rm -f conftest.$ac_objext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22334   (eval $ac_compile) 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } &&
22341          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; } &&
22347          { ac_try='test -s conftest.$ac_objext'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353   ac_cv_c_bigendian=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358 ac_cv_c_bigendian=no
22359 fi
22360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22361 else
22362   echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 fi
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22367 if test $ac_cv_c_bigendian = unknown; then
22368 if test "$cross_compiling" = yes; then
22369   ac_cv_c_bigendian=unknown
22370 else
22371   cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h.  */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h.  */
22377 main () {
22378   /* Are we little or big endian?  From Harbison&Steele.  */
22379   union
22380   {
22381     long l;
22382     char c[sizeof (long)];
22383   } u;
22384   u.l = 1;
22385   exit (u.c[sizeof (long) - 1] == 1);
22386 }
22387 _ACEOF
22388 rm -f conftest$ac_exeext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390   (eval $ac_link) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; }; then
22399   ac_cv_c_bigendian=no
22400 else
22401   echo "$as_me: program exited with status $ac_status" >&5
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 ( exit $ac_status )
22406 ac_cv_c_bigendian=yes
22407 fi
22408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22409 fi
22410 fi
22411 fi
22412 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22413 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22414 if test $ac_cv_c_bigendian = unknown; then
22415   { 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
22416 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;}
22417 fi
22418 if test $ac_cv_c_bigendian = yes; then
22419   cat >>confdefs.h <<\_ACEOF
22420 #define WORDS_BIGENDIAN 1
22421 _ACEOF
22422
22423 fi
22424
22425
22426
22427
22428
22429     ac_ext=cc
22430 ac_cpp='$CXXCPP $CPPFLAGS'
22431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22434
22435
22436
22437 for ac_header in iostream
22438 do
22439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22441   echo "$as_me:$LINENO: checking for $ac_header" >&5
22442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 fi
22446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22448 else
22449   # Is the header compilable?
22450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h.  */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h.  */
22458 $ac_includes_default
22459 #include <$ac_header>
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463   (eval $ac_compile) 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; } &&
22476          { ac_try='test -s conftest.$ac_objext'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; }; then
22482   ac_header_compiler=yes
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 ac_header_compiler=no
22488 fi
22489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22491 echo "${ECHO_T}$ac_header_compiler" >&6
22492
22493 # Is the header present?
22494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h.  */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h.  */
22502 #include <$ac_header>
22503 _ACEOF
22504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } >/dev/null; then
22512   if test -s conftest.err; then
22513     ac_cpp_err=$ac_cxx_preproc_warn_flag
22514     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22515   else
22516     ac_cpp_err=
22517   fi
22518 else
22519   ac_cpp_err=yes
22520 fi
22521 if test -z "$ac_cpp_err"; then
22522   ac_header_preproc=yes
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527   ac_header_preproc=no
22528 fi
22529 rm -f conftest.err conftest.$ac_ext
22530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22531 echo "${ECHO_T}$ac_header_preproc" >&6
22532
22533 # So?  What about this header?
22534 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22535   yes:no: )
22536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22540     ac_header_preproc=yes
22541     ;;
22542   no:yes:* )
22543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22555     (
22556       cat <<\_ASBOX
22557 ## ----------------------------------------- ##
22558 ## Report this to wx-dev@lists.wxwidgets.org ##
22559 ## ----------------------------------------- ##
22560 _ASBOX
22561     ) |
22562       sed "s/^/$as_me: WARNING:     /" >&2
22563     ;;
22564 esac
22565 echo "$as_me:$LINENO: checking for $ac_header" >&5
22566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22568   echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570   eval "$as_ac_Header=\$ac_header_preproc"
22571 fi
22572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22574
22575 fi
22576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22577   cat >>confdefs.h <<_ACEOF
22578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22579 _ACEOF
22580
22581 fi
22582
22583 done
22584
22585
22586     if test "$ac_cv_header_iostream" = "yes" ; then
22587       :
22588     else
22589       cat >>confdefs.h <<\_ACEOF
22590 #define wxUSE_IOSTREAMH 1
22591 _ACEOF
22592
22593     fi
22594
22595     ac_ext=cc
22596 ac_cpp='$CXXCPP $CPPFLAGS'
22597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22600
22601
22602
22603
22604   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22605 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22606 if test "${wx_cv_cpp_bool+set}" = set; then
22607   echo $ECHO_N "(cached) $ECHO_C" >&6
22608 else
22609
22610
22611
22612     ac_ext=cc
22613 ac_cpp='$CXXCPP $CPPFLAGS'
22614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22617
22618
22619     cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h.  */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h.  */
22625
22626
22627 int
22628 main ()
22629 {
22630
22631         bool b = true;
22632
22633         return 0;
22634
22635   ;
22636   return 0;
22637 }
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22641   (eval $ac_compile) 2>conftest.er1
22642   ac_status=$?
22643   grep -v '^ *+' conftest.er1 >conftest.err
22644   rm -f conftest.er1
22645   cat conftest.err >&5
22646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647   (exit $ac_status); } &&
22648          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650   (eval $ac_try) 2>&5
22651   ac_status=$?
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); }; } &&
22654          { ac_try='test -s conftest.$ac_objext'
22655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656   (eval $ac_try) 2>&5
22657   ac_status=$?
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); }; }; then
22660
22661         wx_cv_cpp_bool=yes
22662
22663 else
22664   echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667
22668         wx_cv_cpp_bool=no
22669
22670
22671 fi
22672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22673
22674     ac_ext=cc
22675 ac_cpp='$CXXCPP $CPPFLAGS'
22676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22679
22680
22681 fi
22682 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22683 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22684
22685   if test "$wx_cv_cpp_bool" = "yes"; then
22686     cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_BOOL 1
22688 _ACEOF
22689
22690   fi
22691
22692
22693
22694   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22695 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22696 if test "${wx_cv_explicit+set}" = set; then
22697   echo $ECHO_N "(cached) $ECHO_C" >&6
22698 else
22699
22700
22701
22702     ac_ext=cc
22703 ac_cpp='$CXXCPP $CPPFLAGS'
22704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22707
22708
22709             cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h.  */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h.  */
22715
22716         class Foo { public: explicit Foo(int) {} };
22717
22718 int
22719 main ()
22720 {
22721
22722         return 0;
22723
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22730   (eval $ac_compile) 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } &&
22737          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; } &&
22743          { ac_try='test -s conftest.$ac_objext'
22744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745   (eval $ac_try) 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; }; then
22749
22750         cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756
22757                 class Foo { public: explicit Foo(int) {} };
22758                 static void TakeFoo(const Foo& foo) { }
22759
22760 int
22761 main ()
22762 {
22763
22764                 TakeFoo(17);
22765                 return 0;
22766
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22773   (eval $ac_compile) 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } &&
22780          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; } &&
22786          { ac_try='test -s conftest.$ac_objext'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   wx_cv_explicit=no
22793 else
22794   echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 wx_cv_explicit=yes
22798
22799 fi
22800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 wx_cv_explicit=no
22807
22808 fi
22809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22810
22811     ac_ext=cc
22812 ac_cpp='$CXXCPP $CPPFLAGS'
22813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22816
22817
22818 fi
22819 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22820 echo "${ECHO_T}$wx_cv_explicit" >&6
22821
22822   if test "$wx_cv_explicit" = "yes"; then
22823     cat >>confdefs.h <<\_ACEOF
22824 #define HAVE_EXPLICIT 1
22825 _ACEOF
22826
22827   fi
22828
22829
22830 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22831 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22832 if test "${ac_cv_cxx_const_cast+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835
22836
22837  ac_ext=cc
22838 ac_cpp='$CXXCPP $CPPFLAGS'
22839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22842
22843  cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h.  */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h.  */
22849
22850 int
22851 main ()
22852 {
22853 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22854   ;
22855   return 0;
22856 }
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22860   (eval $ac_compile) 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } &&
22867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869   (eval $ac_try) 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; } &&
22873          { ac_try='test -s conftest.$ac_objext'
22874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875   (eval $ac_try) 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; }; then
22879   ac_cv_cxx_const_cast=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884 ac_cv_cxx_const_cast=no
22885 fi
22886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887  ac_ext=cc
22888 ac_cpp='$CXXCPP $CPPFLAGS'
22889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22892
22893
22894 fi
22895 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22896 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22897 if test "$ac_cv_cxx_const_cast" = yes; then
22898
22899 cat >>confdefs.h <<\_ACEOF
22900 #define HAVE_CONST_CAST
22901 _ACEOF
22902
22903 fi
22904
22905 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22906 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22907 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22908   echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910
22911
22912  ac_ext=cc
22913 ac_cpp='$CXXCPP $CPPFLAGS'
22914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22917
22918  cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924 #include <typeinfo>
22925 class Base { public : Base () {} virtual void f () = 0;};
22926 class Derived : public Base { public : Derived () {} virtual void f () {} };
22927 class Unrelated { public : Unrelated () {} };
22928 int g (Unrelated&) { return 0; }
22929 int
22930 main ()
22931 {
22932
22933 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22934   ;
22935   return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940   (eval $ac_compile) 2>conftest.er1
22941   ac_status=$?
22942   grep -v '^ *+' conftest.er1 >conftest.err
22943   rm -f conftest.er1
22944   cat conftest.err >&5
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); } &&
22947          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949   (eval $ac_try) 2>&5
22950   ac_status=$?
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); }; } &&
22953          { ac_try='test -s conftest.$ac_objext'
22954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955   (eval $ac_try) 2>&5
22956   ac_status=$?
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); }; }; then
22959   ac_cv_cxx_reinterpret_cast=yes
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964 ac_cv_cxx_reinterpret_cast=no
22965 fi
22966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22967  ac_ext=cc
22968 ac_cpp='$CXXCPP $CPPFLAGS'
22969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22972
22973
22974 fi
22975 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22976 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22977 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22978
22979 cat >>confdefs.h <<\_ACEOF
22980 #define HAVE_REINTERPRET_CAST
22981 _ACEOF
22982
22983 fi
22984
22985 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22986 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22987 if test "${ac_cv_cxx_static_cast+set}" = set; then
22988   echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990
22991
22992  ac_ext=cc
22993 ac_cpp='$CXXCPP $CPPFLAGS'
22994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22997
22998  cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h.  */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h.  */
23004 #include <typeinfo>
23005 class Base { public : Base () {} virtual void f () = 0; };
23006 class Derived : public Base { public : Derived () {} virtual void f () {} };
23007 int g (Derived&) { return 0; }
23008 int
23009 main ()
23010 {
23011
23012 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23019   (eval $ac_compile) 2>conftest.er1
23020   ac_status=$?
23021   grep -v '^ *+' conftest.er1 >conftest.err
23022   rm -f conftest.er1
23023   cat conftest.err >&5
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } &&
23026          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; } &&
23032          { ac_try='test -s conftest.$ac_objext'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; }; then
23038   ac_cv_cxx_static_cast=yes
23039 else
23040   echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 ac_cv_cxx_static_cast=no
23044 fi
23045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23046  ac_ext=cc
23047 ac_cpp='$CXXCPP $CPPFLAGS'
23048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23051
23052
23053 fi
23054 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23055 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23056 if test "$ac_cv_cxx_static_cast" = yes; then
23057
23058 cat >>confdefs.h <<\_ACEOF
23059 #define HAVE_STATIC_CAST
23060 _ACEOF
23061
23062 fi
23063
23064
23065 if test "x$SUNCXX" = xyes; then
23066     CXXFLAGS="-features=tmplife $CXXFLAGS"
23067 fi
23068
23069 if test "x$SUNCC" = xyes; then
23070     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23071 fi
23072
23073 if test "x$SGICC" = "xyes"; then
23074     CFLAGS="-woff 3970 $CFLAGS"
23075 fi
23076 if test "x$SGICXX" = "xyes"; then
23077     CXXFLAGS="-woff 3970 $CXXFLAGS"
23078 fi
23079
23080 if test "x$HPCC" = "xyes"; then
23081                     CFLAGS="+W 2011,2450 $CFLAGS"
23082 fi
23083 if test "x$HPCXX" = "xyes"; then
23084             CXXFLAGS="+W 2340 $CXXFLAGS"
23085 fi
23086
23087 if test "x$COMPAQCXX" = "xyes"; then
23088                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23089 fi
23090
23091 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23092     if test "$wxUSE_UNICODE" = "yes"; then
23093         std_string="std::wstring"
23094         char_type="wchar_t"
23095     else
23096         std_string="std::string"
23097         char_type="char"
23098     fi
23099
23100         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23101 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23102     cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h.  */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h.  */
23108 #include <string>
23109 int
23110 main ()
23111 {
23112 $std_string foo;
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23119   (eval $ac_compile) 2>conftest.er1
23120   ac_status=$?
23121   grep -v '^ *+' conftest.er1 >conftest.err
23122   rm -f conftest.er1
23123   cat conftest.err >&5
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); } &&
23126          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128   (eval $ac_try) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); }; } &&
23132          { ac_try='test -s conftest.$ac_objext'
23133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134   (eval $ac_try) 2>&5
23135   ac_status=$?
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); }; }; then
23138   echo "$as_me:$LINENO: result: yes" >&5
23139 echo "${ECHO_T}yes" >&6
23140                     cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_STD_WSTRING 1
23142 _ACEOF
23143
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 echo "$as_me:$LINENO: result: no" >&5
23149 echo "${ECHO_T}no" >&6
23150                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23151 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23152                     cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159                         #ifdef HAVE_WCHAR_H
23160                         #  ifdef __CYGWIN__
23161                         #    include <stddef.h>
23162                         #  endif
23163                         #  include <wchar.h>
23164                         #endif
23165                         #ifdef HAVE_STDLIB_H
23166                         #  include <stdlib.h>
23167                         #endif
23168                         #include <stdio.h>
23169                         #include <string>
23170
23171 int
23172 main ()
23173 {
23174 std::basic_string<$char_type> foo;
23175                          const $char_type* dummy = foo.c_str();
23176   ;
23177   return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182   (eval $ac_compile) 2>conftest.er1
23183   ac_status=$?
23184   grep -v '^ *+' conftest.er1 >conftest.err
23185   rm -f conftest.er1
23186   cat conftest.err >&5
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); } &&
23189          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; } &&
23195          { ac_try='test -s conftest.$ac_objext'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; }; then
23201   echo "$as_me:$LINENO: result: yes" >&5
23202 echo "${ECHO_T}yes" >&6
23203 else
23204   echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23206
23207 echo "$as_me:$LINENO: result: no" >&5
23208 echo "${ECHO_T}no" >&6
23209                          if test "$wxUSE_STL" = "yes"; then
23210                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23211 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23212    { (exit 1); exit 1; }; }
23213                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23214                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23215 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23216    { (exit 1); exit 1; }; }
23217                          else
23218                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23219 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23220                              wxUSE_STD_STRING=no
23221                          fi
23222
23223
23224 fi
23225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23226
23227 fi
23228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23229 fi
23230
23231 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23232     echo "$as_me:$LINENO: checking for std::istream" >&5
23233 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23234 if test "${ac_cv_type_std__istream+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 #include <iostream>
23244
23245 int
23246 main ()
23247 {
23248 if ((std::istream *) 0)
23249   return 0;
23250 if (sizeof (std::istream))
23251   return 0;
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23258   (eval $ac_compile) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); }; } &&
23271          { ac_try='test -s conftest.$ac_objext'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; }; then
23277   ac_cv_type_std__istream=yes
23278 else
23279   echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_cv_type_std__istream=no
23283 fi
23284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23285 fi
23286 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23287 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23288 if test $ac_cv_type_std__istream = yes; then
23289
23290 cat >>confdefs.h <<_ACEOF
23291 #define HAVE_STD__ISTREAM 1
23292 _ACEOF
23293
23294
23295 else
23296   wxUSE_STD_IOSTREAM=no
23297 fi
23298 echo "$as_me:$LINENO: checking for std::ostream" >&5
23299 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23300 if test "${ac_cv_type_std__ostream+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23303   cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h.  */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h.  */
23309 #include <iostream>
23310
23311 int
23312 main ()
23313 {
23314 if ((std::ostream *) 0)
23315   return 0;
23316 if (sizeof (std::ostream))
23317   return 0;
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23324   (eval $ac_compile) 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } &&
23331          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333   (eval $ac_try) 2>&5
23334   ac_status=$?
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); }; } &&
23337          { ac_try='test -s conftest.$ac_objext'
23338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339   (eval $ac_try) 2>&5
23340   ac_status=$?
23341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); }; }; then
23343   ac_cv_type_std__ostream=yes
23344 else
23345   echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23347
23348 ac_cv_type_std__ostream=no
23349 fi
23350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23351 fi
23352 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23353 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23354 if test $ac_cv_type_std__ostream = yes; then
23355
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_STD__OSTREAM 1
23358 _ACEOF
23359
23360
23361 else
23362   wxUSE_STD_IOSTREAM=no
23363 fi
23364
23365
23366     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23367         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23368             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23369 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23370    { (exit 1); exit 1; }; }
23371         else
23372             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23373 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23374         fi
23375     fi
23376 fi
23377
23378 if test "$wxUSE_STL" = "yes"; then
23379         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23380 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23381     cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 #include <string>
23388                     #include <functional>
23389                     #include <algorithm>
23390                     #include <vector>
23391                     #include <list>
23392 int
23393 main ()
23394 {
23395 std::vector<int> moo;
23396                      std::list<int> foo;
23397                      std::vector<int>::iterator it =
23398                          std::find_if(moo.begin(), moo.end(),
23399                                       std::bind2nd(std::less<int>(), 3));
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext
23405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23406   (eval $ac_compile) 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } &&
23413          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; } &&
23419          { ac_try='test -s conftest.$ac_objext'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }; then
23425   echo "$as_me:$LINENO: result: yes" >&5
23426 echo "${ECHO_T}yes" >&6
23427 else
23428   echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431 echo "$as_me:$LINENO: result: no" >&5
23432 echo "${ECHO_T}no" >&6
23433                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23434 echo "$as_me: error: Basic STL functionality missing" >&2;}
23435    { (exit 1); exit 1; }; }
23436 fi
23437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23438
23439         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23440 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23441     cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h.  */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h.  */
23447 #include <string>
23448 int
23449 main ()
23450 {
23451 std::string foo, bar;
23452                     foo.compare(bar);
23453                     foo.compare(1, 1, bar);
23454                     foo.compare(1, 1, bar, 1, 1);
23455                     foo.compare("");
23456                     foo.compare(1, 1, "");
23457                     foo.compare(1, 1, "", 2);
23458   ;
23459   return 0;
23460 }
23461 _ACEOF
23462 rm -f conftest.$ac_objext
23463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23464   (eval $ac_compile) 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } &&
23471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473   (eval $ac_try) 2>&5
23474   ac_status=$?
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); }; } &&
23477          { ac_try='test -s conftest.$ac_objext'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; }; then
23483   echo "$as_me:$LINENO: result: yes" >&5
23484 echo "${ECHO_T}yes" >&6
23485                     cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_STD_STRING_COMPARE 1
23487 _ACEOF
23488
23489 else
23490   echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 echo "$as_me:$LINENO: result: no" >&5
23494 echo "${ECHO_T}no" >&6
23495 fi
23496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23497
23498         if test "${ac_cv_header_hash_map+set}" = set; then
23499   echo "$as_me:$LINENO: checking for hash_map" >&5
23500 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23501 if test "${ac_cv_header_hash_map+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 fi
23504 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23505 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23506 else
23507   # Is the header compilable?
23508 echo "$as_me:$LINENO: checking hash_map usability" >&5
23509 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23510 cat >conftest.$ac_ext <<_ACEOF
23511 /* confdefs.h.  */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h.  */
23516 $ac_includes_default
23517 #include <hash_map>
23518 _ACEOF
23519 rm -f conftest.$ac_objext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23521   (eval $ac_compile) 2>conftest.er1
23522   ac_status=$?
23523   grep -v '^ *+' conftest.er1 >conftest.err
23524   rm -f conftest.er1
23525   cat conftest.err >&5
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } &&
23528          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530   (eval $ac_try) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); }; } &&
23534          { ac_try='test -s conftest.$ac_objext'
23535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536   (eval $ac_try) 2>&5
23537   ac_status=$?
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); }; }; then
23540   ac_header_compiler=yes
23541 else
23542   echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_header_compiler=no
23546 fi
23547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23549 echo "${ECHO_T}$ac_header_compiler" >&6
23550
23551 # Is the header present?
23552 echo "$as_me:$LINENO: checking hash_map presence" >&5
23553 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 #include <hash_map>
23561 _ACEOF
23562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23564   ac_status=$?
23565   grep -v '^ *+' conftest.er1 >conftest.err
23566   rm -f conftest.er1
23567   cat conftest.err >&5
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); } >/dev/null; then
23570   if test -s conftest.err; then
23571     ac_cpp_err=$ac_cxx_preproc_warn_flag
23572     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23573   else
23574     ac_cpp_err=
23575   fi
23576 else
23577   ac_cpp_err=yes
23578 fi
23579 if test -z "$ac_cpp_err"; then
23580   ac_header_preproc=yes
23581 else
23582   echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585   ac_header_preproc=no
23586 fi
23587 rm -f conftest.err conftest.$ac_ext
23588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23589 echo "${ECHO_T}$ac_header_preproc" >&6
23590
23591 # So?  What about this header?
23592 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23593   yes:no: )
23594     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23595 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23596     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23597 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23598     ac_header_preproc=yes
23599     ;;
23600   no:yes:* )
23601     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23602 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23603     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23604 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23605     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23606 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23607     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23608 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23609     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23610 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23611     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23612 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23613     (
23614       cat <<\_ASBOX
23615 ## ----------------------------------------- ##
23616 ## Report this to wx-dev@lists.wxwidgets.org ##
23617 ## ----------------------------------------- ##
23618 _ASBOX
23619     ) |
23620       sed "s/^/$as_me: WARNING:     /" >&2
23621     ;;
23622 esac
23623 echo "$as_me:$LINENO: checking for hash_map" >&5
23624 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23625 if test "${ac_cv_header_hash_map+set}" = set; then
23626   echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23628   ac_cv_header_hash_map=$ac_header_preproc
23629 fi
23630 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23631 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23632
23633 fi
23634 if test $ac_cv_header_hash_map = yes; then
23635   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23636 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23637                      cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #include <hash_map>
23644                                      #include <hash_set>
23645 int
23646 main ()
23647 {
23648 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23649                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23650   ;
23651   return 0;
23652 }
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23656   (eval $ac_compile) 2>conftest.er1
23657   ac_status=$?
23658   grep -v '^ *+' conftest.er1 >conftest.err
23659   rm -f conftest.er1
23660   cat conftest.err >&5
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); } &&
23663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665   (eval $ac_try) 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; } &&
23669          { ac_try='test -s conftest.$ac_objext'
23670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671   (eval $ac_try) 2>&5
23672   ac_status=$?
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); }; }; then
23675   echo "$as_me:$LINENO: result: yes" >&5
23676 echo "${ECHO_T}yes" >&6
23677                                      cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_HASH_MAP 1
23679 _ACEOF
23680
23681                                      cat >>confdefs.h <<\_ACEOF
23682 #define HAVE_STD_HASH_MAP 1
23683 _ACEOF
23684
23685 else
23686   echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23688
23689 echo "$as_me:$LINENO: result: no" >&5
23690 echo "${ECHO_T}no" >&6
23691 fi
23692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23693
23694 fi
23695
23696
23697
23698     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23699   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23700 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23701 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 fi
23704 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23705 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23706 else
23707   # Is the header compilable?
23708 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23709 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 $ac_includes_default
23717 #include <ext/hash_map>
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721   (eval $ac_compile) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest.$ac_objext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ac_header_compiler=yes
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 ac_header_compiler=no
23746 fi
23747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23749 echo "${ECHO_T}$ac_header_compiler" >&6
23750
23751 # Is the header present?
23752 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23753 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23754 cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h.  */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h.  */
23760 #include <ext/hash_map>
23761 _ACEOF
23762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } >/dev/null; then
23770   if test -s conftest.err; then
23771     ac_cpp_err=$ac_cxx_preproc_warn_flag
23772     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23773   else
23774     ac_cpp_err=
23775   fi
23776 else
23777   ac_cpp_err=yes
23778 fi
23779 if test -z "$ac_cpp_err"; then
23780   ac_header_preproc=yes
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785   ac_header_preproc=no
23786 fi
23787 rm -f conftest.err conftest.$ac_ext
23788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23789 echo "${ECHO_T}$ac_header_preproc" >&6
23790
23791 # So?  What about this header?
23792 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23793   yes:no: )
23794     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23795 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23796     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23797 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23798     ac_header_preproc=yes
23799     ;;
23800   no:yes:* )
23801     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23802 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23803     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
23804 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
23805     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23806 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23807     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23808 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23809     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23810 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23811     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23812 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23813     (
23814       cat <<\_ASBOX
23815 ## ----------------------------------------- ##
23816 ## Report this to wx-dev@lists.wxwidgets.org ##
23817 ## ----------------------------------------- ##
23818 _ASBOX
23819     ) |
23820       sed "s/^/$as_me: WARNING:     /" >&2
23821     ;;
23822 esac
23823 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23824 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23825 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   ac_cv_header_ext_hash_map=$ac_header_preproc
23829 fi
23830 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23831 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23832
23833 fi
23834 if test $ac_cv_header_ext_hash_map = yes; then
23835   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23836 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23837                      cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h.  */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h.  */
23843 #include <ext/hash_map>
23844                                      #include <ext/hash_set>
23845 int
23846 main ()
23847 {
23848 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23849                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext
23855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23856   (eval $ac_compile) 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } &&
23863          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865   (eval $ac_try) 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; } &&
23869          { ac_try='test -s conftest.$ac_objext'
23870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871   (eval $ac_try) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); }; }; then
23875   echo "$as_me:$LINENO: result: yes" >&5
23876 echo "${ECHO_T}yes" >&6
23877                                      cat >>confdefs.h <<\_ACEOF
23878 #define HAVE_EXT_HASH_MAP 1
23879 _ACEOF
23880
23881                                      cat >>confdefs.h <<\_ACEOF
23882 #define HAVE_GNU_CXX_HASH_MAP 1
23883 _ACEOF
23884
23885 else
23886   echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 echo "$as_me:$LINENO: result: no" >&5
23890 echo "${ECHO_T}no" >&6
23891 fi
23892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23893
23894 fi
23895
23896
23897 fi
23898
23899
23900 SEARCH_INCLUDE="\
23901     /usr/local/include        \
23902                               \
23903     /usr/Motif-2.1/include    \
23904     /usr/Motif-1.2/include    \
23905     /usr/include/Motif1.2     \
23906                               \
23907     /usr/dt/include           \
23908     /usr/openwin/include      \
23909                               \
23910     /usr/include/Xm           \
23911                               \
23912     /usr/X11R6/include        \
23913     /usr/X11R6.4/include      \
23914     /usr/X11R5/include        \
23915     /usr/X11R4/include        \
23916                               \
23917     /usr/include/X11R6        \
23918     /usr/include/X11R5        \
23919     /usr/include/X11R4        \
23920                               \
23921     /usr/local/X11R6/include  \
23922     /usr/local/X11R5/include  \
23923     /usr/local/X11R4/include  \
23924                               \
23925     /usr/local/include/X11R6  \
23926     /usr/local/include/X11R5  \
23927     /usr/local/include/X11R4  \
23928                               \
23929     /usr/X11/include          \
23930     /usr/include/X11          \
23931     /usr/local/X11/include    \
23932     /usr/local/include/X11    \
23933                               \
23934     /usr/XFree86/include/X11  \
23935     /usr/pkg/include          \
23936                               \
23937     /usr/openwin/share/include"
23938
23939 echo "$as_me:$LINENO: checking for libraries directory" >&5
23940 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
23941
23942 case "${host}" in
23943     *-*-irix6* )
23944         if test "${wx_cv_std_libpath+set}" = set; then
23945   echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947
23948                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23949                     for e in a so sl dylib dll.a; do
23950                         libc="$d/libc.$e"
23951                         if test -f $libc; then
23952                             save_LIBS="$LIBS"
23953                             LIBS="$libc"
23954                             cat >conftest.$ac_ext <<_ACEOF
23955 int main() { return 0; }
23956 _ACEOF
23957 rm -f conftest.$ac_objext conftest$ac_exeext
23958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23959   (eval $ac_link) 2>conftest.er1
23960   ac_status=$?
23961   grep -v '^ *+' conftest.er1 >conftest.err
23962   rm -f conftest.er1
23963   cat conftest.err >&5
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); } &&
23966          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968   (eval $ac_try) 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); }; } &&
23972          { ac_try='test -s conftest$ac_exeext'
23973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974   (eval $ac_try) 2>&5
23975   ac_status=$?
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); }; }; then
23978   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23979 else
23980   echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23982
23983 fi
23984 rm -f conftest.err conftest.$ac_objext \
23985       conftest$ac_exeext conftest.$ac_ext
23986                             LIBS="$save_LIBS"
23987                             if test "x$wx_cv_std_libpath" != "x"; then
23988                                 break 2
23989                             fi
23990                         fi
23991                     done
23992                 done
23993                 if test "x$wx_cv_std_libpath" = "x"; then
23994                     wx_cv_std_libpath="lib"
23995                 fi
23996
23997
23998 fi
23999
24000         ;;
24001
24002     *-*-solaris2* )
24003                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24004             wx_cv_std_libpath="lib/64"
24005         else
24006             wx_cv_std_libpath="lib"
24007         fi
24008         ;;
24009
24010     *-*-linux* )
24011                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24012                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24013             wx_cv_std_libpath="lib64"
24014         else
24015             wx_cv_std_libpath="lib"
24016         fi
24017         ;;
24018
24019     *)
24020         wx_cv_std_libpath="lib";
24021         ;;
24022 esac
24023
24024 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24025 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24026
24027 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24028
24029 if test "$build" != "$host" -a "$GCC" = yes; then
24030                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24031         cross_root=`dirname $cross_root`
24032         cross_root=`dirname $cross_root`
24033
24034                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24035         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24036         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24037
24038                 if test -z "$PKG_CONFIG_PATH"; then
24039             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24040             export PKG_CONFIG_PATH
24041         fi
24042
24043                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24044
24045 ac_find_includes=
24046 for ac_dir in $SEARCH_INCLUDE /usr/include;
24047   do
24048     if test -f "$ac_dir/X11/Intrinsic.h"; then
24049       ac_find_includes=$ac_dir
24050       break
24051     fi
24052   done
24053
24054             x_includes=$ac_find_includes
24055         fi
24056         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24057
24058   ac_find_libraries=
24059   for ac_dir in $SEARCH_LIB;
24060   do
24061     for ac_extension in a so sl dylib dll.a; do
24062       if test -f "$ac_dir/libXt.$ac_extension"; then
24063         ac_find_libraries=$ac_dir
24064         break 2
24065       fi
24066     done
24067   done
24068
24069             x_libraries=$ac_find_libraries
24070         fi
24071     fi
24072 fi
24073
24074
24075 cat >confcache <<\_ACEOF
24076 # This file is a shell script that caches the results of configure
24077 # tests run on this system so they can be shared between configure
24078 # scripts and configure runs, see configure's option --config-cache.
24079 # It is not useful on other systems.  If it contains results you don't
24080 # want to keep, you may remove or edit it.
24081 #
24082 # config.status only pays attention to the cache file if you give it
24083 # the --recheck option to rerun configure.
24084 #
24085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24087 # following values.
24088
24089 _ACEOF
24090
24091 # The following way of writing the cache mishandles newlines in values,
24092 # but we know of no workaround that is simple, portable, and efficient.
24093 # So, don't put newlines in cache variables' values.
24094 # Ultrix sh set writes to stderr and can't be redirected directly,
24095 # and sets the high bit in the cache file unless we assign to the vars.
24096 {
24097   (set) 2>&1 |
24098     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24099     *ac_space=\ *)
24100       # `set' does not quote correctly, so add quotes (double-quote
24101       # substitution turns \\\\ into \\, and sed turns \\ into \).
24102       sed -n \
24103         "s/'/'\\\\''/g;
24104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24105       ;;
24106     *)
24107       # `set' quotes correctly as required by POSIX, so do not add quotes.
24108       sed -n \
24109         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24110       ;;
24111     esac;
24112 } |
24113   sed '
24114      t clear
24115      : clear
24116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24117      t end
24118      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24119      : end' >>confcache
24120 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24121   if test -w $cache_file; then
24122     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24123     cat confcache >$cache_file
24124   else
24125     echo "not updating unwritable cache $cache_file"
24126   fi
24127 fi
24128 rm -f confcache
24129
24130 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24131     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24132 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24133 if test "${wx_cv_lib_glibc21+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136
24137         cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h.  */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h.  */
24143 #include <features.h>
24144 int
24145 main ()
24146 {
24147
24148                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24149                 not glibc 2.1
24150                 #endif
24151
24152   ;
24153   return 0;
24154 }
24155 _ACEOF
24156 rm -f conftest.$ac_objext
24157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24158   (eval $ac_compile) 2>conftest.er1
24159   ac_status=$?
24160   grep -v '^ *+' conftest.er1 >conftest.err
24161   rm -f conftest.er1
24162   cat conftest.err >&5
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } &&
24165          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167   (eval $ac_try) 2>&5
24168   ac_status=$?
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); }; } &&
24171          { ac_try='test -s conftest.$ac_objext'
24172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173   (eval $ac_try) 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; }; then
24177
24178                 wx_cv_lib_glibc21=yes
24179
24180 else
24181   echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184
24185                 wx_cv_lib_glibc21=no
24186
24187
24188 fi
24189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24190
24191 fi
24192 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24193 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24194     if test "$wx_cv_lib_glibc21" = "yes"; then
24195         cat >>confdefs.h <<\_ACEOF
24196 #define wxHAVE_GLIBC2 1
24197 _ACEOF
24198
24199     fi
24200 fi
24201
24202 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24203     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24204         cat >>confdefs.h <<\_ACEOF
24205 #define _GNU_SOURCE 1
24206 _ACEOF
24207
24208     fi
24209 fi
24210
24211 have_cos=0
24212 have_floor=0
24213
24214 for ac_func in cos
24215 do
24216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24217 echo "$as_me:$LINENO: checking for $ac_func" >&5
24218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24219 if eval "test \"\${$as_ac_var+set}\" = set"; then
24220   echo $ECHO_N "(cached) $ECHO_C" >&6
24221 else
24222   cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h.  */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h.  */
24228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24230 #define $ac_func innocuous_$ac_func
24231
24232 /* System header to define __stub macros and hopefully few prototypes,
24233     which can conflict with char $ac_func (); below.
24234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24235     <limits.h> exists even on freestanding compilers.  */
24236
24237 #ifdef __STDC__
24238 # include <limits.h>
24239 #else
24240 # include <assert.h>
24241 #endif
24242
24243 #undef $ac_func
24244
24245 /* Override any gcc2 internal prototype to avoid an error.  */
24246 #ifdef __cplusplus
24247 extern "C"
24248 {
24249 #endif
24250 /* We use char because int might match the return type of a gcc2
24251    builtin and then its argument prototype would still apply.  */
24252 char $ac_func ();
24253 /* The GNU C library defines this for functions which it implements
24254     to always fail with ENOSYS.  Some functions are actually named
24255     something starting with __ and the normal name is an alias.  */
24256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24257 choke me
24258 #else
24259 char (*f) () = $ac_func;
24260 #endif
24261 #ifdef __cplusplus
24262 }
24263 #endif
24264
24265 int
24266 main ()
24267 {
24268 return f != $ac_func;
24269   ;
24270   return 0;
24271 }
24272 _ACEOF
24273 rm -f conftest.$ac_objext conftest$ac_exeext
24274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24275   (eval $ac_link) 2>conftest.er1
24276   ac_status=$?
24277   grep -v '^ *+' conftest.er1 >conftest.err
24278   rm -f conftest.er1
24279   cat conftest.err >&5
24280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281   (exit $ac_status); } &&
24282          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284   (eval $ac_try) 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); }; } &&
24288          { ac_try='test -s conftest$ac_exeext'
24289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290   (eval $ac_try) 2>&5
24291   ac_status=$?
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); }; }; then
24294   eval "$as_ac_var=yes"
24295 else
24296   echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299 eval "$as_ac_var=no"
24300 fi
24301 rm -f conftest.err conftest.$ac_objext \
24302       conftest$ac_exeext conftest.$ac_ext
24303 fi
24304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24306 if test `eval echo '${'$as_ac_var'}'` = yes; then
24307   cat >>confdefs.h <<_ACEOF
24308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24309 _ACEOF
24310  have_cos=1
24311 fi
24312 done
24313
24314
24315 for ac_func in floor
24316 do
24317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24318 echo "$as_me:$LINENO: checking for $ac_func" >&5
24319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24320 if eval "test \"\${$as_ac_var+set}\" = set"; then
24321   echo $ECHO_N "(cached) $ECHO_C" >&6
24322 else
24323   cat >conftest.$ac_ext <<_ACEOF
24324 /* confdefs.h.  */
24325 _ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h.  */
24329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24331 #define $ac_func innocuous_$ac_func
24332
24333 /* System header to define __stub macros and hopefully few prototypes,
24334     which can conflict with char $ac_func (); below.
24335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24336     <limits.h> exists even on freestanding compilers.  */
24337
24338 #ifdef __STDC__
24339 # include <limits.h>
24340 #else
24341 # include <assert.h>
24342 #endif
24343
24344 #undef $ac_func
24345
24346 /* Override any gcc2 internal prototype to avoid an error.  */
24347 #ifdef __cplusplus
24348 extern "C"
24349 {
24350 #endif
24351 /* We use char because int might match the return type of a gcc2
24352    builtin and then its argument prototype would still apply.  */
24353 char $ac_func ();
24354 /* The GNU C library defines this for functions which it implements
24355     to always fail with ENOSYS.  Some functions are actually named
24356     something starting with __ and the normal name is an alias.  */
24357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24358 choke me
24359 #else
24360 char (*f) () = $ac_func;
24361 #endif
24362 #ifdef __cplusplus
24363 }
24364 #endif
24365
24366 int
24367 main ()
24368 {
24369 return f != $ac_func;
24370   ;
24371   return 0;
24372 }
24373 _ACEOF
24374 rm -f conftest.$ac_objext conftest$ac_exeext
24375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24376   (eval $ac_link) 2>conftest.er1
24377   ac_status=$?
24378   grep -v '^ *+' conftest.er1 >conftest.err
24379   rm -f conftest.er1
24380   cat conftest.err >&5
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } &&
24383          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385   (eval $ac_try) 2>&5
24386   ac_status=$?
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; } &&
24389          { ac_try='test -s conftest$ac_exeext'
24390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391   (eval $ac_try) 2>&5
24392   ac_status=$?
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); }; }; then
24395   eval "$as_ac_var=yes"
24396 else
24397   echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400 eval "$as_ac_var=no"
24401 fi
24402 rm -f conftest.err conftest.$ac_objext \
24403       conftest$ac_exeext conftest.$ac_ext
24404 fi
24405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24407 if test `eval echo '${'$as_ac_var'}'` = yes; then
24408   cat >>confdefs.h <<_ACEOF
24409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24410 _ACEOF
24411  have_floor=1
24412 fi
24413 done
24414
24415 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24416 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24417 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24418     echo "$as_me:$LINENO: result: yes" >&5
24419 echo "${ECHO_T}yes" >&6
24420 else
24421     echo "$as_me:$LINENO: result: no" >&5
24422 echo "${ECHO_T}no" >&6
24423     LIBS="$LIBS -lm"
24424     # use different functions to avoid configure caching
24425     have_sin=0
24426     have_ceil=0
24427
24428 for ac_func in sin
24429 do
24430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24431 echo "$as_me:$LINENO: checking for $ac_func" >&5
24432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24433 if eval "test \"\${$as_ac_var+set}\" = set"; then
24434   echo $ECHO_N "(cached) $ECHO_C" >&6
24435 else
24436   cat >conftest.$ac_ext <<_ACEOF
24437 /* confdefs.h.  */
24438 _ACEOF
24439 cat confdefs.h >>conftest.$ac_ext
24440 cat >>conftest.$ac_ext <<_ACEOF
24441 /* end confdefs.h.  */
24442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24444 #define $ac_func innocuous_$ac_func
24445
24446 /* System header to define __stub macros and hopefully few prototypes,
24447     which can conflict with char $ac_func (); below.
24448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24449     <limits.h> exists even on freestanding compilers.  */
24450
24451 #ifdef __STDC__
24452 # include <limits.h>
24453 #else
24454 # include <assert.h>
24455 #endif
24456
24457 #undef $ac_func
24458
24459 /* Override any gcc2 internal prototype to avoid an error.  */
24460 #ifdef __cplusplus
24461 extern "C"
24462 {
24463 #endif
24464 /* We use char because int might match the return type of a gcc2
24465    builtin and then its argument prototype would still apply.  */
24466 char $ac_func ();
24467 /* The GNU C library defines this for functions which it implements
24468     to always fail with ENOSYS.  Some functions are actually named
24469     something starting with __ and the normal name is an alias.  */
24470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24471 choke me
24472 #else
24473 char (*f) () = $ac_func;
24474 #endif
24475 #ifdef __cplusplus
24476 }
24477 #endif
24478
24479 int
24480 main ()
24481 {
24482 return f != $ac_func;
24483   ;
24484   return 0;
24485 }
24486 _ACEOF
24487 rm -f conftest.$ac_objext conftest$ac_exeext
24488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24489   (eval $ac_link) 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } &&
24496          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498   (eval $ac_try) 2>&5
24499   ac_status=$?
24500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501   (exit $ac_status); }; } &&
24502          { ac_try='test -s conftest$ac_exeext'
24503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504   (eval $ac_try) 2>&5
24505   ac_status=$?
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); }; }; then
24508   eval "$as_ac_var=yes"
24509 else
24510   echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 eval "$as_ac_var=no"
24514 fi
24515 rm -f conftest.err conftest.$ac_objext \
24516       conftest$ac_exeext conftest.$ac_ext
24517 fi
24518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24520 if test `eval echo '${'$as_ac_var'}'` = yes; then
24521   cat >>confdefs.h <<_ACEOF
24522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24523 _ACEOF
24524  have_sin=1
24525 fi
24526 done
24527
24528
24529 for ac_func in ceil
24530 do
24531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24532 echo "$as_me:$LINENO: checking for $ac_func" >&5
24533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24534 if eval "test \"\${$as_ac_var+set}\" = set"; then
24535   echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537   cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24545 #define $ac_func innocuous_$ac_func
24546
24547 /* System header to define __stub macros and hopefully few prototypes,
24548     which can conflict with char $ac_func (); below.
24549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24550     <limits.h> exists even on freestanding compilers.  */
24551
24552 #ifdef __STDC__
24553 # include <limits.h>
24554 #else
24555 # include <assert.h>
24556 #endif
24557
24558 #undef $ac_func
24559
24560 /* Override any gcc2 internal prototype to avoid an error.  */
24561 #ifdef __cplusplus
24562 extern "C"
24563 {
24564 #endif
24565 /* We use char because int might match the return type of a gcc2
24566    builtin and then its argument prototype would still apply.  */
24567 char $ac_func ();
24568 /* The GNU C library defines this for functions which it implements
24569     to always fail with ENOSYS.  Some functions are actually named
24570     something starting with __ and the normal name is an alias.  */
24571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24572 choke me
24573 #else
24574 char (*f) () = $ac_func;
24575 #endif
24576 #ifdef __cplusplus
24577 }
24578 #endif
24579
24580 int
24581 main ()
24582 {
24583 return f != $ac_func;
24584   ;
24585   return 0;
24586 }
24587 _ACEOF
24588 rm -f conftest.$ac_objext conftest$ac_exeext
24589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24590   (eval $ac_link) 2>conftest.er1
24591   ac_status=$?
24592   grep -v '^ *+' conftest.er1 >conftest.err
24593   rm -f conftest.er1
24594   cat conftest.err >&5
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } &&
24597          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599   (eval $ac_try) 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; } &&
24603          { ac_try='test -s conftest$ac_exeext'
24604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; }; then
24609   eval "$as_ac_var=yes"
24610 else
24611   echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24613
24614 eval "$as_ac_var=no"
24615 fi
24616 rm -f conftest.err conftest.$ac_objext \
24617       conftest$ac_exeext conftest.$ac_ext
24618 fi
24619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24621 if test `eval echo '${'$as_ac_var'}'` = yes; then
24622   cat >>confdefs.h <<_ACEOF
24623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24624 _ACEOF
24625  have_ceil=1
24626 fi
24627 done
24628
24629     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24630 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24631     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24632         echo "$as_me:$LINENO: result: yes" >&5
24633 echo "${ECHO_T}yes" >&6
24634     else
24635         echo "$as_me:$LINENO: result: no" >&5
24636 echo "${ECHO_T}no" >&6
24637         # not sure we should warn the user, crash, etc.
24638     fi
24639 fi
24640
24641
24642
24643 if test "$wxUSE_REGEX" != "no"; then
24644     cat >>confdefs.h <<\_ACEOF
24645 #define wxUSE_REGEX 1
24646 _ACEOF
24647
24648
24649     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24650         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24651 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24652         wxUSE_REGEX=builtin
24653     fi
24654
24655     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24656                         if test "${ac_cv_header_regex_h+set}" = set; then
24657   echo "$as_me:$LINENO: checking for regex.h" >&5
24658 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24659 if test "${ac_cv_header_regex_h+set}" = set; then
24660   echo $ECHO_N "(cached) $ECHO_C" >&6
24661 fi
24662 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24663 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24664 else
24665   # Is the header compilable?
24666 echo "$as_me:$LINENO: checking regex.h usability" >&5
24667 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24668 cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h.  */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h.  */
24674 $ac_includes_default
24675 #include <regex.h>
24676 _ACEOF
24677 rm -f conftest.$ac_objext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679   (eval $ac_compile) 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } &&
24686          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; } &&
24692          { ac_try='test -s conftest.$ac_objext'
24693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694   (eval $ac_try) 2>&5
24695   ac_status=$?
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); }; }; then
24698   ac_header_compiler=yes
24699 else
24700   echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703 ac_header_compiler=no
24704 fi
24705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24707 echo "${ECHO_T}$ac_header_compiler" >&6
24708
24709 # Is the header present?
24710 echo "$as_me:$LINENO: checking regex.h presence" >&5
24711 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24712 cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718 #include <regex.h>
24719 _ACEOF
24720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } >/dev/null; then
24728   if test -s conftest.err; then
24729     ac_cpp_err=$ac_cxx_preproc_warn_flag
24730     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24731   else
24732     ac_cpp_err=
24733   fi
24734 else
24735   ac_cpp_err=yes
24736 fi
24737 if test -z "$ac_cpp_err"; then
24738   ac_header_preproc=yes
24739 else
24740   echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24742
24743   ac_header_preproc=no
24744 fi
24745 rm -f conftest.err conftest.$ac_ext
24746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24747 echo "${ECHO_T}$ac_header_preproc" >&6
24748
24749 # So?  What about this header?
24750 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24751   yes:no: )
24752     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24753 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24754     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24755 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24756     ac_header_preproc=yes
24757     ;;
24758   no:yes:* )
24759     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24760 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24761     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
24762 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
24763     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24764 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24765     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
24766 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24767     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24768 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24769     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24770 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24771     (
24772       cat <<\_ASBOX
24773 ## ----------------------------------------- ##
24774 ## Report this to wx-dev@lists.wxwidgets.org ##
24775 ## ----------------------------------------- ##
24776 _ASBOX
24777     ) |
24778       sed "s/^/$as_me: WARNING:     /" >&2
24779     ;;
24780 esac
24781 echo "$as_me:$LINENO: checking for regex.h" >&5
24782 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24783 if test "${ac_cv_header_regex_h+set}" = set; then
24784   echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786   ac_cv_header_regex_h=$ac_header_preproc
24787 fi
24788 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24789 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24790
24791 fi
24792 if test $ac_cv_header_regex_h = yes; then
24793
24794
24795 for ac_func in regcomp re_search
24796 do
24797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24798 echo "$as_me:$LINENO: checking for $ac_func" >&5
24799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24800 if eval "test \"\${$as_ac_var+set}\" = set"; then
24801   echo $ECHO_N "(cached) $ECHO_C" >&6
24802 else
24803   cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h.  */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h.  */
24809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24811 #define $ac_func innocuous_$ac_func
24812
24813 /* System header to define __stub macros and hopefully few prototypes,
24814     which can conflict with char $ac_func (); below.
24815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24816     <limits.h> exists even on freestanding compilers.  */
24817
24818 #ifdef __STDC__
24819 # include <limits.h>
24820 #else
24821 # include <assert.h>
24822 #endif
24823
24824 #undef $ac_func
24825
24826 /* Override any gcc2 internal prototype to avoid an error.  */
24827 #ifdef __cplusplus
24828 extern "C"
24829 {
24830 #endif
24831 /* We use char because int might match the return type of a gcc2
24832    builtin and then its argument prototype would still apply.  */
24833 char $ac_func ();
24834 /* The GNU C library defines this for functions which it implements
24835     to always fail with ENOSYS.  Some functions are actually named
24836     something starting with __ and the normal name is an alias.  */
24837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24838 choke me
24839 #else
24840 char (*f) () = $ac_func;
24841 #endif
24842 #ifdef __cplusplus
24843 }
24844 #endif
24845
24846 int
24847 main ()
24848 {
24849 return f != $ac_func;
24850   ;
24851   return 0;
24852 }
24853 _ACEOF
24854 rm -f conftest.$ac_objext conftest$ac_exeext
24855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24856   (eval $ac_link) 2>conftest.er1
24857   ac_status=$?
24858   grep -v '^ *+' conftest.er1 >conftest.err
24859   rm -f conftest.er1
24860   cat conftest.err >&5
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); } &&
24863          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865   (eval $ac_try) 2>&5
24866   ac_status=$?
24867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868   (exit $ac_status); }; } &&
24869          { ac_try='test -s conftest$ac_exeext'
24870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; }; then
24875   eval "$as_ac_var=yes"
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880 eval "$as_ac_var=no"
24881 fi
24882 rm -f conftest.err conftest.$ac_objext \
24883       conftest$ac_exeext conftest.$ac_ext
24884 fi
24885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24887 if test `eval echo '${'$as_ac_var'}'` = yes; then
24888   cat >>confdefs.h <<_ACEOF
24889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24890 _ACEOF
24891
24892 fi
24893 done
24894
24895 fi
24896
24897
24898
24899         if test "x$ac_cv_func_regcomp" != "xyes"; then
24900             if test "$wxUSE_REGEX" = "sys" ; then
24901                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24902 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24903    { (exit 1); exit 1; }; }
24904             else
24905                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24906 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24907                 wxUSE_REGEX=builtin
24908             fi
24909         else
24910                         wxUSE_REGEX=sys
24911                         cat >>confdefs.h <<\_ACEOF
24912 #define WX_NO_REGEX_ADVANCED 1
24913 _ACEOF
24914
24915         fi
24916     fi
24917 fi
24918
24919
24920 ZLIB_LINK=
24921 if test "$wxUSE_ZLIB" != "no" ; then
24922     cat >>confdefs.h <<\_ACEOF
24923 #define wxUSE_ZLIB 1
24924 _ACEOF
24925
24926
24927     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24928                                                 if test "$USE_DARWIN" = 1; then
24929             system_zlib_h_ok="yes"
24930         else
24931                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24932 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24933 if test "${ac_cv_header_zlib_h+set}" = set; then
24934   echo $ECHO_N "(cached) $ECHO_C" >&6
24935 else
24936   if test "$cross_compiling" = yes; then
24937                       unset ac_cv_header_zlib_h
24938
24939 else
24940   cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h.  */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h.  */
24946
24947                         #include <zlib.h>
24948                         #include <stdio.h>
24949
24950                         int main()
24951                         {
24952                             FILE *f=fopen("conftestval", "w");
24953                             if (!f) exit(1);
24954                             fprintf(f, "%s",
24955                                     ZLIB_VERSION[0] == '1' &&
24956                                     (ZLIB_VERSION[2] > '1' ||
24957                                     (ZLIB_VERSION[2] == '1' &&
24958                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24959                             exit(0);
24960                         }
24961
24962 _ACEOF
24963 rm -f conftest$ac_exeext
24964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24965   (eval $ac_link) 2>&5
24966   ac_status=$?
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970   (eval $ac_try) 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); }; }; then
24974   ac_cv_header_zlib_h=`cat conftestval`
24975 else
24976   echo "$as_me: program exited with status $ac_status" >&5
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24979
24980 ( exit $ac_status )
24981 ac_cv_header_zlib_h=no
24982 fi
24983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24984 fi
24985
24986 fi
24987 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24988 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24989                                     if test "${ac_cv_header_zlib_h+set}" = set; then
24990   echo "$as_me:$LINENO: checking for zlib.h" >&5
24991 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24992 if test "${ac_cv_header_zlib_h+set}" = set; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 fi
24995 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24996 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24997 else
24998   # Is the header compilable?
24999 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25000 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25001 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007 $ac_includes_default
25008 #include <zlib.h>
25009 _ACEOF
25010 rm -f conftest.$ac_objext
25011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25012   (eval $ac_compile) 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } &&
25019          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest.$ac_objext'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   ac_header_compiler=yes
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036 ac_header_compiler=no
25037 fi
25038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25040 echo "${ECHO_T}$ac_header_compiler" >&6
25041
25042 # Is the header present?
25043 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25044 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25045 cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051 #include <zlib.h>
25052 _ACEOF
25053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25055   ac_status=$?
25056   grep -v '^ *+' conftest.er1 >conftest.err
25057   rm -f conftest.er1
25058   cat conftest.err >&5
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } >/dev/null; then
25061   if test -s conftest.err; then
25062     ac_cpp_err=$ac_cxx_preproc_warn_flag
25063     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25064   else
25065     ac_cpp_err=
25066   fi
25067 else
25068   ac_cpp_err=yes
25069 fi
25070 if test -z "$ac_cpp_err"; then
25071   ac_header_preproc=yes
25072 else
25073   echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25075
25076   ac_header_preproc=no
25077 fi
25078 rm -f conftest.err conftest.$ac_ext
25079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25080 echo "${ECHO_T}$ac_header_preproc" >&6
25081
25082 # So?  What about this header?
25083 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25084   yes:no: )
25085     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25086 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25087     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25088 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25089     ac_header_preproc=yes
25090     ;;
25091   no:yes:* )
25092     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25093 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25094     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25095 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25096     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25097 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25098     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25099 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25100     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25101 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25102     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25103 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25104     (
25105       cat <<\_ASBOX
25106 ## ----------------------------------------- ##
25107 ## Report this to wx-dev@lists.wxwidgets.org ##
25108 ## ----------------------------------------- ##
25109 _ASBOX
25110     ) |
25111       sed "s/^/$as_me: WARNING:     /" >&2
25112     ;;
25113 esac
25114 echo "$as_me:$LINENO: checking for zlib.h" >&5
25115 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25116 if test "${ac_cv_header_zlib_h+set}" = set; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   ac_cv_header_zlib_h=$ac_header_preproc
25120 fi
25121 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25122 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25123
25124 fi
25125
25126
25127
25128             system_zlib_h_ok=$ac_cv_header_zlib_h
25129         fi
25130
25131         if test "$system_zlib_h_ok" = "yes"; then
25132             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25133 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25134 if test "${ac_cv_lib_z_deflate+set}" = set; then
25135   echo $ECHO_N "(cached) $ECHO_C" >&6
25136 else
25137   ac_check_lib_save_LIBS=$LIBS
25138 LIBS="-lz  $LIBS"
25139 cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145
25146 /* Override any gcc2 internal prototype to avoid an error.  */
25147 #ifdef __cplusplus
25148 extern "C"
25149 #endif
25150 /* We use char because int might match the return type of a gcc2
25151    builtin and then its argument prototype would still apply.  */
25152 char deflate ();
25153 int
25154 main ()
25155 {
25156 deflate ();
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25163   (eval $ac_link) 2>conftest.er1
25164   ac_status=$?
25165   grep -v '^ *+' conftest.er1 >conftest.err
25166   rm -f conftest.er1
25167   cat conftest.err >&5
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } &&
25170          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172   (eval $ac_try) 2>&5
25173   ac_status=$?
25174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175   (exit $ac_status); }; } &&
25176          { ac_try='test -s conftest$ac_exeext'
25177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178   (eval $ac_try) 2>&5
25179   ac_status=$?
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); }; }; then
25182   ac_cv_lib_z_deflate=yes
25183 else
25184   echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25186
25187 ac_cv_lib_z_deflate=no
25188 fi
25189 rm -f conftest.err conftest.$ac_objext \
25190       conftest$ac_exeext conftest.$ac_ext
25191 LIBS=$ac_check_lib_save_LIBS
25192 fi
25193 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25194 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25195 if test $ac_cv_lib_z_deflate = yes; then
25196   ZLIB_LINK=" -lz"
25197 fi
25198
25199         fi
25200
25201         if test "x$ZLIB_LINK" = "x" ; then
25202             if test "$wxUSE_ZLIB" = "sys" ; then
25203                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25204 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25205    { (exit 1); exit 1; }; }
25206             else
25207                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25208 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25209                 wxUSE_ZLIB=builtin
25210             fi
25211         else
25212                         wxUSE_ZLIB=sys
25213         fi
25214     fi
25215 fi
25216
25217
25218 PNG_LINK=
25219 if test "$wxUSE_LIBPNG" != "no" ; then
25220     cat >>confdefs.h <<\_ACEOF
25221 #define wxUSE_LIBPNG 1
25222 _ACEOF
25223
25224
25225     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25226         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25227 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25228         wxUSE_LIBPNG=sys
25229     fi
25230
25231                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25232         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25233 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25234         wxUSE_LIBPNG=builtin
25235     fi
25236
25237     if test "$wxUSE_MGL" != 1 ; then
25238                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25239                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25240 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25241 if test "${ac_cv_header_png_h+set}" = set; then
25242   echo $ECHO_N "(cached) $ECHO_C" >&6
25243 else
25244   if test "$cross_compiling" = yes; then
25245                       unset ac_cv_header_png_h
25246
25247 else
25248   cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h.  */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h.  */
25254
25255                         #include <png.h>
25256                         #include <stdio.h>
25257
25258                         int main()
25259                         {
25260                             FILE *f=fopen("conftestval", "w");
25261                             if (!f) exit(1);
25262                             fprintf(f, "%s",
25263                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25264                             exit(0);
25265                         }
25266
25267 _ACEOF
25268 rm -f conftest$ac_exeext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270   (eval $ac_link) 2>&5
25271   ac_status=$?
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275   (eval $ac_try) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; }; then
25279   ac_cv_header_png_h=`cat conftestval`
25280 else
25281   echo "$as_me: program exited with status $ac_status" >&5
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25284
25285 ( exit $ac_status )
25286 ac_cv_header_png_h=no
25287 fi
25288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25289 fi
25290
25291 fi
25292 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25293 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25294             if test "${ac_cv_header_png_h+set}" = set; then
25295   echo "$as_me:$LINENO: checking for png.h" >&5
25296 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25297 if test "${ac_cv_header_png_h+set}" = set; then
25298   echo $ECHO_N "(cached) $ECHO_C" >&6
25299 fi
25300 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25301 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25302 else
25303   # Is the header compilable?
25304 echo "$as_me:$LINENO: checking png.h usability" >&5
25305 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 $ac_includes_default
25313 #include <png.h>
25314 _ACEOF
25315 rm -f conftest.$ac_objext
25316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25317   (eval $ac_compile) 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } &&
25324          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326   (eval $ac_try) 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; } &&
25330          { ac_try='test -s conftest.$ac_objext'
25331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332   (eval $ac_try) 2>&5
25333   ac_status=$?
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); }; }; then
25336   ac_header_compiler=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341 ac_header_compiler=no
25342 fi
25343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345 echo "${ECHO_T}$ac_header_compiler" >&6
25346
25347 # Is the header present?
25348 echo "$as_me:$LINENO: checking png.h presence" >&5
25349 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356 #include <png.h>
25357 _ACEOF
25358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } >/dev/null; then
25366   if test -s conftest.err; then
25367     ac_cpp_err=$ac_cxx_preproc_warn_flag
25368     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25369   else
25370     ac_cpp_err=
25371   fi
25372 else
25373   ac_cpp_err=yes
25374 fi
25375 if test -z "$ac_cpp_err"; then
25376   ac_header_preproc=yes
25377 else
25378   echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25380
25381   ac_header_preproc=no
25382 fi
25383 rm -f conftest.err conftest.$ac_ext
25384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25385 echo "${ECHO_T}$ac_header_preproc" >&6
25386
25387 # So?  What about this header?
25388 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25389   yes:no: )
25390     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25391 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25392     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25393 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25394     ac_header_preproc=yes
25395     ;;
25396   no:yes:* )
25397     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25398 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25399     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25400 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25402 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25403     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25404 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25405     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25406 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25407     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25408 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25409     (
25410       cat <<\_ASBOX
25411 ## ----------------------------------------- ##
25412 ## Report this to wx-dev@lists.wxwidgets.org ##
25413 ## ----------------------------------------- ##
25414 _ASBOX
25415     ) |
25416       sed "s/^/$as_me: WARNING:     /" >&2
25417     ;;
25418 esac
25419 echo "$as_me:$LINENO: checking for png.h" >&5
25420 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25421 if test "${ac_cv_header_png_h+set}" = set; then
25422   echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424   ac_cv_header_png_h=$ac_header_preproc
25425 fi
25426 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25427 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25428
25429 fi
25430
25431
25432
25433             if test "$ac_cv_header_png_h" = "yes"; then
25434                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25435 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25436 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25437   echo $ECHO_N "(cached) $ECHO_C" >&6
25438 else
25439   ac_check_lib_save_LIBS=$LIBS
25440 LIBS="-lpng -lz -lm $LIBS"
25441 cat >conftest.$ac_ext <<_ACEOF
25442 /* confdefs.h.  */
25443 _ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h.  */
25447
25448 /* Override any gcc2 internal prototype to avoid an error.  */
25449 #ifdef __cplusplus
25450 extern "C"
25451 #endif
25452 /* We use char because int might match the return type of a gcc2
25453    builtin and then its argument prototype would still apply.  */
25454 char png_check_sig ();
25455 int
25456 main ()
25457 {
25458 png_check_sig ();
25459   ;
25460   return 0;
25461 }
25462 _ACEOF
25463 rm -f conftest.$ac_objext conftest$ac_exeext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25465   (eval $ac_link) 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } &&
25472          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; } &&
25478          { ac_try='test -s conftest$ac_exeext'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; }; then
25484   ac_cv_lib_png_png_check_sig=yes
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489 ac_cv_lib_png_png_check_sig=no
25490 fi
25491 rm -f conftest.err conftest.$ac_objext \
25492       conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25494 fi
25495 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25496 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25497 if test $ac_cv_lib_png_png_check_sig = yes; then
25498   PNG_LINK=" -lpng -lz"
25499 fi
25500
25501             fi
25502
25503             if test "x$PNG_LINK" = "x" ; then
25504                 if test "$wxUSE_LIBPNG" = "sys" ; then
25505                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25506 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25507    { (exit 1); exit 1; }; }
25508                 else
25509                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25510 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25511                     wxUSE_LIBPNG=builtin
25512                 fi
25513             else
25514                                 wxUSE_LIBPNG=sys
25515             fi
25516         fi
25517     fi
25518
25519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25520 fi
25521
25522
25523 JPEG_LINK=
25524 if test "$wxUSE_LIBJPEG" != "no" ; then
25525     cat >>confdefs.h <<\_ACEOF
25526 #define wxUSE_LIBJPEG 1
25527 _ACEOF
25528
25529
25530     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25531         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25532 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25533         wxUSE_LIBJPEG=sys
25534     fi
25535
25536     if test "$wxUSE_MGL" != 1 ; then
25537                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25538                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25539 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25540             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549
25550                         #undef HAVE_STDLIB_H
25551                         #include <stdio.h>
25552                         #include <jpeglib.h>
25553
25554 int
25555 main ()
25556 {
25557
25558
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 rm -f conftest.$ac_objext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25565   (eval $ac_compile) 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } &&
25572          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574   (eval $ac_try) 2>&5
25575   ac_status=$?
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); }; } &&
25578          { ac_try='test -s conftest.$ac_objext'
25579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580   (eval $ac_try) 2>&5
25581   ac_status=$?
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); }; }; then
25584   ac_cv_header_jpeglib_h=yes
25585 else
25586   echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589 ac_cv_header_jpeglib_h=no
25590
25591 fi
25592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25593
25594 fi
25595
25596             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25597 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25598
25599             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25600                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25601 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25602 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25603   echo $ECHO_N "(cached) $ECHO_C" >&6
25604 else
25605   ac_check_lib_save_LIBS=$LIBS
25606 LIBS="-ljpeg  $LIBS"
25607 cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613
25614 /* Override any gcc2 internal prototype to avoid an error.  */
25615 #ifdef __cplusplus
25616 extern "C"
25617 #endif
25618 /* We use char because int might match the return type of a gcc2
25619    builtin and then its argument prototype would still apply.  */
25620 char jpeg_read_header ();
25621 int
25622 main ()
25623 {
25624 jpeg_read_header ();
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 rm -f conftest.$ac_objext conftest$ac_exeext
25630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25631   (eval $ac_link) 2>conftest.er1
25632   ac_status=$?
25633   grep -v '^ *+' conftest.er1 >conftest.err
25634   rm -f conftest.er1
25635   cat conftest.err >&5
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); } &&
25638          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640   (eval $ac_try) 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; } &&
25644          { ac_try='test -s conftest$ac_exeext'
25645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646   (eval $ac_try) 2>&5
25647   ac_status=$?
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); }; }; then
25650   ac_cv_lib_jpeg_jpeg_read_header=yes
25651 else
25652   echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 ac_cv_lib_jpeg_jpeg_read_header=no
25656 fi
25657 rm -f conftest.err conftest.$ac_objext \
25658       conftest$ac_exeext conftest.$ac_ext
25659 LIBS=$ac_check_lib_save_LIBS
25660 fi
25661 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25662 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25663 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25664   JPEG_LINK=" -ljpeg"
25665 fi
25666
25667             fi
25668
25669             if test "x$JPEG_LINK" = "x" ; then
25670                 if test "$wxUSE_LIBJPEG" = "sys" ; then
25671                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25672 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25673    { (exit 1); exit 1; }; }
25674                 else
25675                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25676 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25677                     wxUSE_LIBJPEG=builtin
25678                 fi
25679             else
25680                                 wxUSE_LIBJPEG=sys
25681             fi
25682         fi
25683     fi
25684 fi
25685
25686
25687 TIFF_LINK=
25688 TIFF_PREREQ_LINKS=-lm
25689 if test "$wxUSE_LIBTIFF" != "no" ; then
25690     cat >>confdefs.h <<\_ACEOF
25691 #define wxUSE_LIBTIFF 1
25692 _ACEOF
25693
25694
25695     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25696                         if test "$wxUSE_LIBJPEG" = "sys"; then
25697             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25698         fi
25699         if test "$wxUSE_ZLIB" = "sys"; then
25700             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25701         fi
25702         if test "${ac_cv_header_tiffio_h+set}" = set; then
25703   echo "$as_me:$LINENO: checking for tiffio.h" >&5
25704 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25705 if test "${ac_cv_header_tiffio_h+set}" = set; then
25706   echo $ECHO_N "(cached) $ECHO_C" >&6
25707 fi
25708 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25709 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25710 else
25711   # Is the header compilable?
25712 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25713 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h.  */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h.  */
25720 $ac_includes_default
25721 #include <tiffio.h>
25722 _ACEOF
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725   (eval $ac_compile) 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } &&
25732          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734   (eval $ac_try) 2>&5
25735   ac_status=$?
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); }; } &&
25738          { ac_try='test -s conftest.$ac_objext'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744   ac_header_compiler=yes
25745 else
25746   echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749 ac_header_compiler=no
25750 fi
25751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25753 echo "${ECHO_T}$ac_header_compiler" >&6
25754
25755 # Is the header present?
25756 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25757 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764 #include <tiffio.h>
25765 _ACEOF
25766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25768   ac_status=$?
25769   grep -v '^ *+' conftest.er1 >conftest.err
25770   rm -f conftest.er1
25771   cat conftest.err >&5
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); } >/dev/null; then
25774   if test -s conftest.err; then
25775     ac_cpp_err=$ac_cxx_preproc_warn_flag
25776     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25777   else
25778     ac_cpp_err=
25779   fi
25780 else
25781   ac_cpp_err=yes
25782 fi
25783 if test -z "$ac_cpp_err"; then
25784   ac_header_preproc=yes
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789   ac_header_preproc=no
25790 fi
25791 rm -f conftest.err conftest.$ac_ext
25792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25793 echo "${ECHO_T}$ac_header_preproc" >&6
25794
25795 # So?  What about this header?
25796 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25797   yes:no: )
25798     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25799 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25800     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25801 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25802     ac_header_preproc=yes
25803     ;;
25804   no:yes:* )
25805     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25806 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
25807     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
25808 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
25809     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25810 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25811     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
25812 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25813     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25814 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25816 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
25817     (
25818       cat <<\_ASBOX
25819 ## ----------------------------------------- ##
25820 ## Report this to wx-dev@lists.wxwidgets.org ##
25821 ## ----------------------------------------- ##
25822 _ASBOX
25823     ) |
25824       sed "s/^/$as_me: WARNING:     /" >&2
25825     ;;
25826 esac
25827 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25828 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25829 if test "${ac_cv_header_tiffio_h+set}" = set; then
25830   echo $ECHO_N "(cached) $ECHO_C" >&6
25831 else
25832   ac_cv_header_tiffio_h=$ac_header_preproc
25833 fi
25834 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25836
25837 fi
25838 if test $ac_cv_header_tiffio_h = yes; then
25839
25840                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25841 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25842 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845   ac_check_lib_save_LIBS=$LIBS
25846 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25847 cat >conftest.$ac_ext <<_ACEOF
25848 /* confdefs.h.  */
25849 _ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h.  */
25853
25854 /* Override any gcc2 internal prototype to avoid an error.  */
25855 #ifdef __cplusplus
25856 extern "C"
25857 #endif
25858 /* We use char because int might match the return type of a gcc2
25859    builtin and then its argument prototype would still apply.  */
25860 char TIFFError ();
25861 int
25862 main ()
25863 {
25864 TIFFError ();
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext conftest$ac_exeext
25870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25871   (eval $ac_link) 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } &&
25878          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880   (eval $ac_try) 2>&5
25881   ac_status=$?
25882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); }; } &&
25884          { ac_try='test -s conftest$ac_exeext'
25885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886   (eval $ac_try) 2>&5
25887   ac_status=$?
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); }; }; then
25890   ac_cv_lib_tiff_TIFFError=yes
25891 else
25892   echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25894
25895 ac_cv_lib_tiff_TIFFError=no
25896 fi
25897 rm -f conftest.err conftest.$ac_objext \
25898       conftest$ac_exeext conftest.$ac_ext
25899 LIBS=$ac_check_lib_save_LIBS
25900 fi
25901 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25902 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25903 if test $ac_cv_lib_tiff_TIFFError = yes; then
25904   TIFF_LINK=" -ltiff"
25905 fi
25906
25907
25908
25909 fi
25910
25911
25912
25913         if test "x$TIFF_LINK" = "x" ; then
25914             if test "$wxUSE_LIBTIFF" = "sys" ; then
25915                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25916 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25917    { (exit 1); exit 1; }; }
25918             else
25919                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25920 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25921                 wxUSE_LIBTIFF=builtin
25922             fi
25923         else
25924                         wxUSE_LIBTIFF=sys
25925         fi
25926     fi
25927 fi
25928
25929
25930 if test "$wxUSE_WCHAR_T" != "yes"; then
25931     if test "$wxUSE_EXPAT" != "no"; then
25932         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25933 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25934         wxUSE_EXPAT=no
25935     fi
25936     if test "$wxUSE_XML" != "no"; then
25937         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25938 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25939         wxUSE_XML=no
25940     fi
25941 fi
25942
25943 if test "$wxUSE_EXPAT" != "no"; then
25944     wxUSE_XML=yes
25945     cat >>confdefs.h <<\_ACEOF
25946 #define wxUSE_EXPAT 1
25947 _ACEOF
25948
25949     cat >>confdefs.h <<\_ACEOF
25950 #define wxUSE_XML 1
25951 _ACEOF
25952
25953
25954     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25955         if test "${ac_cv_header_expat_h+set}" = set; then
25956   echo "$as_me:$LINENO: checking for expat.h" >&5
25957 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25958 if test "${ac_cv_header_expat_h+set}" = set; then
25959   echo $ECHO_N "(cached) $ECHO_C" >&6
25960 fi
25961 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25962 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25963 else
25964   # Is the header compilable?
25965 echo "$as_me:$LINENO: checking expat.h usability" >&5
25966 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25967 cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h.  */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h.  */
25973 $ac_includes_default
25974 #include <expat.h>
25975 _ACEOF
25976 rm -f conftest.$ac_objext
25977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25978   (eval $ac_compile) 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } &&
25985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987   (eval $ac_try) 2>&5
25988   ac_status=$?
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); }; } &&
25991          { ac_try='test -s conftest.$ac_objext'
25992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993   (eval $ac_try) 2>&5
25994   ac_status=$?
25995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996   (exit $ac_status); }; }; then
25997   ac_header_compiler=yes
25998 else
25999   echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26001
26002 ac_header_compiler=no
26003 fi
26004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26006 echo "${ECHO_T}$ac_header_compiler" >&6
26007
26008 # Is the header present?
26009 echo "$as_me:$LINENO: checking expat.h presence" >&5
26010 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26011 cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h.  */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h.  */
26017 #include <expat.h>
26018 _ACEOF
26019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26021   ac_status=$?
26022   grep -v '^ *+' conftest.er1 >conftest.err
26023   rm -f conftest.er1
26024   cat conftest.err >&5
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); } >/dev/null; then
26027   if test -s conftest.err; then
26028     ac_cpp_err=$ac_cxx_preproc_warn_flag
26029     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26030   else
26031     ac_cpp_err=
26032   fi
26033 else
26034   ac_cpp_err=yes
26035 fi
26036 if test -z "$ac_cpp_err"; then
26037   ac_header_preproc=yes
26038 else
26039   echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26041
26042   ac_header_preproc=no
26043 fi
26044 rm -f conftest.err conftest.$ac_ext
26045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26046 echo "${ECHO_T}$ac_header_preproc" >&6
26047
26048 # So?  What about this header?
26049 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26050   yes:no: )
26051     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26052 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26054 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26055     ac_header_preproc=yes
26056     ;;
26057   no:yes:* )
26058     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26059 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26060     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26061 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26062     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26063 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26064     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26065 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26066     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26067 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26068     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26069 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26070     (
26071       cat <<\_ASBOX
26072 ## ----------------------------------------- ##
26073 ## Report this to wx-dev@lists.wxwidgets.org ##
26074 ## ----------------------------------------- ##
26075 _ASBOX
26076     ) |
26077       sed "s/^/$as_me: WARNING:     /" >&2
26078     ;;
26079 esac
26080 echo "$as_me:$LINENO: checking for expat.h" >&5
26081 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26082 if test "${ac_cv_header_expat_h+set}" = set; then
26083   echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085   ac_cv_header_expat_h=$ac_header_preproc
26086 fi
26087 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26088 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26089
26090 fi
26091 if test $ac_cv_header_expat_h = yes; then
26092   found_expat_h=1
26093 fi
26094
26095
26096         if test "x$found_expat_h" = "x1"; then
26097                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26098 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26099 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 else
26102
26103                 cat >conftest.$ac_ext <<_ACEOF
26104 /* confdefs.h.  */
26105 _ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h.  */
26109 #include <expat.h>
26110 int
26111 main ()
26112 {
26113
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26120   (eval $ac_compile) 2>conftest.er1
26121   ac_status=$?
26122   grep -v '^ *+' conftest.er1 >conftest.err
26123   rm -f conftest.er1
26124   cat conftest.err >&5
26125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); } &&
26127          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129   (eval $ac_try) 2>&5
26130   ac_status=$?
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); }; } &&
26133          { ac_try='test -s conftest.$ac_objext'
26134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135   (eval $ac_try) 2>&5
26136   ac_status=$?
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); }; }; then
26139   wx_cv_expat_is_not_broken=yes
26140 else
26141   echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26143
26144 wx_cv_expat_is_not_broken=no
26145
26146 fi
26147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26148
26149
26150 fi
26151 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26152 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26153             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26154                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26155 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26156 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   ac_check_lib_save_LIBS=$LIBS
26160 LIBS="-lexpat  $LIBS"
26161 cat >conftest.$ac_ext <<_ACEOF
26162 /* confdefs.h.  */
26163 _ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h.  */
26167
26168 /* Override any gcc2 internal prototype to avoid an error.  */
26169 #ifdef __cplusplus
26170 extern "C"
26171 #endif
26172 /* We use char because int might match the return type of a gcc2
26173    builtin and then its argument prototype would still apply.  */
26174 char XML_ParserCreate ();
26175 int
26176 main ()
26177 {
26178 XML_ParserCreate ();
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 rm -f conftest.$ac_objext conftest$ac_exeext
26184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26185   (eval $ac_link) 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } &&
26192          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194   (eval $ac_try) 2>&5
26195   ac_status=$?
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); }; } &&
26198          { ac_try='test -s conftest$ac_exeext'
26199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200   (eval $ac_try) 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); }; }; then
26204   ac_cv_lib_expat_XML_ParserCreate=yes
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 ac_cv_lib_expat_XML_ParserCreate=no
26210 fi
26211 rm -f conftest.err conftest.$ac_objext \
26212       conftest$ac_exeext conftest.$ac_ext
26213 LIBS=$ac_check_lib_save_LIBS
26214 fi
26215 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26216 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26217 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26218   EXPAT_LINK=" -lexpat"
26219 fi
26220
26221             fi
26222         fi
26223         if test "x$EXPAT_LINK" = "x" ; then
26224             if test "$wxUSE_EXPAT" = "sys" ; then
26225                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26226 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26227    { (exit 1); exit 1; }; }
26228             else
26229                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26230 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26231                 wxUSE_EXPAT=builtin
26232             fi
26233         else
26234                         wxUSE_EXPAT=sys
26235         fi
26236     fi
26237     if test "$wxUSE_EXPAT" = "builtin" ; then
26238
26239
26240 subdirs="$subdirs src/expat"
26241
26242     fi
26243 fi
26244
26245
26246
26247 if test "$wxUSE_LIBMSPACK" != "no"; then
26248     if test "${ac_cv_header_mspack_h+set}" = set; then
26249   echo "$as_me:$LINENO: checking for mspack.h" >&5
26250 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26251 if test "${ac_cv_header_mspack_h+set}" = set; then
26252   echo $ECHO_N "(cached) $ECHO_C" >&6
26253 fi
26254 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26255 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26256 else
26257   # Is the header compilable?
26258 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26259 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26260 cat >conftest.$ac_ext <<_ACEOF
26261 /* confdefs.h.  */
26262 _ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h.  */
26266 $ac_includes_default
26267 #include <mspack.h>
26268 _ACEOF
26269 rm -f conftest.$ac_objext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26271   (eval $ac_compile) 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } &&
26278          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280   (eval $ac_try) 2>&5
26281   ac_status=$?
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); }; } &&
26284          { ac_try='test -s conftest.$ac_objext'
26285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286   (eval $ac_try) 2>&5
26287   ac_status=$?
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); }; }; then
26290   ac_header_compiler=yes
26291 else
26292   echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26294
26295 ac_header_compiler=no
26296 fi
26297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26299 echo "${ECHO_T}$ac_header_compiler" >&6
26300
26301 # Is the header present?
26302 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26303 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26304 cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310 #include <mspack.h>
26311 _ACEOF
26312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26314   ac_status=$?
26315   grep -v '^ *+' conftest.er1 >conftest.err
26316   rm -f conftest.er1
26317   cat conftest.err >&5
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); } >/dev/null; then
26320   if test -s conftest.err; then
26321     ac_cpp_err=$ac_cxx_preproc_warn_flag
26322     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26323   else
26324     ac_cpp_err=
26325   fi
26326 else
26327   ac_cpp_err=yes
26328 fi
26329 if test -z "$ac_cpp_err"; then
26330   ac_header_preproc=yes
26331 else
26332   echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335   ac_header_preproc=no
26336 fi
26337 rm -f conftest.err conftest.$ac_ext
26338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26339 echo "${ECHO_T}$ac_header_preproc" >&6
26340
26341 # So?  What about this header?
26342 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26343   yes:no: )
26344     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26345 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26346     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26347 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26348     ac_header_preproc=yes
26349     ;;
26350   no:yes:* )
26351     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26352 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26353     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26354 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26355     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26356 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26357     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26358 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26359     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26360 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26361     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26362 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26363     (
26364       cat <<\_ASBOX
26365 ## ----------------------------------------- ##
26366 ## Report this to wx-dev@lists.wxwidgets.org ##
26367 ## ----------------------------------------- ##
26368 _ASBOX
26369     ) |
26370       sed "s/^/$as_me: WARNING:     /" >&2
26371     ;;
26372 esac
26373 echo "$as_me:$LINENO: checking for mspack.h" >&5
26374 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26375 if test "${ac_cv_header_mspack_h+set}" = set; then
26376   echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378   ac_cv_header_mspack_h=$ac_header_preproc
26379 fi
26380 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26381 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26382
26383 fi
26384 if test $ac_cv_header_mspack_h = yes; then
26385   found_mspack_h=1
26386 fi
26387
26388
26389     if test "x$found_mspack_h" = "x1"; then
26390         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26391 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26392 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26393   echo $ECHO_N "(cached) $ECHO_C" >&6
26394 else
26395   ac_check_lib_save_LIBS=$LIBS
26396 LIBS="-lmspack  $LIBS"
26397 cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403
26404 /* Override any gcc2 internal prototype to avoid an error.  */
26405 #ifdef __cplusplus
26406 extern "C"
26407 #endif
26408 /* We use char because int might match the return type of a gcc2
26409    builtin and then its argument prototype would still apply.  */
26410 char mspack_create_chm_decompressor ();
26411 int
26412 main ()
26413 {
26414 mspack_create_chm_decompressor ();
26415   ;
26416   return 0;
26417 }
26418 _ACEOF
26419 rm -f conftest.$ac_objext conftest$ac_exeext
26420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26421   (eval $ac_link) 2>conftest.er1
26422   ac_status=$?
26423   grep -v '^ *+' conftest.er1 >conftest.err
26424   rm -f conftest.er1
26425   cat conftest.err >&5
26426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427   (exit $ac_status); } &&
26428          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430   (eval $ac_try) 2>&5
26431   ac_status=$?
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); }; } &&
26434          { ac_try='test -s conftest$ac_exeext'
26435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436   (eval $ac_try) 2>&5
26437   ac_status=$?
26438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); }; }; then
26440   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26441 else
26442   echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26444
26445 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26446 fi
26447 rm -f conftest.err conftest.$ac_objext \
26448       conftest$ac_exeext conftest.$ac_ext
26449 LIBS=$ac_check_lib_save_LIBS
26450 fi
26451 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26452 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26453 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26454   MSPACK_LINK=" -lmspack"
26455 fi
26456
26457     fi
26458     if test "x$MSPACK_LINK" = "x" ; then
26459         wxUSE_LIBMSPACK=no
26460     fi
26461 fi
26462
26463 if test "$wxUSE_LIBMSPACK" != "no"; then
26464     cat >>confdefs.h <<\_ACEOF
26465 #define wxUSE_LIBMSPACK 1
26466 _ACEOF
26467
26468 fi
26469
26470
26471
26472 AFMINSTALL=
26473 WIN32INSTALL=
26474
26475 TOOLKIT=
26476 TOOLKIT_INCLUDE=
26477 WIDGET_SET=
26478
26479 if test "$USE_WIN32" = 1 ; then
26480
26481 for ac_header in w32api.h
26482 do
26483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26485   echo "$as_me:$LINENO: checking for $ac_header" >&5
26486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26488   echo $ECHO_N "(cached) $ECHO_C" >&6
26489 fi
26490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26492 else
26493   # Is the header compilable?
26494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26496 cat >conftest.$ac_ext <<_ACEOF
26497 /* confdefs.h.  */
26498 _ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h.  */
26502 $ac_includes_default
26503 #include <$ac_header>
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26507   (eval $ac_compile) 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } &&
26514          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516   (eval $ac_try) 2>&5
26517   ac_status=$?
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); }; } &&
26520          { ac_try='test -s conftest.$ac_objext'
26521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26522   (eval $ac_try) 2>&5
26523   ac_status=$?
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); }; }; then
26526   ac_header_compiler=yes
26527 else
26528   echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531 ac_header_compiler=no
26532 fi
26533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26535 echo "${ECHO_T}$ac_header_compiler" >&6
26536
26537 # Is the header present?
26538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26540 cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h.  */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h.  */
26546 #include <$ac_header>
26547 _ACEOF
26548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } >/dev/null; then
26556   if test -s conftest.err; then
26557     ac_cpp_err=$ac_cxx_preproc_warn_flag
26558     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26559   else
26560     ac_cpp_err=
26561   fi
26562 else
26563   ac_cpp_err=yes
26564 fi
26565 if test -z "$ac_cpp_err"; then
26566   ac_header_preproc=yes
26567 else
26568   echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571   ac_header_preproc=no
26572 fi
26573 rm -f conftest.err conftest.$ac_ext
26574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26575 echo "${ECHO_T}$ac_header_preproc" >&6
26576
26577 # So?  What about this header?
26578 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26579   yes:no: )
26580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26584     ac_header_preproc=yes
26585     ;;
26586   no:yes:* )
26587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26599     (
26600       cat <<\_ASBOX
26601 ## ----------------------------------------- ##
26602 ## Report this to wx-dev@lists.wxwidgets.org ##
26603 ## ----------------------------------------- ##
26604 _ASBOX
26605     ) |
26606       sed "s/^/$as_me: WARNING:     /" >&2
26607     ;;
26608 esac
26609 echo "$as_me:$LINENO: checking for $ac_header" >&5
26610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26612   echo $ECHO_N "(cached) $ECHO_C" >&6
26613 else
26614   eval "$as_ac_Header=\$ac_header_preproc"
26615 fi
26616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26618
26619 fi
26620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26621   cat >>confdefs.h <<_ACEOF
26622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26623 _ACEOF
26624
26625 fi
26626
26627 done
26628
26629     if test "${ac_cv_header_windows_h+set}" = set; then
26630   echo "$as_me:$LINENO: checking for windows.h" >&5
26631 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26632 if test "${ac_cv_header_windows_h+set}" = set; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 fi
26635 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26636 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26637 else
26638   # Is the header compilable?
26639 echo "$as_me:$LINENO: checking windows.h usability" >&5
26640 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 #include <windows.h>
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652   (eval $ac_compile) 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } &&
26659          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661   (eval $ac_try) 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); }; } &&
26665          { ac_try='test -s conftest.$ac_objext'
26666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667   (eval $ac_try) 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); }; }; then
26671   ac_header_compiler=yes
26672 else
26673   echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26675
26676 ac_header_compiler=no
26677 fi
26678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26680 echo "${ECHO_T}$ac_header_compiler" >&6
26681
26682 # Is the header present?
26683 echo "$as_me:$LINENO: checking windows.h presence" >&5
26684 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26685 cat >conftest.$ac_ext <<_ACEOF
26686 /* confdefs.h.  */
26687 _ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h.  */
26691 #include <windows.h>
26692 _ACEOF
26693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } >/dev/null; then
26701   if test -s conftest.err; then
26702     ac_cpp_err=$ac_cxx_preproc_warn_flag
26703     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26704   else
26705     ac_cpp_err=
26706   fi
26707 else
26708   ac_cpp_err=yes
26709 fi
26710 if test -z "$ac_cpp_err"; then
26711   ac_header_preproc=yes
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716   ac_header_preproc=no
26717 fi
26718 rm -f conftest.err conftest.$ac_ext
26719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26720 echo "${ECHO_T}$ac_header_preproc" >&6
26721
26722 # So?  What about this header?
26723 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26724   yes:no: )
26725     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26726 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26727     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26728 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26729     ac_header_preproc=yes
26730     ;;
26731   no:yes:* )
26732     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26733 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26734     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
26735 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
26736     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26737 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26738     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
26739 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26740     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26741 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26742     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26743 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26744     (
26745       cat <<\_ASBOX
26746 ## ----------------------------------------- ##
26747 ## Report this to wx-dev@lists.wxwidgets.org ##
26748 ## ----------------------------------------- ##
26749 _ASBOX
26750     ) |
26751       sed "s/^/$as_me: WARNING:     /" >&2
26752     ;;
26753 esac
26754 echo "$as_me:$LINENO: checking for windows.h" >&5
26755 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26756 if test "${ac_cv_header_windows_h+set}" = set; then
26757   echo $ECHO_N "(cached) $ECHO_C" >&6
26758 else
26759   ac_cv_header_windows_h=$ac_header_preproc
26760 fi
26761 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26762 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26763
26764 fi
26765 if test $ac_cv_header_windows_h = yes; then
26766   :
26767 else
26768
26769         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26770 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26771    { (exit 1); exit 1; }; }
26772
26773 fi
26774
26775
26776
26777             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26778
26779     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26780         LIBS="$LIBS -loleacc"
26781     fi
26782
26783     case "${host}" in
26784         *-*-cygwin* )
26785                         LIBS="$LIBS -lkernel32 -luser32"
26786     esac
26787
26788         if test "$wxUSE_ODBC" = "sys" ; then
26789         wxUSE_ODBC = "yes"
26790     fi
26791     if test "$wxUSE_ODBC" = "yes" ; then
26792         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26793         cat >>confdefs.h <<\_ACEOF
26794 #define wxUSE_ODBC 1
26795 _ACEOF
26796
26797     fi
26798
26799         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26800     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26801
26802                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26803
26804         WIN32INSTALL=win32install
26805 fi
26806
26807 if test "$wxUSE_GUI" = "yes"; then
26808     USE_GUI=1
26809
26810     GUI_TK_LIBRARY=
26811
26812     WXGTK12=
26813     WXGTK127=
26814     WXGTK20=
26815     WXGPE=
26816
26817     if test "$wxUSE_COCOA" = 1 ; then
26818         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26819             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26820 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26821             wxUSE_PRINTING_ARCHITECTURE=no
26822         fi
26823         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26824             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26825 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26826             wxUSE_DRAG_AND_DROP=no
26827         fi
26828         if test "$wxUSE_DRAGIMAGE" = "yes"; then
26829             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26830 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26831             wxUSE_DRAGIMAGE=no
26832         fi
26833     fi
26834
26835     if test "$wxUSE_MSW" = 1 ; then
26836         TOOLKIT=MSW
26837         GUIDIST=MSW_DIST
26838
26839                 case "${host}" in
26840             *-*-mingw32* )
26841                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26842         esac
26843     fi
26844
26845     if test "$wxUSE_GTK" = 1; then
26846                 ac_ext=c
26847 ac_cpp='$CPP $CPPFLAGS'
26848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26851
26852
26853         echo "$as_me:$LINENO: checking for GTK+ version" >&5
26854 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26855
26856         gtk_version_cached=1
26857         if test "${wx_cv_lib_gtk+set}" = set; then
26858   echo $ECHO_N "(cached) $ECHO_C" >&6
26859 else
26860
26861                                                 gtk_version_cached=0
26862                 echo "$as_me:$LINENO: result: " >&5
26863 echo "${ECHO_T}" >&6
26864
26865                                                 GTK_MODULES=
26866                 if test "$wxUSE_THREADS" = "yes"; then
26867                     GTK_MODULES=gthread
26868                 fi
26869
26870                                 wx_cv_lib_gtk=
26871                 if test "x$wxGTK_VERSION" != "x1"
26872                 then
26873                                                                                 case "${host}" in
26874                         *-*-solaris2* )
26875                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26876                             enable_gtktest=no
26877                             fi
26878                     esac
26879
26880                     # Check whether --enable-gtktest or --disable-gtktest was given.
26881 if test "${enable_gtktest+set}" = set; then
26882   enableval="$enable_gtktest"
26883
26884 else
26885   enable_gtktest=yes
26886 fi;
26887
26888   pkg_config_args=gtk+-2.0
26889   for module in . $GTK_MODULES
26890   do
26891       case "$module" in
26892          gthread)
26893              pkg_config_args="$pkg_config_args gthread-2.0"
26894          ;;
26895       esac
26896   done
26897
26898   no_gtk=""
26899
26900   # Extract the first word of "pkg-config", so it can be a program name with args.
26901 set dummy pkg-config; ac_word=$2
26902 echo "$as_me:$LINENO: checking for $ac_word" >&5
26903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26905   echo $ECHO_N "(cached) $ECHO_C" >&6
26906 else
26907   case $PKG_CONFIG in
26908   [\\/]* | ?:[\\/]*)
26909   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26910   ;;
26911   *)
26912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26913 for as_dir in $PATH
26914 do
26915   IFS=$as_save_IFS
26916   test -z "$as_dir" && as_dir=.
26917   for ac_exec_ext in '' $ac_executable_extensions; do
26918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26919     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26921     break 2
26922   fi
26923 done
26924 done
26925
26926   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26927   ;;
26928 esac
26929 fi
26930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26931
26932 if test -n "$PKG_CONFIG"; then
26933   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26934 echo "${ECHO_T}$PKG_CONFIG" >&6
26935 else
26936   echo "$as_me:$LINENO: result: no" >&5
26937 echo "${ECHO_T}no" >&6
26938 fi
26939
26940
26941   if test x$PKG_CONFIG != xno ; then
26942     if pkg-config --atleast-pkgconfig-version 0.7 ; then
26943       :
26944     else
26945       echo "*** pkg-config too old; version 0.7 or better required."
26946       no_gtk=yes
26947       PKG_CONFIG=no
26948     fi
26949   else
26950     no_gtk=yes
26951   fi
26952
26953   min_gtk_version=2.0.0
26954   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26955 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26956
26957   if test x$PKG_CONFIG != xno ; then
26958     ## don't try to run the test against uninstalled libtool libs
26959     if $PKG_CONFIG --uninstalled $pkg_config_args; then
26960           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26961           enable_gtktest=no
26962     fi
26963
26964     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26965           :
26966     else
26967           no_gtk=yes
26968     fi
26969   fi
26970
26971   if test x"$no_gtk" = x ; then
26972     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26973     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26974     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26975            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26976     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26977            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26978     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26979            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26980     if test "x$enable_gtktest" = "xyes" ; then
26981       ac_save_CFLAGS="$CFLAGS"
26982       ac_save_LIBS="$LIBS"
26983       CFLAGS="$CFLAGS $GTK_CFLAGS"
26984       LIBS="$GTK_LIBS $LIBS"
26985       rm -f conf.gtktest
26986       if test "$cross_compiling" = yes; then
26987   echo $ac_n "cross compiling; assumed OK... $ac_c"
26988 else
26989   cat >conftest.$ac_ext <<_ACEOF
26990 /* confdefs.h.  */
26991 _ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h.  */
26995
26996 #include <gtk/gtk.h>
26997 #include <stdio.h>
26998 #include <stdlib.h>
26999
27000 int
27001 main ()
27002 {
27003   int major, minor, micro;
27004   char *tmp_version;
27005
27006   system ("touch conf.gtktest");
27007
27008   /* HP/UX 9 (%@#!) writes to sscanf strings */
27009   tmp_version = g_strdup("$min_gtk_version");
27010   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27011      printf("%s, bad version string\n", "$min_gtk_version");
27012      exit(1);
27013    }
27014
27015   if ((gtk_major_version != $gtk_config_major_version) ||
27016       (gtk_minor_version != $gtk_config_minor_version) ||
27017       (gtk_micro_version != $gtk_config_micro_version))
27018     {
27019       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27020              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27021              gtk_major_version, gtk_minor_version, gtk_micro_version);
27022       printf ("*** was found! If pkg-config was correct, then it is best\n");
27023       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27024       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27025       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27026       printf("*** required on your system.\n");
27027       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27028       printf("*** to point to the correct configuration files\n");
27029     }
27030   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27031            (gtk_minor_version != GTK_MINOR_VERSION) ||
27032            (gtk_micro_version != GTK_MICRO_VERSION))
27033     {
27034       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27035              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27036       printf("*** library (version %d.%d.%d)\n",
27037              gtk_major_version, gtk_minor_version, gtk_micro_version);
27038     }
27039   else
27040     {
27041       if ((gtk_major_version > major) ||
27042         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27043         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27044       {
27045         return 0;
27046        }
27047      else
27048       {
27049         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27050                gtk_major_version, gtk_minor_version, gtk_micro_version);
27051         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27052                major, minor, micro);
27053         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27054         printf("***\n");
27055         printf("*** If you have already installed a sufficiently new version, this error\n");
27056         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27057         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27058         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27059         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27060         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27061         printf("*** so that the correct libraries are found at run-time))\n");
27062       }
27063     }
27064   return 1;
27065 }
27066
27067 _ACEOF
27068 rm -f conftest$ac_exeext
27069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27070   (eval $ac_link) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075   (eval $ac_try) 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; }; then
27079   :
27080 else
27081   echo "$as_me: program exited with status $ac_status" >&5
27082 echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085 ( exit $ac_status )
27086 no_gtk=yes
27087 fi
27088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27089 fi
27090        CFLAGS="$ac_save_CFLAGS"
27091        LIBS="$ac_save_LIBS"
27092      fi
27093   fi
27094   if test "x$no_gtk" = x ; then
27095      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27096 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27097      wx_cv_lib_gtk=2.0
27098   else
27099      echo "$as_me:$LINENO: result: no" >&5
27100 echo "${ECHO_T}no" >&6
27101      if test "$PKG_CONFIG" = "no" ; then
27102        echo "*** A new enough version of pkg-config was not found."
27103        echo "*** See http://pkgconfig.sourceforge.net"
27104      else
27105        if test -f conf.gtktest ; then
27106         :
27107        else
27108           echo "*** Could not run GTK+ test program, checking why..."
27109           ac_save_CFLAGS="$CFLAGS"
27110           ac_save_LIBS="$LIBS"
27111           CFLAGS="$CFLAGS $GTK_CFLAGS"
27112           LIBS="$LIBS $GTK_LIBS"
27113           cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119
27120 #include <gtk/gtk.h>
27121 #include <stdio.h>
27122
27123 int
27124 main ()
27125 {
27126  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext conftest$ac_exeext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27133   (eval $ac_link) 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } &&
27140          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142   (eval $ac_try) 2>&5
27143   ac_status=$?
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); }; } &&
27146          { ac_try='test -s conftest$ac_exeext'
27147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148   (eval $ac_try) 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; }; then
27152    echo "*** The test program compiled, but did not run. This usually means"
27153           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27154           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27155           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27156           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27157           echo "*** is required on your system"
27158           echo "***"
27159           echo "*** If you have an old version installed, it is best to remove it, although"
27160           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27161 else
27162   echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165  echo "*** The test program failed to compile or link. See the file config.log for the"
27166           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27167 fi
27168 rm -f conftest.err conftest.$ac_objext \
27169       conftest$ac_exeext conftest.$ac_ext
27170           CFLAGS="$ac_save_CFLAGS"
27171           LIBS="$ac_save_LIBS"
27172        fi
27173      fi
27174      GTK_CFLAGS=""
27175      GTK_LIBS=""
27176      :
27177   fi
27178
27179
27180   rm -f conf.gtktest
27181
27182
27183                                         case "${host}" in
27184                         *-*-solaris2* )
27185                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27186                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27187                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27188                             fi
27189                                                         if test "$wxUSE_SHARED" != "yes"; then
27190                                 GTK_LIBS="$GTK_LIBS -lX11"
27191                             fi
27192                     esac
27193                 fi
27194
27195                                 if test -z "$wx_cv_lib_gtk"; then
27196                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27197
27198 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27199 if test "${with_gtk_prefix+set}" = set; then
27200   withval="$with_gtk_prefix"
27201   gtk_config_prefix="$withval"
27202 else
27203   gtk_config_prefix=""
27204 fi;
27205
27206 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27207 if test "${with_gtk_exec_prefix+set}" = set; then
27208   withval="$with_gtk_exec_prefix"
27209   gtk_config_exec_prefix="$withval"
27210 else
27211   gtk_config_exec_prefix=""
27212 fi;
27213 # Check whether --enable-gtktest or --disable-gtktest was given.
27214 if test "${enable_gtktest+set}" = set; then
27215   enableval="$enable_gtktest"
27216
27217 else
27218   enable_gtktest=yes
27219 fi;
27220
27221   for module in . $GTK_MODULES
27222   do
27223       case "$module" in
27224          gthread)
27225              gtk_config_args="$gtk_config_args gthread"
27226          ;;
27227       esac
27228   done
27229
27230   if test x$gtk_config_exec_prefix != x ; then
27231      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27232      if test x${GTK_CONFIG+set} != xset ; then
27233         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27234      fi
27235   fi
27236   if test x$gtk_config_prefix != x ; then
27237      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27238      if test x${GTK_CONFIG+set} != xset ; then
27239         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27240      fi
27241   fi
27242
27243   # Extract the first word of "gtk-config", so it can be a program name with args.
27244 set dummy gtk-config; ac_word=$2
27245 echo "$as_me:$LINENO: checking for $ac_word" >&5
27246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27247 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 else
27250   case $GTK_CONFIG in
27251   [\\/]* | ?:[\\/]*)
27252   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27253   ;;
27254   *)
27255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27256 for as_dir in $PATH
27257 do
27258   IFS=$as_save_IFS
27259   test -z "$as_dir" && as_dir=.
27260   for ac_exec_ext in '' $ac_executable_extensions; do
27261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27262     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27264     break 2
27265   fi
27266 done
27267 done
27268
27269   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27270   ;;
27271 esac
27272 fi
27273 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27274
27275 if test -n "$GTK_CONFIG"; then
27276   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27277 echo "${ECHO_T}$GTK_CONFIG" >&6
27278 else
27279   echo "$as_me:$LINENO: result: no" >&5
27280 echo "${ECHO_T}no" >&6
27281 fi
27282
27283   min_gtk_version=1.2.7
27284   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27285 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27286   no_gtk=""
27287   if test "$GTK_CONFIG" = "no" ; then
27288     no_gtk=yes
27289   else
27290     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27291     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27292     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27293            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27294     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27295            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27296     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27297            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27298     if test "x$enable_gtktest" = "xyes" ; then
27299       ac_save_CFLAGS="$CFLAGS"
27300       ac_save_LIBS="$LIBS"
27301       CFLAGS="$CFLAGS $GTK_CFLAGS"
27302       LIBS="$GTK_LIBS $LIBS"
27303       rm -f conf.gtktest
27304       if test "$cross_compiling" = yes; then
27305   echo $ac_n "cross compiling; assumed OK... $ac_c"
27306 else
27307   cat >conftest.$ac_ext <<_ACEOF
27308 /* confdefs.h.  */
27309 _ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h.  */
27313
27314 #include <gtk/gtk.h>
27315 #include <stdio.h>
27316 #include <stdlib.h>
27317
27318 int
27319 main ()
27320 {
27321   int major, minor, micro;
27322   char *tmp_version;
27323
27324   system ("touch conf.gtktest");
27325
27326   /* HP/UX 9 (%@#!) writes to sscanf strings */
27327   tmp_version = g_strdup("$min_gtk_version");
27328   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27329      printf("%s, bad version string\n", "$min_gtk_version");
27330      exit(1);
27331    }
27332
27333   if ((gtk_major_version != $gtk_config_major_version) ||
27334       (gtk_minor_version != $gtk_config_minor_version) ||
27335       (gtk_micro_version != $gtk_config_micro_version))
27336     {
27337       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27338              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27339              gtk_major_version, gtk_minor_version, gtk_micro_version);
27340       printf ("*** was found! If gtk-config was correct, then it is best\n");
27341       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27342       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27343       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27344       printf("*** required on your system.\n");
27345       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27346       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27347       printf("*** before re-running configure\n");
27348     }
27349 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27350   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27351            (gtk_minor_version != GTK_MINOR_VERSION) ||
27352            (gtk_micro_version != GTK_MICRO_VERSION))
27353     {
27354       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27355              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27356       printf("*** library (version %d.%d.%d)\n",
27357              gtk_major_version, gtk_minor_version, gtk_micro_version);
27358     }
27359 #endif /* defined (GTK_MAJOR_VERSION) ... */
27360   else
27361     {
27362       if ((gtk_major_version > major) ||
27363         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27364         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27365       {
27366         return 0;
27367        }
27368      else
27369       {
27370         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27371                gtk_major_version, gtk_minor_version, gtk_micro_version);
27372         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27373                major, minor, micro);
27374         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27375         printf("***\n");
27376         printf("*** If you have already installed a sufficiently new version, this error\n");
27377         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27378         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27379         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27380         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27381         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27382         printf("*** so that the correct libraries are found at run-time))\n");
27383       }
27384     }
27385   return 1;
27386 }
27387
27388 _ACEOF
27389 rm -f conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391   (eval $ac_link) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396   (eval $ac_try) 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); }; }; then
27400   :
27401 else
27402   echo "$as_me: program exited with status $ac_status" >&5
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406 ( exit $ac_status )
27407 no_gtk=yes
27408 fi
27409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27410 fi
27411        CFLAGS="$ac_save_CFLAGS"
27412        LIBS="$ac_save_LIBS"
27413      fi
27414   fi
27415   if test "x$no_gtk" = x ; then
27416      echo "$as_me:$LINENO: result: yes" >&5
27417 echo "${ECHO_T}yes" >&6
27418      wx_cv_lib_gtk=1.2.7
27419   else
27420      echo "$as_me:$LINENO: result: no" >&5
27421 echo "${ECHO_T}no" >&6
27422      if test "$GTK_CONFIG" = "no" ; then
27423        echo "*** The gtk-config script installed by GTK could not be found"
27424        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27425        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27426        echo "*** full path to gtk-config."
27427      else
27428        if test -f conf.gtktest ; then
27429         :
27430        else
27431           echo "*** Could not run GTK test program, checking why..."
27432           CFLAGS="$CFLAGS $GTK_CFLAGS"
27433           LIBS="$LIBS $GTK_LIBS"
27434           cat >conftest.$ac_ext <<_ACEOF
27435 /* confdefs.h.  */
27436 _ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h.  */
27440
27441 #include <gtk/gtk.h>
27442 #include <stdio.h>
27443
27444 int
27445 main ()
27446 {
27447  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 rm -f conftest.$ac_objext conftest$ac_exeext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27454   (eval $ac_link) 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; } &&
27467          { ac_try='test -s conftest$ac_exeext'
27468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469   (eval $ac_try) 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; }; then
27473    echo "*** The test program compiled, but did not run. This usually means"
27474           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27475           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27476           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27477           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27478           echo "*** is required on your system"
27479           echo "***"
27480           echo "*** If you have an old version installed, it is best to remove it, although"
27481           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27482           echo "***"
27483           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27484           echo "*** came with the system with the command"
27485           echo "***"
27486           echo "***    rpm --erase --nodeps gtk gtk-devel"
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491  echo "*** The test program failed to compile or link. See the file config.log for the"
27492           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27493           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27494           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27495 fi
27496 rm -f conftest.err conftest.$ac_objext \
27497       conftest$ac_exeext conftest.$ac_ext
27498           CFLAGS="$ac_save_CFLAGS"
27499           LIBS="$ac_save_LIBS"
27500        fi
27501      fi
27502      GTK_CFLAGS=""
27503      GTK_LIBS=""
27504      :
27505   fi
27506
27507
27508   rm -f conf.gtktest
27509
27510
27511                         if test -z "$wx_cv_lib_gtk"; then
27512
27513 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27514 if test "${with_gtk_prefix+set}" = set; then
27515   withval="$with_gtk_prefix"
27516   gtk_config_prefix="$withval"
27517 else
27518   gtk_config_prefix=""
27519 fi;
27520
27521 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27522 if test "${with_gtk_exec_prefix+set}" = set; then
27523   withval="$with_gtk_exec_prefix"
27524   gtk_config_exec_prefix="$withval"
27525 else
27526   gtk_config_exec_prefix=""
27527 fi;
27528 # Check whether --enable-gtktest or --disable-gtktest was given.
27529 if test "${enable_gtktest+set}" = set; then
27530   enableval="$enable_gtktest"
27531
27532 else
27533   enable_gtktest=yes
27534 fi;
27535
27536   for module in . $GTK_MODULES
27537   do
27538       case "$module" in
27539          gthread)
27540              gtk_config_args="$gtk_config_args gthread"
27541          ;;
27542       esac
27543   done
27544
27545   if test x$gtk_config_exec_prefix != x ; then
27546      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27547      if test x${GTK_CONFIG+set} != xset ; then
27548         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27549      fi
27550   fi
27551   if test x$gtk_config_prefix != x ; then
27552      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27553      if test x${GTK_CONFIG+set} != xset ; then
27554         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27555      fi
27556   fi
27557
27558   # Extract the first word of "gtk-config", so it can be a program name with args.
27559 set dummy gtk-config; ac_word=$2
27560 echo "$as_me:$LINENO: checking for $ac_word" >&5
27561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27562 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27563   echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565   case $GTK_CONFIG in
27566   [\\/]* | ?:[\\/]*)
27567   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27568   ;;
27569   *)
27570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27571 for as_dir in $PATH
27572 do
27573   IFS=$as_save_IFS
27574   test -z "$as_dir" && as_dir=.
27575   for ac_exec_ext in '' $ac_executable_extensions; do
27576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27577     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27579     break 2
27580   fi
27581 done
27582 done
27583
27584   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27585   ;;
27586 esac
27587 fi
27588 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27589
27590 if test -n "$GTK_CONFIG"; then
27591   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27592 echo "${ECHO_T}$GTK_CONFIG" >&6
27593 else
27594   echo "$as_me:$LINENO: result: no" >&5
27595 echo "${ECHO_T}no" >&6
27596 fi
27597
27598   min_gtk_version=1.2.3
27599   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27600 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27601   no_gtk=""
27602   if test "$GTK_CONFIG" = "no" ; then
27603     no_gtk=yes
27604   else
27605     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27606     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27607     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27608            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27609     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27610            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27611     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27612            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27613     if test "x$enable_gtktest" = "xyes" ; then
27614       ac_save_CFLAGS="$CFLAGS"
27615       ac_save_LIBS="$LIBS"
27616       CFLAGS="$CFLAGS $GTK_CFLAGS"
27617       LIBS="$GTK_LIBS $LIBS"
27618       rm -f conf.gtktest
27619       if test "$cross_compiling" = yes; then
27620   echo $ac_n "cross compiling; assumed OK... $ac_c"
27621 else
27622   cat >conftest.$ac_ext <<_ACEOF
27623 /* confdefs.h.  */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h.  */
27628
27629 #include <gtk/gtk.h>
27630 #include <stdio.h>
27631 #include <stdlib.h>
27632
27633 int
27634 main ()
27635 {
27636   int major, minor, micro;
27637   char *tmp_version;
27638
27639   system ("touch conf.gtktest");
27640
27641   /* HP/UX 9 (%@#!) writes to sscanf strings */
27642   tmp_version = g_strdup("$min_gtk_version");
27643   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27644      printf("%s, bad version string\n", "$min_gtk_version");
27645      exit(1);
27646    }
27647
27648   if ((gtk_major_version != $gtk_config_major_version) ||
27649       (gtk_minor_version != $gtk_config_minor_version) ||
27650       (gtk_micro_version != $gtk_config_micro_version))
27651     {
27652       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27653              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27654              gtk_major_version, gtk_minor_version, gtk_micro_version);
27655       printf ("*** was found! If gtk-config was correct, then it is best\n");
27656       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27657       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27658       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27659       printf("*** required on your system.\n");
27660       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27661       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27662       printf("*** before re-running configure\n");
27663     }
27664 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27665   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27666            (gtk_minor_version != GTK_MINOR_VERSION) ||
27667            (gtk_micro_version != GTK_MICRO_VERSION))
27668     {
27669       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27670              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27671       printf("*** library (version %d.%d.%d)\n",
27672              gtk_major_version, gtk_minor_version, gtk_micro_version);
27673     }
27674 #endif /* defined (GTK_MAJOR_VERSION) ... */
27675   else
27676     {
27677       if ((gtk_major_version > major) ||
27678         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27679         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27680       {
27681         return 0;
27682        }
27683      else
27684       {
27685         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27686                gtk_major_version, gtk_minor_version, gtk_micro_version);
27687         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27688                major, minor, micro);
27689         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27690         printf("***\n");
27691         printf("*** If you have already installed a sufficiently new version, this error\n");
27692         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27693         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27694         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27695         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27696         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27697         printf("*** so that the correct libraries are found at run-time))\n");
27698       }
27699     }
27700   return 1;
27701 }
27702
27703 _ACEOF
27704 rm -f conftest$ac_exeext
27705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27706   (eval $ac_link) 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711   (eval $ac_try) 2>&5
27712   ac_status=$?
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); }; }; then
27715   :
27716 else
27717   echo "$as_me: program exited with status $ac_status" >&5
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721 ( exit $ac_status )
27722 no_gtk=yes
27723 fi
27724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27725 fi
27726        CFLAGS="$ac_save_CFLAGS"
27727        LIBS="$ac_save_LIBS"
27728      fi
27729   fi
27730   if test "x$no_gtk" = x ; then
27731      echo "$as_me:$LINENO: result: yes" >&5
27732 echo "${ECHO_T}yes" >&6
27733      wx_cv_lib_gtk=1.2.3
27734   else
27735      echo "$as_me:$LINENO: result: no" >&5
27736 echo "${ECHO_T}no" >&6
27737      if test "$GTK_CONFIG" = "no" ; then
27738        echo "*** The gtk-config script installed by GTK could not be found"
27739        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27740        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27741        echo "*** full path to gtk-config."
27742      else
27743        if test -f conf.gtktest ; then
27744         :
27745        else
27746           echo "*** Could not run GTK test program, checking why..."
27747           CFLAGS="$CFLAGS $GTK_CFLAGS"
27748           LIBS="$LIBS $GTK_LIBS"
27749           cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755
27756 #include <gtk/gtk.h>
27757 #include <stdio.h>
27758
27759 int
27760 main ()
27761 {
27762  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27763   ;
27764   return 0;
27765 }
27766 _ACEOF
27767 rm -f conftest.$ac_objext conftest$ac_exeext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27769   (eval $ac_link) 2>conftest.er1
27770   ac_status=$?
27771   grep -v '^ *+' conftest.er1 >conftest.err
27772   rm -f conftest.er1
27773   cat conftest.err >&5
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); } &&
27776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778   (eval $ac_try) 2>&5
27779   ac_status=$?
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); }; } &&
27782          { ac_try='test -s conftest$ac_exeext'
27783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784   (eval $ac_try) 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; }; then
27788    echo "*** The test program compiled, but did not run. This usually means"
27789           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27790           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27791           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27792           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27793           echo "*** is required on your system"
27794           echo "***"
27795           echo "*** If you have an old version installed, it is best to remove it, although"
27796           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27797           echo "***"
27798           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27799           echo "*** came with the system with the command"
27800           echo "***"
27801           echo "***    rpm --erase --nodeps gtk gtk-devel"
27802 else
27803   echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27805
27806  echo "*** The test program failed to compile or link. See the file config.log for the"
27807           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27808           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27809           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27810 fi
27811 rm -f conftest.err conftest.$ac_objext \
27812       conftest$ac_exeext conftest.$ac_ext
27813           CFLAGS="$ac_save_CFLAGS"
27814           LIBS="$ac_save_LIBS"
27815        fi
27816      fi
27817      GTK_CFLAGS=""
27818      GTK_LIBS=""
27819      :
27820   fi
27821
27822
27823   rm -f conf.gtktest
27824
27825                         fi
27826                     fi
27827                 fi
27828
27829                 if test -z "$wx_cv_lib_gtk"; then
27830                                         wx_cv_lib_gtk=none
27831                 else
27832                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
27833                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
27834                 fi
27835
27836
27837 fi
27838
27839
27840                         if test "$gtk_version_cached" = 1; then
27841             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27842 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27843         fi
27844
27845         case "$wx_cv_lib_gtk" in
27846             2.0)    WXGTK20=1
27847                     TOOLKIT_VERSION=2
27848                     ;;
27849             1.2.7)  WXGTK127=1
27850                     WXGTK12=1
27851                     ;;
27852             1.2.3)  WXGTK12=1
27853                     ;;
27854             *)      { { echo "$as_me:$LINENO: error:
27855 The development files for GTK+ were not found. For GTK+ 2, please
27856 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27857 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27858 and that the version is 1.2.3 or above. Also check that the
27859 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27860 --libs' are in the LD_LIBRARY_PATH or equivalent.
27861                             " >&5
27862 echo "$as_me: error:
27863 The development files for GTK+ were not found. For GTK+ 2, please
27864 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27865 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27866 and that the version is 1.2.3 or above. Also check that the
27867 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27868 --libs' are in the LD_LIBRARY_PATH or equivalent.
27869                             " >&2;}
27870    { (exit 1); exit 1; }; }
27871                     ;;
27872         esac
27873
27874         if test "$WXGTK20" = 1; then
27875             save_CFLAGS="$CFLAGS"
27876             save_LIBS="$LIBS"
27877             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
27878             LIBS="$LIBS $wx_cv_libs_gtk"
27879
27880                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27881 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27882             cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h.  */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h.  */
27888
27889                             #include <gtk/gtk.h>
27890
27891 int
27892 main ()
27893 {
27894
27895                             void *f = gtk_icon_size_lookup;
27896
27897   ;
27898   return 0;
27899 }
27900 _ACEOF
27901 rm -f conftest.$ac_objext
27902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27903   (eval $ac_compile) 2>conftest.er1
27904   ac_status=$?
27905   grep -v '^ *+' conftest.er1 >conftest.err
27906   rm -f conftest.er1
27907   cat conftest.err >&5
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); } &&
27910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; } &&
27916          { ac_try='test -s conftest.$ac_objext'
27917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918   (eval $ac_try) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; }; then
27922
27923                             echo "$as_me:$LINENO: result: no" >&5
27924 echo "${ECHO_T}no" >&6
27925
27926 else
27927   echo "$as_me: failed program was:" >&5
27928 sed 's/^/| /' conftest.$ac_ext >&5
27929
27930
27931                             cat >>confdefs.h <<\_ACEOF
27932 #define NEED_GTK_ICON_SIZE_LOOKUP 1
27933 _ACEOF
27934
27935                             echo "$as_me:$LINENO: result: yes" >&5
27936 echo "${ECHO_T}yes" >&6
27937
27938 fi
27939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27940
27941                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
27942 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
27943             cat >conftest.$ac_ext <<_ACEOF
27944 /* confdefs.h.  */
27945 _ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h.  */
27949
27950                             #include <gtk/gtk.h>
27951
27952 int
27953 main ()
27954 {
27955
27956                             #if !GTK_CHECK_VERSION(2,6,0)
27957                             Not GTK+ 2.6
27958                             #endif
27959
27960   ;
27961   return 0;
27962 }
27963 _ACEOF
27964 rm -f conftest.$ac_objext
27965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27966   (eval $ac_compile) 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } &&
27973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975   (eval $ac_try) 2>&5
27976   ac_status=$?
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); }; } &&
27979          { ac_try='test -s conftest.$ac_objext'
27980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981   (eval $ac_try) 2>&5
27982   ac_status=$?
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); }; }; then
27985
27986                             cat >>confdefs.h <<\_ACEOF
27987 #define __WXGTK26__ 1
27988 _ACEOF
27989
27990                             cat >>confdefs.h <<\_ACEOF
27991 #define __WXGTK24__ 1
27992 _ACEOF
27993
27994                             echo "$as_me:$LINENO: result: yes" >&5
27995 echo "${ECHO_T}yes" >&6
27996                             ac_wxgtk26=1
27997
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002
28003                             echo "$as_me:$LINENO: result: no" >&5
28004 echo "${ECHO_T}no" >&6
28005                             ac_wxgtk26=0
28006
28007 fi
28008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28009
28010             if test "$ac_wxgtk26" = 0; then
28011                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28012 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28013             cat >conftest.$ac_ext <<_ACEOF
28014 /* confdefs.h.  */
28015 _ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h.  */
28019
28020                             #include <gtk/gtk.h>
28021
28022 int
28023 main ()
28024 {
28025
28026                             #if !GTK_CHECK_VERSION(2,4,0)
28027                             Not GTK+ 2.4
28028                             #endif
28029
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext
28035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28036   (eval $ac_compile) 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } &&
28043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045   (eval $ac_try) 2>&5
28046   ac_status=$?
28047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); }; } &&
28049          { ac_try='test -s conftest.$ac_objext'
28050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28051   (eval $ac_try) 2>&5
28052   ac_status=$?
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); }; }; then
28055
28056                             cat >>confdefs.h <<\_ACEOF
28057 #define __WXGTK24__ 1
28058 _ACEOF
28059
28060                             echo "$as_me:$LINENO: result: yes" >&5
28061 echo "${ECHO_T}yes" >&6
28062
28063 else
28064   echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28066
28067
28068                             echo "$as_me:$LINENO: result: no" >&5
28069 echo "${ECHO_T}no" >&6
28070
28071 fi
28072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28073             fi
28074
28075             CFLAGS="$save_CFLAGS"
28076             LIBS="$save_LIBS"
28077         else
28078             if test "$wxUSE_UNICODE" = "yes"; then
28079                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28080 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28081                 wxUSE_UNICODE=no
28082             fi
28083         fi
28084
28085         ac_ext=cc
28086 ac_cpp='$CXXCPP $CPPFLAGS'
28087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28090
28091
28092                         if test "$USE_DARWIN" != 1; then
28093
28094 for ac_func in poll
28095 do
28096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 echo "$as_me:$LINENO: checking for $ac_func" >&5
28098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28099 if eval "test \"\${$as_ac_var+set}\" = set"; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102   cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28110 #define $ac_func innocuous_$ac_func
28111
28112 /* System header to define __stub macros and hopefully few prototypes,
28113     which can conflict with char $ac_func (); below.
28114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115     <limits.h> exists even on freestanding compilers.  */
28116
28117 #ifdef __STDC__
28118 # include <limits.h>
28119 #else
28120 # include <assert.h>
28121 #endif
28122
28123 #undef $ac_func
28124
28125 /* Override any gcc2 internal prototype to avoid an error.  */
28126 #ifdef __cplusplus
28127 extern "C"
28128 {
28129 #endif
28130 /* We use char because int might match the return type of a gcc2
28131    builtin and then its argument prototype would still apply.  */
28132 char $ac_func ();
28133 /* The GNU C library defines this for functions which it implements
28134     to always fail with ENOSYS.  Some functions are actually named
28135     something starting with __ and the normal name is an alias.  */
28136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28137 choke me
28138 #else
28139 char (*f) () = $ac_func;
28140 #endif
28141 #ifdef __cplusplus
28142 }
28143 #endif
28144
28145 int
28146 main ()
28147 {
28148 return f != $ac_func;
28149   ;
28150   return 0;
28151 }
28152 _ACEOF
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28155   (eval $ac_link) 2>conftest.er1
28156   ac_status=$?
28157   grep -v '^ *+' conftest.er1 >conftest.err
28158   rm -f conftest.er1
28159   cat conftest.err >&5
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); } &&
28162          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164   (eval $ac_try) 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; } &&
28168          { ac_try='test -s conftest$ac_exeext'
28169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28170   (eval $ac_try) 2>&5
28171   ac_status=$?
28172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173   (exit $ac_status); }; }; then
28174   eval "$as_ac_var=yes"
28175 else
28176   echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28178
28179 eval "$as_ac_var=no"
28180 fi
28181 rm -f conftest.err conftest.$ac_objext \
28182       conftest$ac_exeext conftest.$ac_ext
28183 fi
28184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28186 if test `eval echo '${'$as_ac_var'}'` = yes; then
28187   cat >>confdefs.h <<_ACEOF
28188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28189 _ACEOF
28190
28191 fi
28192 done
28193
28194         fi
28195
28196         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28197         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28198
28199         AFMINSTALL=afminstall
28200         TOOLKIT=GTK
28201         GUIDIST=GTK_DIST
28202
28203                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28204 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28205 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28206   echo $ECHO_N "(cached) $ECHO_C" >&6
28207 else
28208   ac_check_lib_save_LIBS=$LIBS
28209 LIBS="-lgdk  $LIBS"
28210 cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216
28217 /* Override any gcc2 internal prototype to avoid an error.  */
28218 #ifdef __cplusplus
28219 extern "C"
28220 #endif
28221 /* We use char because int might match the return type of a gcc2
28222    builtin and then its argument prototype would still apply.  */
28223 char gdk_im_open ();
28224 int
28225 main ()
28226 {
28227 gdk_im_open ();
28228   ;
28229   return 0;
28230 }
28231 _ACEOF
28232 rm -f conftest.$ac_objext conftest$ac_exeext
28233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28234   (eval $ac_link) 2>conftest.er1
28235   ac_status=$?
28236   grep -v '^ *+' conftest.er1 >conftest.err
28237   rm -f conftest.er1
28238   cat conftest.err >&5
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); } &&
28241          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243   (eval $ac_try) 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; } &&
28247          { ac_try='test -s conftest$ac_exeext'
28248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; }; then
28253   ac_cv_lib_gdk_gdk_im_open=yes
28254 else
28255   echo "$as_me: failed program was:" >&5
28256 sed 's/^/| /' conftest.$ac_ext >&5
28257
28258 ac_cv_lib_gdk_gdk_im_open=no
28259 fi
28260 rm -f conftest.err conftest.$ac_objext \
28261       conftest$ac_exeext conftest.$ac_ext
28262 LIBS=$ac_check_lib_save_LIBS
28263 fi
28264 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28265 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28266 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28267   cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_XIM 1
28269 _ACEOF
28270
28271 fi
28272
28273
28274
28275                 if test "$wxUSE_GPE" = "yes"; then
28276             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28277 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28278
28279   ac_find_libraries=
28280   for ac_dir in $SEARCH_LIB;
28281   do
28282     for ac_extension in a so sl dylib dll.a; do
28283       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28284         ac_find_libraries=$ac_dir
28285         break 2
28286       fi
28287     done
28288   done
28289
28290             if test "$ac_find_libraries" != "" ; then
28291
28292     if test "$ac_find_libraries" = "default location"; then
28293     ac_path_to_link=""
28294   else
28295     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28296     result=$?
28297     if test $result = 0; then
28298       ac_path_to_link=""
28299     else
28300       ac_path_to_link=" -L$ac_find_libraries"
28301     fi
28302   fi
28303
28304                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28305                 WXGPE=1
28306                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28307 echo "${ECHO_T}found in $ac_find_libraries" >&6
28308             else
28309                 echo "$as_me:$LINENO: result: not found" >&5
28310 echo "${ECHO_T}not found" >&6
28311             fi
28312
28313                                                                                                                     fi
28314     fi
28315
28316     if test "$wxUSE_MGL" = 1; then
28317        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28318 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28319         if test "x$MGL_ROOT" = x ; then
28320             echo "$as_me:$LINENO: result: not found" >&5
28321 echo "${ECHO_T}not found" >&6
28322             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28323 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28324    { (exit 1); exit 1; }; }
28325         else
28326             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28327 echo "${ECHO_T}$MGL_ROOT" >&6
28328         fi
28329
28330         echo "$as_me:$LINENO: checking for libmgl location" >&5
28331 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28332                                 case "${host}" in
28333             *-*-linux* )
28334                                           if test "x$wxUSE_SHARED" = xyes ; then
28335                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28336               else
28337                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28338               fi
28339               ;;
28340             *-pc-msdosdjgpp )
28341               mgl_os_candidates="dos32/dj2"
28342               ;;
28343             *)
28344               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28345 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28346    { (exit 1); exit 1; }; }
28347         esac
28348
28349         mgl_lib_type=""
28350         mgl_os=""
28351
28352         for mgl_os_i in $mgl_os_candidates ; do
28353             if test "x$mgl_os" = x ; then
28354                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28355                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28356                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28357                         mgl_lib_type=debug
28358                         mgl_os=$mgl_os_i
28359                     fi
28360                 fi
28361                 if test "x$mgl_lib_type" = x ; then
28362                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28363                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28364                         mgl_lib_type=release
28365                         mgl_os=$mgl_os_i
28366                     fi
28367                 fi
28368             fi
28369         done
28370
28371         if test "x$mgl_os" = x ; then
28372             echo "$as_me:$LINENO: result: not found" >&5
28373 echo "${ECHO_T}not found" >&6
28374             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28375 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28376    { (exit 1); exit 1; }; }
28377         fi
28378         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28379 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28380
28381         wxUSE_UNIVERSAL="yes"
28382
28383         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28384         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28385
28386         AFMINSTALL=afminstall
28387         TOOLKIT=MGL
28388         GUIDIST=MGL_DIST
28389     fi
28390
28391     if test "$wxUSE_MICROWIN" = 1; then
28392         echo "$as_me:$LINENO: checking for MicroWindows" >&5
28393 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28394         if test "x$MICROWINDOWS" = x ; then
28395             echo "$as_me:$LINENO: result: not found" >&5
28396 echo "${ECHO_T}not found" >&6
28397             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28398 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28399    { (exit 1); exit 1; }; }
28400         else
28401             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28402 echo "${ECHO_T}$MICROWINDOWS" >&6
28403         fi
28404
28405         if test -f $MICROWINDOWS/lib/libmwin.a; then
28406             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28407 echo "${ECHO_T}MicroWindows' libraries found." >&6
28408         else
28409             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28410 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28411    { (exit 1); exit 1; }; }
28412         fi
28413
28414         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28415         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28416
28417         wxUSE_UNIVERSAL="yes"
28418
28419         AFMINSTALL=afminstall
28420         TOOLKIT=MICROWIN
28421         GUIDIST=MICROWIN_DIST
28422
28423         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28424     fi
28425
28426         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28427
28428 if test "x$ac_path_x_has_been_run" != xyes; then
28429   echo "$as_me:$LINENO: checking for X" >&5
28430 echo $ECHO_N "checking for X... $ECHO_C" >&6
28431
28432 ac_path_x_has_been_run=yes
28433
28434 # Check whether --with-x or --without-x was given.
28435 if test "${with_x+set}" = set; then
28436   withval="$with_x"
28437
28438 fi;
28439 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28440 if test "x$with_x" = xno; then
28441   # The user explicitly disabled X.
28442   have_x=disabled
28443 else
28444   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28445     # Both variables are already set.
28446     have_x=yes
28447   else
28448     if test "${ac_cv_have_x+set}" = set; then
28449   echo $ECHO_N "(cached) $ECHO_C" >&6
28450 else
28451   # One or both of the vars are not set, and there is no cached value.
28452 ac_x_includes=no ac_x_libraries=no
28453 rm -fr conftest.dir
28454 if mkdir conftest.dir; then
28455   cd conftest.dir
28456   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28457   cat >Imakefile <<'_ACEOF'
28458 acfindx:
28459         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28460 _ACEOF
28461   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28462     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28463     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28464     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28465     for ac_extension in a so sl; do
28466       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28467          test -f $ac_im_libdir/libX11.$ac_extension; then
28468         ac_im_usrlibdir=$ac_im_libdir; break
28469       fi
28470     done
28471     # Screen out bogus values from the imake configuration.  They are
28472     # bogus both because they are the default anyway, and because
28473     # using them would break gcc on systems where it needs fixed includes.
28474     case $ac_im_incroot in
28475         /usr/include) ;;
28476         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28477     esac
28478     case $ac_im_usrlibdir in
28479         /usr/lib | /lib) ;;
28480         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28481     esac
28482   fi
28483   cd ..
28484   rm -fr conftest.dir
28485 fi
28486
28487 # Standard set of common directories for X headers.
28488 # Check X11 before X11Rn because it is often a symlink to the current release.
28489 ac_x_header_dirs='
28490 /usr/X11/include
28491 /usr/X11R6/include
28492 /usr/X11R5/include
28493 /usr/X11R4/include
28494
28495 /usr/include/X11
28496 /usr/include/X11R6
28497 /usr/include/X11R5
28498 /usr/include/X11R4
28499
28500 /usr/local/X11/include
28501 /usr/local/X11R6/include
28502 /usr/local/X11R5/include
28503 /usr/local/X11R4/include
28504
28505 /usr/local/include/X11
28506 /usr/local/include/X11R6
28507 /usr/local/include/X11R5
28508 /usr/local/include/X11R4
28509
28510 /usr/X386/include
28511 /usr/x386/include
28512 /usr/XFree86/include/X11
28513
28514 /usr/include
28515 /usr/local/include
28516 /usr/unsupported/include
28517 /usr/athena/include
28518 /usr/local/x11r5/include
28519 /usr/lpp/Xamples/include
28520
28521 /usr/openwin/include
28522 /usr/openwin/share/include'
28523
28524 if test "$ac_x_includes" = no; then
28525   # Guess where to find include files, by looking for a specified header file.
28526   # First, try using that file with no special directory specified.
28527   cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h.  */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h.  */
28533 #include <X11/Xlib.h>
28534 _ACEOF
28535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28537   ac_status=$?
28538   grep -v '^ *+' conftest.er1 >conftest.err
28539   rm -f conftest.er1
28540   cat conftest.err >&5
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } >/dev/null; then
28543   if test -s conftest.err; then
28544     ac_cpp_err=$ac_cxx_preproc_warn_flag
28545     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28546   else
28547     ac_cpp_err=
28548   fi
28549 else
28550   ac_cpp_err=yes
28551 fi
28552 if test -z "$ac_cpp_err"; then
28553   # We can compile using X headers with no special include directory.
28554 ac_x_includes=
28555 else
28556   echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28558
28559   for ac_dir in $ac_x_header_dirs; do
28560   if test -r "$ac_dir/X11/Xlib.h"; then
28561     ac_x_includes=$ac_dir
28562     break
28563   fi
28564 done
28565 fi
28566 rm -f conftest.err conftest.$ac_ext
28567 fi # $ac_x_includes = no
28568
28569 if test "$ac_x_libraries" = no; then
28570   # Check for the libraries.
28571   # See if we find them without any special options.
28572   # Don't add to $LIBS permanently.
28573   ac_save_LIBS=$LIBS
28574   LIBS="-lX11 $LIBS"
28575   cat >conftest.$ac_ext <<_ACEOF
28576 /* confdefs.h.  */
28577 _ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h.  */
28581 #include <X11/Xlib.h>
28582 int
28583 main ()
28584 {
28585 XrmInitialize ()
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 rm -f conftest.$ac_objext conftest$ac_exeext
28591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28592   (eval $ac_link) 2>conftest.er1
28593   ac_status=$?
28594   grep -v '^ *+' conftest.er1 >conftest.err
28595   rm -f conftest.er1
28596   cat conftest.err >&5
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); } &&
28599          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601   (eval $ac_try) 2>&5
28602   ac_status=$?
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); }; } &&
28605          { ac_try='test -s conftest$ac_exeext'
28606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607   (eval $ac_try) 2>&5
28608   ac_status=$?
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); }; }; then
28611   LIBS=$ac_save_LIBS
28612 # We can link X programs with no special library path.
28613 ac_x_libraries=
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618 LIBS=$ac_save_LIBS
28619 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28620 do
28621   # Don't even attempt the hair of trying to link an X program!
28622   for ac_extension in a so sl; do
28623     if test -r $ac_dir/libX11.$ac_extension; then
28624       ac_x_libraries=$ac_dir
28625       break 2
28626     fi
28627   done
28628 done
28629 fi
28630 rm -f conftest.err conftest.$ac_objext \
28631       conftest$ac_exeext conftest.$ac_ext
28632 fi # $ac_x_libraries = no
28633
28634 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28635   # Didn't find X anywhere.  Cache the known absence of X.
28636   ac_cv_have_x="have_x=no"
28637 else
28638   # Record where we found X for the cache.
28639   ac_cv_have_x="have_x=yes \
28640                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28641 fi
28642 fi
28643
28644   fi
28645   eval "$ac_cv_have_x"
28646 fi # $with_x != no
28647
28648 if test "$have_x" != yes; then
28649   echo "$as_me:$LINENO: result: $have_x" >&5
28650 echo "${ECHO_T}$have_x" >&6
28651   no_x=yes
28652 else
28653   # If each of the values was on the command line, it overrides each guess.
28654   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28655   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28656   # Update the cache value to reflect the command line values.
28657   ac_cv_have_x="have_x=yes \
28658                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28659   # It might be that x_includes is empty (headers are found in the
28660   # standard search path. Then output the corresponding message
28661   ac_out_x_includes=$x_includes
28662   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28663   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28664 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
28665 fi
28666
28667 fi
28668 if test "$no_x" = yes; then
28669   # Not all programs may use this symbol, but it does not hurt to define it.
28670
28671 cat >>confdefs.h <<\_ACEOF
28672 #define X_DISPLAY_MISSING 1
28673 _ACEOF
28674
28675   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28676 else
28677   if test -n "$x_includes"; then
28678     X_CFLAGS="$X_CFLAGS -I$x_includes"
28679   fi
28680
28681   # It would also be nice to do this for all -L options, not just this one.
28682   if test -n "$x_libraries"; then
28683     X_LIBS="$X_LIBS -L$x_libraries"
28684     # For Solaris; some versions of Sun CC require a space after -R and
28685     # others require no space.  Words are not sufficient . . . .
28686     case `(uname -sr) 2>/dev/null` in
28687     "SunOS 5"*)
28688       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28689 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28690       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28691       cat >conftest.$ac_ext <<_ACEOF
28692 /* confdefs.h.  */
28693 _ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h.  */
28697
28698 int
28699 main ()
28700 {
28701
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708   (eval $ac_link) 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717   (eval $ac_try) 2>&5
28718   ac_status=$?
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); }; } &&
28721          { ac_try='test -s conftest$ac_exeext'
28722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723   (eval $ac_try) 2>&5
28724   ac_status=$?
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); }; }; then
28727   ac_R_nospace=yes
28728 else
28729   echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732 ac_R_nospace=no
28733 fi
28734 rm -f conftest.err conftest.$ac_objext \
28735       conftest$ac_exeext conftest.$ac_ext
28736       if test $ac_R_nospace = yes; then
28737         echo "$as_me:$LINENO: result: no" >&5
28738 echo "${ECHO_T}no" >&6
28739         X_LIBS="$X_LIBS -R$x_libraries"
28740       else
28741         LIBS="$ac_xsave_LIBS -R $x_libraries"
28742         cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h.  */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h.  */
28748
28749 int
28750 main ()
28751 {
28752
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28759   (eval $ac_link) 2>conftest.er1
28760   ac_status=$?
28761   grep -v '^ *+' conftest.er1 >conftest.err
28762   rm -f conftest.er1
28763   cat conftest.err >&5
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768   (eval $ac_try) 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; } &&
28772          { ac_try='test -s conftest$ac_exeext'
28773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774   (eval $ac_try) 2>&5
28775   ac_status=$?
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); }; }; then
28778   ac_R_space=yes
28779 else
28780   echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28782
28783 ac_R_space=no
28784 fi
28785 rm -f conftest.err conftest.$ac_objext \
28786       conftest$ac_exeext conftest.$ac_ext
28787         if test $ac_R_space = yes; then
28788           echo "$as_me:$LINENO: result: yes" >&5
28789 echo "${ECHO_T}yes" >&6
28790           X_LIBS="$X_LIBS -R $x_libraries"
28791         else
28792           echo "$as_me:$LINENO: result: neither works" >&5
28793 echo "${ECHO_T}neither works" >&6
28794         fi
28795       fi
28796       LIBS=$ac_xsave_LIBS
28797     esac
28798   fi
28799
28800   # Check for system-dependent libraries X programs must link with.
28801   # Do this before checking for the system-independent R6 libraries
28802   # (-lICE), since we may need -lsocket or whatever for X linking.
28803
28804   if test "$ISC" = yes; then
28805     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28806   else
28807     # Martyn Johnson says this is needed for Ultrix, if the X
28808     # libraries were built with DECnet support.  And Karl Berry says
28809     # the Alpha needs dnet_stub (dnet does not exist).
28810     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28811     cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817
28818 /* Override any gcc2 internal prototype to avoid an error.  */
28819 #ifdef __cplusplus
28820 extern "C"
28821 #endif
28822 /* We use char because int might match the return type of a gcc2
28823    builtin and then its argument prototype would still apply.  */
28824 char XOpenDisplay ();
28825 int
28826 main ()
28827 {
28828 XOpenDisplay ();
28829   ;
28830   return 0;
28831 }
28832 _ACEOF
28833 rm -f conftest.$ac_objext conftest$ac_exeext
28834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28835   (eval $ac_link) 2>conftest.er1
28836   ac_status=$?
28837   grep -v '^ *+' conftest.er1 >conftest.err
28838   rm -f conftest.er1
28839   cat conftest.err >&5
28840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); } &&
28842          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844   (eval $ac_try) 2>&5
28845   ac_status=$?
28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847   (exit $ac_status); }; } &&
28848          { ac_try='test -s conftest$ac_exeext'
28849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850   (eval $ac_try) 2>&5
28851   ac_status=$?
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); }; }; then
28854   :
28855 else
28856   echo "$as_me: failed program was:" >&5
28857 sed 's/^/| /' conftest.$ac_ext >&5
28858
28859 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28860 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28861 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 else
28864   ac_check_lib_save_LIBS=$LIBS
28865 LIBS="-ldnet  $LIBS"
28866 cat >conftest.$ac_ext <<_ACEOF
28867 /* confdefs.h.  */
28868 _ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h.  */
28872
28873 /* Override any gcc2 internal prototype to avoid an error.  */
28874 #ifdef __cplusplus
28875 extern "C"
28876 #endif
28877 /* We use char because int might match the return type of a gcc2
28878    builtin and then its argument prototype would still apply.  */
28879 char dnet_ntoa ();
28880 int
28881 main ()
28882 {
28883 dnet_ntoa ();
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890   (eval $ac_link) 2>conftest.er1
28891   ac_status=$?
28892   grep -v '^ *+' conftest.er1 >conftest.err
28893   rm -f conftest.er1
28894   cat conftest.err >&5
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); } &&
28897          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; } &&
28903          { ac_try='test -s conftest$ac_exeext'
28904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905   (eval $ac_try) 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; }; then
28909   ac_cv_lib_dnet_dnet_ntoa=yes
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ac_cv_lib_dnet_dnet_ntoa=no
28915 fi
28916 rm -f conftest.err conftest.$ac_objext \
28917       conftest$ac_exeext conftest.$ac_ext
28918 LIBS=$ac_check_lib_save_LIBS
28919 fi
28920 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28921 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28922 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28923   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28924 fi
28925
28926     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28927       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28928 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28929 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932   ac_check_lib_save_LIBS=$LIBS
28933 LIBS="-ldnet_stub  $LIBS"
28934 cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941 /* Override any gcc2 internal prototype to avoid an error.  */
28942 #ifdef __cplusplus
28943 extern "C"
28944 #endif
28945 /* We use char because int might match the return type of a gcc2
28946    builtin and then its argument prototype would still apply.  */
28947 char dnet_ntoa ();
28948 int
28949 main ()
28950 {
28951 dnet_ntoa ();
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958   (eval $ac_link) 2>conftest.er1
28959   ac_status=$?
28960   grep -v '^ *+' conftest.er1 >conftest.err
28961   rm -f conftest.er1
28962   cat conftest.err >&5
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); } &&
28965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967   (eval $ac_try) 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; } &&
28971          { ac_try='test -s conftest$ac_exeext'
28972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973   (eval $ac_try) 2>&5
28974   ac_status=$?
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); }; }; then
28977   ac_cv_lib_dnet_stub_dnet_ntoa=yes
28978 else
28979   echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982 ac_cv_lib_dnet_stub_dnet_ntoa=no
28983 fi
28984 rm -f conftest.err conftest.$ac_objext \
28985       conftest$ac_exeext conftest.$ac_ext
28986 LIBS=$ac_check_lib_save_LIBS
28987 fi
28988 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28989 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28990 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28991   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28992 fi
28993
28994     fi
28995 fi
28996 rm -f conftest.err conftest.$ac_objext \
28997       conftest$ac_exeext conftest.$ac_ext
28998     LIBS="$ac_xsave_LIBS"
28999
29000     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29001     # to get the SysV transport functions.
29002     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29003     # needs -lnsl.
29004     # The nsl library prevents programs from opening the X display
29005     # on Irix 5.2, according to T.E. Dickey.
29006     # The functions gethostbyname, getservbyname, and inet_addr are
29007     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29008     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29009 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29010 if test "${ac_cv_func_gethostbyname+set}" = set; then
29011   echo $ECHO_N "(cached) $ECHO_C" >&6
29012 else
29013   cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29021 #define gethostbyname innocuous_gethostbyname
29022
29023 /* System header to define __stub macros and hopefully few prototypes,
29024     which can conflict with char gethostbyname (); below.
29025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29026     <limits.h> exists even on freestanding compilers.  */
29027
29028 #ifdef __STDC__
29029 # include <limits.h>
29030 #else
29031 # include <assert.h>
29032 #endif
29033
29034 #undef gethostbyname
29035
29036 /* Override any gcc2 internal prototype to avoid an error.  */
29037 #ifdef __cplusplus
29038 extern "C"
29039 {
29040 #endif
29041 /* We use char because int might match the return type of a gcc2
29042    builtin and then its argument prototype would still apply.  */
29043 char gethostbyname ();
29044 /* The GNU C library defines this for functions which it implements
29045     to always fail with ENOSYS.  Some functions are actually named
29046     something starting with __ and the normal name is an alias.  */
29047 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29048 choke me
29049 #else
29050 char (*f) () = gethostbyname;
29051 #endif
29052 #ifdef __cplusplus
29053 }
29054 #endif
29055
29056 int
29057 main ()
29058 {
29059 return f != gethostbyname;
29060   ;
29061   return 0;
29062 }
29063 _ACEOF
29064 rm -f conftest.$ac_objext conftest$ac_exeext
29065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29066   (eval $ac_link) 2>conftest.er1
29067   ac_status=$?
29068   grep -v '^ *+' conftest.er1 >conftest.err
29069   rm -f conftest.er1
29070   cat conftest.err >&5
29071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072   (exit $ac_status); } &&
29073          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075   (eval $ac_try) 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; } &&
29079          { ac_try='test -s conftest$ac_exeext'
29080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081   (eval $ac_try) 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; }; then
29085   ac_cv_func_gethostbyname=yes
29086 else
29087   echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29089
29090 ac_cv_func_gethostbyname=no
29091 fi
29092 rm -f conftest.err conftest.$ac_objext \
29093       conftest$ac_exeext conftest.$ac_ext
29094 fi
29095 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29096 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29097
29098     if test $ac_cv_func_gethostbyname = no; then
29099       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29100 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29101 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29102   echo $ECHO_N "(cached) $ECHO_C" >&6
29103 else
29104   ac_check_lib_save_LIBS=$LIBS
29105 LIBS="-lnsl  $LIBS"
29106 cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112
29113 /* Override any gcc2 internal prototype to avoid an error.  */
29114 #ifdef __cplusplus
29115 extern "C"
29116 #endif
29117 /* We use char because int might match the return type of a gcc2
29118    builtin and then its argument prototype would still apply.  */
29119 char gethostbyname ();
29120 int
29121 main ()
29122 {
29123 gethostbyname ();
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29130   (eval $ac_link) 2>conftest.er1
29131   ac_status=$?
29132   grep -v '^ *+' conftest.er1 >conftest.err
29133   rm -f conftest.er1
29134   cat conftest.err >&5
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); } &&
29137          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139   (eval $ac_try) 2>&5
29140   ac_status=$?
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); }; } &&
29143          { ac_try='test -s conftest$ac_exeext'
29144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145   (eval $ac_try) 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); }; }; then
29149   ac_cv_lib_nsl_gethostbyname=yes
29150 else
29151   echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29153
29154 ac_cv_lib_nsl_gethostbyname=no
29155 fi
29156 rm -f conftest.err conftest.$ac_objext \
29157       conftest$ac_exeext conftest.$ac_ext
29158 LIBS=$ac_check_lib_save_LIBS
29159 fi
29160 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29161 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29162 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29163   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29164 fi
29165
29166       if test $ac_cv_lib_nsl_gethostbyname = no; then
29167         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29168 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29169 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29170   echo $ECHO_N "(cached) $ECHO_C" >&6
29171 else
29172   ac_check_lib_save_LIBS=$LIBS
29173 LIBS="-lbsd  $LIBS"
29174 cat >conftest.$ac_ext <<_ACEOF
29175 /* confdefs.h.  */
29176 _ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h.  */
29180
29181 /* Override any gcc2 internal prototype to avoid an error.  */
29182 #ifdef __cplusplus
29183 extern "C"
29184 #endif
29185 /* We use char because int might match the return type of a gcc2
29186    builtin and then its argument prototype would still apply.  */
29187 char gethostbyname ();
29188 int
29189 main ()
29190 {
29191 gethostbyname ();
29192   ;
29193   return 0;
29194 }
29195 _ACEOF
29196 rm -f conftest.$ac_objext conftest$ac_exeext
29197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29198   (eval $ac_link) 2>conftest.er1
29199   ac_status=$?
29200   grep -v '^ *+' conftest.er1 >conftest.err
29201   rm -f conftest.er1
29202   cat conftest.err >&5
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); } &&
29205          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207   (eval $ac_try) 2>&5
29208   ac_status=$?
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); }; } &&
29211          { ac_try='test -s conftest$ac_exeext'
29212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29213   (eval $ac_try) 2>&5
29214   ac_status=$?
29215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216   (exit $ac_status); }; }; then
29217   ac_cv_lib_bsd_gethostbyname=yes
29218 else
29219   echo "$as_me: failed program was:" >&5
29220 sed 's/^/| /' conftest.$ac_ext >&5
29221
29222 ac_cv_lib_bsd_gethostbyname=no
29223 fi
29224 rm -f conftest.err conftest.$ac_objext \
29225       conftest$ac_exeext conftest.$ac_ext
29226 LIBS=$ac_check_lib_save_LIBS
29227 fi
29228 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29229 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29230 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29232 fi
29233
29234       fi
29235     fi
29236
29237     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29238     # socket/setsockopt and other routines are undefined under SCO ODT
29239     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29240     # on later versions), says Simon Leinen: it contains gethostby*
29241     # variants that don't use the name server (or something).  -lsocket
29242     # must be given before -lnsl if both are needed.  We assume that
29243     # if connect needs -lnsl, so does gethostbyname.
29244     echo "$as_me:$LINENO: checking for connect" >&5
29245 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29246 if test "${ac_cv_func_connect+set}" = set; then
29247   echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249   cat >conftest.$ac_ext <<_ACEOF
29250 /* confdefs.h.  */
29251 _ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h.  */
29255 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29257 #define connect innocuous_connect
29258
29259 /* System header to define __stub macros and hopefully few prototypes,
29260     which can conflict with char connect (); below.
29261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29262     <limits.h> exists even on freestanding compilers.  */
29263
29264 #ifdef __STDC__
29265 # include <limits.h>
29266 #else
29267 # include <assert.h>
29268 #endif
29269
29270 #undef connect
29271
29272 /* Override any gcc2 internal prototype to avoid an error.  */
29273 #ifdef __cplusplus
29274 extern "C"
29275 {
29276 #endif
29277 /* We use char because int might match the return type of a gcc2
29278    builtin and then its argument prototype would still apply.  */
29279 char connect ();
29280 /* The GNU C library defines this for functions which it implements
29281     to always fail with ENOSYS.  Some functions are actually named
29282     something starting with __ and the normal name is an alias.  */
29283 #if defined (__stub_connect) || defined (__stub___connect)
29284 choke me
29285 #else
29286 char (*f) () = connect;
29287 #endif
29288 #ifdef __cplusplus
29289 }
29290 #endif
29291
29292 int
29293 main ()
29294 {
29295 return f != connect;
29296   ;
29297   return 0;
29298 }
29299 _ACEOF
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29302   (eval $ac_link) 2>conftest.er1
29303   ac_status=$?
29304   grep -v '^ *+' conftest.er1 >conftest.err
29305   rm -f conftest.er1
29306   cat conftest.err >&5
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); } &&
29309          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311   (eval $ac_try) 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); }; } &&
29315          { ac_try='test -s conftest$ac_exeext'
29316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317   (eval $ac_try) 2>&5
29318   ac_status=$?
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); }; }; then
29321   ac_cv_func_connect=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ac_cv_func_connect=no
29327 fi
29328 rm -f conftest.err conftest.$ac_objext \
29329       conftest$ac_exeext conftest.$ac_ext
29330 fi
29331 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29332 echo "${ECHO_T}$ac_cv_func_connect" >&6
29333
29334     if test $ac_cv_func_connect = no; then
29335       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29336 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29337 if test "${ac_cv_lib_socket_connect+set}" = set; then
29338   echo $ECHO_N "(cached) $ECHO_C" >&6
29339 else
29340   ac_check_lib_save_LIBS=$LIBS
29341 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29342 cat >conftest.$ac_ext <<_ACEOF
29343 /* confdefs.h.  */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h.  */
29348
29349 /* Override any gcc2 internal prototype to avoid an error.  */
29350 #ifdef __cplusplus
29351 extern "C"
29352 #endif
29353 /* We use char because int might match the return type of a gcc2
29354    builtin and then its argument prototype would still apply.  */
29355 char connect ();
29356 int
29357 main ()
29358 {
29359 connect ();
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 rm -f conftest.$ac_objext conftest$ac_exeext
29365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29366   (eval $ac_link) 2>conftest.er1
29367   ac_status=$?
29368   grep -v '^ *+' conftest.er1 >conftest.err
29369   rm -f conftest.er1
29370   cat conftest.err >&5
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); } &&
29373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375   (eval $ac_try) 2>&5
29376   ac_status=$?
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); }; } &&
29379          { ac_try='test -s conftest$ac_exeext'
29380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381   (eval $ac_try) 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385   ac_cv_lib_socket_connect=yes
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390 ac_cv_lib_socket_connect=no
29391 fi
29392 rm -f conftest.err conftest.$ac_objext \
29393       conftest$ac_exeext conftest.$ac_ext
29394 LIBS=$ac_check_lib_save_LIBS
29395 fi
29396 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29397 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29398 if test $ac_cv_lib_socket_connect = yes; then
29399   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29400 fi
29401
29402     fi
29403
29404     # Guillermo Gomez says -lposix is necessary on A/UX.
29405     echo "$as_me:$LINENO: checking for remove" >&5
29406 echo $ECHO_N "checking for remove... $ECHO_C" >&6
29407 if test "${ac_cv_func_remove+set}" = set; then
29408   echo $ECHO_N "(cached) $ECHO_C" >&6
29409 else
29410   cat >conftest.$ac_ext <<_ACEOF
29411 /* confdefs.h.  */
29412 _ACEOF
29413 cat confdefs.h >>conftest.$ac_ext
29414 cat >>conftest.$ac_ext <<_ACEOF
29415 /* end confdefs.h.  */
29416 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
29417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29418 #define remove innocuous_remove
29419
29420 /* System header to define __stub macros and hopefully few prototypes,
29421     which can conflict with char remove (); below.
29422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29423     <limits.h> exists even on freestanding compilers.  */
29424
29425 #ifdef __STDC__
29426 # include <limits.h>
29427 #else
29428 # include <assert.h>
29429 #endif
29430
29431 #undef remove
29432
29433 /* Override any gcc2 internal prototype to avoid an error.  */
29434 #ifdef __cplusplus
29435 extern "C"
29436 {
29437 #endif
29438 /* We use char because int might match the return type of a gcc2
29439    builtin and then its argument prototype would still apply.  */
29440 char remove ();
29441 /* The GNU C library defines this for functions which it implements
29442     to always fail with ENOSYS.  Some functions are actually named
29443     something starting with __ and the normal name is an alias.  */
29444 #if defined (__stub_remove) || defined (__stub___remove)
29445 choke me
29446 #else
29447 char (*f) () = remove;
29448 #endif
29449 #ifdef __cplusplus
29450 }
29451 #endif
29452
29453 int
29454 main ()
29455 {
29456 return f != remove;
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext conftest$ac_exeext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29463   (eval $ac_link) 2>conftest.er1
29464   ac_status=$?
29465   grep -v '^ *+' conftest.er1 >conftest.err
29466   rm -f conftest.er1
29467   cat conftest.err >&5
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); } &&
29470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472   (eval $ac_try) 2>&5
29473   ac_status=$?
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); }; } &&
29476          { ac_try='test -s conftest$ac_exeext'
29477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478   (eval $ac_try) 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; }; then
29482   ac_cv_func_remove=yes
29483 else
29484   echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29486
29487 ac_cv_func_remove=no
29488 fi
29489 rm -f conftest.err conftest.$ac_objext \
29490       conftest$ac_exeext conftest.$ac_ext
29491 fi
29492 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29493 echo "${ECHO_T}$ac_cv_func_remove" >&6
29494
29495     if test $ac_cv_func_remove = no; then
29496       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29497 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29498 if test "${ac_cv_lib_posix_remove+set}" = set; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   ac_check_lib_save_LIBS=$LIBS
29502 LIBS="-lposix  $LIBS"
29503 cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h.  */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h.  */
29509
29510 /* Override any gcc2 internal prototype to avoid an error.  */
29511 #ifdef __cplusplus
29512 extern "C"
29513 #endif
29514 /* We use char because int might match the return type of a gcc2
29515    builtin and then its argument prototype would still apply.  */
29516 char remove ();
29517 int
29518 main ()
29519 {
29520 remove ();
29521   ;
29522   return 0;
29523 }
29524 _ACEOF
29525 rm -f conftest.$ac_objext conftest$ac_exeext
29526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29527   (eval $ac_link) 2>conftest.er1
29528   ac_status=$?
29529   grep -v '^ *+' conftest.er1 >conftest.err
29530   rm -f conftest.er1
29531   cat conftest.err >&5
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); } &&
29534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536   (eval $ac_try) 2>&5
29537   ac_status=$?
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); }; } &&
29540          { ac_try='test -s conftest$ac_exeext'
29541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542   (eval $ac_try) 2>&5
29543   ac_status=$?
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); }; }; then
29546   ac_cv_lib_posix_remove=yes
29547 else
29548   echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29550
29551 ac_cv_lib_posix_remove=no
29552 fi
29553 rm -f conftest.err conftest.$ac_objext \
29554       conftest$ac_exeext conftest.$ac_ext
29555 LIBS=$ac_check_lib_save_LIBS
29556 fi
29557 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29558 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29559 if test $ac_cv_lib_posix_remove = yes; then
29560   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29561 fi
29562
29563     fi
29564
29565     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29566     echo "$as_me:$LINENO: checking for shmat" >&5
29567 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29568 if test "${ac_cv_func_shmat+set}" = set; then
29569   echo $ECHO_N "(cached) $ECHO_C" >&6
29570 else
29571   cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29579 #define shmat innocuous_shmat
29580
29581 /* System header to define __stub macros and hopefully few prototypes,
29582     which can conflict with char shmat (); below.
29583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29584     <limits.h> exists even on freestanding compilers.  */
29585
29586 #ifdef __STDC__
29587 # include <limits.h>
29588 #else
29589 # include <assert.h>
29590 #endif
29591
29592 #undef shmat
29593
29594 /* Override any gcc2 internal prototype to avoid an error.  */
29595 #ifdef __cplusplus
29596 extern "C"
29597 {
29598 #endif
29599 /* We use char because int might match the return type of a gcc2
29600    builtin and then its argument prototype would still apply.  */
29601 char shmat ();
29602 /* The GNU C library defines this for functions which it implements
29603     to always fail with ENOSYS.  Some functions are actually named
29604     something starting with __ and the normal name is an alias.  */
29605 #if defined (__stub_shmat) || defined (__stub___shmat)
29606 choke me
29607 #else
29608 char (*f) () = shmat;
29609 #endif
29610 #ifdef __cplusplus
29611 }
29612 #endif
29613
29614 int
29615 main ()
29616 {
29617 return f != shmat;
29618   ;
29619   return 0;
29620 }
29621 _ACEOF
29622 rm -f conftest.$ac_objext conftest$ac_exeext
29623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29624   (eval $ac_link) 2>conftest.er1
29625   ac_status=$?
29626   grep -v '^ *+' conftest.er1 >conftest.err
29627   rm -f conftest.er1
29628   cat conftest.err >&5
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); } &&
29631          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633   (eval $ac_try) 2>&5
29634   ac_status=$?
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); }; } &&
29637          { ac_try='test -s conftest$ac_exeext'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ac_cv_func_shmat=yes
29644 else
29645   echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ac_cv_func_shmat=no
29649 fi
29650 rm -f conftest.err conftest.$ac_objext \
29651       conftest$ac_exeext conftest.$ac_ext
29652 fi
29653 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29654 echo "${ECHO_T}$ac_cv_func_shmat" >&6
29655
29656     if test $ac_cv_func_shmat = no; then
29657       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29658 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29659 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29660   echo $ECHO_N "(cached) $ECHO_C" >&6
29661 else
29662   ac_check_lib_save_LIBS=$LIBS
29663 LIBS="-lipc  $LIBS"
29664 cat >conftest.$ac_ext <<_ACEOF
29665 /* confdefs.h.  */
29666 _ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h.  */
29670
29671 /* Override any gcc2 internal prototype to avoid an error.  */
29672 #ifdef __cplusplus
29673 extern "C"
29674 #endif
29675 /* We use char because int might match the return type of a gcc2
29676    builtin and then its argument prototype would still apply.  */
29677 char shmat ();
29678 int
29679 main ()
29680 {
29681 shmat ();
29682   ;
29683   return 0;
29684 }
29685 _ACEOF
29686 rm -f conftest.$ac_objext conftest$ac_exeext
29687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29688   (eval $ac_link) 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } &&
29695          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697   (eval $ac_try) 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; } &&
29701          { ac_try='test -s conftest$ac_exeext'
29702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703   (eval $ac_try) 2>&5
29704   ac_status=$?
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); }; }; then
29707   ac_cv_lib_ipc_shmat=yes
29708 else
29709   echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29711
29712 ac_cv_lib_ipc_shmat=no
29713 fi
29714 rm -f conftest.err conftest.$ac_objext \
29715       conftest$ac_exeext conftest.$ac_ext
29716 LIBS=$ac_check_lib_save_LIBS
29717 fi
29718 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29719 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29720 if test $ac_cv_lib_ipc_shmat = yes; then
29721   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29722 fi
29723
29724     fi
29725   fi
29726
29727   # Check for libraries that X11R6 Xt/Xaw programs need.
29728   ac_save_LDFLAGS=$LDFLAGS
29729   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29730   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29731   # check for ICE first), but we must link in the order -lSM -lICE or
29732   # we get undefined symbols.  So assume we have SM if we have ICE.
29733   # These have to be linked with before -lX11, unlike the other
29734   # libraries we check for below, so use a different variable.
29735   # John Interrante, Karl Berry
29736   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29737 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29738 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741   ac_check_lib_save_LIBS=$LIBS
29742 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29743 cat >conftest.$ac_ext <<_ACEOF
29744 /* confdefs.h.  */
29745 _ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h.  */
29749
29750 /* Override any gcc2 internal prototype to avoid an error.  */
29751 #ifdef __cplusplus
29752 extern "C"
29753 #endif
29754 /* We use char because int might match the return type of a gcc2
29755    builtin and then its argument prototype would still apply.  */
29756 char IceConnectionNumber ();
29757 int
29758 main ()
29759 {
29760 IceConnectionNumber ();
29761   ;
29762   return 0;
29763 }
29764 _ACEOF
29765 rm -f conftest.$ac_objext conftest$ac_exeext
29766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29767   (eval $ac_link) 2>conftest.er1
29768   ac_status=$?
29769   grep -v '^ *+' conftest.er1 >conftest.err
29770   rm -f conftest.er1
29771   cat conftest.err >&5
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); } &&
29774          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776   (eval $ac_try) 2>&5
29777   ac_status=$?
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); }; } &&
29780          { ac_try='test -s conftest$ac_exeext'
29781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782   (eval $ac_try) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); }; }; then
29786   ac_cv_lib_ICE_IceConnectionNumber=yes
29787 else
29788   echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29790
29791 ac_cv_lib_ICE_IceConnectionNumber=no
29792 fi
29793 rm -f conftest.err conftest.$ac_objext \
29794       conftest$ac_exeext conftest.$ac_ext
29795 LIBS=$ac_check_lib_save_LIBS
29796 fi
29797 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29798 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29799 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29800   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29801 fi
29802
29803   LDFLAGS=$ac_save_LDFLAGS
29804
29805 fi
29806
29807
29808         if test "$no_x" = "yes"; then
29809           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29810 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29811    { (exit 1); exit 1; }; }
29812         fi
29813
29814                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29815         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
29816         AFMINSTALL=afminstall
29817         COMPILED_X_PROGRAM=0
29818
29819     fi
29820
29821     if test "$wxUSE_X11" = 1; then
29822         if test "$wxUSE_NANOX" = "yes"; then
29823             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29824 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29825             if test "x$MICROWIN" = x ; then
29826                 echo "$as_me:$LINENO: result: not found" >&5
29827 echo "${ECHO_T}not found" >&6
29828                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29829 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29830    { (exit 1); exit 1; }; }
29831             else
29832                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29833 echo "${ECHO_T}$MICROWIN" >&6
29834                 cat >>confdefs.h <<\_ACEOF
29835 #define wxUSE_NANOX 1
29836 _ACEOF
29837
29838             fi
29839         fi
29840
29841         if test "$wxUSE_UNICODE" = "yes"; then
29842
29843   succeeded=no
29844
29845   if test -z "$PKG_CONFIG"; then
29846     # Extract the first word of "pkg-config", so it can be a program name with args.
29847 set dummy pkg-config; ac_word=$2
29848 echo "$as_me:$LINENO: checking for $ac_word" >&5
29849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 else
29853   case $PKG_CONFIG in
29854   [\\/]* | ?:[\\/]*)
29855   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29856   ;;
29857   *)
29858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29859 for as_dir in $PATH
29860 do
29861   IFS=$as_save_IFS
29862   test -z "$as_dir" && as_dir=.
29863   for ac_exec_ext in '' $ac_executable_extensions; do
29864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29865     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29867     break 2
29868   fi
29869 done
29870 done
29871
29872   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29873   ;;
29874 esac
29875 fi
29876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29877
29878 if test -n "$PKG_CONFIG"; then
29879   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29880 echo "${ECHO_T}$PKG_CONFIG" >&6
29881 else
29882   echo "$as_me:$LINENO: result: no" >&5
29883 echo "${ECHO_T}no" >&6
29884 fi
29885
29886   fi
29887
29888   if test "$PKG_CONFIG" = "no" ; then
29889      echo "*** The pkg-config script could not be found. Make sure it is"
29890      echo "*** in your path, or set the PKG_CONFIG environment variable"
29891      echo "*** to the full path to pkg-config."
29892      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29893   else
29894      PKG_CONFIG_MIN_VERSION=0.9.0
29895      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29896         echo "$as_me:$LINENO: checking for pangox" >&5
29897 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29898
29899         if $PKG_CONFIG --exists "pangox" ; then
29900             echo "$as_me:$LINENO: result: yes" >&5
29901 echo "${ECHO_T}yes" >&6
29902             succeeded=yes
29903
29904             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29905 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29906             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29907             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29908 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29909
29910             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29911 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29912             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29913             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29914 echo "${ECHO_T}$PANGOX_LIBS" >&6
29915         else
29916             PANGOX_CFLAGS=""
29917             PANGOX_LIBS=""
29918             ## If we have a custom action on failure, don't print errors, but
29919             ## do set a variable so people can do so.
29920             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29921
29922         fi
29923
29924
29925
29926      else
29927         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29928         echo "*** See http://www.freedesktop.org/software/pkgconfig"
29929      fi
29930   fi
29931
29932   if test $succeeded = yes; then
29933
29934                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
29935                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29936
29937   else
29938
29939                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29940 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29941    { (exit 1); exit 1; }; }
29942
29943
29944   fi
29945
29946
29947   succeeded=no
29948
29949   if test -z "$PKG_CONFIG"; then
29950     # Extract the first word of "pkg-config", so it can be a program name with args.
29951 set dummy pkg-config; ac_word=$2
29952 echo "$as_me:$LINENO: checking for $ac_word" >&5
29953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   case $PKG_CONFIG in
29958   [\\/]* | ?:[\\/]*)
29959   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29960   ;;
29961   *)
29962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963 for as_dir in $PATH
29964 do
29965   IFS=$as_save_IFS
29966   test -z "$as_dir" && as_dir=.
29967   for ac_exec_ext in '' $ac_executable_extensions; do
29968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29969     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29971     break 2
29972   fi
29973 done
29974 done
29975
29976   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29977   ;;
29978 esac
29979 fi
29980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29981
29982 if test -n "$PKG_CONFIG"; then
29983   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29984 echo "${ECHO_T}$PKG_CONFIG" >&6
29985 else
29986   echo "$as_me:$LINENO: result: no" >&5
29987 echo "${ECHO_T}no" >&6
29988 fi
29989
29990   fi
29991
29992   if test "$PKG_CONFIG" = "no" ; then
29993      echo "*** The pkg-config script could not be found. Make sure it is"
29994      echo "*** in your path, or set the PKG_CONFIG environment variable"
29995      echo "*** to the full path to pkg-config."
29996      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29997   else
29998      PKG_CONFIG_MIN_VERSION=0.9.0
29999      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30000         echo "$as_me:$LINENO: checking for pangoft2" >&5
30001 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
30002
30003         if $PKG_CONFIG --exists "pangoft2" ; then
30004             echo "$as_me:$LINENO: result: yes" >&5
30005 echo "${ECHO_T}yes" >&6
30006             succeeded=yes
30007
30008             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
30009 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
30010             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
30011             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
30012 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
30013
30014             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
30015 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
30016             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
30017             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
30018 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
30019         else
30020             PANGOFT2_CFLAGS=""
30021             PANGOFT2_LIBS=""
30022             ## If we have a custom action on failure, don't print errors, but
30023             ## do set a variable so people can do so.
30024             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30025
30026         fi
30027
30028
30029
30030      else
30031         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30032         echo "*** See http://www.freedesktop.org/software/pkgconfig"
30033      fi
30034   fi
30035
30036   if test $succeeded = yes; then
30037
30038                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30039                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30040
30041   else
30042
30043                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30044 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30045                         wxUSE_PRINTING_ARCHITECTURE="no"
30046
30047
30048   fi
30049
30050
30051   succeeded=no
30052
30053   if test -z "$PKG_CONFIG"; then
30054     # Extract the first word of "pkg-config", so it can be a program name with args.
30055 set dummy pkg-config; ac_word=$2
30056 echo "$as_me:$LINENO: checking for $ac_word" >&5
30057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30058 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30059   echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061   case $PKG_CONFIG in
30062   [\\/]* | ?:[\\/]*)
30063   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30064   ;;
30065   *)
30066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30067 for as_dir in $PATH
30068 do
30069   IFS=$as_save_IFS
30070   test -z "$as_dir" && as_dir=.
30071   for ac_exec_ext in '' $ac_executable_extensions; do
30072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30073     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30075     break 2
30076   fi
30077 done
30078 done
30079
30080   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30081   ;;
30082 esac
30083 fi
30084 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30085
30086 if test -n "$PKG_CONFIG"; then
30087   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30088 echo "${ECHO_T}$PKG_CONFIG" >&6
30089 else
30090   echo "$as_me:$LINENO: result: no" >&5
30091 echo "${ECHO_T}no" >&6
30092 fi
30093
30094   fi
30095
30096   if test "$PKG_CONFIG" = "no" ; then
30097      echo "*** The pkg-config script could not be found. Make sure it is"
30098      echo "*** in your path, or set the PKG_CONFIG environment variable"
30099      echo "*** to the full path to pkg-config."
30100      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30101   else
30102      PKG_CONFIG_MIN_VERSION=0.9.0
30103      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30104         echo "$as_me:$LINENO: checking for pangoxft" >&5
30105 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30106
30107         if $PKG_CONFIG --exists "pangoxft" ; then
30108             echo "$as_me:$LINENO: result: yes" >&5
30109 echo "${ECHO_T}yes" >&6
30110             succeeded=yes
30111
30112             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30113 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30114             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30115             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30116 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30117
30118             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30119 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30120             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30121             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30122 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30123         else
30124             PANGOXFT_CFLAGS=""
30125             PANGOXFT_LIBS=""
30126             ## If we have a custom action on failure, don't print errors, but
30127             ## do set a variable so people can do so.
30128             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30129
30130         fi
30131
30132
30133
30134      else
30135         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30136         echo "*** See http://www.freedesktop.org/software/pkgconfig"
30137      fi
30138   fi
30139
30140   if test $succeeded = yes; then
30141
30142                         cat >>confdefs.h <<\_ACEOF
30143 #define HAVE_PANGO_XFT 1
30144 _ACEOF
30145
30146                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30147                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30148
30149   else
30150
30151                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30152 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30153
30154
30155   fi
30156
30157                 save_CXXFLAGS="$CXXFLAGS"
30158                 save_LIBS="$LIBS"
30159                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30160                 LIBS="$LIBS $PANGOX_LIBS"
30161
30162 for ac_func in pango_font_family_is_monospace
30163 do
30164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30165 echo "$as_me:$LINENO: checking for $ac_func" >&5
30166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30167 if eval "test \"\${$as_ac_var+set}\" = set"; then
30168   echo $ECHO_N "(cached) $ECHO_C" >&6
30169 else
30170   cat >conftest.$ac_ext <<_ACEOF
30171 /* confdefs.h.  */
30172 _ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h.  */
30176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30178 #define $ac_func innocuous_$ac_func
30179
30180 /* System header to define __stub macros and hopefully few prototypes,
30181     which can conflict with char $ac_func (); below.
30182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30183     <limits.h> exists even on freestanding compilers.  */
30184
30185 #ifdef __STDC__
30186 # include <limits.h>
30187 #else
30188 # include <assert.h>
30189 #endif
30190
30191 #undef $ac_func
30192
30193 /* Override any gcc2 internal prototype to avoid an error.  */
30194 #ifdef __cplusplus
30195 extern "C"
30196 {
30197 #endif
30198 /* We use char because int might match the return type of a gcc2
30199    builtin and then its argument prototype would still apply.  */
30200 char $ac_func ();
30201 /* The GNU C library defines this for functions which it implements
30202     to always fail with ENOSYS.  Some functions are actually named
30203     something starting with __ and the normal name is an alias.  */
30204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30205 choke me
30206 #else
30207 char (*f) () = $ac_func;
30208 #endif
30209 #ifdef __cplusplus
30210 }
30211 #endif
30212
30213 int
30214 main ()
30215 {
30216 return f != $ac_func;
30217   ;
30218   return 0;
30219 }
30220 _ACEOF
30221 rm -f conftest.$ac_objext conftest$ac_exeext
30222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30223   (eval $ac_link) 2>conftest.er1
30224   ac_status=$?
30225   grep -v '^ *+' conftest.er1 >conftest.err
30226   rm -f conftest.er1
30227   cat conftest.err >&5
30228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229   (exit $ac_status); } &&
30230          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232   (eval $ac_try) 2>&5
30233   ac_status=$?
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); }; } &&
30236          { ac_try='test -s conftest$ac_exeext'
30237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30238   (eval $ac_try) 2>&5
30239   ac_status=$?
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); }; }; then
30242   eval "$as_ac_var=yes"
30243 else
30244   echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30246
30247 eval "$as_ac_var=no"
30248 fi
30249 rm -f conftest.err conftest.$ac_objext \
30250       conftest$ac_exeext conftest.$ac_ext
30251 fi
30252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30254 if test `eval echo '${'$as_ac_var'}'` = yes; then
30255   cat >>confdefs.h <<_ACEOF
30256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30257 _ACEOF
30258
30259 fi
30260 done
30261
30262                 CXXFLAGS="$save_CXXFLAGS"
30263                 LIBS="$save_LIBS"
30264         fi
30265
30266         wxUSE_UNIVERSAL="yes"
30267
30268         if test "$wxUSE_NANOX" = "yes"; then
30269             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30270             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"
30271             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30272         else
30273             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30274         fi
30275
30276         TOOLKIT=X11
30277         GUIDIST=X11_DIST
30278     fi
30279
30280     if test "$wxUSE_MOTIF" = 1; then
30281         if test "$wxUSE_UNICODE" = "yes"; then
30282             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30283 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30284    { (exit 1); exit 1; }; }
30285         fi
30286
30287         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30288 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
30289
30290 ac_find_includes=
30291 for ac_dir in $SEARCH_INCLUDE /usr/include;
30292   do
30293     if test -f "$ac_dir/Xm/Xm.h"; then
30294       ac_find_includes=$ac_dir
30295       break
30296     fi
30297   done
30298
30299         if test "$ac_find_includes" != "" ; then
30300             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30301 echo "${ECHO_T}found in $ac_find_includes" >&6
30302
30303     if test "x$ac_find_includes" = "x/usr/include"; then
30304     ac_path_to_include=""
30305   else
30306     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30307     result=$?
30308     if test $result = 0; then
30309       ac_path_to_include=""
30310     else
30311       ac_path_to_include=" -I$ac_find_includes"
30312     fi
30313   fi
30314
30315             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30316         else
30317             save_CXXFLAGS=$CXXFLAGS
30318             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30319
30320             cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326
30327                     #include <Xm/Xm.h>
30328
30329 int
30330 main ()
30331 {
30332
30333                     int version;
30334                     version = xmUseVersion;
30335
30336   ;
30337   return 0;
30338 }
30339 _ACEOF
30340 rm -f conftest.$ac_objext
30341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30342   (eval $ac_compile) 2>conftest.er1
30343   ac_status=$?
30344   grep -v '^ *+' conftest.er1 >conftest.err
30345   rm -f conftest.er1
30346   cat conftest.err >&5
30347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348   (exit $ac_status); } &&
30349          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest.$ac_objext'
30356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357   (eval $ac_try) 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361
30362                     echo "$as_me:$LINENO: result: found in default search path" >&5
30363 echo "${ECHO_T}found in default search path" >&6
30364                     COMPILED_X_PROGRAM=1
30365
30366 else
30367   echo "$as_me: failed program was:" >&5
30368 sed 's/^/| /' conftest.$ac_ext >&5
30369
30370
30371                     echo "$as_me:$LINENO: result: no" >&5
30372 echo "${ECHO_T}no" >&6
30373                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30374 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30375    { (exit 1); exit 1; }; }
30376
30377
30378 fi
30379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30380
30381             CXXFLAGS=$save_CXXFLAGS
30382         fi
30383
30384
30385         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30386 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30387
30388   ac_find_libraries=
30389   for ac_dir in $SEARCH_LIB;
30390   do
30391     for ac_extension in a so sl dylib dll.a; do
30392       if test -f "$ac_dir/libXm.$ac_extension"; then
30393         ac_find_libraries=$ac_dir
30394         break 2
30395       fi
30396     done
30397   done
30398
30399
30400         if test "x$ac_find_libraries" != "x" ; then
30401             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30402 echo "${ECHO_T}found in $ac_find_libraries" >&6
30403
30404
30405     if test "$ac_find_libraries" = "default location"; then
30406     ac_path_to_link=""
30407   else
30408     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30409     result=$?
30410     if test $result = 0; then
30411       ac_path_to_link=""
30412     else
30413       ac_path_to_link=" -L$ac_find_libraries"
30414     fi
30415   fi
30416
30417             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30418         else
30419                                                 save_CXXFLAGS=$CXXFLAGS
30420             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30421             save_LIBS="$LIBS"
30422             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30423
30424             cat >conftest.$ac_ext <<_ACEOF
30425 /* confdefs.h.  */
30426 _ACEOF
30427 cat confdefs.h >>conftest.$ac_ext
30428 cat >>conftest.$ac_ext <<_ACEOF
30429 /* end confdefs.h.  */
30430
30431                     #include <Xm/Xm.h>
30432
30433 int
30434 main ()
30435 {
30436
30437                     int version;
30438                     version = xmUseVersion;
30439
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446   (eval $ac_link) 2>conftest.er1
30447   ac_status=$?
30448   grep -v '^ *+' conftest.er1 >conftest.err
30449   rm -f conftest.er1
30450   cat conftest.err >&5
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } &&
30453          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455   (eval $ac_try) 2>&5
30456   ac_status=$?
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); }; } &&
30459          { ac_try='test -s conftest$ac_exeext'
30460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461   (eval $ac_try) 2>&5
30462   ac_status=$?
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); }; }; then
30465
30466                     echo "$as_me:$LINENO: result: found in default search path" >&5
30467 echo "${ECHO_T}found in default search path" >&6
30468                     COMPILED_X_PROGRAM=1
30469
30470 else
30471   echo "$as_me: failed program was:" >&5
30472 sed 's/^/| /' conftest.$ac_ext >&5
30473
30474
30475                     echo "$as_me:$LINENO: result: no" >&5
30476 echo "${ECHO_T}no" >&6
30477                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
30478 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30479    { (exit 1); exit 1; }; }
30480
30481
30482 fi
30483 rm -f conftest.err conftest.$ac_objext \
30484       conftest$ac_exeext conftest.$ac_ext
30485
30486             CXXFLAGS=$save_CXXFLAGS
30487             LIBS="$save_LIBS"
30488         fi
30489
30490         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30491 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30492         libp_link=""
30493         libsm_ice_link=""
30494         libs_found=0
30495         for libp in "" " -lXp"; do
30496             if test "$libs_found" = "0"; then
30497                 for libsm_ice in "" " -lSM -lICE"; do
30498                     if test "$libs_found" = "0"; then
30499                         save_LIBS="$LIBS"
30500                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
30501                         save_CXXFLAGS=$CXXFLAGS
30502                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30503
30504                         cat >conftest.$ac_ext <<_ACEOF
30505 /* confdefs.h.  */
30506 _ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h.  */
30510
30511                                 #include <Xm/Xm.h>
30512                                 #include <Xm/List.h>
30513
30514 int
30515 main ()
30516 {
30517
30518                                 XmString string = NULL;
30519                                 Widget w = NULL;
30520                                 int position = 0;
30521                                 XmListAddItem(w, string, position);
30522
30523   ;
30524   return 0;
30525 }
30526 _ACEOF
30527 rm -f conftest.$ac_objext conftest$ac_exeext
30528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529   (eval $ac_link) 2>conftest.er1
30530   ac_status=$?
30531   grep -v '^ *+' conftest.er1 >conftest.err
30532   rm -f conftest.er1
30533   cat conftest.err >&5
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); } &&
30536          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538   (eval $ac_try) 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); }; } &&
30542          { ac_try='test -s conftest$ac_exeext'
30543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544   (eval $ac_try) 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548
30549                                 libp_link="$libp"
30550                                 libsm_ice_link="$libsm_ice"
30551                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30552 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30553                                 libs_found=1
30554
30555 else
30556   echo "$as_me: failed program was:" >&5
30557 sed 's/^/| /' conftest.$ac_ext >&5
30558
30559
30560
30561 fi
30562 rm -f conftest.err conftest.$ac_objext \
30563       conftest$ac_exeext conftest.$ac_ext
30564
30565                         LIBS="$save_LIBS"
30566                         CXXFLAGS=$save_CXXFLAGS
30567                     fi
30568                 done
30569             fi
30570         done
30571
30572         if test "$libs_found" = "0"; then
30573             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30574 echo "${ECHO_T}can't find the right libraries" >&6
30575             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30576 echo "$as_me: error: can't link a simple motif program" >&2;}
30577    { (exit 1); exit 1; }; }
30578         fi
30579
30580                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30581 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30582 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30583   echo $ECHO_N "(cached) $ECHO_C" >&6
30584 else
30585   ac_check_lib_save_LIBS=$LIBS
30586 LIBS="-lSgm  $LIBS"
30587 cat >conftest.$ac_ext <<_ACEOF
30588 /* confdefs.h.  */
30589 _ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h.  */
30593
30594 /* Override any gcc2 internal prototype to avoid an error.  */
30595 #ifdef __cplusplus
30596 extern "C"
30597 #endif
30598 /* We use char because int might match the return type of a gcc2
30599    builtin and then its argument prototype would still apply.  */
30600 char SgCreateList ();
30601 int
30602 main ()
30603 {
30604 SgCreateList ();
30605   ;
30606   return 0;
30607 }
30608 _ACEOF
30609 rm -f conftest.$ac_objext conftest$ac_exeext
30610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30611   (eval $ac_link) 2>conftest.er1
30612   ac_status=$?
30613   grep -v '^ *+' conftest.er1 >conftest.err
30614   rm -f conftest.er1
30615   cat conftest.err >&5
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); } &&
30618          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620   (eval $ac_try) 2>&5
30621   ac_status=$?
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); }; } &&
30624          { ac_try='test -s conftest$ac_exeext'
30625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626   (eval $ac_try) 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); }; }; then
30630   ac_cv_lib_Sgm_SgCreateList=yes
30631 else
30632   echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30634
30635 ac_cv_lib_Sgm_SgCreateList=no
30636 fi
30637 rm -f conftest.err conftest.$ac_objext \
30638       conftest$ac_exeext conftest.$ac_ext
30639 LIBS=$ac_check_lib_save_LIBS
30640 fi
30641 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30642 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30643 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30644   libsgm_link=" -lSgm"
30645 fi
30646
30647
30648         save_CXXFLAGS=$CXXFLAGS
30649         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30650
30651         echo "$as_me:$LINENO: checking for Motif 2" >&5
30652 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
30653 if test "${wx_cv_lib_motif2+set}" = set; then
30654   echo $ECHO_N "(cached) $ECHO_C" >&6
30655 else
30656   cat >conftest.$ac_ext <<_ACEOF
30657 /* confdefs.h.  */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h.  */
30662
30663                             #include <Xm/Xm.h>
30664
30665 int
30666 main ()
30667 {
30668
30669                             #if XmVersion < 2000
30670                             Not Motif 2
30671                             #endif
30672
30673   ;
30674   return 0;
30675 }
30676 _ACEOF
30677 rm -f conftest.$ac_objext
30678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30679   (eval $ac_compile) 2>conftest.er1
30680   ac_status=$?
30681   grep -v '^ *+' conftest.er1 >conftest.err
30682   rm -f conftest.er1
30683   cat conftest.err >&5
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); } &&
30686          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688   (eval $ac_try) 2>&5
30689   ac_status=$?
30690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691   (exit $ac_status); }; } &&
30692          { ac_try='test -s conftest.$ac_objext'
30693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694   (eval $ac_try) 2>&5
30695   ac_status=$?
30696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697   (exit $ac_status); }; }; then
30698   wx_cv_lib_motif2="yes"
30699 else
30700   echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.$ac_ext >&5
30702
30703 wx_cv_lib_motif2="no"
30704 fi
30705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30706 fi
30707 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30708 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30709         if test "$wx_cv_lib_motif2" = "yes"; then
30710             cat >>confdefs.h <<\_ACEOF
30711 #define __WXMOTIF20__ 1
30712 _ACEOF
30713
30714         else
30715             cat >>confdefs.h <<\_ACEOF
30716 #define __WXMOTIF20__ 0
30717 _ACEOF
30718
30719         fi
30720
30721         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30722 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
30723 if test "${wx_cv_lib_lesstif+set}" = set; then
30724   echo $ECHO_N "(cached) $ECHO_C" >&6
30725 else
30726   cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732
30733                             #include <Xm/Xm.h>
30734
30735 int
30736 main ()
30737 {
30738
30739                             #if !defined(LesstifVersion) || LesstifVersion <= 0
30740                             Not Lesstif
30741                             #endif
30742
30743   ;
30744   return 0;
30745 }
30746 _ACEOF
30747 rm -f conftest.$ac_objext
30748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30749   (eval $ac_compile) 2>conftest.er1
30750   ac_status=$?
30751   grep -v '^ *+' conftest.er1 >conftest.err
30752   rm -f conftest.er1
30753   cat conftest.err >&5
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); } &&
30756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758   (eval $ac_try) 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); }; } &&
30762          { ac_try='test -s conftest.$ac_objext'
30763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30764   (eval $ac_try) 2>&5
30765   ac_status=$?
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); }; }; then
30768   wx_cv_lib_lesstif="yes"
30769 else
30770   echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773 wx_cv_lib_lesstif="no"
30774 fi
30775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30776
30777 fi
30778 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30779 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30780         if test "$wx_cv_lib_lesstif" = "yes"; then
30781             cat >>confdefs.h <<\_ACEOF
30782 #define __WXLESSTIF__ 1
30783 _ACEOF
30784
30785         else
30786             cat >>confdefs.h <<\_ACEOF
30787 #define __WXLESSTIF__ 0
30788 _ACEOF
30789
30790         fi
30791
30792         CXXFLAGS=$save_CXXFLAGS
30793
30794         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
30795         TOOLKIT=MOTIF
30796         GUIDIST=MOTIF_DIST
30797     fi
30798
30799         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30800                 if test "$wxUSE_LIBXPM" = "sys"; then
30801             echo "$as_me:$LINENO: checking for Xpm library" >&5
30802 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30803
30804   ac_find_libraries=
30805   for ac_dir in $SEARCH_LIB;
30806   do
30807     for ac_extension in a so sl dylib dll.a; do
30808       if test -f "$ac_dir/libXpm.$ac_extension"; then
30809         ac_find_libraries=$ac_dir
30810         break 2
30811       fi
30812     done
30813   done
30814
30815             if test "$ac_find_libraries" != "" ; then
30816
30817     if test "$ac_find_libraries" = "default location"; then
30818     ac_path_to_link=""
30819   else
30820     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30821     result=$?
30822     if test $result = 0; then
30823       ac_path_to_link=""
30824     else
30825       ac_path_to_link=" -L$ac_find_libraries"
30826     fi
30827   fi
30828
30829                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30830                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30831 echo "${ECHO_T}found in $ac_find_libraries" >&6
30832
30833                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30834 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30835 if test "${wx_cv_x11_xpm_h+set}" = set; then
30836   echo $ECHO_N "(cached) $ECHO_C" >&6
30837 else
30838
30839                         save_CXXFLAGS=$CXXFLAGS
30840                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30841
30842                         cat >conftest.$ac_ext <<_ACEOF
30843 /* confdefs.h.  */
30844 _ACEOF
30845 cat confdefs.h >>conftest.$ac_ext
30846 cat >>conftest.$ac_ext <<_ACEOF
30847 /* end confdefs.h.  */
30848
30849                                 #include <X11/xpm.h>
30850
30851 int
30852 main ()
30853 {
30854
30855                                 int version;
30856                                 version = XpmLibraryVersion();
30857
30858   ;
30859   return 0;
30860 }
30861 _ACEOF
30862 rm -f conftest.$ac_objext
30863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30864   (eval $ac_compile) 2>conftest.er1
30865   ac_status=$?
30866   grep -v '^ *+' conftest.er1 >conftest.err
30867   rm -f conftest.er1
30868   cat conftest.err >&5
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); } &&
30871          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30873   (eval $ac_try) 2>&5
30874   ac_status=$?
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); }; } &&
30877          { ac_try='test -s conftest.$ac_objext'
30878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30879   (eval $ac_try) 2>&5
30880   ac_status=$?
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); }; }; then
30883   wx_cv_x11_xpm_h=yes
30884 else
30885   echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30887
30888 wx_cv_x11_xpm_h=no
30889
30890 fi
30891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30892
30893                         CXXFLAGS=$save_CXXFLAGS
30894
30895
30896 fi
30897 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30898 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30899
30900                 if test $wx_cv_x11_xpm_h = "yes"; then
30901                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30902                     cat >>confdefs.h <<\_ACEOF
30903 #define wxHAVE_LIB_XPM 1
30904 _ACEOF
30905
30906                 else
30907                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30908 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30909                 fi
30910             fi
30911
30912         fi
30913
30914                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30915 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30916 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30917   echo $ECHO_N "(cached) $ECHO_C" >&6
30918 else
30919   ac_check_lib_save_LIBS=$LIBS
30920 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30921 cat >conftest.$ac_ext <<_ACEOF
30922 /* confdefs.h.  */
30923 _ACEOF
30924 cat confdefs.h >>conftest.$ac_ext
30925 cat >>conftest.$ac_ext <<_ACEOF
30926 /* end confdefs.h.  */
30927
30928 /* Override any gcc2 internal prototype to avoid an error.  */
30929 #ifdef __cplusplus
30930 extern "C"
30931 #endif
30932 /* We use char because int might match the return type of a gcc2
30933    builtin and then its argument prototype would still apply.  */
30934 char XShapeQueryExtension ();
30935 int
30936 main ()
30937 {
30938 XShapeQueryExtension ();
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext conftest$ac_exeext
30944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30945   (eval $ac_link) 2>conftest.er1
30946   ac_status=$?
30947   grep -v '^ *+' conftest.er1 >conftest.err
30948   rm -f conftest.er1
30949   cat conftest.err >&5
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } &&
30952          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954   (eval $ac_try) 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; } &&
30958          { ac_try='test -s conftest$ac_exeext'
30959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960   (eval $ac_try) 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); }; }; then
30964   ac_cv_lib_Xext_XShapeQueryExtension=yes
30965 else
30966   echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30968
30969 ac_cv_lib_Xext_XShapeQueryExtension=no
30970 fi
30971 rm -f conftest.err conftest.$ac_objext \
30972       conftest$ac_exeext conftest.$ac_ext
30973 LIBS=$ac_check_lib_save_LIBS
30974 fi
30975 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30976 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30977 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30978
30979                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30980                       wxHAVE_XEXT_LIB=1
30981
30982 fi
30983
30984
30985         if test "$wxHAVE_XEXT_LIB" = 1; then
30986             save_CXXFLAGS="$CXXFLAGS"
30987             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30988
30989             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30990 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30991             cat >conftest.$ac_ext <<_ACEOF
30992 /* confdefs.h.  */
30993 _ACEOF
30994 cat confdefs.h >>conftest.$ac_ext
30995 cat >>conftest.$ac_ext <<_ACEOF
30996 /* end confdefs.h.  */
30997
30998                             #include <X11/Xlib.h>
30999                             #include <X11/extensions/shape.h>
31000
31001 int
31002 main ()
31003 {
31004
31005                             int dummy1, dummy2;
31006                             XShapeQueryExtension((Display*)NULL,
31007                                                  (int*)NULL, (int*)NULL);
31008
31009   ;
31010   return 0;
31011 }
31012 _ACEOF
31013 rm -f conftest.$ac_objext
31014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31015   (eval $ac_compile) 2>conftest.er1
31016   ac_status=$?
31017   grep -v '^ *+' conftest.er1 >conftest.err
31018   rm -f conftest.er1
31019   cat conftest.err >&5
31020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021   (exit $ac_status); } &&
31022          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024   (eval $ac_try) 2>&5
31025   ac_status=$?
31026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027   (exit $ac_status); }; } &&
31028          { ac_try='test -s conftest.$ac_objext'
31029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030   (eval $ac_try) 2>&5
31031   ac_status=$?
31032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); }; }; then
31034
31035                             cat >>confdefs.h <<\_ACEOF
31036 #define HAVE_XSHAPE 1
31037 _ACEOF
31038
31039                             echo "$as_me:$LINENO: result: found" >&5
31040 echo "${ECHO_T}found" >&6
31041
31042 else
31043   echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31045
31046
31047                             echo "$as_me:$LINENO: result: not found" >&5
31048 echo "${ECHO_T}not found" >&6
31049
31050 fi
31051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31052             CXXFLAGS="$save_CXXFLAGS"
31053
31054         fi
31055     fi
31056
31057     if test "$wxUSE_MAC" = 1; then
31058         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31059 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31060         if test "$GCC" = yes; then
31061             echo "$as_me:$LINENO: result: gcc" >&5
31062 echo "${ECHO_T}gcc" >&6
31063             CPPFLAGS_PASCAL="-fpascal-strings"
31064         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31065             echo "$as_me:$LINENO: result: xlc" >&5
31066 echo "${ECHO_T}xlc" >&6
31067             CPPFLAGS_PASCAL="-qmacpstr"
31068         else
31069             echo "$as_me:$LINENO: result: none" >&5
31070 echo "${ECHO_T}none" >&6
31071         fi
31072
31073         if test "x$wxUSE_UNIX" = "xyes"; then
31074             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31075         else
31076                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31077         fi
31078
31079         TOOLKIT=MAC
31080                 GUIDIST=MACX_DIST
31081                         WXBASEPORT="_carbon"
31082     fi
31083
31084     if test "$wxUSE_COCOA" = 1; then
31085         TOOLKIT=COCOA
31086         GUIDIST=COCOA_DIST
31087     fi
31088
31089     if test "$wxUSE_PM" = 1; then
31090         TOOLKIT=PM
31091         GUIDIST=PM_DIST
31092         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31093 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31094 if test "${wx_cv_spbcdata+set}" = set; then
31095   echo $ECHO_N "(cached) $ECHO_C" >&6
31096 else
31097
31098                 cat >conftest.$ac_ext <<_ACEOF
31099 /* confdefs.h.  */
31100 _ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h.  */
31104
31105                         #define INCL_PM
31106                         #include <os2.h>
31107
31108 int
31109 main ()
31110 {
31111
31112                         SPBCDATA test;
31113
31114   ;
31115   return 0;
31116 }
31117 _ACEOF
31118 rm -f conftest.$ac_objext
31119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31120   (eval $ac_compile) 2>conftest.er1
31121   ac_status=$?
31122   grep -v '^ *+' conftest.er1 >conftest.err
31123   rm -f conftest.er1
31124   cat conftest.err >&5
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); } &&
31127          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129   (eval $ac_try) 2>&5
31130   ac_status=$?
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); }; } &&
31133          { ac_try='test -s conftest.$ac_objext'
31134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135   (eval $ac_try) 2>&5
31136   ac_status=$?
31137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138   (exit $ac_status); }; }; then
31139   wx_cv_spbcdata=yes
31140 else
31141   echo "$as_me: failed program was:" >&5
31142 sed 's/^/| /' conftest.$ac_ext >&5
31143
31144 wx_cv_spbcdata=no
31145
31146 fi
31147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31148
31149
31150 fi
31151 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31152 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31153
31154         if test $wx_cv_spbcdata = "yes"; then
31155             cat >>confdefs.h <<\_ACEOF
31156 #define HAVE_SPBCDATA 1
31157 _ACEOF
31158
31159         fi
31160     fi
31161
31162         if test "$TOOLKIT" = "PM" ; then
31163         TOOLKIT_DIR="os2"
31164     else
31165         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31166     fi
31167
31168     if test "$wxUSE_UNIVERSAL" = "yes"; then
31169         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31170         WIDGET_SET=univ
31171     fi
31172
31173         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31174     DISTDIR="wx\$(TOOLKIT)"
31175 else
31176     USE_GUI=0
31177
31178             TOOLKIT_DIR="base"
31179
31180         if test "$USE_WIN32" = 1 ; then
31181                         TOOLKIT="MSW"
31182     fi
31183
31184         GUIDIST="BASE_DIST"
31185     DISTDIR="wxBase"
31186 fi
31187
31188
31189 if test "$wxUSE_GUI" = "yes"; then
31190     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31191
31192 for ac_header in X11/Xlib.h
31193 do
31194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31196   echo "$as_me:$LINENO: checking for $ac_header" >&5
31197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31199   echo $ECHO_N "(cached) $ECHO_C" >&6
31200 fi
31201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31203 else
31204   # Is the header compilable?
31205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213 $ac_includes_default
31214 #include <$ac_header>
31215 _ACEOF
31216 rm -f conftest.$ac_objext
31217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31218   (eval $ac_compile) 2>conftest.er1
31219   ac_status=$?
31220   grep -v '^ *+' conftest.er1 >conftest.err
31221   rm -f conftest.er1
31222   cat conftest.err >&5
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); } &&
31225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227   (eval $ac_try) 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; } &&
31231          { ac_try='test -s conftest.$ac_objext'
31232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233   (eval $ac_try) 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); }; }; then
31237   ac_header_compiler=yes
31238 else
31239   echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31241
31242 ac_header_compiler=no
31243 fi
31244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31246 echo "${ECHO_T}$ac_header_compiler" >&6
31247
31248 # Is the header present?
31249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31251 cat >conftest.$ac_ext <<_ACEOF
31252 /* confdefs.h.  */
31253 _ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h.  */
31257 #include <$ac_header>
31258 _ACEOF
31259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31261   ac_status=$?
31262   grep -v '^ *+' conftest.er1 >conftest.err
31263   rm -f conftest.er1
31264   cat conftest.err >&5
31265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266   (exit $ac_status); } >/dev/null; then
31267   if test -s conftest.err; then
31268     ac_cpp_err=$ac_cxx_preproc_warn_flag
31269     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31270   else
31271     ac_cpp_err=
31272   fi
31273 else
31274   ac_cpp_err=yes
31275 fi
31276 if test -z "$ac_cpp_err"; then
31277   ac_header_preproc=yes
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282   ac_header_preproc=no
31283 fi
31284 rm -f conftest.err conftest.$ac_ext
31285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31286 echo "${ECHO_T}$ac_header_preproc" >&6
31287
31288 # So?  What about this header?
31289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31290   yes:no: )
31291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31295     ac_header_preproc=yes
31296     ;;
31297   no:yes:* )
31298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31310     (
31311       cat <<\_ASBOX
31312 ## ----------------------------------------- ##
31313 ## Report this to wx-dev@lists.wxwidgets.org ##
31314 ## ----------------------------------------- ##
31315 _ASBOX
31316     ) |
31317       sed "s/^/$as_me: WARNING:     /" >&2
31318     ;;
31319 esac
31320 echo "$as_me:$LINENO: checking for $ac_header" >&5
31321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31323   echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325   eval "$as_ac_Header=\$ac_header_preproc"
31326 fi
31327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31329
31330 fi
31331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31332   cat >>confdefs.h <<_ACEOF
31333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31334 _ACEOF
31335
31336 fi
31337
31338 done
31339
31340
31341 for ac_header in X11/XKBlib.h
31342 do
31343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31344 echo "$as_me:$LINENO: checking for $ac_header" >&5
31345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31347   echo $ECHO_N "(cached) $ECHO_C" >&6
31348 else
31349   cat >conftest.$ac_ext <<_ACEOF
31350 /* confdefs.h.  */
31351 _ACEOF
31352 cat confdefs.h >>conftest.$ac_ext
31353 cat >>conftest.$ac_ext <<_ACEOF
31354 /* end confdefs.h.  */
31355
31356                           #if HAVE_X11_XLIB_H
31357                             #include <X11/Xlib.h>
31358                           #endif
31359
31360
31361 #include <$ac_header>
31362 _ACEOF
31363 rm -f conftest.$ac_objext
31364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31365   (eval $ac_compile) 2>conftest.er1
31366   ac_status=$?
31367   grep -v '^ *+' conftest.er1 >conftest.err
31368   rm -f conftest.er1
31369   cat conftest.err >&5
31370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371   (exit $ac_status); } &&
31372          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31374   (eval $ac_try) 2>&5
31375   ac_status=$?
31376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377   (exit $ac_status); }; } &&
31378          { ac_try='test -s conftest.$ac_objext'
31379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380   (eval $ac_try) 2>&5
31381   ac_status=$?
31382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383   (exit $ac_status); }; }; then
31384   eval "$as_ac_Header=yes"
31385 else
31386   echo "$as_me: failed program was:" >&5
31387 sed 's/^/| /' conftest.$ac_ext >&5
31388
31389 eval "$as_ac_Header=no"
31390 fi
31391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31392 fi
31393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31396   cat >>confdefs.h <<_ACEOF
31397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31398 _ACEOF
31399
31400 fi
31401
31402 done
31403
31404     fi
31405 fi
31406
31407
31408
31409 IODBC_C_SRC=""
31410
31411
31412 if test "$TOOLKIT" != "MSW" ; then
31413
31414     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31415
31416         if test "${ac_cv_header_sql_h+set}" = set; then
31417   echo "$as_me:$LINENO: checking for sql.h" >&5
31418 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31419 if test "${ac_cv_header_sql_h+set}" = set; then
31420   echo $ECHO_N "(cached) $ECHO_C" >&6
31421 fi
31422 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31423 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31424 else
31425   # Is the header compilable?
31426 echo "$as_me:$LINENO: checking sql.h usability" >&5
31427 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31428 cat >conftest.$ac_ext <<_ACEOF
31429 /* confdefs.h.  */
31430 _ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h.  */
31434 $ac_includes_default
31435 #include <sql.h>
31436 _ACEOF
31437 rm -f conftest.$ac_objext
31438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31439   (eval $ac_compile) 2>conftest.er1
31440   ac_status=$?
31441   grep -v '^ *+' conftest.er1 >conftest.err
31442   rm -f conftest.er1
31443   cat conftest.err >&5
31444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445   (exit $ac_status); } &&
31446          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31448   (eval $ac_try) 2>&5
31449   ac_status=$?
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); }; } &&
31452          { ac_try='test -s conftest.$ac_objext'
31453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454   (eval $ac_try) 2>&5
31455   ac_status=$?
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); }; }; then
31458   ac_header_compiler=yes
31459 else
31460   echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31462
31463 ac_header_compiler=no
31464 fi
31465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31467 echo "${ECHO_T}$ac_header_compiler" >&6
31468
31469 # Is the header present?
31470 echo "$as_me:$LINENO: checking sql.h presence" >&5
31471 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31472 cat >conftest.$ac_ext <<_ACEOF
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478 #include <sql.h>
31479 _ACEOF
31480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31482   ac_status=$?
31483   grep -v '^ *+' conftest.er1 >conftest.err
31484   rm -f conftest.er1
31485   cat conftest.err >&5
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } >/dev/null; then
31488   if test -s conftest.err; then
31489     ac_cpp_err=$ac_cxx_preproc_warn_flag
31490     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31491   else
31492     ac_cpp_err=
31493   fi
31494 else
31495   ac_cpp_err=yes
31496 fi
31497 if test -z "$ac_cpp_err"; then
31498   ac_header_preproc=yes
31499 else
31500   echo "$as_me: failed program was:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31502
31503   ac_header_preproc=no
31504 fi
31505 rm -f conftest.err conftest.$ac_ext
31506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31507 echo "${ECHO_T}$ac_header_preproc" >&6
31508
31509 # So?  What about this header?
31510 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31511   yes:no: )
31512     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31513 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31514     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31515 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31516     ac_header_preproc=yes
31517     ;;
31518   no:yes:* )
31519     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31520 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
31521     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
31522 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
31523     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31524 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31525     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
31526 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31527     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31528 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
31529     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31530 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
31531     (
31532       cat <<\_ASBOX
31533 ## ----------------------------------------- ##
31534 ## Report this to wx-dev@lists.wxwidgets.org ##
31535 ## ----------------------------------------- ##
31536 _ASBOX
31537     ) |
31538       sed "s/^/$as_me: WARNING:     /" >&2
31539     ;;
31540 esac
31541 echo "$as_me:$LINENO: checking for sql.h" >&5
31542 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31543 if test "${ac_cv_header_sql_h+set}" = set; then
31544   echo $ECHO_N "(cached) $ECHO_C" >&6
31545 else
31546   ac_cv_header_sql_h=$ac_header_preproc
31547 fi
31548 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31549 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31550
31551 fi
31552 if test $ac_cv_header_sql_h = yes; then
31553   found_sql_h=1
31554 fi
31555
31556
31557         if test "x$found_sql_h" = "x1" ; then
31558             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31559 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31560 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31561   echo $ECHO_N "(cached) $ECHO_C" >&6
31562 else
31563   ac_check_lib_save_LIBS=$LIBS
31564 LIBS="-liodbc  $LIBS"
31565 cat >conftest.$ac_ext <<_ACEOF
31566 /* confdefs.h.  */
31567 _ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h.  */
31571
31572 /* Override any gcc2 internal prototype to avoid an error.  */
31573 #ifdef __cplusplus
31574 extern "C"
31575 #endif
31576 /* We use char because int might match the return type of a gcc2
31577    builtin and then its argument prototype would still apply.  */
31578 char SQLAllocEnv ();
31579 int
31580 main ()
31581 {
31582 SQLAllocEnv ();
31583   ;
31584   return 0;
31585 }
31586 _ACEOF
31587 rm -f conftest.$ac_objext conftest$ac_exeext
31588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31589   (eval $ac_link) 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } &&
31596          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31598   (eval $ac_try) 2>&5
31599   ac_status=$?
31600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601   (exit $ac_status); }; } &&
31602          { ac_try='test -s conftest$ac_exeext'
31603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31604   (eval $ac_try) 2>&5
31605   ac_status=$?
31606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607   (exit $ac_status); }; }; then
31608   ac_cv_lib_iodbc_SQLAllocEnv=yes
31609 else
31610   echo "$as_me: failed program was:" >&5
31611 sed 's/^/| /' conftest.$ac_ext >&5
31612
31613 ac_cv_lib_iodbc_SQLAllocEnv=no
31614 fi
31615 rm -f conftest.err conftest.$ac_objext \
31616       conftest$ac_exeext conftest.$ac_ext
31617 LIBS=$ac_check_lib_save_LIBS
31618 fi
31619 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31620 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31621 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31622   ODBC_LINK=" -liodbc"
31623 else
31624
31625                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31626 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31627 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31628   echo $ECHO_N "(cached) $ECHO_C" >&6
31629 else
31630   ac_check_lib_save_LIBS=$LIBS
31631 LIBS="-lunixodbc  $LIBS"
31632 cat >conftest.$ac_ext <<_ACEOF
31633 /* confdefs.h.  */
31634 _ACEOF
31635 cat confdefs.h >>conftest.$ac_ext
31636 cat >>conftest.$ac_ext <<_ACEOF
31637 /* end confdefs.h.  */
31638
31639 /* Override any gcc2 internal prototype to avoid an error.  */
31640 #ifdef __cplusplus
31641 extern "C"
31642 #endif
31643 /* We use char because int might match the return type of a gcc2
31644    builtin and then its argument prototype would still apply.  */
31645 char SQLAllocEnv ();
31646 int
31647 main ()
31648 {
31649 SQLAllocEnv ();
31650   ;
31651   return 0;
31652 }
31653 _ACEOF
31654 rm -f conftest.$ac_objext conftest$ac_exeext
31655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31656   (eval $ac_link) 2>conftest.er1
31657   ac_status=$?
31658   grep -v '^ *+' conftest.er1 >conftest.err
31659   rm -f conftest.er1
31660   cat conftest.err >&5
31661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662   (exit $ac_status); } &&
31663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665   (eval $ac_try) 2>&5
31666   ac_status=$?
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); }; } &&
31669          { ac_try='test -s conftest$ac_exeext'
31670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671   (eval $ac_try) 2>&5
31672   ac_status=$?
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); }; }; then
31675   ac_cv_lib_unixodbc_SQLAllocEnv=yes
31676 else
31677   echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.$ac_ext >&5
31679
31680 ac_cv_lib_unixodbc_SQLAllocEnv=no
31681 fi
31682 rm -f conftest.err conftest.$ac_objext \
31683       conftest$ac_exeext conftest.$ac_ext
31684 LIBS=$ac_check_lib_save_LIBS
31685 fi
31686 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31687 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31688 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31689   ODBC_LINK=" -lunixodbc"
31690 else
31691
31692                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31693 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31694 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31695   echo $ECHO_N "(cached) $ECHO_C" >&6
31696 else
31697   ac_check_lib_save_LIBS=$LIBS
31698 LIBS="-lodbc  $LIBS"
31699 cat >conftest.$ac_ext <<_ACEOF
31700 /* confdefs.h.  */
31701 _ACEOF
31702 cat confdefs.h >>conftest.$ac_ext
31703 cat >>conftest.$ac_ext <<_ACEOF
31704 /* end confdefs.h.  */
31705
31706 /* Override any gcc2 internal prototype to avoid an error.  */
31707 #ifdef __cplusplus
31708 extern "C"
31709 #endif
31710 /* We use char because int might match the return type of a gcc2
31711    builtin and then its argument prototype would still apply.  */
31712 char SQLAllocEnv ();
31713 int
31714 main ()
31715 {
31716 SQLAllocEnv ();
31717   ;
31718   return 0;
31719 }
31720 _ACEOF
31721 rm -f conftest.$ac_objext conftest$ac_exeext
31722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31723   (eval $ac_link) 2>conftest.er1
31724   ac_status=$?
31725   grep -v '^ *+' conftest.er1 >conftest.err
31726   rm -f conftest.er1
31727   cat conftest.err >&5
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); } &&
31730          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732   (eval $ac_try) 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); }; } &&
31736          { ac_try='test -s conftest$ac_exeext'
31737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738   (eval $ac_try) 2>&5
31739   ac_status=$?
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); }; }; then
31742   ac_cv_lib_odbc_SQLAllocEnv=yes
31743 else
31744   echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31746
31747 ac_cv_lib_odbc_SQLAllocEnv=no
31748 fi
31749 rm -f conftest.err conftest.$ac_objext \
31750       conftest$ac_exeext conftest.$ac_ext
31751 LIBS=$ac_check_lib_save_LIBS
31752 fi
31753 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31754 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31755 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31756   ODBC_LINK=" -lodbc"
31757 fi
31758
31759
31760 fi
31761
31762
31763 fi
31764
31765         fi
31766         if test "x$ODBC_LINK" = "x" ; then
31767             if test "$wxUSE_ODBC" = "sys" ; then
31768                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31769 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31770    { (exit 1); exit 1; }; }
31771             else
31772                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31773 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31774                 wxUSE_ODBC=builtin
31775             fi
31776         else
31777                         wxUSE_ODBC=sys
31778         fi
31779     fi
31780
31781     if test "$wxUSE_ODBC" = "builtin" ; then
31782         cat >>confdefs.h <<\_ACEOF
31783 #define wxUSE_BUILTIN_IODBC 1
31784 _ACEOF
31785
31786     fi
31787 fi
31788
31789 if test "$wxUSE_ODBC" != "no" ; then
31790     cat >>confdefs.h <<\_ACEOF
31791 #define wxUSE_ODBC 1
31792 _ACEOF
31793
31794     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31795
31796         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
31797 fi
31798
31799
31800 if test "$wxUSE_DISPLAY" = "yes"; then
31801     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
31802         echo "$as_me:$LINENO: checking for Xinerama" >&5
31803 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31804
31805   ac_find_libraries=
31806   for ac_dir in $SEARCH_LIB;
31807   do
31808     for ac_extension in a so sl dylib dll.a; do
31809       if test -f "$ac_dir/libXinerama.$ac_extension"; then
31810         ac_find_libraries=$ac_dir
31811         break 2
31812       fi
31813     done
31814   done
31815
31816         if test "$ac_find_libraries" != "" ; then
31817
31818     if test "$ac_find_libraries" = "default location"; then
31819     ac_path_to_link=""
31820   else
31821     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31822     result=$?
31823     if test $result = 0; then
31824       ac_path_to_link=""
31825     else
31826       ac_path_to_link=" -L$ac_find_libraries"
31827     fi
31828   fi
31829
31830             if test "$ac_path_to_link" != " -L/usr/lib" ; then
31831                 LDFLAGS="$LDFLAGS $ac_path_to_link"
31832             fi
31833             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31834             echo "$as_me:$LINENO: result: yes" >&5
31835 echo "${ECHO_T}yes" >&6
31836
31837             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31838 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31839
31840   ac_find_libraries=
31841   for ac_dir in $SEARCH_LIB;
31842   do
31843     for ac_extension in a so sl dylib dll.a; do
31844       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31845         ac_find_libraries=$ac_dir
31846         break 2
31847       fi
31848     done
31849   done
31850
31851             if test "$ac_find_libraries" != "" ; then
31852                 echo "$as_me:$LINENO: result: yes" >&5
31853 echo "${ECHO_T}yes" >&6
31854
31855 for ac_header in X11/extensions/xf86vmode.h
31856 do
31857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31858 echo "$as_me:$LINENO: checking for $ac_header" >&5
31859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31861   echo $ECHO_N "(cached) $ECHO_C" >&6
31862 else
31863   cat >conftest.$ac_ext <<_ACEOF
31864 /* confdefs.h.  */
31865 _ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h.  */
31869
31870                                       #if HAVE_X11_XLIB_H
31871                                         #include <X11/Xlib.h>
31872                                       #endif
31873
31874
31875 #include <$ac_header>
31876 _ACEOF
31877 rm -f conftest.$ac_objext
31878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31879   (eval $ac_compile) 2>conftest.er1
31880   ac_status=$?
31881   grep -v '^ *+' conftest.er1 >conftest.err
31882   rm -f conftest.er1
31883   cat conftest.err >&5
31884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885   (exit $ac_status); } &&
31886          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888   (eval $ac_try) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); }; } &&
31892          { ac_try='test -s conftest.$ac_objext'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; }; then
31898   eval "$as_ac_Header=yes"
31899 else
31900   echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 eval "$as_ac_Header=no"
31904 fi
31905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31906 fi
31907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31910   cat >>confdefs.h <<_ACEOF
31911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31912 _ACEOF
31913
31914                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31915
31916 fi
31917
31918 done
31919
31920             else
31921                 echo "$as_me:$LINENO: result: no" >&5
31922 echo "${ECHO_T}no" >&6
31923             fi
31924
31925         else
31926             echo "$as_me:$LINENO: result: no" >&5
31927 echo "${ECHO_T}no" >&6
31928             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31929 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
31930             wxUSE_DISPLAY="no"
31931         fi
31932     elif test "$wxUSE_MSW" = 1; then
31933
31934 for ac_header in ddraw.h
31935 do
31936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31937 echo "$as_me:$LINENO: checking for $ac_header" >&5
31938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31940   echo $ECHO_N "(cached) $ECHO_C" >&6
31941 else
31942   cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h.  */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h.  */
31948 #include <windows.h>
31949
31950 #include <$ac_header>
31951 _ACEOF
31952 rm -f conftest.$ac_objext
31953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31954   (eval $ac_compile) 2>conftest.er1
31955   ac_status=$?
31956   grep -v '^ *+' conftest.er1 >conftest.err
31957   rm -f conftest.er1
31958   cat conftest.err >&5
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); } &&
31961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963   (eval $ac_try) 2>&5
31964   ac_status=$?
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); }; } &&
31967          { ac_try='test -s conftest.$ac_objext'
31968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969   (eval $ac_try) 2>&5
31970   ac_status=$?
31971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972   (exit $ac_status); }; }; then
31973   eval "$as_ac_Header=yes"
31974 else
31975   echo "$as_me: failed program was:" >&5
31976 sed 's/^/| /' conftest.$ac_ext >&5
31977
31978 eval "$as_ac_Header=no"
31979 fi
31980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31981 fi
31982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31985   cat >>confdefs.h <<_ACEOF
31986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31987 _ACEOF
31988
31989 fi
31990
31991 done
31992
31993     fi
31994 fi
31995
31996
31997 USE_OPENGL=0
31998 if test "$wxUSE_OPENGL" = "yes"; then
31999     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32000         OPENGL_LIBS="-framework OpenGL -framework AGL"
32001     elif test "$wxUSE_MSW" = 1; then
32002         OPENGL_LIBS="-lopengl32 -lglu32"
32003     else
32004
32005
32006 ac_find_includes=
32007 for ac_dir in $SEARCH_INCLUDE /usr/include;
32008   do
32009     if test -f "$ac_dir/GL/gl.h"; then
32010       ac_find_includes=$ac_dir
32011       break
32012     fi
32013   done
32014
32015         if test "$ac_find_includes" != "" ; then
32016             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32017 echo "${ECHO_T}found in $ac_find_includes" >&6
32018
32019     if test "x$ac_find_includes" = "x/usr/include"; then
32020     ac_path_to_include=""
32021   else
32022     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32023     result=$?
32024     if test $result = 0; then
32025       ac_path_to_include=""
32026     else
32027       ac_path_to_include=" -I$ac_find_includes"
32028     fi
32029   fi
32030
32031             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32032         fi
32033
32034         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32035   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32036 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32037 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32038   echo $ECHO_N "(cached) $ECHO_C" >&6
32039 fi
32040 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32041 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32042 else
32043   # Is the header compilable?
32044 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32045 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32046 cat >conftest.$ac_ext <<_ACEOF
32047 /* confdefs.h.  */
32048 _ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h.  */
32052 $ac_includes_default
32053 #include <GL/gl.h>
32054 _ACEOF
32055 rm -f conftest.$ac_objext
32056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32057   (eval $ac_compile) 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } &&
32064          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066   (eval $ac_try) 2>&5
32067   ac_status=$?
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); }; } &&
32070          { ac_try='test -s conftest.$ac_objext'
32071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072   (eval $ac_try) 2>&5
32073   ac_status=$?
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); }; }; then
32076   ac_header_compiler=yes
32077 else
32078   echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32080
32081 ac_header_compiler=no
32082 fi
32083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32085 echo "${ECHO_T}$ac_header_compiler" >&6
32086
32087 # Is the header present?
32088 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32089 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32090 cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h.  */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h.  */
32096 #include <GL/gl.h>
32097 _ACEOF
32098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32100   ac_status=$?
32101   grep -v '^ *+' conftest.er1 >conftest.err
32102   rm -f conftest.er1
32103   cat conftest.err >&5
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); } >/dev/null; then
32106   if test -s conftest.err; then
32107     ac_cpp_err=$ac_cxx_preproc_warn_flag
32108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32109   else
32110     ac_cpp_err=
32111   fi
32112 else
32113   ac_cpp_err=yes
32114 fi
32115 if test -z "$ac_cpp_err"; then
32116   ac_header_preproc=yes
32117 else
32118   echo "$as_me: failed program was:" >&5
32119 sed 's/^/| /' conftest.$ac_ext >&5
32120
32121   ac_header_preproc=no
32122 fi
32123 rm -f conftest.err conftest.$ac_ext
32124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32125 echo "${ECHO_T}$ac_header_preproc" >&6
32126
32127 # So?  What about this header?
32128 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32129   yes:no: )
32130     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32131 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32132     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32133 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32134     ac_header_preproc=yes
32135     ;;
32136   no:yes:* )
32137     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32138 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32139     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32140 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32141     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32142 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32143     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32144 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32145     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32146 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32147     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32148 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32149     (
32150       cat <<\_ASBOX
32151 ## ----------------------------------------- ##
32152 ## Report this to wx-dev@lists.wxwidgets.org ##
32153 ## ----------------------------------------- ##
32154 _ASBOX
32155     ) |
32156       sed "s/^/$as_me: WARNING:     /" >&2
32157     ;;
32158 esac
32159 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32160 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32161 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32162   echo $ECHO_N "(cached) $ECHO_C" >&6
32163 else
32164   ac_cv_header_GL_gl_h=$ac_header_preproc
32165 fi
32166 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32167 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32168
32169 fi
32170 if test $ac_cv_header_GL_gl_h = yes; then
32171
32172                 found_gl=0
32173
32174                 echo "$as_me:$LINENO: checking for -lGL" >&5
32175 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32176
32177   ac_find_libraries=
32178   for ac_dir in $SEARCH_LIB;
32179   do
32180     for ac_extension in a so sl dylib dll.a; do
32181       if test -f "$ac_dir/libGL.$ac_extension"; then
32182         ac_find_libraries=$ac_dir
32183         break 2
32184       fi
32185     done
32186   done
32187
32188                 if test "$ac_find_libraries" != "" ; then
32189                     echo "$as_me:$LINENO: result: yes" >&5
32190 echo "${ECHO_T}yes" >&6
32191
32192
32193     if test "$ac_find_libraries" = "default location"; then
32194     ac_path_to_link=""
32195   else
32196     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32197     result=$?
32198     if test $result = 0; then
32199       ac_path_to_link=""
32200     else
32201       ac_path_to_link=" -L$ac_find_libraries"
32202     fi
32203   fi
32204
32205                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32206                         LDFLAGS_GL="$ac_path_to_link"
32207                     fi
32208
32209                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
32210 echo $ECHO_N "checking for -lGLU... $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/libGLU.$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                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32238                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32239                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32240                         fi
32241
32242                         found_gl=1
32243                         OPENGL_LIBS="-lGL -lGLU"
32244                         echo "$as_me:$LINENO: result: yes" >&5
32245 echo "${ECHO_T}yes" >&6
32246                     else
32247                         echo "$as_me:$LINENO: result: no" >&5
32248 echo "${ECHO_T}no" >&6
32249                     fi
32250                 else
32251                     echo "$as_me:$LINENO: result: no" >&5
32252 echo "${ECHO_T}no" >&6
32253                 fi
32254
32255                 if test "$found_gl" != 1; then
32256                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32257 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32258
32259   ac_find_libraries=
32260   for ac_dir in $SEARCH_LIB;
32261   do
32262     for ac_extension in a so sl dylib dll.a; do
32263       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32264         ac_find_libraries=$ac_dir
32265         break 2
32266       fi
32267     done
32268   done
32269
32270                     if test "$ac_find_libraries" != "" ; then
32271
32272     if test "$ac_find_libraries" = "default location"; then
32273     ac_path_to_link=""
32274   else
32275     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32276     result=$?
32277     if test $result = 0; then
32278       ac_path_to_link=""
32279     else
32280       ac_path_to_link=" -L$ac_find_libraries"
32281     fi
32282   fi
32283
32284                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32285                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32286                         echo "$as_me:$LINENO: result: yes" >&5
32287 echo "${ECHO_T}yes" >&6
32288                     else
32289                         echo "$as_me:$LINENO: result: no" >&5
32290 echo "${ECHO_T}no" >&6
32291                     fi
32292                 fi
32293
32294 fi
32295
32296
32297
32298         if test "x$OPENGL_LIBS" = "x"; then
32299                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32300 echo "$as_me: error: OpenGL libraries not available" >&2;}
32301    { (exit 1); exit 1; }; }
32302         fi
32303     fi
32304
32305     if test "$wxUSE_OPENGL" = "yes"; then
32306         USE_OPENGL=1
32307         cat >>confdefs.h <<\_ACEOF
32308 #define wxUSE_OPENGL 1
32309 _ACEOF
32310
32311         cat >>confdefs.h <<\_ACEOF
32312 #define wxUSE_GLCANVAS 1
32313 _ACEOF
32314
32315         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32316     fi
32317 fi
32318
32319
32320 if test -n "$TOOLKIT" ; then
32321     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32322 fi
32323
32324
32325
32326 if test "$wxUSE_SHARED" = "yes"; then
32327     case "${host}" in
32328       *-pc-msdosdjgpp )
32329                 wxUSE_SHARED=no
32330         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32331 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32332       ;;
32333     esac
32334 fi
32335
32336 if test "$wxUSE_SHARED" = "yes"; then
32337
32338
32339   found_versioning=no
32340
32341
32342     if test $found_versioning = no ; then
32343       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32344 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32345 if test "${wx_cv_version_script+set}" = set; then
32346   echo $ECHO_N "(cached) $ECHO_C" >&6
32347 else
32348
32349         echo "VER_1 { *; };" >conftest.sym
32350         echo "int main() { return 0; }" >conftest.cpp
32351
32352         if { ac_try='
32353                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32354                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356   (eval $ac_try) 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); }; } ; then
32360           if test -s conftest.stderr ; then
32361               wx_cv_version_script=no
32362           else
32363               wx_cv_version_script=yes
32364           fi
32365         else
32366           wx_cv_version_script=no
32367         fi
32368
32369                                                                                                 if test $wx_cv_version_script = yes
32370         then
32371           echo "struct B { virtual ~B() { } }; \
32372                 struct D : public B { }; \
32373                 void F() { D d; }" > conftest.cpp
32374
32375           if { ac_try='
32376                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32377                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379   (eval $ac_try) 2>&5
32380   ac_status=$?
32381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382   (exit $ac_status); }; } &&
32383              { ac_try='
32384                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32385                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387   (eval $ac_try) 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); }; }
32391           then
32392             if { ac_try='
32393                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32394                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32396   (eval $ac_try) 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); }; }
32400             then
32401               wx_cv_version_script=yes
32402             else
32403               wx_cv_version_script=no
32404             fi
32405           fi
32406         fi
32407
32408         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32409         rm -f conftest1.output conftest2.output conftest3.output
32410
32411 fi
32412 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32413 echo "${ECHO_T}$wx_cv_version_script" >&6
32414       if test $wx_cv_version_script = yes ; then
32415         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32416       fi
32417   fi
32418
32419
32420     case "${host}" in
32421       *-*-linux* | *-*-gnu* )
32422         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32423         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32424         ;;
32425
32426       *-*-solaris2* )
32427         if test "$GCC" = yes ; then
32428                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32429
32430                                     saveLdflags="$LDFLAGS"
32431             LDFLAGS="$saveLdflags -Wl,-rpath,/"
32432             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32433 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32434             cat >conftest.$ac_ext <<_ACEOF
32435 /* confdefs.h.  */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h.  */
32440
32441 int
32442 main ()
32443 {
32444
32445   ;
32446   return 0;
32447 }
32448 _ACEOF
32449 rm -f conftest.$ac_objext conftest$ac_exeext
32450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32451   (eval $ac_link) 2>conftest.er1
32452   ac_status=$?
32453   grep -v '^ *+' conftest.er1 >conftest.err
32454   rm -f conftest.er1
32455   cat conftest.err >&5
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); } &&
32458          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32460   (eval $ac_try) 2>&5
32461   ac_status=$?
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); }; } &&
32464          { ac_try='test -s conftest$ac_exeext'
32465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466   (eval $ac_try) 2>&5
32467   ac_status=$?
32468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469   (exit $ac_status); }; }; then
32470
32471                     echo "$as_me:$LINENO: result: yes" >&5
32472 echo "${ECHO_T}yes" >&6
32473                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32474                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32475
32476 else
32477   echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32479
32480
32481                     echo "$as_me:$LINENO: result: no" >&5
32482 echo "${ECHO_T}no" >&6
32483                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32484 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32485                     LDFLAGS="$saveLdflags -Wl,-R,/"
32486                     cat >conftest.$ac_ext <<_ACEOF
32487 /* confdefs.h.  */
32488 _ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h.  */
32492
32493 int
32494 main ()
32495 {
32496
32497   ;
32498   return 0;
32499 }
32500 _ACEOF
32501 rm -f conftest.$ac_objext conftest$ac_exeext
32502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32503   (eval $ac_link) 2>conftest.er1
32504   ac_status=$?
32505   grep -v '^ *+' conftest.er1 >conftest.err
32506   rm -f conftest.er1
32507   cat conftest.err >&5
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); } &&
32510          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512   (eval $ac_try) 2>&5
32513   ac_status=$?
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); }; } &&
32516          { ac_try='test -s conftest$ac_exeext'
32517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518   (eval $ac_try) 2>&5
32519   ac_status=$?
32520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521   (exit $ac_status); }; }; then
32522
32523                             echo "$as_me:$LINENO: result: yes" >&5
32524 echo "${ECHO_T}yes" >&6
32525                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32526                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
32527
32528 else
32529   echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32531
32532
32533                             echo "$as_me:$LINENO: result: no" >&5
32534 echo "${ECHO_T}no" >&6
32535
32536 fi
32537 rm -f conftest.err conftest.$ac_objext \
32538       conftest$ac_exeext conftest.$ac_ext
32539
32540 fi
32541 rm -f conftest.err conftest.$ac_objext \
32542       conftest$ac_exeext conftest.$ac_ext
32543             LDFLAGS="$saveLdflags"
32544         else
32545             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
32546             WXCONFIG_RPATH="-R\$libdir"
32547         fi
32548       ;;
32549
32550       *-*-darwin* )
32551         install_name_tool=`which install_name_tool`
32552         if test "$install_name_tool" -a -x "$install_name_tool"; then
32553             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32554             cat <<EOF >change-install-names
32555 #!/bin/sh
32556 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32557 inst_cmd="install_name_tool "
32558 for i in \${libnames} ; do
32559     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32560 done
32561 \${inst_cmd} \${3}
32562 EOF
32563             chmod +x change-install-names
32564         fi
32565       ;;
32566
32567       *-*-cygwin* | *-*-mingw32* )
32568                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32569         ;;
32570
32571       *-*-hpux* )
32572         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32573         WXCONFIG_RPATH="-Wl,+b,\$libdir"
32574         ;;
32575
32576     esac
32577
32578     if test $wxUSE_RPATH = "no"; then
32579         SAMPLES_RPATH_FLAG=''
32580         SAMPLES_RPATH_POSTLINK=''
32581         WXCONFIG_RPATH=''
32582     fi
32583
32584     SHARED=1
32585
32586 else
32587
32588     config_linkage_component="-static"
32589     SHARED=0
32590
32591 fi
32592
32593
32594 UNICODE=0
32595 lib_unicode_suffix=
32596 WX_CHARTYPE="ansi"
32597 if test "$wxUSE_UNICODE" = "yes"; then
32598     lib_unicode_suffix=u
32599     WX_CHARTYPE="unicode"
32600     UNICODE=1
32601 fi
32602
32603 lib_debug_suffix=
32604 WX_DEBUGTYPE="release"
32605 DEBUG_FLAG=0
32606 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32607     lib_debug_suffix=d
32608     WX_DEBUGTYPE="debug"
32609     DEBUG_FLAG=1
32610 fi
32611
32612 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32613 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
32614
32615 DEBUG_INFO=0
32616 if test "$wxUSE_DEBUG_INFO" = "yes"; then
32617     DEBUG_INFO=1
32618 fi
32619
32620 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
32621
32622 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
32623
32624 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
32625
32626 if test "$cross_compiling" = "yes"; then
32627     HOST_SUFFIX="-$host_alias"
32628     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32629     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
32630 fi
32631
32632 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32633 if test "${TOOLKIT_DIR}" = "os2"; then
32634     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32635 else
32636     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32637 fi
32638
32639
32640
32641 if test "$wxUSE_COCOA" = 1; then
32642
32643
32644     ac_ext=c
32645 ac_cpp='$CPP $CPPFLAGS'
32646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32649
32650 ac_ext=m
32651
32652     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32653 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32654     cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 #include <AppKit/NSEvent.h>
32661 #include <CoreFoundation/CoreFoundation.h>
32662
32663 int
32664 main ()
32665 {
32666
32667   ;
32668   return 0;
32669 }
32670 _ACEOF
32671 rm -f conftest.$ac_objext
32672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32673   (eval $ac_compile) 2>conftest.er1
32674   ac_status=$?
32675   grep -v '^ *+' conftest.er1 >conftest.err
32676   rm -f conftest.er1
32677   cat conftest.err >&5
32678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); } &&
32680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682   (eval $ac_try) 2>&5
32683   ac_status=$?
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); }; } &&
32686          { ac_try='test -s conftest.$ac_objext'
32687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688   (eval $ac_try) 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; }; then
32692   echo "$as_me:$LINENO: result: no" >&5
32693 echo "${ECHO_T}no" >&6
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698 echo "$as_me:$LINENO: result: yes" >&5
32699 echo "${ECHO_T}yes" >&6
32700         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32701 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32702         cat >conftest.$ac_ext <<_ACEOF
32703 /* confdefs.h.  */
32704 _ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h.  */
32708 #define __Point__ 1
32709 #include <AppKit/NSEvent.h>
32710 #include <CoreFoundation/CoreFoundation.h>
32711
32712 int
32713 main ()
32714 {
32715
32716   ;
32717   return 0;
32718 }
32719 _ACEOF
32720 rm -f conftest.$ac_objext
32721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32722   (eval $ac_compile) 2>conftest.er1
32723   ac_status=$?
32724   grep -v '^ *+' conftest.er1 >conftest.err
32725   rm -f conftest.er1
32726   cat conftest.err >&5
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); } &&
32729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731   (eval $ac_try) 2>&5
32732   ac_status=$?
32733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734   (exit $ac_status); }; } &&
32735          { ac_try='test -s conftest.$ac_objext'
32736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737   (eval $ac_try) 2>&5
32738   ac_status=$?
32739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740   (exit $ac_status); }; }; then
32741   echo "$as_me:$LINENO: result: yes" >&5
32742 echo "${ECHO_T}yes" >&6
32743             cat >>confdefs.h <<\_ACEOF
32744 #define __Point__ 1
32745 _ACEOF
32746
32747
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752 { { echo "$as_me:$LINENO: error: no
32753 See \`config.log' for more details." >&5
32754 echo "$as_me: error: no
32755 See \`config.log' for more details." >&2;}
32756    { (exit 1); exit 1; }; }
32757
32758 fi
32759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32760
32761 fi
32762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32763     ac_ext=cc
32764 ac_cpp='$CXXCPP $CPPFLAGS'
32765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768
32769 fi
32770
32771 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32772             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32773     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
32774
32775         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
32776
32777     # Extract the first word of "Rez", so it can be a program name with args.
32778 set dummy Rez; ac_word=$2
32779 echo "$as_me:$LINENO: checking for $ac_word" >&5
32780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32781 if test "${ac_cv_prog_REZ+set}" = set; then
32782   echo $ECHO_N "(cached) $ECHO_C" >&6
32783 else
32784   if test -n "$REZ"; then
32785   ac_cv_prog_REZ="$REZ" # Let the user override the test.
32786 else
32787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32788 for as_dir in $PATH
32789 do
32790   IFS=$as_save_IFS
32791   test -z "$as_dir" && as_dir=.
32792   for ac_exec_ext in '' $ac_executable_extensions; do
32793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32794     ac_cv_prog_REZ="Rez"
32795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32796     break 2
32797   fi
32798 done
32799 done
32800
32801   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
32802 fi
32803 fi
32804 REZ=$ac_cv_prog_REZ
32805 if test -n "$REZ"; then
32806   echo "$as_me:$LINENO: result: $REZ" >&5
32807 echo "${ECHO_T}$REZ" >&6
32808 else
32809   echo "$as_me:$LINENO: result: no" >&5
32810 echo "${ECHO_T}no" >&6
32811 fi
32812
32813     # Extract the first word of "DeRez", so it can be a program name with args.
32814 set dummy DeRez; ac_word=$2
32815 echo "$as_me:$LINENO: checking for $ac_word" >&5
32816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32817 if test "${ac_cv_prog_DEREZ+set}" = set; then
32818   echo $ECHO_N "(cached) $ECHO_C" >&6
32819 else
32820   if test -n "$DEREZ"; then
32821   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32822 else
32823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32824 for as_dir in $PATH
32825 do
32826   IFS=$as_save_IFS
32827   test -z "$as_dir" && as_dir=.
32828   for ac_exec_ext in '' $ac_executable_extensions; do
32829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32830     ac_cv_prog_DEREZ="DeRez"
32831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32832     break 2
32833   fi
32834 done
32835 done
32836
32837   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32838 fi
32839 fi
32840 DEREZ=$ac_cv_prog_DEREZ
32841 if test -n "$DEREZ"; then
32842   echo "$as_me:$LINENO: result: $DEREZ" >&5
32843 echo "${ECHO_T}$DEREZ" >&6
32844 else
32845   echo "$as_me:$LINENO: result: no" >&5
32846 echo "${ECHO_T}no" >&6
32847 fi
32848
32849     # Extract the first word of "SetFile", so it can be a program name with args.
32850 set dummy SetFile; ac_word=$2
32851 echo "$as_me:$LINENO: checking for $ac_word" >&5
32852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32853 if test "${ac_cv_prog_SETFILE+set}" = set; then
32854   echo $ECHO_N "(cached) $ECHO_C" >&6
32855 else
32856   if test -n "$SETFILE"; then
32857   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32858 else
32859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860 for as_dir in $PATH
32861 do
32862   IFS=$as_save_IFS
32863   test -z "$as_dir" && as_dir=.
32864   for ac_exec_ext in '' $ac_executable_extensions; do
32865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32866     ac_cv_prog_SETFILE="SetFile"
32867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32868     break 2
32869   fi
32870 done
32871 done
32872
32873   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32874 fi
32875 fi
32876 SETFILE=$ac_cv_prog_SETFILE
32877 if test -n "$SETFILE"; then
32878   echo "$as_me:$LINENO: result: $SETFILE" >&5
32879 echo "${ECHO_T}$SETFILE" >&6
32880 else
32881   echo "$as_me:$LINENO: result: no" >&5
32882 echo "${ECHO_T}no" >&6
32883 fi
32884
32885
32886     MACSETFILE="\$(SETFILE)"
32887
32888             if test "$wxUSE_MAC" = 1; then
32889         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
32890         RESCOMP="$REZ"
32891         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
32892     else
32893         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32894         RESCOMP="echo -n \| $REZ"
32895         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
32896     fi
32897
32898 else
32899         MACSETFILE="@true"
32900
32901     if test "$wxUSE_PM" = 1; then
32902         RESCOMP="emxbind"
32903         WXCONFIG_RESFLAGS="-ep"
32904
32905                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
32906     else
32907         POSTLINK_COMMAND="@true"
32908     fi
32909
32910 fi
32911
32912
32913
32914 echo "$as_me:$LINENO: checking for mode_t" >&5
32915 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32916 if test "${ac_cv_type_mode_t+set}" = set; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h.  */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h.  */
32925 $ac_includes_default
32926 int
32927 main ()
32928 {
32929 if ((mode_t *) 0)
32930   return 0;
32931 if (sizeof (mode_t))
32932   return 0;
32933   ;
32934   return 0;
32935 }
32936 _ACEOF
32937 rm -f conftest.$ac_objext
32938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32939   (eval $ac_compile) 2>conftest.er1
32940   ac_status=$?
32941   grep -v '^ *+' conftest.er1 >conftest.err
32942   rm -f conftest.er1
32943   cat conftest.err >&5
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); } &&
32946          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948   (eval $ac_try) 2>&5
32949   ac_status=$?
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); }; } &&
32952          { ac_try='test -s conftest.$ac_objext'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; }; then
32958   ac_cv_type_mode_t=yes
32959 else
32960   echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963 ac_cv_type_mode_t=no
32964 fi
32965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32966 fi
32967 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32968 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32969 if test $ac_cv_type_mode_t = yes; then
32970   :
32971 else
32972
32973 cat >>confdefs.h <<_ACEOF
32974 #define mode_t int
32975 _ACEOF
32976
32977 fi
32978
32979 echo "$as_me:$LINENO: checking for off_t" >&5
32980 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32981 if test "${ac_cv_type_off_t+set}" = set; then
32982   echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984   cat >conftest.$ac_ext <<_ACEOF
32985 /* confdefs.h.  */
32986 _ACEOF
32987 cat confdefs.h >>conftest.$ac_ext
32988 cat >>conftest.$ac_ext <<_ACEOF
32989 /* end confdefs.h.  */
32990 $ac_includes_default
32991 int
32992 main ()
32993 {
32994 if ((off_t *) 0)
32995   return 0;
32996 if (sizeof (off_t))
32997   return 0;
32998   ;
32999   return 0;
33000 }
33001 _ACEOF
33002 rm -f conftest.$ac_objext
33003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33004   (eval $ac_compile) 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } &&
33011          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017          { ac_try='test -s conftest.$ac_objext'
33018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019   (eval $ac_try) 2>&5
33020   ac_status=$?
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); }; }; then
33023   ac_cv_type_off_t=yes
33024 else
33025   echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33027
33028 ac_cv_type_off_t=no
33029 fi
33030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33031 fi
33032 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33033 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33034 if test $ac_cv_type_off_t = yes; then
33035   :
33036 else
33037
33038 cat >>confdefs.h <<_ACEOF
33039 #define off_t long
33040 _ACEOF
33041
33042 fi
33043
33044 echo "$as_me:$LINENO: checking for pid_t" >&5
33045 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33046 if test "${ac_cv_type_pid_t+set}" = set; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049   cat >conftest.$ac_ext <<_ACEOF
33050 /* confdefs.h.  */
33051 _ACEOF
33052 cat confdefs.h >>conftest.$ac_ext
33053 cat >>conftest.$ac_ext <<_ACEOF
33054 /* end confdefs.h.  */
33055 $ac_includes_default
33056 int
33057 main ()
33058 {
33059 if ((pid_t *) 0)
33060   return 0;
33061 if (sizeof (pid_t))
33062   return 0;
33063   ;
33064   return 0;
33065 }
33066 _ACEOF
33067 rm -f conftest.$ac_objext
33068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33069   (eval $ac_compile) 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } &&
33076          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078   (eval $ac_try) 2>&5
33079   ac_status=$?
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); }; } &&
33082          { ac_try='test -s conftest.$ac_objext'
33083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084   (eval $ac_try) 2>&5
33085   ac_status=$?
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); }; }; then
33088   ac_cv_type_pid_t=yes
33089 else
33090   echo "$as_me: failed program was:" >&5
33091 sed 's/^/| /' conftest.$ac_ext >&5
33092
33093 ac_cv_type_pid_t=no
33094 fi
33095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33096 fi
33097 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33098 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33099 if test $ac_cv_type_pid_t = yes; then
33100   :
33101 else
33102
33103 cat >>confdefs.h <<_ACEOF
33104 #define pid_t int
33105 _ACEOF
33106
33107 fi
33108
33109 echo "$as_me:$LINENO: checking for size_t" >&5
33110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33111 if test "${ac_cv_type_size_t+set}" = set; then
33112   echo $ECHO_N "(cached) $ECHO_C" >&6
33113 else
33114   cat >conftest.$ac_ext <<_ACEOF
33115 /* confdefs.h.  */
33116 _ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h.  */
33120 $ac_includes_default
33121 int
33122 main ()
33123 {
33124 if ((size_t *) 0)
33125   return 0;
33126 if (sizeof (size_t))
33127   return 0;
33128   ;
33129   return 0;
33130 }
33131 _ACEOF
33132 rm -f conftest.$ac_objext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33134   (eval $ac_compile) 2>conftest.er1
33135   ac_status=$?
33136   grep -v '^ *+' conftest.er1 >conftest.err
33137   rm -f conftest.er1
33138   cat conftest.err >&5
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); } &&
33141          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143   (eval $ac_try) 2>&5
33144   ac_status=$?
33145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146   (exit $ac_status); }; } &&
33147          { ac_try='test -s conftest.$ac_objext'
33148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149   (eval $ac_try) 2>&5
33150   ac_status=$?
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); }; }; then
33153   ac_cv_type_size_t=yes
33154 else
33155   echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33157
33158 ac_cv_type_size_t=no
33159 fi
33160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33161 fi
33162 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33163 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33164 if test $ac_cv_type_size_t = yes; then
33165   :
33166 else
33167
33168 cat >>confdefs.h <<_ACEOF
33169 #define size_t unsigned
33170 _ACEOF
33171
33172 fi
33173
33174 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33175 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33176 if test "${ac_cv_type_uid_t+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179   cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h.  */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h.  */
33185 #include <sys/types.h>
33186
33187 _ACEOF
33188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189   $EGREP "uid_t" >/dev/null 2>&1; then
33190   ac_cv_type_uid_t=yes
33191 else
33192   ac_cv_type_uid_t=no
33193 fi
33194 rm -f conftest*
33195
33196 fi
33197 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33198 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33199 if test $ac_cv_type_uid_t = no; then
33200
33201 cat >>confdefs.h <<\_ACEOF
33202 #define uid_t int
33203 _ACEOF
33204
33205
33206 cat >>confdefs.h <<\_ACEOF
33207 #define gid_t int
33208 _ACEOF
33209
33210 fi
33211
33212
33213 echo "$as_me:$LINENO: checking for ssize_t" >&5
33214 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33215 if test "${ac_cv_type_ssize_t+set}" = set; then
33216   echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218   cat >conftest.$ac_ext <<_ACEOF
33219 /* confdefs.h.  */
33220 _ACEOF
33221 cat confdefs.h >>conftest.$ac_ext
33222 cat >>conftest.$ac_ext <<_ACEOF
33223 /* end confdefs.h.  */
33224 $ac_includes_default
33225 int
33226 main ()
33227 {
33228 if ((ssize_t *) 0)
33229   return 0;
33230 if (sizeof (ssize_t))
33231   return 0;
33232   ;
33233   return 0;
33234 }
33235 _ACEOF
33236 rm -f conftest.$ac_objext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33238   (eval $ac_compile) 2>conftest.er1
33239   ac_status=$?
33240   grep -v '^ *+' conftest.er1 >conftest.err
33241   rm -f conftest.er1
33242   cat conftest.err >&5
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); } &&
33245          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247   (eval $ac_try) 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; } &&
33251          { ac_try='test -s conftest.$ac_objext'
33252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253   (eval $ac_try) 2>&5
33254   ac_status=$?
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); }; }; then
33257   ac_cv_type_ssize_t=yes
33258 else
33259   echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33261
33262 ac_cv_type_ssize_t=no
33263 fi
33264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33265 fi
33266 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33267 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33268 if test $ac_cv_type_ssize_t = yes; then
33269
33270 cat >>confdefs.h <<_ACEOF
33271 #define HAVE_SSIZE_T 1
33272 _ACEOF
33273
33274
33275 fi
33276
33277
33278 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33279 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33280 if test "${wx_cv_size_t_is_uint+set}" = set; then
33281   echo $ECHO_N "(cached) $ECHO_C" >&6
33282 else
33283
33284                             cat >conftest.$ac_ext <<_ACEOF
33285 /* confdefs.h.  */
33286 _ACEOF
33287 cat confdefs.h >>conftest.$ac_ext
33288 cat >>conftest.$ac_ext <<_ACEOF
33289 /* end confdefs.h.  */
33290 #include <stddef.h>
33291 int
33292 main ()
33293 {
33294
33295             return 0; }
33296
33297             struct Foo { void foo(size_t); void foo(unsigned int); };
33298
33299             int bar() {
33300
33301   ;
33302   return 0;
33303 }
33304 _ACEOF
33305 rm -f conftest.$ac_objext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33307   (eval $ac_compile) 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } &&
33314          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316   (eval $ac_try) 2>&5
33317   ac_status=$?
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); }; } &&
33320          { ac_try='test -s conftest.$ac_objext'
33321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322   (eval $ac_try) 2>&5
33323   ac_status=$?
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); }; }; then
33326   wx_cv_size_t_is_uint=no
33327 else
33328   echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330
33331 wx_cv_size_t_is_uint=yes
33332
33333 fi
33334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33335
33336
33337 fi
33338 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33339 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33340
33341 if test "$wx_cv_size_t_is_uint" = "yes"; then
33342     cat >>confdefs.h <<\_ACEOF
33343 #define wxSIZE_T_IS_UINT 1
33344 _ACEOF
33345
33346 else
33347     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33348 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33349 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33350   echo $ECHO_N "(cached) $ECHO_C" >&6
33351 else
33352   cat >conftest.$ac_ext <<_ACEOF
33353 /* confdefs.h.  */
33354 _ACEOF
33355 cat confdefs.h >>conftest.$ac_ext
33356 cat >>conftest.$ac_ext <<_ACEOF
33357 /* end confdefs.h.  */
33358 #include <stddef.h>
33359 int
33360 main ()
33361 {
33362
33363                 return 0; }
33364
33365                 struct Foo { void foo(size_t); void foo(unsigned long); };
33366
33367                 int bar() {
33368
33369   ;
33370   return 0;
33371 }
33372 _ACEOF
33373 rm -f conftest.$ac_objext
33374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33375   (eval $ac_compile) 2>conftest.er1
33376   ac_status=$?
33377   grep -v '^ *+' conftest.er1 >conftest.err
33378   rm -f conftest.er1
33379   cat conftest.err >&5
33380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381   (exit $ac_status); } &&
33382          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33384   (eval $ac_try) 2>&5
33385   ac_status=$?
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); }; } &&
33388          { ac_try='test -s conftest.$ac_objext'
33389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390   (eval $ac_try) 2>&5
33391   ac_status=$?
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); }; }; then
33394   wx_cv_size_t_is_ulong=no
33395 else
33396   echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33398
33399 wx_cv_size_t_is_ulong=yes
33400
33401 fi
33402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33403
33404 fi
33405 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33406 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33407
33408     if test "$wx_cv_size_t_is_ulong" = "yes"; then
33409         cat >>confdefs.h <<\_ACEOF
33410 #define wxSIZE_T_IS_ULONG 1
33411 _ACEOF
33412
33413     fi
33414 fi
33415
33416
33417 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33418 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33419 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33420   echo $ECHO_N "(cached) $ECHO_C" >&6
33421 else
33422
33423         cat >conftest.$ac_ext <<_ACEOF
33424 /* confdefs.h.  */
33425 _ACEOF
33426 cat confdefs.h >>conftest.$ac_ext
33427 cat >>conftest.$ac_ext <<_ACEOF
33428 /* end confdefs.h.  */
33429 #include <pwd.h>
33430 int
33431 main ()
33432 {
33433
33434                 char *p;
33435                 struct passwd *pw;
33436                 p = pw->pw_gecos;
33437
33438   ;
33439   return 0;
33440 }
33441 _ACEOF
33442 rm -f conftest.$ac_objext
33443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33444   (eval $ac_compile) 2>conftest.er1
33445   ac_status=$?
33446   grep -v '^ *+' conftest.er1 >conftest.err
33447   rm -f conftest.er1
33448   cat conftest.err >&5
33449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); } &&
33451          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453   (eval $ac_try) 2>&5
33454   ac_status=$?
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); }; } &&
33457          { ac_try='test -s conftest.$ac_objext'
33458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459   (eval $ac_try) 2>&5
33460   ac_status=$?
33461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462   (exit $ac_status); }; }; then
33463
33464                 wx_cv_struct_pw_gecos=yes
33465
33466 else
33467   echo "$as_me: failed program was:" >&5
33468 sed 's/^/| /' conftest.$ac_ext >&5
33469
33470
33471                 wx_cv_struct_pw_gecos=no
33472
33473
33474 fi
33475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33476
33477
33478 fi
33479 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33480 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33481
33482 if test "$wx_cv_struct_pw_gecos" = "yes"; then
33483     cat >>confdefs.h <<\_ACEOF
33484 #define HAVE_PW_GECOS 1
33485 _ACEOF
33486
33487 fi
33488
33489
33490 if test "$wxUSE_WCHAR_T" = "yes"; then
33491     cat >>confdefs.h <<\_ACEOF
33492 #define wxUSE_WCHAR_T 1
33493 _ACEOF
33494
33495
33496         WCSLEN_FOUND=0
33497     WCHAR_LINK=
33498
33499 for ac_func in wcslen
33500 do
33501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33502 echo "$as_me:$LINENO: checking for $ac_func" >&5
33503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33504 if eval "test \"\${$as_ac_var+set}\" = set"; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507   cat >conftest.$ac_ext <<_ACEOF
33508 /* confdefs.h.  */
33509 _ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h.  */
33513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33515 #define $ac_func innocuous_$ac_func
33516
33517 /* System header to define __stub macros and hopefully few prototypes,
33518     which can conflict with char $ac_func (); below.
33519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33520     <limits.h> exists even on freestanding compilers.  */
33521
33522 #ifdef __STDC__
33523 # include <limits.h>
33524 #else
33525 # include <assert.h>
33526 #endif
33527
33528 #undef $ac_func
33529
33530 /* Override any gcc2 internal prototype to avoid an error.  */
33531 #ifdef __cplusplus
33532 extern "C"
33533 {
33534 #endif
33535 /* We use char because int might match the return type of a gcc2
33536    builtin and then its argument prototype would still apply.  */
33537 char $ac_func ();
33538 /* The GNU C library defines this for functions which it implements
33539     to always fail with ENOSYS.  Some functions are actually named
33540     something starting with __ and the normal name is an alias.  */
33541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33542 choke me
33543 #else
33544 char (*f) () = $ac_func;
33545 #endif
33546 #ifdef __cplusplus
33547 }
33548 #endif
33549
33550 int
33551 main ()
33552 {
33553 return f != $ac_func;
33554   ;
33555   return 0;
33556 }
33557 _ACEOF
33558 rm -f conftest.$ac_objext conftest$ac_exeext
33559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33560   (eval $ac_link) 2>conftest.er1
33561   ac_status=$?
33562   grep -v '^ *+' conftest.er1 >conftest.err
33563   rm -f conftest.er1
33564   cat conftest.err >&5
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } &&
33567          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569   (eval $ac_try) 2>&5
33570   ac_status=$?
33571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572   (exit $ac_status); }; } &&
33573          { ac_try='test -s conftest$ac_exeext'
33574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33575   (eval $ac_try) 2>&5
33576   ac_status=$?
33577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578   (exit $ac_status); }; }; then
33579   eval "$as_ac_var=yes"
33580 else
33581   echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33583
33584 eval "$as_ac_var=no"
33585 fi
33586 rm -f conftest.err conftest.$ac_objext \
33587       conftest$ac_exeext conftest.$ac_ext
33588 fi
33589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33591 if test `eval echo '${'$as_ac_var'}'` = yes; then
33592   cat >>confdefs.h <<_ACEOF
33593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33594 _ACEOF
33595  WCSLEN_FOUND=1
33596 fi
33597 done
33598
33599
33600     if test "$WCSLEN_FOUND" = 0; then
33601         if test "$TOOLKIT" = "MSW"; then
33602             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33603 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33604 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33605   echo $ECHO_N "(cached) $ECHO_C" >&6
33606 else
33607   ac_check_lib_save_LIBS=$LIBS
33608 LIBS="-lmsvcrt  $LIBS"
33609 cat >conftest.$ac_ext <<_ACEOF
33610 /* confdefs.h.  */
33611 _ACEOF
33612 cat confdefs.h >>conftest.$ac_ext
33613 cat >>conftest.$ac_ext <<_ACEOF
33614 /* end confdefs.h.  */
33615
33616 /* Override any gcc2 internal prototype to avoid an error.  */
33617 #ifdef __cplusplus
33618 extern "C"
33619 #endif
33620 /* We use char because int might match the return type of a gcc2
33621    builtin and then its argument prototype would still apply.  */
33622 char wcslen ();
33623 int
33624 main ()
33625 {
33626 wcslen ();
33627   ;
33628   return 0;
33629 }
33630 _ACEOF
33631 rm -f conftest.$ac_objext conftest$ac_exeext
33632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33633   (eval $ac_link) 2>conftest.er1
33634   ac_status=$?
33635   grep -v '^ *+' conftest.er1 >conftest.err
33636   rm -f conftest.er1
33637   cat conftest.err >&5
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); } &&
33640          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33642   (eval $ac_try) 2>&5
33643   ac_status=$?
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); }; } &&
33646          { ac_try='test -s conftest$ac_exeext'
33647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648   (eval $ac_try) 2>&5
33649   ac_status=$?
33650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); }; }; then
33652   ac_cv_lib_msvcrt_wcslen=yes
33653 else
33654   echo "$as_me: failed program was:" >&5
33655 sed 's/^/| /' conftest.$ac_ext >&5
33656
33657 ac_cv_lib_msvcrt_wcslen=no
33658 fi
33659 rm -f conftest.err conftest.$ac_objext \
33660       conftest$ac_exeext conftest.$ac_ext
33661 LIBS=$ac_check_lib_save_LIBS
33662 fi
33663 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33664 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33665 if test $ac_cv_lib_msvcrt_wcslen = yes; then
33666   WCHAR_OK=1
33667 fi
33668
33669         else
33670             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33671 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33672 if test "${ac_cv_lib_w_wcslen+set}" = set; then
33673   echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675   ac_check_lib_save_LIBS=$LIBS
33676 LIBS="-lw  $LIBS"
33677 cat >conftest.$ac_ext <<_ACEOF
33678 /* confdefs.h.  */
33679 _ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h.  */
33683
33684 /* Override any gcc2 internal prototype to avoid an error.  */
33685 #ifdef __cplusplus
33686 extern "C"
33687 #endif
33688 /* We use char because int might match the return type of a gcc2
33689    builtin and then its argument prototype would still apply.  */
33690 char wcslen ();
33691 int
33692 main ()
33693 {
33694 wcslen ();
33695   ;
33696   return 0;
33697 }
33698 _ACEOF
33699 rm -f conftest.$ac_objext conftest$ac_exeext
33700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33701   (eval $ac_link) 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } &&
33708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710   (eval $ac_try) 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); }; } &&
33714          { ac_try='test -s conftest$ac_exeext'
33715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716   (eval $ac_try) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); }; }; then
33720   ac_cv_lib_w_wcslen=yes
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725 ac_cv_lib_w_wcslen=no
33726 fi
33727 rm -f conftest.err conftest.$ac_objext \
33728       conftest$ac_exeext conftest.$ac_ext
33729 LIBS=$ac_check_lib_save_LIBS
33730 fi
33731 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33732 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33733 if test $ac_cv_lib_w_wcslen = yes; then
33734
33735                             WCHAR_LINK=" -lw"
33736                             WCSLEN_FOUND=1
33737
33738 fi
33739
33740         fi
33741     fi
33742
33743     if test "$WCSLEN_FOUND" = 1; then
33744         cat >>confdefs.h <<\_ACEOF
33745 #define HAVE_WCSLEN 1
33746 _ACEOF
33747
33748     fi
33749
33750                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
33751         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
33752     fi
33753
33754                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33755 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33756 if test "${ac_cv_type_mbstate_t+set}" = set; then
33757   echo $ECHO_N "(cached) $ECHO_C" >&6
33758 else
33759   cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765 #include <wchar.h>
33766
33767 int
33768 main ()
33769 {
33770 if ((mbstate_t *) 0)
33771   return 0;
33772 if (sizeof (mbstate_t))
33773   return 0;
33774   ;
33775   return 0;
33776 }
33777 _ACEOF
33778 rm -f conftest.$ac_objext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780   (eval $ac_compile) 2>conftest.er1
33781   ac_status=$?
33782   grep -v '^ *+' conftest.er1 >conftest.err
33783   rm -f conftest.er1
33784   cat conftest.err >&5
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); } &&
33787          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789   (eval $ac_try) 2>&5
33790   ac_status=$?
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); }; } &&
33793          { ac_try='test -s conftest.$ac_objext'
33794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795   (eval $ac_try) 2>&5
33796   ac_status=$?
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); }; }; then
33799   ac_cv_type_mbstate_t=yes
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804 ac_cv_type_mbstate_t=no
33805 fi
33806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33807 fi
33808 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33809 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33810 if test $ac_cv_type_mbstate_t = yes; then
33811
33812 cat >>confdefs.h <<_ACEOF
33813 #define HAVE_MBSTATE_T 1
33814 _ACEOF
33815
33816
33817 for ac_func in wcsrtombs
33818 do
33819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33820 echo "$as_me:$LINENO: checking for $ac_func" >&5
33821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33822 if eval "test \"\${$as_ac_var+set}\" = set"; then
33823   echo $ECHO_N "(cached) $ECHO_C" >&6
33824 else
33825   cat >conftest.$ac_ext <<_ACEOF
33826 /* confdefs.h.  */
33827 _ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h.  */
33831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33833 #define $ac_func innocuous_$ac_func
33834
33835 /* System header to define __stub macros and hopefully few prototypes,
33836     which can conflict with char $ac_func (); below.
33837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838     <limits.h> exists even on freestanding compilers.  */
33839
33840 #ifdef __STDC__
33841 # include <limits.h>
33842 #else
33843 # include <assert.h>
33844 #endif
33845
33846 #undef $ac_func
33847
33848 /* Override any gcc2 internal prototype to avoid an error.  */
33849 #ifdef __cplusplus
33850 extern "C"
33851 {
33852 #endif
33853 /* We use char because int might match the return type of a gcc2
33854    builtin and then its argument prototype would still apply.  */
33855 char $ac_func ();
33856 /* The GNU C library defines this for functions which it implements
33857     to always fail with ENOSYS.  Some functions are actually named
33858     something starting with __ and the normal name is an alias.  */
33859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33860 choke me
33861 #else
33862 char (*f) () = $ac_func;
33863 #endif
33864 #ifdef __cplusplus
33865 }
33866 #endif
33867
33868 int
33869 main ()
33870 {
33871 return f != $ac_func;
33872   ;
33873   return 0;
33874 }
33875 _ACEOF
33876 rm -f conftest.$ac_objext conftest$ac_exeext
33877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33878   (eval $ac_link) 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } &&
33885          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33887   (eval $ac_try) 2>&5
33888   ac_status=$?
33889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890   (exit $ac_status); }; } &&
33891          { ac_try='test -s conftest$ac_exeext'
33892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893   (eval $ac_try) 2>&5
33894   ac_status=$?
33895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896   (exit $ac_status); }; }; then
33897   eval "$as_ac_var=yes"
33898 else
33899   echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33901
33902 eval "$as_ac_var=no"
33903 fi
33904 rm -f conftest.err conftest.$ac_objext \
33905       conftest$ac_exeext conftest.$ac_ext
33906 fi
33907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33909 if test `eval echo '${'$as_ac_var'}'` = yes; then
33910   cat >>confdefs.h <<_ACEOF
33911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33912 _ACEOF
33913
33914 fi
33915 done
33916
33917 fi
33918
33919 else
33920     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33921 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33922 fi
33923
33924
33925
33926 for ac_func in snprintf vsnprintf
33927 do
33928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33929 echo "$as_me:$LINENO: checking for $ac_func" >&5
33930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33931 if eval "test \"\${$as_ac_var+set}\" = set"; then
33932   echo $ECHO_N "(cached) $ECHO_C" >&6
33933 else
33934   cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33942 #define $ac_func innocuous_$ac_func
33943
33944 /* System header to define __stub macros and hopefully few prototypes,
33945     which can conflict with char $ac_func (); below.
33946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33947     <limits.h> exists even on freestanding compilers.  */
33948
33949 #ifdef __STDC__
33950 # include <limits.h>
33951 #else
33952 # include <assert.h>
33953 #endif
33954
33955 #undef $ac_func
33956
33957 /* Override any gcc2 internal prototype to avoid an error.  */
33958 #ifdef __cplusplus
33959 extern "C"
33960 {
33961 #endif
33962 /* We use char because int might match the return type of a gcc2
33963    builtin and then its argument prototype would still apply.  */
33964 char $ac_func ();
33965 /* The GNU C library defines this for functions which it implements
33966     to always fail with ENOSYS.  Some functions are actually named
33967     something starting with __ and the normal name is an alias.  */
33968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33969 choke me
33970 #else
33971 char (*f) () = $ac_func;
33972 #endif
33973 #ifdef __cplusplus
33974 }
33975 #endif
33976
33977 int
33978 main ()
33979 {
33980 return f != $ac_func;
33981   ;
33982   return 0;
33983 }
33984 _ACEOF
33985 rm -f conftest.$ac_objext conftest$ac_exeext
33986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33987   (eval $ac_link) 2>conftest.er1
33988   ac_status=$?
33989   grep -v '^ *+' conftest.er1 >conftest.err
33990   rm -f conftest.er1
33991   cat conftest.err >&5
33992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993   (exit $ac_status); } &&
33994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33996   (eval $ac_try) 2>&5
33997   ac_status=$?
33998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999   (exit $ac_status); }; } &&
34000          { ac_try='test -s conftest$ac_exeext'
34001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002   (eval $ac_try) 2>&5
34003   ac_status=$?
34004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005   (exit $ac_status); }; }; then
34006   eval "$as_ac_var=yes"
34007 else
34008   echo "$as_me: failed program was:" >&5
34009 sed 's/^/| /' conftest.$ac_ext >&5
34010
34011 eval "$as_ac_var=no"
34012 fi
34013 rm -f conftest.err conftest.$ac_objext \
34014       conftest$ac_exeext conftest.$ac_ext
34015 fi
34016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34018 if test `eval echo '${'$as_ac_var'}'` = yes; then
34019   cat >>confdefs.h <<_ACEOF
34020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34021 _ACEOF
34022
34023 fi
34024 done
34025
34026
34027 if test "$ac_cv_func_vsnprintf" = "yes"; then
34028         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34029 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34030 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34031   echo $ECHO_N "(cached) $ECHO_C" >&6
34032 else
34033
34034                                                             cat >conftest.$ac_ext <<_ACEOF
34035 /* confdefs.h.  */
34036 _ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h.  */
34040
34041                     #include <stdio.h>
34042                     #include <stdarg.h>
34043                     #ifdef __MSL__
34044                     #if __MSL__ >= 0x6000
34045                     namespace std {}
34046                     using namespace std;
34047                     #endif
34048                     #endif
34049
34050 int
34051 main ()
34052 {
34053
34054                     char *buf;
34055                     va_list ap;
34056                     vsnprintf(buf, 10u, "%s", ap);
34057
34058   ;
34059   return 0;
34060 }
34061 _ACEOF
34062 rm -f conftest.$ac_objext
34063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34064   (eval $ac_compile) 2>conftest.er1
34065   ac_status=$?
34066   grep -v '^ *+' conftest.er1 >conftest.err
34067   rm -f conftest.er1
34068   cat conftest.err >&5
34069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); } &&
34071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073   (eval $ac_try) 2>&5
34074   ac_status=$?
34075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); }; } &&
34077          { ac_try='test -s conftest.$ac_objext'
34078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079   (eval $ac_try) 2>&5
34080   ac_status=$?
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); }; }; then
34083   wx_cv_func_vsnprintf_decl=yes
34084 else
34085   echo "$as_me: failed program was:" >&5
34086 sed 's/^/| /' conftest.$ac_ext >&5
34087
34088 wx_cv_func_vsnprintf_decl=no
34089
34090 fi
34091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34092
34093
34094 fi
34095 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34096 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34097
34098     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34099         cat >>confdefs.h <<\_ACEOF
34100 #define HAVE_VSNPRINTF_DECL 1
34101 _ACEOF
34102
34103
34104                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34105 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34106 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34107   echo $ECHO_N "(cached) $ECHO_C" >&6
34108 else
34109
34110                 cat >conftest.$ac_ext <<_ACEOF
34111 /* confdefs.h.  */
34112 _ACEOF
34113 cat confdefs.h >>conftest.$ac_ext
34114 cat >>conftest.$ac_ext <<_ACEOF
34115 /* end confdefs.h.  */
34116
34117                         #include <stdio.h>
34118                         #include <stdarg.h>
34119                         #ifdef __MSL__
34120                         #if __MSL__ >= 0x6000
34121                         namespace std {}
34122                         using namespace std;
34123                         #endif
34124                         #endif
34125
34126 int
34127 main ()
34128 {
34129
34130                         char *buf;
34131                         va_list ap;
34132                         const char *fmt = "%s";
34133                         vsnprintf(buf, 10u, fmt, ap);
34134
34135   ;
34136   return 0;
34137 }
34138 _ACEOF
34139 rm -f conftest.$ac_objext
34140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34141   (eval $ac_compile) 2>conftest.er1
34142   ac_status=$?
34143   grep -v '^ *+' conftest.er1 >conftest.err
34144   rm -f conftest.er1
34145   cat conftest.err >&5
34146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147   (exit $ac_status); } &&
34148          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34150   (eval $ac_try) 2>&5
34151   ac_status=$?
34152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); }; } &&
34154          { ac_try='test -s conftest.$ac_objext'
34155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156   (eval $ac_try) 2>&5
34157   ac_status=$?
34158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159   (exit $ac_status); }; }; then
34160   wx_cv_func_broken_vsnprintf_decl=no
34161 else
34162   echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34164
34165 wx_cv_func_broken_vsnprintf_decl=yes
34166
34167 fi
34168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34169
34170
34171 fi
34172 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34173 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34174
34175         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34176             cat >>confdefs.h <<\_ACEOF
34177 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34178 _ACEOF
34179
34180         fi
34181     fi
34182 fi
34183
34184 if test "$ac_cv_func_snprintf" = "yes"; then
34185     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34186 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34187 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34188   echo $ECHO_N "(cached) $ECHO_C" >&6
34189 else
34190
34191             cat >conftest.$ac_ext <<_ACEOF
34192 /* confdefs.h.  */
34193 _ACEOF
34194 cat confdefs.h >>conftest.$ac_ext
34195 cat >>conftest.$ac_ext <<_ACEOF
34196 /* end confdefs.h.  */
34197
34198                     #include <stdio.h>
34199                     #include <stdarg.h>
34200                     #ifdef __MSL__
34201                     #if __MSL__ >= 0x6000
34202                     namespace std {}
34203                     using namespace std;
34204                     #endif
34205                     #endif
34206
34207 int
34208 main ()
34209 {
34210
34211                     char *buf;
34212                     snprintf(buf, 10u, "%s", "wx");
34213
34214   ;
34215   return 0;
34216 }
34217 _ACEOF
34218 rm -f conftest.$ac_objext
34219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34220   (eval $ac_compile) 2>conftest.er1
34221   ac_status=$?
34222   grep -v '^ *+' conftest.er1 >conftest.err
34223   rm -f conftest.er1
34224   cat conftest.err >&5
34225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226   (exit $ac_status); } &&
34227          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34229   (eval $ac_try) 2>&5
34230   ac_status=$?
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); }; } &&
34233          { ac_try='test -s conftest.$ac_objext'
34234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235   (eval $ac_try) 2>&5
34236   ac_status=$?
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); }; }; then
34239   wx_cv_func_snprintf_decl=yes
34240 else
34241   echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34243
34244 wx_cv_func_snprintf_decl=no
34245
34246 fi
34247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34248
34249
34250 fi
34251 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34252 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34253
34254     if test "$wx_cv_func_snprintf_decl" = "yes"; then
34255         cat >>confdefs.h <<\_ACEOF
34256 #define HAVE_SNPRINTF_DECL 1
34257 _ACEOF
34258
34259
34260                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34261 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34262 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34263   echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265
34266                 cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h.  */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h.  */
34272
34273                         #include <stdio.h>
34274                         #include <stdarg.h>
34275                         #ifdef __MSL__
34276                         #if __MSL__ >= 0x6000
34277                         namespace std {}
34278                         using namespace std;
34279                         #endif
34280                         #endif
34281
34282 int
34283 main ()
34284 {
34285
34286                         char *buf;
34287                         const char *fmt = "%s";
34288                         snprintf(buf, 10u, fmt, "wx");
34289
34290   ;
34291   return 0;
34292 }
34293 _ACEOF
34294 rm -f conftest.$ac_objext
34295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34296   (eval $ac_compile) 2>conftest.er1
34297   ac_status=$?
34298   grep -v '^ *+' conftest.er1 >conftest.err
34299   rm -f conftest.er1
34300   cat conftest.err >&5
34301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302   (exit $ac_status); } &&
34303          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305   (eval $ac_try) 2>&5
34306   ac_status=$?
34307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308   (exit $ac_status); }; } &&
34309          { ac_try='test -s conftest.$ac_objext'
34310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311   (eval $ac_try) 2>&5
34312   ac_status=$?
34313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314   (exit $ac_status); }; }; then
34315   wx_cv_func_broken_snprintf_decl=no
34316 else
34317   echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34319
34320 wx_cv_func_broken_snprintf_decl=yes
34321
34322 fi
34323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34324
34325
34326 fi
34327 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34328 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34329
34330         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34331             cat >>confdefs.h <<\_ACEOF
34332 #define HAVE_BROKEN_SNPRINTF_DECL 1
34333 _ACEOF
34334
34335         fi
34336     fi
34337
34338     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34339
34340                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34341 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34342 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34343   echo $ECHO_N "(cached) $ECHO_C" >&6
34344 else
34345
34346                 if test "$cross_compiling" = yes; then
34347   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34348 See \`config.log' for more details." >&5
34349 echo "$as_me: error: cannot run test program while cross compiling
34350 See \`config.log' for more details." >&2;}
34351    { (exit 1); exit 1; }; }
34352 else
34353   cat >conftest.$ac_ext <<_ACEOF
34354 /* confdefs.h.  */
34355 _ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h.  */
34359
34360                         #include <stdio.h>
34361
34362                         int main (void)
34363                         {
34364                             char buffer[128];
34365                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34366                             if (strcmp ("2 3 1", buffer) == 0)
34367                                 exit (0);
34368                             exit (1);
34369                         }
34370
34371 _ACEOF
34372 rm -f conftest$ac_exeext
34373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34374   (eval $ac_link) 2>&5
34375   ac_status=$?
34376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379   (eval $ac_try) 2>&5
34380   ac_status=$?
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); }; }; then
34383   wx_cv_func_snprintf_pos_params=no
34384 else
34385   echo "$as_me: program exited with status $ac_status" >&5
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389 ( exit $ac_status )
34390 wx_cv_func_snprintf_pos_params=yes
34391
34392 fi
34393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34394 fi
34395
34396
34397 fi
34398 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34399 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34400
34401         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34402             cat >>confdefs.h <<\_ACEOF
34403 #define HAVE_UNIX98_PRINTF 1
34404 _ACEOF
34405
34406         fi
34407     fi
34408 fi
34409
34410
34411 if test "$wxUSE_UNICODE" = yes; then
34412
34413
34414
34415
34416
34417
34418 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34419 do
34420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34421 echo "$as_me:$LINENO: checking for $ac_func" >&5
34422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34423 if eval "test \"\${$as_ac_var+set}\" = set"; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426   cat >conftest.$ac_ext <<_ACEOF
34427 /* confdefs.h.  */
34428 _ACEOF
34429 cat confdefs.h >>conftest.$ac_ext
34430 cat >>conftest.$ac_ext <<_ACEOF
34431 /* end confdefs.h.  */
34432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34434 #define $ac_func innocuous_$ac_func
34435
34436 /* System header to define __stub macros and hopefully few prototypes,
34437     which can conflict with char $ac_func (); below.
34438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34439     <limits.h> exists even on freestanding compilers.  */
34440
34441 #ifdef __STDC__
34442 # include <limits.h>
34443 #else
34444 # include <assert.h>
34445 #endif
34446
34447 #undef $ac_func
34448
34449 /* Override any gcc2 internal prototype to avoid an error.  */
34450 #ifdef __cplusplus
34451 extern "C"
34452 {
34453 #endif
34454 /* We use char because int might match the return type of a gcc2
34455    builtin and then its argument prototype would still apply.  */
34456 char $ac_func ();
34457 /* The GNU C library defines this for functions which it implements
34458     to always fail with ENOSYS.  Some functions are actually named
34459     something starting with __ and the normal name is an alias.  */
34460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34461 choke me
34462 #else
34463 char (*f) () = $ac_func;
34464 #endif
34465 #ifdef __cplusplus
34466 }
34467 #endif
34468
34469 int
34470 main ()
34471 {
34472 return f != $ac_func;
34473   ;
34474   return 0;
34475 }
34476 _ACEOF
34477 rm -f conftest.$ac_objext conftest$ac_exeext
34478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34479   (eval $ac_link) 2>conftest.er1
34480   ac_status=$?
34481   grep -v '^ *+' conftest.er1 >conftest.err
34482   rm -f conftest.er1
34483   cat conftest.err >&5
34484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485   (exit $ac_status); } &&
34486          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488   (eval $ac_try) 2>&5
34489   ac_status=$?
34490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491   (exit $ac_status); }; } &&
34492          { ac_try='test -s conftest$ac_exeext'
34493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34494   (eval $ac_try) 2>&5
34495   ac_status=$?
34496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497   (exit $ac_status); }; }; then
34498   eval "$as_ac_var=yes"
34499 else
34500   echo "$as_me: failed program was:" >&5
34501 sed 's/^/| /' conftest.$ac_ext >&5
34502
34503 eval "$as_ac_var=no"
34504 fi
34505 rm -f conftest.err conftest.$ac_objext \
34506       conftest$ac_exeext conftest.$ac_ext
34507 fi
34508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34510 if test `eval echo '${'$as_ac_var'}'` = yes; then
34511   cat >>confdefs.h <<_ACEOF
34512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34513 _ACEOF
34514
34515 fi
34516 done
34517
34518
34519                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34520 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34521     cat >conftest.$ac_ext <<_ACEOF
34522 /* confdefs.h.  */
34523 _ACEOF
34524 cat confdefs.h >>conftest.$ac_ext
34525 cat >>conftest.$ac_ext <<_ACEOF
34526 /* end confdefs.h.  */
34527 #include <wchar.h>
34528 int
34529 main ()
34530 {
34531 &_vsnwprintf;
34532   ;
34533   return 0;
34534 }
34535 _ACEOF
34536 rm -f conftest.$ac_objext
34537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34538   (eval $ac_compile) 2>conftest.er1
34539   ac_status=$?
34540   grep -v '^ *+' conftest.er1 >conftest.err
34541   rm -f conftest.er1
34542   cat conftest.err >&5
34543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544   (exit $ac_status); } &&
34545          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547   (eval $ac_try) 2>&5
34548   ac_status=$?
34549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550   (exit $ac_status); }; } &&
34551          { ac_try='test -s conftest.$ac_objext'
34552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553   (eval $ac_try) 2>&5
34554   ac_status=$?
34555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556   (exit $ac_status); }; }; then
34557   echo "$as_me:$LINENO: result: yes" >&5
34558 echo "${ECHO_T}yes" >&6
34559                     cat >>confdefs.h <<\_ACEOF
34560 #define HAVE__VSNWPRINTF 1
34561 _ACEOF
34562
34563 else
34564   echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 echo "$as_me:$LINENO: result: no" >&5
34568 echo "${ECHO_T}no" >&6
34569 fi
34570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
34571 fi
34572
34573 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34574
34575 for ac_func in fnmatch
34576 do
34577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34578 echo "$as_me:$LINENO: checking for $ac_func" >&5
34579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34580 if eval "test \"\${$as_ac_var+set}\" = set"; then
34581   echo $ECHO_N "(cached) $ECHO_C" >&6
34582 else
34583   cat >conftest.$ac_ext <<_ACEOF
34584 /* confdefs.h.  */
34585 _ACEOF
34586 cat confdefs.h >>conftest.$ac_ext
34587 cat >>conftest.$ac_ext <<_ACEOF
34588 /* end confdefs.h.  */
34589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34591 #define $ac_func innocuous_$ac_func
34592
34593 /* System header to define __stub macros and hopefully few prototypes,
34594     which can conflict with char $ac_func (); below.
34595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34596     <limits.h> exists even on freestanding compilers.  */
34597
34598 #ifdef __STDC__
34599 # include <limits.h>
34600 #else
34601 # include <assert.h>
34602 #endif
34603
34604 #undef $ac_func
34605
34606 /* Override any gcc2 internal prototype to avoid an error.  */
34607 #ifdef __cplusplus
34608 extern "C"
34609 {
34610 #endif
34611 /* We use char because int might match the return type of a gcc2
34612    builtin and then its argument prototype would still apply.  */
34613 char $ac_func ();
34614 /* The GNU C library defines this for functions which it implements
34615     to always fail with ENOSYS.  Some functions are actually named
34616     something starting with __ and the normal name is an alias.  */
34617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34618 choke me
34619 #else
34620 char (*f) () = $ac_func;
34621 #endif
34622 #ifdef __cplusplus
34623 }
34624 #endif
34625
34626 int
34627 main ()
34628 {
34629 return f != $ac_func;
34630   ;
34631   return 0;
34632 }
34633 _ACEOF
34634 rm -f conftest.$ac_objext conftest$ac_exeext
34635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34636   (eval $ac_link) 2>conftest.er1
34637   ac_status=$?
34638   grep -v '^ *+' conftest.er1 >conftest.err
34639   rm -f conftest.er1
34640   cat conftest.err >&5
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); } &&
34643          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645   (eval $ac_try) 2>&5
34646   ac_status=$?
34647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648   (exit $ac_status); }; } &&
34649          { ac_try='test -s conftest$ac_exeext'
34650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651   (eval $ac_try) 2>&5
34652   ac_status=$?
34653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654   (exit $ac_status); }; }; then
34655   eval "$as_ac_var=yes"
34656 else
34657   echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34659
34660 eval "$as_ac_var=no"
34661 fi
34662 rm -f conftest.err conftest.$ac_objext \
34663       conftest$ac_exeext conftest.$ac_ext
34664 fi
34665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34667 if test `eval echo '${'$as_ac_var'}'` = yes; then
34668   cat >>confdefs.h <<_ACEOF
34669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34670 _ACEOF
34671
34672 fi
34673 done
34674
34675 fi
34676
34677 if test "$wxUSE_FILE" = "yes"; then
34678
34679 for ac_func in fsync
34680 do
34681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34682 echo "$as_me:$LINENO: checking for $ac_func" >&5
34683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34684 if eval "test \"\${$as_ac_var+set}\" = set"; then
34685   echo $ECHO_N "(cached) $ECHO_C" >&6
34686 else
34687   cat >conftest.$ac_ext <<_ACEOF
34688 /* confdefs.h.  */
34689 _ACEOF
34690 cat confdefs.h >>conftest.$ac_ext
34691 cat >>conftest.$ac_ext <<_ACEOF
34692 /* end confdefs.h.  */
34693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34695 #define $ac_func innocuous_$ac_func
34696
34697 /* System header to define __stub macros and hopefully few prototypes,
34698     which can conflict with char $ac_func (); below.
34699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34700     <limits.h> exists even on freestanding compilers.  */
34701
34702 #ifdef __STDC__
34703 # include <limits.h>
34704 #else
34705 # include <assert.h>
34706 #endif
34707
34708 #undef $ac_func
34709
34710 /* Override any gcc2 internal prototype to avoid an error.  */
34711 #ifdef __cplusplus
34712 extern "C"
34713 {
34714 #endif
34715 /* We use char because int might match the return type of a gcc2
34716    builtin and then its argument prototype would still apply.  */
34717 char $ac_func ();
34718 /* The GNU C library defines this for functions which it implements
34719     to always fail with ENOSYS.  Some functions are actually named
34720     something starting with __ and the normal name is an alias.  */
34721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34722 choke me
34723 #else
34724 char (*f) () = $ac_func;
34725 #endif
34726 #ifdef __cplusplus
34727 }
34728 #endif
34729
34730 int
34731 main ()
34732 {
34733 return f != $ac_func;
34734   ;
34735   return 0;
34736 }
34737 _ACEOF
34738 rm -f conftest.$ac_objext conftest$ac_exeext
34739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34740   (eval $ac_link) 2>conftest.er1
34741   ac_status=$?
34742   grep -v '^ *+' conftest.er1 >conftest.err
34743   rm -f conftest.er1
34744   cat conftest.err >&5
34745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746   (exit $ac_status); } &&
34747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749   (eval $ac_try) 2>&5
34750   ac_status=$?
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); }; } &&
34753          { ac_try='test -s conftest$ac_exeext'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; }; then
34759   eval "$as_ac_var=yes"
34760 else
34761   echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34763
34764 eval "$as_ac_var=no"
34765 fi
34766 rm -f conftest.err conftest.$ac_objext \
34767       conftest$ac_exeext conftest.$ac_ext
34768 fi
34769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34771 if test `eval echo '${'$as_ac_var'}'` = yes; then
34772   cat >>confdefs.h <<_ACEOF
34773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34774 _ACEOF
34775
34776 fi
34777 done
34778
34779 fi
34780
34781
34782 if test "$TOOLKIT" != "MSW"; then
34783
34784
34785
34786
34787
34788 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34789 if test "${with_libiconv_prefix+set}" = set; then
34790   withval="$with_libiconv_prefix"
34791
34792     for dir in `echo "$withval" | tr : ' '`; do
34793       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34794       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34795     done
34796
34797 fi;
34798
34799   echo "$as_me:$LINENO: checking for iconv" >&5
34800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34801 if test "${am_cv_func_iconv+set}" = set; then
34802   echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34804
34805     am_cv_func_iconv="no, consider installing GNU libiconv"
34806     am_cv_lib_iconv=no
34807     cat >conftest.$ac_ext <<_ACEOF
34808 /* confdefs.h.  */
34809 _ACEOF
34810 cat confdefs.h >>conftest.$ac_ext
34811 cat >>conftest.$ac_ext <<_ACEOF
34812 /* end confdefs.h.  */
34813 #include <stdlib.h>
34814 #include <iconv.h>
34815 int
34816 main ()
34817 {
34818 iconv_t cd = iconv_open("","");
34819        iconv(cd,NULL,NULL,NULL,NULL);
34820        iconv_close(cd);
34821   ;
34822   return 0;
34823 }
34824 _ACEOF
34825 rm -f conftest.$ac_objext conftest$ac_exeext
34826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34827   (eval $ac_link) 2>conftest.er1
34828   ac_status=$?
34829   grep -v '^ *+' conftest.er1 >conftest.err
34830   rm -f conftest.er1
34831   cat conftest.err >&5
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); } &&
34834          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836   (eval $ac_try) 2>&5
34837   ac_status=$?
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); }; } &&
34840          { ac_try='test -s conftest$ac_exeext'
34841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34842   (eval $ac_try) 2>&5
34843   ac_status=$?
34844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845   (exit $ac_status); }; }; then
34846   am_cv_func_iconv=yes
34847 else
34848   echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851 fi
34852 rm -f conftest.err conftest.$ac_objext \
34853       conftest$ac_exeext conftest.$ac_ext
34854     if test "$am_cv_func_iconv" != yes; then
34855       am_save_LIBS="$LIBS"
34856       LIBS="$LIBS -liconv"
34857       cat >conftest.$ac_ext <<_ACEOF
34858 /* confdefs.h.  */
34859 _ACEOF
34860 cat confdefs.h >>conftest.$ac_ext
34861 cat >>conftest.$ac_ext <<_ACEOF
34862 /* end confdefs.h.  */
34863 #include <stdlib.h>
34864 #include <iconv.h>
34865 int
34866 main ()
34867 {
34868 iconv_t cd = iconv_open("","");
34869          iconv(cd,NULL,NULL,NULL,NULL);
34870          iconv_close(cd);
34871   ;
34872   return 0;
34873 }
34874 _ACEOF
34875 rm -f conftest.$ac_objext conftest$ac_exeext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34877   (eval $ac_link) 2>conftest.er1
34878   ac_status=$?
34879   grep -v '^ *+' conftest.er1 >conftest.err
34880   rm -f conftest.er1
34881   cat conftest.err >&5
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); } &&
34884          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886   (eval $ac_try) 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); }; } &&
34890          { ac_try='test -s conftest$ac_exeext'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; }; then
34896   am_cv_lib_iconv=yes
34897         am_cv_func_iconv=yes
34898 else
34899   echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34901
34902 fi
34903 rm -f conftest.err conftest.$ac_objext \
34904       conftest$ac_exeext conftest.$ac_ext
34905       LIBS="$am_save_LIBS"
34906     fi
34907
34908 fi
34909 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34910 echo "${ECHO_T}$am_cv_func_iconv" >&6
34911   if test "$am_cv_func_iconv" = yes; then
34912
34913 cat >>confdefs.h <<\_ACEOF
34914 #define HAVE_ICONV 1
34915 _ACEOF
34916
34917     echo "$as_me:$LINENO: checking if iconv needs const" >&5
34918 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34919 if test "${wx_cv_func_iconv_const+set}" = set; then
34920   echo $ECHO_N "(cached) $ECHO_C" >&6
34921 else
34922   cat >conftest.$ac_ext <<_ACEOF
34923 /* confdefs.h.  */
34924 _ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h.  */
34928
34929 #include <stdlib.h>
34930 #include <iconv.h>
34931 extern
34932 #ifdef __cplusplus
34933 "C"
34934 #endif
34935 #if defined(__STDC__) || defined(__cplusplus)
34936 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34937 #else
34938 size_t iconv();
34939 #endif
34940
34941 int
34942 main ()
34943 {
34944
34945   ;
34946   return 0;
34947 }
34948 _ACEOF
34949 rm -f conftest.$ac_objext
34950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34951   (eval $ac_compile) 2>conftest.er1
34952   ac_status=$?
34953   grep -v '^ *+' conftest.er1 >conftest.err
34954   rm -f conftest.er1
34955   cat conftest.err >&5
34956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957   (exit $ac_status); } &&
34958          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960   (eval $ac_try) 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; } &&
34964          { ac_try='test -s conftest.$ac_objext'
34965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966   (eval $ac_try) 2>&5
34967   ac_status=$?
34968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969   (exit $ac_status); }; }; then
34970   wx_cv_func_iconv_const="no"
34971 else
34972   echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34974
34975 wx_cv_func_iconv_const="yes"
34976
34977 fi
34978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34979
34980 fi
34981 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34982 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34983
34984     iconv_const=
34985     if test "x$wx_cv_func_iconv_const" = "xyes"; then
34986         iconv_const="const"
34987     fi
34988
34989
34990 cat >>confdefs.h <<_ACEOF
34991 #define ICONV_CONST $iconv_const
34992 _ACEOF
34993
34994   fi
34995   LIBICONV=
34996   if test "$am_cv_lib_iconv" = yes; then
34997     LIBICONV="-liconv"
34998   fi
34999
35000
35001 LIBS="$LIBICONV $LIBS"
35002
35003 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35004
35005 for ac_func in sigaction
35006 do
35007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35008 echo "$as_me:$LINENO: checking for $ac_func" >&5
35009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35010 if eval "test \"\${$as_ac_var+set}\" = set"; then
35011   echo $ECHO_N "(cached) $ECHO_C" >&6
35012 else
35013   cat >conftest.$ac_ext <<_ACEOF
35014 /* confdefs.h.  */
35015 _ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h.  */
35019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35021 #define $ac_func innocuous_$ac_func
35022
35023 /* System header to define __stub macros and hopefully few prototypes,
35024     which can conflict with char $ac_func (); below.
35025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35026     <limits.h> exists even on freestanding compilers.  */
35027
35028 #ifdef __STDC__
35029 # include <limits.h>
35030 #else
35031 # include <assert.h>
35032 #endif
35033
35034 #undef $ac_func
35035
35036 /* Override any gcc2 internal prototype to avoid an error.  */
35037 #ifdef __cplusplus
35038 extern "C"
35039 {
35040 #endif
35041 /* We use char because int might match the return type of a gcc2
35042    builtin and then its argument prototype would still apply.  */
35043 char $ac_func ();
35044 /* The GNU C library defines this for functions which it implements
35045     to always fail with ENOSYS.  Some functions are actually named
35046     something starting with __ and the normal name is an alias.  */
35047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35048 choke me
35049 #else
35050 char (*f) () = $ac_func;
35051 #endif
35052 #ifdef __cplusplus
35053 }
35054 #endif
35055
35056 int
35057 main ()
35058 {
35059 return f != $ac_func;
35060   ;
35061   return 0;
35062 }
35063 _ACEOF
35064 rm -f conftest.$ac_objext conftest$ac_exeext
35065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35066   (eval $ac_link) 2>conftest.er1
35067   ac_status=$?
35068   grep -v '^ *+' conftest.er1 >conftest.err
35069   rm -f conftest.er1
35070   cat conftest.err >&5
35071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072   (exit $ac_status); } &&
35073          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075   (eval $ac_try) 2>&5
35076   ac_status=$?
35077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078   (exit $ac_status); }; } &&
35079          { ac_try='test -s conftest$ac_exeext'
35080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081   (eval $ac_try) 2>&5
35082   ac_status=$?
35083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084   (exit $ac_status); }; }; then
35085   eval "$as_ac_var=yes"
35086 else
35087   echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35089
35090 eval "$as_ac_var=no"
35091 fi
35092 rm -f conftest.err conftest.$ac_objext \
35093       conftest$ac_exeext conftest.$ac_ext
35094 fi
35095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35097 if test `eval echo '${'$as_ac_var'}'` = yes; then
35098   cat >>confdefs.h <<_ACEOF
35099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35100 _ACEOF
35101
35102 fi
35103 done
35104
35105
35106     if test "$ac_cv_func_sigaction" = "no"; then
35107         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35108 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35109         wxUSE_ON_FATAL_EXCEPTION=no
35110     fi
35111
35112     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35113       echo "$as_me:$LINENO: checking for sa_handler type" >&5
35114 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35115 if test "${wx_cv_type_sa_handler+set}" = set; then
35116   echo $ECHO_N "(cached) $ECHO_C" >&6
35117 else
35118
35119         cat >conftest.$ac_ext <<_ACEOF
35120 /* confdefs.h.  */
35121 _ACEOF
35122 cat confdefs.h >>conftest.$ac_ext
35123 cat >>conftest.$ac_ext <<_ACEOF
35124 /* end confdefs.h.  */
35125 #include <signal.h>
35126 int
35127 main ()
35128 {
35129
35130                         extern void testSigHandler(int);
35131
35132                         struct sigaction sa;
35133                         sa.sa_handler = testSigHandler;
35134
35135   ;
35136   return 0;
35137 }
35138 _ACEOF
35139 rm -f conftest.$ac_objext
35140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35141   (eval $ac_compile) 2>conftest.er1
35142   ac_status=$?
35143   grep -v '^ *+' conftest.er1 >conftest.err
35144   rm -f conftest.er1
35145   cat conftest.err >&5
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); } &&
35148          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150   (eval $ac_try) 2>&5
35151   ac_status=$?
35152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153   (exit $ac_status); }; } &&
35154          { ac_try='test -s conftest.$ac_objext'
35155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35156   (eval $ac_try) 2>&5
35157   ac_status=$?
35158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159   (exit $ac_status); }; }; then
35160
35161                         wx_cv_type_sa_handler=int
35162
35163 else
35164   echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35166
35167
35168                         wx_cv_type_sa_handler=void
35169
35170 fi
35171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35172
35173 fi
35174 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35175 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35176
35177       cat >>confdefs.h <<_ACEOF
35178 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35179 _ACEOF
35180
35181     fi
35182 fi
35183
35184 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35185     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35186 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35187 if test "${wx_cv_func_backtrace+set}" = set; then
35188   echo $ECHO_N "(cached) $ECHO_C" >&6
35189 else
35190
35191             cat >conftest.$ac_ext <<_ACEOF
35192 /* confdefs.h.  */
35193 _ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h.  */
35197 #include <execinfo.h>
35198 int
35199 main ()
35200 {
35201
35202                     void *trace[1];
35203                     char **messages;
35204
35205                     backtrace(trace, 1);
35206                     messages = backtrace_symbols(trace, 1);
35207
35208   ;
35209   return 0;
35210 }
35211 _ACEOF
35212 rm -f conftest.$ac_objext
35213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35214   (eval $ac_compile) 2>conftest.er1
35215   ac_status=$?
35216   grep -v '^ *+' conftest.er1 >conftest.err
35217   rm -f conftest.er1
35218   cat conftest.err >&5
35219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220   (exit $ac_status); } &&
35221          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35223   (eval $ac_try) 2>&5
35224   ac_status=$?
35225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226   (exit $ac_status); }; } &&
35227          { ac_try='test -s conftest.$ac_objext'
35228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35229   (eval $ac_try) 2>&5
35230   ac_status=$?
35231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232   (exit $ac_status); }; }; then
35233   wx_cv_func_backtrace=yes
35234 else
35235   echo "$as_me: failed program was:" >&5
35236 sed 's/^/| /' conftest.$ac_ext >&5
35237
35238 wx_cv_func_backtrace=no
35239
35240 fi
35241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35242
35243
35244 fi
35245 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35246 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35247
35248
35249     if test "$wx_cv_func_backtrace" = "no"; then
35250         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35251 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35252         wxUSE_STACKWALKER=no
35253     else
35254         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35255 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35256 if test "${wx_cv_func_cxa_demangle+set}" = set; then
35257   echo $ECHO_N "(cached) $ECHO_C" >&6
35258 else
35259
35260                 cat >conftest.$ac_ext <<_ACEOF
35261 /* confdefs.h.  */
35262 _ACEOF
35263 cat confdefs.h >>conftest.$ac_ext
35264 cat >>conftest.$ac_ext <<_ACEOF
35265 /* end confdefs.h.  */
35266 #include <cxxabi.h>
35267 int
35268 main ()
35269 {
35270
35271                         int rc;
35272                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35273
35274   ;
35275   return 0;
35276 }
35277 _ACEOF
35278 rm -f conftest.$ac_objext conftest$ac_exeext
35279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35280   (eval $ac_link) 2>conftest.er1
35281   ac_status=$?
35282   grep -v '^ *+' conftest.er1 >conftest.err
35283   rm -f conftest.er1
35284   cat conftest.err >&5
35285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286   (exit $ac_status); } &&
35287          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289   (eval $ac_try) 2>&5
35290   ac_status=$?
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); }; } &&
35293          { ac_try='test -s conftest$ac_exeext'
35294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295   (eval $ac_try) 2>&5
35296   ac_status=$?
35297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298   (exit $ac_status); }; }; then
35299   wx_cv_func_cxa_demangle=yes
35300 else
35301   echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35303
35304 wx_cv_func_cxa_demangle=no
35305
35306 fi
35307 rm -f conftest.err conftest.$ac_objext \
35308       conftest$ac_exeext conftest.$ac_ext
35309
35310
35311 fi
35312 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35313 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35314
35315         if test "$wx_cv_func_cxa_demangle" = "yes"; then
35316             cat >>confdefs.h <<\_ACEOF
35317 #define HAVE_CXA_DEMANGLE 1
35318 _ACEOF
35319
35320         fi
35321     fi
35322 fi
35323
35324 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35325     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35326 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35327     wxUSE_STACKWALKER=no
35328 fi
35329
35330
35331
35332
35333 for ac_func in mkstemp mktemp
35334 do
35335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35336 echo "$as_me:$LINENO: checking for $ac_func" >&5
35337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35338 if eval "test \"\${$as_ac_var+set}\" = set"; then
35339   echo $ECHO_N "(cached) $ECHO_C" >&6
35340 else
35341   cat >conftest.$ac_ext <<_ACEOF
35342 /* confdefs.h.  */
35343 _ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h.  */
35347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35349 #define $ac_func innocuous_$ac_func
35350
35351 /* System header to define __stub macros and hopefully few prototypes,
35352     which can conflict with char $ac_func (); below.
35353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35354     <limits.h> exists even on freestanding compilers.  */
35355
35356 #ifdef __STDC__
35357 # include <limits.h>
35358 #else
35359 # include <assert.h>
35360 #endif
35361
35362 #undef $ac_func
35363
35364 /* Override any gcc2 internal prototype to avoid an error.  */
35365 #ifdef __cplusplus
35366 extern "C"
35367 {
35368 #endif
35369 /* We use char because int might match the return type of a gcc2
35370    builtin and then its argument prototype would still apply.  */
35371 char $ac_func ();
35372 /* The GNU C library defines this for functions which it implements
35373     to always fail with ENOSYS.  Some functions are actually named
35374     something starting with __ and the normal name is an alias.  */
35375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35376 choke me
35377 #else
35378 char (*f) () = $ac_func;
35379 #endif
35380 #ifdef __cplusplus
35381 }
35382 #endif
35383
35384 int
35385 main ()
35386 {
35387 return f != $ac_func;
35388   ;
35389   return 0;
35390 }
35391 _ACEOF
35392 rm -f conftest.$ac_objext conftest$ac_exeext
35393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35394   (eval $ac_link) 2>conftest.er1
35395   ac_status=$?
35396   grep -v '^ *+' conftest.er1 >conftest.err
35397   rm -f conftest.er1
35398   cat conftest.err >&5
35399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400   (exit $ac_status); } &&
35401          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403   (eval $ac_try) 2>&5
35404   ac_status=$?
35405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406   (exit $ac_status); }; } &&
35407          { ac_try='test -s conftest$ac_exeext'
35408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35409   (eval $ac_try) 2>&5
35410   ac_status=$?
35411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412   (exit $ac_status); }; }; then
35413   eval "$as_ac_var=yes"
35414 else
35415   echo "$as_me: failed program was:" >&5
35416 sed 's/^/| /' conftest.$ac_ext >&5
35417
35418 eval "$as_ac_var=no"
35419 fi
35420 rm -f conftest.err conftest.$ac_objext \
35421       conftest$ac_exeext conftest.$ac_ext
35422 fi
35423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35425 if test `eval echo '${'$as_ac_var'}'` = yes; then
35426   cat >>confdefs.h <<_ACEOF
35427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35428 _ACEOF
35429  break
35430 fi
35431 done
35432
35433
35434 echo "$as_me:$LINENO: checking for statfs" >&5
35435 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35436 if test "${wx_cv_func_statfs+set}" = set; then
35437   echo $ECHO_N "(cached) $ECHO_C" >&6
35438 else
35439   cat >conftest.$ac_ext <<_ACEOF
35440 /* confdefs.h.  */
35441 _ACEOF
35442 cat confdefs.h >>conftest.$ac_ext
35443 cat >>conftest.$ac_ext <<_ACEOF
35444 /* end confdefs.h.  */
35445
35446              #if defined(__BSD__)
35447              #include <sys/param.h>
35448              #include <sys/mount.h>
35449              #else
35450              #include <sys/vfs.h>
35451              #endif
35452
35453 int
35454 main ()
35455 {
35456
35457              long l;
35458              struct statfs fs;
35459              statfs("/", &fs);
35460              l = fs.f_bsize;
35461              l += fs.f_blocks;
35462              l += fs.f_bavail;
35463
35464   ;
35465   return 0;
35466 }
35467 _ACEOF
35468 rm -f conftest.$ac_objext
35469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35470   (eval $ac_compile) 2>conftest.er1
35471   ac_status=$?
35472   grep -v '^ *+' conftest.er1 >conftest.err
35473   rm -f conftest.er1
35474   cat conftest.err >&5
35475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476   (exit $ac_status); } &&
35477          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35479   (eval $ac_try) 2>&5
35480   ac_status=$?
35481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482   (exit $ac_status); }; } &&
35483          { ac_try='test -s conftest.$ac_objext'
35484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485   (eval $ac_try) 2>&5
35486   ac_status=$?
35487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488   (exit $ac_status); }; }; then
35489   wx_cv_func_statfs=yes
35490 else
35491   echo "$as_me: failed program was:" >&5
35492 sed 's/^/| /' conftest.$ac_ext >&5
35493
35494 wx_cv_func_statfs=no
35495
35496 fi
35497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35498
35499 fi
35500 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35501 echo "${ECHO_T}$wx_cv_func_statfs" >&6
35502
35503 if test "$wx_cv_func_statfs" = "yes"; then
35504         echo "$as_me:$LINENO: checking for statfs declaration" >&5
35505 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35506 if test "${wx_cv_func_statfs_decl+set}" = set; then
35507   echo $ECHO_N "(cached) $ECHO_C" >&6
35508 else
35509   cat >conftest.$ac_ext <<_ACEOF
35510 /* confdefs.h.  */
35511 _ACEOF
35512 cat confdefs.h >>conftest.$ac_ext
35513 cat >>conftest.$ac_ext <<_ACEOF
35514 /* end confdefs.h.  */
35515
35516                  #if defined(__BSD__)
35517                  #include <sys/param.h>
35518                  #include <sys/mount.h>
35519                  #else
35520                  #include <sys/vfs.h>
35521                  #endif
35522
35523 int
35524 main ()
35525 {
35526
35527                 struct statfs fs;
35528                 statfs("", &fs);
35529
35530   ;
35531   return 0;
35532 }
35533 _ACEOF
35534 rm -f conftest.$ac_objext
35535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35536   (eval $ac_compile) 2>conftest.er1
35537   ac_status=$?
35538   grep -v '^ *+' conftest.er1 >conftest.err
35539   rm -f conftest.er1
35540   cat conftest.err >&5
35541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542   (exit $ac_status); } &&
35543          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545   (eval $ac_try) 2>&5
35546   ac_status=$?
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); }; } &&
35549          { ac_try='test -s conftest.$ac_objext'
35550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551   (eval $ac_try) 2>&5
35552   ac_status=$?
35553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554   (exit $ac_status); }; }; then
35555   wx_cv_func_statfs_decl=yes
35556 else
35557   echo "$as_me: failed program was:" >&5
35558 sed 's/^/| /' conftest.$ac_ext >&5
35559
35560 wx_cv_func_statfs_decl=no
35561
35562 fi
35563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35564
35565 fi
35566 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35567 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
35568
35569     if test "$wx_cv_func_statfs_decl" = "yes"; then
35570         cat >>confdefs.h <<\_ACEOF
35571 #define HAVE_STATFS_DECL 1
35572 _ACEOF
35573
35574     fi
35575
35576     wx_cv_type_statvfs_t="struct statfs"
35577     cat >>confdefs.h <<\_ACEOF
35578 #define HAVE_STATFS 1
35579 _ACEOF
35580
35581 else
35582     echo "$as_me:$LINENO: checking for statvfs" >&5
35583 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35584 if test "${wx_cv_func_statvfs+set}" = set; then
35585   echo $ECHO_N "(cached) $ECHO_C" >&6
35586 else
35587   cat >conftest.$ac_ext <<_ACEOF
35588 /* confdefs.h.  */
35589 _ACEOF
35590 cat confdefs.h >>conftest.$ac_ext
35591 cat >>conftest.$ac_ext <<_ACEOF
35592 /* end confdefs.h.  */
35593
35594                 #include <stddef.h>
35595                 #include <sys/statvfs.h>
35596
35597 int
35598 main ()
35599 {
35600
35601                 statvfs("/", NULL);
35602
35603   ;
35604   return 0;
35605 }
35606 _ACEOF
35607 rm -f conftest.$ac_objext
35608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35609   (eval $ac_compile) 2>conftest.er1
35610   ac_status=$?
35611   grep -v '^ *+' conftest.er1 >conftest.err
35612   rm -f conftest.er1
35613   cat conftest.err >&5
35614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615   (exit $ac_status); } &&
35616          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35618   (eval $ac_try) 2>&5
35619   ac_status=$?
35620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621   (exit $ac_status); }; } &&
35622          { ac_try='test -s conftest.$ac_objext'
35623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35624   (eval $ac_try) 2>&5
35625   ac_status=$?
35626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627   (exit $ac_status); }; }; then
35628   wx_cv_func_statvfs=yes
35629 else
35630   echo "$as_me: failed program was:" >&5
35631 sed 's/^/| /' conftest.$ac_ext >&5
35632
35633 wx_cv_func_statvfs=no
35634
35635 fi
35636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35637
35638 fi
35639 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35640 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35641
35642     if test "$wx_cv_func_statvfs" = "yes"; then
35643                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
35644 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35645 if test "${wx_cv_type_statvfs_t+set}" = set; then
35646   echo $ECHO_N "(cached) $ECHO_C" >&6
35647 else
35648   cat >conftest.$ac_ext <<_ACEOF
35649 /* confdefs.h.  */
35650 _ACEOF
35651 cat confdefs.h >>conftest.$ac_ext
35652 cat >>conftest.$ac_ext <<_ACEOF
35653 /* end confdefs.h.  */
35654
35655                     #include <sys/statvfs.h>
35656
35657 int
35658 main ()
35659 {
35660
35661                     long l;
35662                     statvfs_t fs;
35663                     statvfs("/", &fs);
35664                     l = fs.f_bsize;
35665                     l += fs.f_blocks;
35666                     l += fs.f_bavail;
35667
35668   ;
35669   return 0;
35670 }
35671 _ACEOF
35672 rm -f conftest.$ac_objext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35674   (eval $ac_compile) 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } &&
35681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683   (eval $ac_try) 2>&5
35684   ac_status=$?
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); }; } &&
35687          { ac_try='test -s conftest.$ac_objext'
35688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689   (eval $ac_try) 2>&5
35690   ac_status=$?
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); }; }; then
35693   wx_cv_type_statvfs_t=statvfs_t
35694 else
35695   echo "$as_me: failed program was:" >&5
35696 sed 's/^/| /' conftest.$ac_ext >&5
35697
35698
35699                     cat >conftest.$ac_ext <<_ACEOF
35700 /* confdefs.h.  */
35701 _ACEOF
35702 cat confdefs.h >>conftest.$ac_ext
35703 cat >>conftest.$ac_ext <<_ACEOF
35704 /* end confdefs.h.  */
35705
35706                             #include <sys/statvfs.h>
35707
35708 int
35709 main ()
35710 {
35711
35712                             long l;
35713                             struct statvfs fs;
35714                             statvfs("/", &fs);
35715                             l = fs.f_bsize;
35716                             l += fs.f_blocks;
35717                             l += fs.f_bavail;
35718
35719   ;
35720   return 0;
35721 }
35722 _ACEOF
35723 rm -f conftest.$ac_objext
35724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35725   (eval $ac_compile) 2>conftest.er1
35726   ac_status=$?
35727   grep -v '^ *+' conftest.er1 >conftest.err
35728   rm -f conftest.er1
35729   cat conftest.err >&5
35730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731   (exit $ac_status); } &&
35732          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734   (eval $ac_try) 2>&5
35735   ac_status=$?
35736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); }; } &&
35738          { ac_try='test -s conftest.$ac_objext'
35739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740   (eval $ac_try) 2>&5
35741   ac_status=$?
35742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743   (exit $ac_status); }; }; then
35744   wx_cv_type_statvfs_t="struct statvfs"
35745 else
35746   echo "$as_me: failed program was:" >&5
35747 sed 's/^/| /' conftest.$ac_ext >&5
35748
35749 wx_cv_type_statvfs_t="unknown"
35750
35751 fi
35752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35753
35754
35755 fi
35756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35757
35758 fi
35759 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35760 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35761
35762         if test "$wx_cv_type_statvfs_t" != "unknown"; then
35763             cat >>confdefs.h <<\_ACEOF
35764 #define HAVE_STATVFS 1
35765 _ACEOF
35766
35767         fi
35768     else
35769                 wx_cv_type_statvfs_t="unknown"
35770     fi
35771 fi
35772
35773 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35774     cat >>confdefs.h <<_ACEOF
35775 #define WX_STATFS_T $wx_cv_type_statvfs_t
35776 _ACEOF
35777
35778 else
35779     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35780 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35781 fi
35782
35783 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35784
35785
35786 for ac_func in fcntl flock
35787 do
35788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35789 echo "$as_me:$LINENO: checking for $ac_func" >&5
35790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35791 if eval "test \"\${$as_ac_var+set}\" = set"; then
35792   echo $ECHO_N "(cached) $ECHO_C" >&6
35793 else
35794   cat >conftest.$ac_ext <<_ACEOF
35795 /* confdefs.h.  */
35796 _ACEOF
35797 cat confdefs.h >>conftest.$ac_ext
35798 cat >>conftest.$ac_ext <<_ACEOF
35799 /* end confdefs.h.  */
35800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35802 #define $ac_func innocuous_$ac_func
35803
35804 /* System header to define __stub macros and hopefully few prototypes,
35805     which can conflict with char $ac_func (); below.
35806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35807     <limits.h> exists even on freestanding compilers.  */
35808
35809 #ifdef __STDC__
35810 # include <limits.h>
35811 #else
35812 # include <assert.h>
35813 #endif
35814
35815 #undef $ac_func
35816
35817 /* Override any gcc2 internal prototype to avoid an error.  */
35818 #ifdef __cplusplus
35819 extern "C"
35820 {
35821 #endif
35822 /* We use char because int might match the return type of a gcc2
35823    builtin and then its argument prototype would still apply.  */
35824 char $ac_func ();
35825 /* The GNU C library defines this for functions which it implements
35826     to always fail with ENOSYS.  Some functions are actually named
35827     something starting with __ and the normal name is an alias.  */
35828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35829 choke me
35830 #else
35831 char (*f) () = $ac_func;
35832 #endif
35833 #ifdef __cplusplus
35834 }
35835 #endif
35836
35837 int
35838 main ()
35839 {
35840 return f != $ac_func;
35841   ;
35842   return 0;
35843 }
35844 _ACEOF
35845 rm -f conftest.$ac_objext conftest$ac_exeext
35846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35847   (eval $ac_link) 2>conftest.er1
35848   ac_status=$?
35849   grep -v '^ *+' conftest.er1 >conftest.err
35850   rm -f conftest.er1
35851   cat conftest.err >&5
35852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853   (exit $ac_status); } &&
35854          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856   (eval $ac_try) 2>&5
35857   ac_status=$?
35858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859   (exit $ac_status); }; } &&
35860          { ac_try='test -s conftest$ac_exeext'
35861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862   (eval $ac_try) 2>&5
35863   ac_status=$?
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); }; }; then
35866   eval "$as_ac_var=yes"
35867 else
35868   echo "$as_me: failed program was:" >&5
35869 sed 's/^/| /' conftest.$ac_ext >&5
35870
35871 eval "$as_ac_var=no"
35872 fi
35873 rm -f conftest.err conftest.$ac_objext \
35874       conftest$ac_exeext conftest.$ac_ext
35875 fi
35876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35878 if test `eval echo '${'$as_ac_var'}'` = yes; then
35879   cat >>confdefs.h <<_ACEOF
35880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35881 _ACEOF
35882  break
35883 fi
35884 done
35885
35886
35887     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35888         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35889 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35890         wxUSE_SNGLINST_CHECKER=no
35891     fi
35892 fi
35893
35894
35895 for ac_func in timegm
35896 do
35897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35898 echo "$as_me:$LINENO: checking for $ac_func" >&5
35899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35900 if eval "test \"\${$as_ac_var+set}\" = set"; then
35901   echo $ECHO_N "(cached) $ECHO_C" >&6
35902 else
35903   cat >conftest.$ac_ext <<_ACEOF
35904 /* confdefs.h.  */
35905 _ACEOF
35906 cat confdefs.h >>conftest.$ac_ext
35907 cat >>conftest.$ac_ext <<_ACEOF
35908 /* end confdefs.h.  */
35909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35911 #define $ac_func innocuous_$ac_func
35912
35913 /* System header to define __stub macros and hopefully few prototypes,
35914     which can conflict with char $ac_func (); below.
35915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35916     <limits.h> exists even on freestanding compilers.  */
35917
35918 #ifdef __STDC__
35919 # include <limits.h>
35920 #else
35921 # include <assert.h>
35922 #endif
35923
35924 #undef $ac_func
35925
35926 /* Override any gcc2 internal prototype to avoid an error.  */
35927 #ifdef __cplusplus
35928 extern "C"
35929 {
35930 #endif
35931 /* We use char because int might match the return type of a gcc2
35932    builtin and then its argument prototype would still apply.  */
35933 char $ac_func ();
35934 /* The GNU C library defines this for functions which it implements
35935     to always fail with ENOSYS.  Some functions are actually named
35936     something starting with __ and the normal name is an alias.  */
35937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35938 choke me
35939 #else
35940 char (*f) () = $ac_func;
35941 #endif
35942 #ifdef __cplusplus
35943 }
35944 #endif
35945
35946 int
35947 main ()
35948 {
35949 return f != $ac_func;
35950   ;
35951   return 0;
35952 }
35953 _ACEOF
35954 rm -f conftest.$ac_objext conftest$ac_exeext
35955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35956   (eval $ac_link) 2>conftest.er1
35957   ac_status=$?
35958   grep -v '^ *+' conftest.er1 >conftest.err
35959   rm -f conftest.er1
35960   cat conftest.err >&5
35961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962   (exit $ac_status); } &&
35963          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965   (eval $ac_try) 2>&5
35966   ac_status=$?
35967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968   (exit $ac_status); }; } &&
35969          { ac_try='test -s conftest$ac_exeext'
35970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971   (eval $ac_try) 2>&5
35972   ac_status=$?
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); }; }; then
35975   eval "$as_ac_var=yes"
35976 else
35977   echo "$as_me: failed program was:" >&5
35978 sed 's/^/| /' conftest.$ac_ext >&5
35979
35980 eval "$as_ac_var=no"
35981 fi
35982 rm -f conftest.err conftest.$ac_objext \
35983       conftest$ac_exeext conftest.$ac_ext
35984 fi
35985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35987 if test `eval echo '${'$as_ac_var'}'` = yes; then
35988   cat >>confdefs.h <<_ACEOF
35989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35990 _ACEOF
35991
35992 fi
35993 done
35994
35995
35996
35997
35998 for ac_func in putenv setenv
35999 do
36000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36001 echo "$as_me:$LINENO: checking for $ac_func" >&5
36002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36003 if eval "test \"\${$as_ac_var+set}\" = set"; then
36004   echo $ECHO_N "(cached) $ECHO_C" >&6
36005 else
36006   cat >conftest.$ac_ext <<_ACEOF
36007 /* confdefs.h.  */
36008 _ACEOF
36009 cat confdefs.h >>conftest.$ac_ext
36010 cat >>conftest.$ac_ext <<_ACEOF
36011 /* end confdefs.h.  */
36012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36014 #define $ac_func innocuous_$ac_func
36015
36016 /* System header to define __stub macros and hopefully few prototypes,
36017     which can conflict with char $ac_func (); below.
36018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36019     <limits.h> exists even on freestanding compilers.  */
36020
36021 #ifdef __STDC__
36022 # include <limits.h>
36023 #else
36024 # include <assert.h>
36025 #endif
36026
36027 #undef $ac_func
36028
36029 /* Override any gcc2 internal prototype to avoid an error.  */
36030 #ifdef __cplusplus
36031 extern "C"
36032 {
36033 #endif
36034 /* We use char because int might match the return type of a gcc2
36035    builtin and then its argument prototype would still apply.  */
36036 char $ac_func ();
36037 /* The GNU C library defines this for functions which it implements
36038     to always fail with ENOSYS.  Some functions are actually named
36039     something starting with __ and the normal name is an alias.  */
36040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36041 choke me
36042 #else
36043 char (*f) () = $ac_func;
36044 #endif
36045 #ifdef __cplusplus
36046 }
36047 #endif
36048
36049 int
36050 main ()
36051 {
36052 return f != $ac_func;
36053   ;
36054   return 0;
36055 }
36056 _ACEOF
36057 rm -f conftest.$ac_objext conftest$ac_exeext
36058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36059   (eval $ac_link) 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } &&
36066          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36068   (eval $ac_try) 2>&5
36069   ac_status=$?
36070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071   (exit $ac_status); }; } &&
36072          { ac_try='test -s conftest$ac_exeext'
36073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074   (eval $ac_try) 2>&5
36075   ac_status=$?
36076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077   (exit $ac_status); }; }; then
36078   eval "$as_ac_var=yes"
36079 else
36080   echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36082
36083 eval "$as_ac_var=no"
36084 fi
36085 rm -f conftest.err conftest.$ac_objext \
36086       conftest$ac_exeext conftest.$ac_ext
36087 fi
36088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36090 if test `eval echo '${'$as_ac_var'}'` = yes; then
36091   cat >>confdefs.h <<_ACEOF
36092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36093 _ACEOF
36094  break
36095 fi
36096 done
36097
36098
36099 HAVE_SOME_SLEEP_FUNC=0
36100 if test "$USE_BEOS" = 1; then
36101             cat >>confdefs.h <<\_ACEOF
36102 #define HAVE_SLEEP 1
36103 _ACEOF
36104
36105     HAVE_SOME_SLEEP_FUNC=1
36106 fi
36107
36108 if test "$USE_DARWIN" = 1; then
36109             cat >>confdefs.h <<\_ACEOF
36110 #define HAVE_USLEEP 1
36111 _ACEOF
36112
36113     HAVE_SOME_SLEEP_FUNC=1
36114 fi
36115
36116 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36117         POSIX4_LINK=
36118
36119 for ac_func in nanosleep
36120 do
36121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36122 echo "$as_me:$LINENO: checking for $ac_func" >&5
36123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36124 if eval "test \"\${$as_ac_var+set}\" = set"; then
36125   echo $ECHO_N "(cached) $ECHO_C" >&6
36126 else
36127   cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36135 #define $ac_func innocuous_$ac_func
36136
36137 /* System header to define __stub macros and hopefully few prototypes,
36138     which can conflict with char $ac_func (); below.
36139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36140     <limits.h> exists even on freestanding compilers.  */
36141
36142 #ifdef __STDC__
36143 # include <limits.h>
36144 #else
36145 # include <assert.h>
36146 #endif
36147
36148 #undef $ac_func
36149
36150 /* Override any gcc2 internal prototype to avoid an error.  */
36151 #ifdef __cplusplus
36152 extern "C"
36153 {
36154 #endif
36155 /* We use char because int might match the return type of a gcc2
36156    builtin and then its argument prototype would still apply.  */
36157 char $ac_func ();
36158 /* The GNU C library defines this for functions which it implements
36159     to always fail with ENOSYS.  Some functions are actually named
36160     something starting with __ and the normal name is an alias.  */
36161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36162 choke me
36163 #else
36164 char (*f) () = $ac_func;
36165 #endif
36166 #ifdef __cplusplus
36167 }
36168 #endif
36169
36170 int
36171 main ()
36172 {
36173 return f != $ac_func;
36174   ;
36175   return 0;
36176 }
36177 _ACEOF
36178 rm -f conftest.$ac_objext conftest$ac_exeext
36179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36180   (eval $ac_link) 2>conftest.er1
36181   ac_status=$?
36182   grep -v '^ *+' conftest.er1 >conftest.err
36183   rm -f conftest.er1
36184   cat conftest.err >&5
36185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186   (exit $ac_status); } &&
36187          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189   (eval $ac_try) 2>&5
36190   ac_status=$?
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); }; } &&
36193          { ac_try='test -s conftest$ac_exeext'
36194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195   (eval $ac_try) 2>&5
36196   ac_status=$?
36197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198   (exit $ac_status); }; }; then
36199   eval "$as_ac_var=yes"
36200 else
36201   echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36203
36204 eval "$as_ac_var=no"
36205 fi
36206 rm -f conftest.err conftest.$ac_objext \
36207       conftest$ac_exeext conftest.$ac_ext
36208 fi
36209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36211 if test `eval echo '${'$as_ac_var'}'` = yes; then
36212   cat >>confdefs.h <<_ACEOF
36213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36214 _ACEOF
36215  cat >>confdefs.h <<\_ACEOF
36216 #define HAVE_NANOSLEEP 1
36217 _ACEOF
36218
36219 else
36220
36221             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36222 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36223 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36224   echo $ECHO_N "(cached) $ECHO_C" >&6
36225 else
36226   ac_check_lib_save_LIBS=$LIBS
36227 LIBS="-lposix4  $LIBS"
36228 cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234
36235 /* Override any gcc2 internal prototype to avoid an error.  */
36236 #ifdef __cplusplus
36237 extern "C"
36238 #endif
36239 /* We use char because int might match the return type of a gcc2
36240    builtin and then its argument prototype would still apply.  */
36241 char nanosleep ();
36242 int
36243 main ()
36244 {
36245 nanosleep ();
36246   ;
36247   return 0;
36248 }
36249 _ACEOF
36250 rm -f conftest.$ac_objext conftest$ac_exeext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36252   (eval $ac_link) 2>conftest.er1
36253   ac_status=$?
36254   grep -v '^ *+' conftest.er1 >conftest.err
36255   rm -f conftest.er1
36256   cat conftest.err >&5
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); } &&
36259          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36261   (eval $ac_try) 2>&5
36262   ac_status=$?
36263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264   (exit $ac_status); }; } &&
36265          { ac_try='test -s conftest$ac_exeext'
36266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36267   (eval $ac_try) 2>&5
36268   ac_status=$?
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); }; }; then
36271   ac_cv_lib_posix4_nanosleep=yes
36272 else
36273   echo "$as_me: failed program was:" >&5
36274 sed 's/^/| /' conftest.$ac_ext >&5
36275
36276 ac_cv_lib_posix4_nanosleep=no
36277 fi
36278 rm -f conftest.err conftest.$ac_objext \
36279       conftest$ac_exeext conftest.$ac_ext
36280 LIBS=$ac_check_lib_save_LIBS
36281 fi
36282 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36283 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36284 if test $ac_cv_lib_posix4_nanosleep = yes; then
36285
36286                     cat >>confdefs.h <<\_ACEOF
36287 #define HAVE_NANOSLEEP 1
36288 _ACEOF
36289
36290                     POSIX4_LINK=" -lposix4"
36291
36292 else
36293
36294
36295 for ac_func in usleep
36296 do
36297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36298 echo "$as_me:$LINENO: checking for $ac_func" >&5
36299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36300 if eval "test \"\${$as_ac_var+set}\" = set"; then
36301   echo $ECHO_N "(cached) $ECHO_C" >&6
36302 else
36303   cat >conftest.$ac_ext <<_ACEOF
36304 /* confdefs.h.  */
36305 _ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h.  */
36309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36311 #define $ac_func innocuous_$ac_func
36312
36313 /* System header to define __stub macros and hopefully few prototypes,
36314     which can conflict with char $ac_func (); below.
36315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36316     <limits.h> exists even on freestanding compilers.  */
36317
36318 #ifdef __STDC__
36319 # include <limits.h>
36320 #else
36321 # include <assert.h>
36322 #endif
36323
36324 #undef $ac_func
36325
36326 /* Override any gcc2 internal prototype to avoid an error.  */
36327 #ifdef __cplusplus
36328 extern "C"
36329 {
36330 #endif
36331 /* We use char because int might match the return type of a gcc2
36332    builtin and then its argument prototype would still apply.  */
36333 char $ac_func ();
36334 /* The GNU C library defines this for functions which it implements
36335     to always fail with ENOSYS.  Some functions are actually named
36336     something starting with __ and the normal name is an alias.  */
36337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36338 choke me
36339 #else
36340 char (*f) () = $ac_func;
36341 #endif
36342 #ifdef __cplusplus
36343 }
36344 #endif
36345
36346 int
36347 main ()
36348 {
36349 return f != $ac_func;
36350   ;
36351   return 0;
36352 }
36353 _ACEOF
36354 rm -f conftest.$ac_objext conftest$ac_exeext
36355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36356   (eval $ac_link) 2>conftest.er1
36357   ac_status=$?
36358   grep -v '^ *+' conftest.er1 >conftest.err
36359   rm -f conftest.er1
36360   cat conftest.err >&5
36361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362   (exit $ac_status); } &&
36363          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365   (eval $ac_try) 2>&5
36366   ac_status=$?
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); }; } &&
36369          { ac_try='test -s conftest$ac_exeext'
36370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371   (eval $ac_try) 2>&5
36372   ac_status=$?
36373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374   (exit $ac_status); }; }; then
36375   eval "$as_ac_var=yes"
36376 else
36377   echo "$as_me: failed program was:" >&5
36378 sed 's/^/| /' conftest.$ac_ext >&5
36379
36380 eval "$as_ac_var=no"
36381 fi
36382 rm -f conftest.err conftest.$ac_objext \
36383       conftest$ac_exeext conftest.$ac_ext
36384 fi
36385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36387 if test `eval echo '${'$as_ac_var'}'` = yes; then
36388   cat >>confdefs.h <<_ACEOF
36389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36390 _ACEOF
36391  cat >>confdefs.h <<\_ACEOF
36392 #define HAVE_USLEEP 1
36393 _ACEOF
36394
36395 else
36396   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36397 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36398
36399 fi
36400 done
36401
36402
36403
36404 fi
36405
36406
36407
36408 fi
36409 done
36410
36411 fi
36412
36413
36414
36415 for ac_func in uname gethostname
36416 do
36417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36418 echo "$as_me:$LINENO: checking for $ac_func" >&5
36419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36420 if eval "test \"\${$as_ac_var+set}\" = set"; then
36421   echo $ECHO_N "(cached) $ECHO_C" >&6
36422 else
36423   cat >conftest.$ac_ext <<_ACEOF
36424 /* confdefs.h.  */
36425 _ACEOF
36426 cat confdefs.h >>conftest.$ac_ext
36427 cat >>conftest.$ac_ext <<_ACEOF
36428 /* end confdefs.h.  */
36429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36431 #define $ac_func innocuous_$ac_func
36432
36433 /* System header to define __stub macros and hopefully few prototypes,
36434     which can conflict with char $ac_func (); below.
36435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36436     <limits.h> exists even on freestanding compilers.  */
36437
36438 #ifdef __STDC__
36439 # include <limits.h>
36440 #else
36441 # include <assert.h>
36442 #endif
36443
36444 #undef $ac_func
36445
36446 /* Override any gcc2 internal prototype to avoid an error.  */
36447 #ifdef __cplusplus
36448 extern "C"
36449 {
36450 #endif
36451 /* We use char because int might match the return type of a gcc2
36452    builtin and then its argument prototype would still apply.  */
36453 char $ac_func ();
36454 /* The GNU C library defines this for functions which it implements
36455     to always fail with ENOSYS.  Some functions are actually named
36456     something starting with __ and the normal name is an alias.  */
36457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36458 choke me
36459 #else
36460 char (*f) () = $ac_func;
36461 #endif
36462 #ifdef __cplusplus
36463 }
36464 #endif
36465
36466 int
36467 main ()
36468 {
36469 return f != $ac_func;
36470   ;
36471   return 0;
36472 }
36473 _ACEOF
36474 rm -f conftest.$ac_objext conftest$ac_exeext
36475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36476   (eval $ac_link) 2>conftest.er1
36477   ac_status=$?
36478   grep -v '^ *+' conftest.er1 >conftest.err
36479   rm -f conftest.er1
36480   cat conftest.err >&5
36481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482   (exit $ac_status); } &&
36483          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36485   (eval $ac_try) 2>&5
36486   ac_status=$?
36487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488   (exit $ac_status); }; } &&
36489          { ac_try='test -s conftest$ac_exeext'
36490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491   (eval $ac_try) 2>&5
36492   ac_status=$?
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); }; }; then
36495   eval "$as_ac_var=yes"
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500 eval "$as_ac_var=no"
36501 fi
36502 rm -f conftest.err conftest.$ac_objext \
36503       conftest$ac_exeext conftest.$ac_ext
36504 fi
36505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36507 if test `eval echo '${'$as_ac_var'}'` = yes; then
36508   cat >>confdefs.h <<_ACEOF
36509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36510 _ACEOF
36511  break
36512 fi
36513 done
36514
36515
36516
36517 for ac_func in strtok_r
36518 do
36519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36520 echo "$as_me:$LINENO: checking for $ac_func" >&5
36521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36522 if eval "test \"\${$as_ac_var+set}\" = set"; then
36523   echo $ECHO_N "(cached) $ECHO_C" >&6
36524 else
36525   cat >conftest.$ac_ext <<_ACEOF
36526 /* confdefs.h.  */
36527 _ACEOF
36528 cat confdefs.h >>conftest.$ac_ext
36529 cat >>conftest.$ac_ext <<_ACEOF
36530 /* end confdefs.h.  */
36531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36533 #define $ac_func innocuous_$ac_func
36534
36535 /* System header to define __stub macros and hopefully few prototypes,
36536     which can conflict with char $ac_func (); below.
36537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36538     <limits.h> exists even on freestanding compilers.  */
36539
36540 #ifdef __STDC__
36541 # include <limits.h>
36542 #else
36543 # include <assert.h>
36544 #endif
36545
36546 #undef $ac_func
36547
36548 /* Override any gcc2 internal prototype to avoid an error.  */
36549 #ifdef __cplusplus
36550 extern "C"
36551 {
36552 #endif
36553 /* We use char because int might match the return type of a gcc2
36554    builtin and then its argument prototype would still apply.  */
36555 char $ac_func ();
36556 /* The GNU C library defines this for functions which it implements
36557     to always fail with ENOSYS.  Some functions are actually named
36558     something starting with __ and the normal name is an alias.  */
36559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36560 choke me
36561 #else
36562 char (*f) () = $ac_func;
36563 #endif
36564 #ifdef __cplusplus
36565 }
36566 #endif
36567
36568 int
36569 main ()
36570 {
36571 return f != $ac_func;
36572   ;
36573   return 0;
36574 }
36575 _ACEOF
36576 rm -f conftest.$ac_objext conftest$ac_exeext
36577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36578   (eval $ac_link) 2>conftest.er1
36579   ac_status=$?
36580   grep -v '^ *+' conftest.er1 >conftest.err
36581   rm -f conftest.er1
36582   cat conftest.err >&5
36583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584   (exit $ac_status); } &&
36585          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587   (eval $ac_try) 2>&5
36588   ac_status=$?
36589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590   (exit $ac_status); }; } &&
36591          { ac_try='test -s conftest$ac_exeext'
36592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593   (eval $ac_try) 2>&5
36594   ac_status=$?
36595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596   (exit $ac_status); }; }; then
36597   eval "$as_ac_var=yes"
36598 else
36599   echo "$as_me: failed program was:" >&5
36600 sed 's/^/| /' conftest.$ac_ext >&5
36601
36602 eval "$as_ac_var=no"
36603 fi
36604 rm -f conftest.err conftest.$ac_objext \
36605       conftest$ac_exeext conftest.$ac_ext
36606 fi
36607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36609 if test `eval echo '${'$as_ac_var'}'` = yes; then
36610   cat >>confdefs.h <<_ACEOF
36611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36612 _ACEOF
36613
36614 fi
36615 done
36616
36617
36618 INET_LINK=
36619
36620 for ac_func in inet_addr
36621 do
36622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36623 echo "$as_me:$LINENO: checking for $ac_func" >&5
36624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36625 if eval "test \"\${$as_ac_var+set}\" = set"; then
36626   echo $ECHO_N "(cached) $ECHO_C" >&6
36627 else
36628   cat >conftest.$ac_ext <<_ACEOF
36629 /* confdefs.h.  */
36630 _ACEOF
36631 cat confdefs.h >>conftest.$ac_ext
36632 cat >>conftest.$ac_ext <<_ACEOF
36633 /* end confdefs.h.  */
36634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36636 #define $ac_func innocuous_$ac_func
36637
36638 /* System header to define __stub macros and hopefully few prototypes,
36639     which can conflict with char $ac_func (); below.
36640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36641     <limits.h> exists even on freestanding compilers.  */
36642
36643 #ifdef __STDC__
36644 # include <limits.h>
36645 #else
36646 # include <assert.h>
36647 #endif
36648
36649 #undef $ac_func
36650
36651 /* Override any gcc2 internal prototype to avoid an error.  */
36652 #ifdef __cplusplus
36653 extern "C"
36654 {
36655 #endif
36656 /* We use char because int might match the return type of a gcc2
36657    builtin and then its argument prototype would still apply.  */
36658 char $ac_func ();
36659 /* The GNU C library defines this for functions which it implements
36660     to always fail with ENOSYS.  Some functions are actually named
36661     something starting with __ and the normal name is an alias.  */
36662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36663 choke me
36664 #else
36665 char (*f) () = $ac_func;
36666 #endif
36667 #ifdef __cplusplus
36668 }
36669 #endif
36670
36671 int
36672 main ()
36673 {
36674 return f != $ac_func;
36675   ;
36676   return 0;
36677 }
36678 _ACEOF
36679 rm -f conftest.$ac_objext conftest$ac_exeext
36680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36681   (eval $ac_link) 2>conftest.er1
36682   ac_status=$?
36683   grep -v '^ *+' conftest.er1 >conftest.err
36684   rm -f conftest.er1
36685   cat conftest.err >&5
36686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687   (exit $ac_status); } &&
36688          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690   (eval $ac_try) 2>&5
36691   ac_status=$?
36692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693   (exit $ac_status); }; } &&
36694          { ac_try='test -s conftest$ac_exeext'
36695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696   (eval $ac_try) 2>&5
36697   ac_status=$?
36698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699   (exit $ac_status); }; }; then
36700   eval "$as_ac_var=yes"
36701 else
36702   echo "$as_me: failed program was:" >&5
36703 sed 's/^/| /' conftest.$ac_ext >&5
36704
36705 eval "$as_ac_var=no"
36706 fi
36707 rm -f conftest.err conftest.$ac_objext \
36708       conftest$ac_exeext conftest.$ac_ext
36709 fi
36710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36712 if test `eval echo '${'$as_ac_var'}'` = yes; then
36713   cat >>confdefs.h <<_ACEOF
36714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36715 _ACEOF
36716  cat >>confdefs.h <<\_ACEOF
36717 #define HAVE_INET_ADDR 1
36718 _ACEOF
36719
36720 else
36721
36722         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36723 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36724 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36725   echo $ECHO_N "(cached) $ECHO_C" >&6
36726 else
36727   ac_check_lib_save_LIBS=$LIBS
36728 LIBS="-lnsl  $LIBS"
36729 cat >conftest.$ac_ext <<_ACEOF
36730 /* confdefs.h.  */
36731 _ACEOF
36732 cat confdefs.h >>conftest.$ac_ext
36733 cat >>conftest.$ac_ext <<_ACEOF
36734 /* end confdefs.h.  */
36735
36736 /* Override any gcc2 internal prototype to avoid an error.  */
36737 #ifdef __cplusplus
36738 extern "C"
36739 #endif
36740 /* We use char because int might match the return type of a gcc2
36741    builtin and then its argument prototype would still apply.  */
36742 char inet_addr ();
36743 int
36744 main ()
36745 {
36746 inet_addr ();
36747   ;
36748   return 0;
36749 }
36750 _ACEOF
36751 rm -f conftest.$ac_objext conftest$ac_exeext
36752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36753   (eval $ac_link) 2>conftest.er1
36754   ac_status=$?
36755   grep -v '^ *+' conftest.er1 >conftest.err
36756   rm -f conftest.er1
36757   cat conftest.err >&5
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } &&
36760          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762   (eval $ac_try) 2>&5
36763   ac_status=$?
36764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765   (exit $ac_status); }; } &&
36766          { ac_try='test -s conftest$ac_exeext'
36767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768   (eval $ac_try) 2>&5
36769   ac_status=$?
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); }; }; then
36772   ac_cv_lib_nsl_inet_addr=yes
36773 else
36774   echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36776
36777 ac_cv_lib_nsl_inet_addr=no
36778 fi
36779 rm -f conftest.err conftest.$ac_objext \
36780       conftest$ac_exeext conftest.$ac_ext
36781 LIBS=$ac_check_lib_save_LIBS
36782 fi
36783 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36784 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36785 if test $ac_cv_lib_nsl_inet_addr = yes; then
36786   INET_LINK="nsl"
36787 else
36788
36789                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36790 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36791 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36792   echo $ECHO_N "(cached) $ECHO_C" >&6
36793 else
36794   ac_check_lib_save_LIBS=$LIBS
36795 LIBS="-lresolv  $LIBS"
36796 cat >conftest.$ac_ext <<_ACEOF
36797 /* confdefs.h.  */
36798 _ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h.  */
36802
36803 /* Override any gcc2 internal prototype to avoid an error.  */
36804 #ifdef __cplusplus
36805 extern "C"
36806 #endif
36807 /* We use char because int might match the return type of a gcc2
36808    builtin and then its argument prototype would still apply.  */
36809 char inet_addr ();
36810 int
36811 main ()
36812 {
36813 inet_addr ();
36814   ;
36815   return 0;
36816 }
36817 _ACEOF
36818 rm -f conftest.$ac_objext conftest$ac_exeext
36819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36820   (eval $ac_link) 2>conftest.er1
36821   ac_status=$?
36822   grep -v '^ *+' conftest.er1 >conftest.err
36823   rm -f conftest.er1
36824   cat conftest.err >&5
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); } &&
36827          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829   (eval $ac_try) 2>&5
36830   ac_status=$?
36831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832   (exit $ac_status); }; } &&
36833          { ac_try='test -s conftest$ac_exeext'
36834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36835   (eval $ac_try) 2>&5
36836   ac_status=$?
36837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838   (exit $ac_status); }; }; then
36839   ac_cv_lib_resolv_inet_addr=yes
36840 else
36841   echo "$as_me: failed program was:" >&5
36842 sed 's/^/| /' conftest.$ac_ext >&5
36843
36844 ac_cv_lib_resolv_inet_addr=no
36845 fi
36846 rm -f conftest.err conftest.$ac_objext \
36847       conftest$ac_exeext conftest.$ac_ext
36848 LIBS=$ac_check_lib_save_LIBS
36849 fi
36850 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36851 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36852 if test $ac_cv_lib_resolv_inet_addr = yes; then
36853   INET_LINK="resolv"
36854 else
36855
36856                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36857 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36858 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36859   echo $ECHO_N "(cached) $ECHO_C" >&6
36860 else
36861   ac_check_lib_save_LIBS=$LIBS
36862 LIBS="-lsocket  $LIBS"
36863 cat >conftest.$ac_ext <<_ACEOF
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869
36870 /* Override any gcc2 internal prototype to avoid an error.  */
36871 #ifdef __cplusplus
36872 extern "C"
36873 #endif
36874 /* We use char because int might match the return type of a gcc2
36875    builtin and then its argument prototype would still apply.  */
36876 char inet_addr ();
36877 int
36878 main ()
36879 {
36880 inet_addr ();
36881   ;
36882   return 0;
36883 }
36884 _ACEOF
36885 rm -f conftest.$ac_objext conftest$ac_exeext
36886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36887   (eval $ac_link) 2>conftest.er1
36888   ac_status=$?
36889   grep -v '^ *+' conftest.er1 >conftest.err
36890   rm -f conftest.er1
36891   cat conftest.err >&5
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); } &&
36894          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
36900          { ac_try='test -s conftest$ac_exeext'
36901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36902   (eval $ac_try) 2>&5
36903   ac_status=$?
36904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905   (exit $ac_status); }; }; then
36906   ac_cv_lib_socket_inet_addr=yes
36907 else
36908   echo "$as_me: failed program was:" >&5
36909 sed 's/^/| /' conftest.$ac_ext >&5
36910
36911 ac_cv_lib_socket_inet_addr=no
36912 fi
36913 rm -f conftest.err conftest.$ac_objext \
36914       conftest$ac_exeext conftest.$ac_ext
36915 LIBS=$ac_check_lib_save_LIBS
36916 fi
36917 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36918 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36919 if test $ac_cv_lib_socket_inet_addr = yes; then
36920   INET_LINK="socket"
36921
36922 fi
36923
36924
36925
36926 fi
36927
36928
36929
36930 fi
36931
36932
36933
36934 fi
36935 done
36936
36937
36938
36939 for ac_func in inet_aton
36940 do
36941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36942 echo "$as_me:$LINENO: checking for $ac_func" >&5
36943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36944 if eval "test \"\${$as_ac_var+set}\" = set"; then
36945   echo $ECHO_N "(cached) $ECHO_C" >&6
36946 else
36947   cat >conftest.$ac_ext <<_ACEOF
36948 /* confdefs.h.  */
36949 _ACEOF
36950 cat confdefs.h >>conftest.$ac_ext
36951 cat >>conftest.$ac_ext <<_ACEOF
36952 /* end confdefs.h.  */
36953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36955 #define $ac_func innocuous_$ac_func
36956
36957 /* System header to define __stub macros and hopefully few prototypes,
36958     which can conflict with char $ac_func (); below.
36959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36960     <limits.h> exists even on freestanding compilers.  */
36961
36962 #ifdef __STDC__
36963 # include <limits.h>
36964 #else
36965 # include <assert.h>
36966 #endif
36967
36968 #undef $ac_func
36969
36970 /* Override any gcc2 internal prototype to avoid an error.  */
36971 #ifdef __cplusplus
36972 extern "C"
36973 {
36974 #endif
36975 /* We use char because int might match the return type of a gcc2
36976    builtin and then its argument prototype would still apply.  */
36977 char $ac_func ();
36978 /* The GNU C library defines this for functions which it implements
36979     to always fail with ENOSYS.  Some functions are actually named
36980     something starting with __ and the normal name is an alias.  */
36981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36982 choke me
36983 #else
36984 char (*f) () = $ac_func;
36985 #endif
36986 #ifdef __cplusplus
36987 }
36988 #endif
36989
36990 int
36991 main ()
36992 {
36993 return f != $ac_func;
36994   ;
36995   return 0;
36996 }
36997 _ACEOF
36998 rm -f conftest.$ac_objext conftest$ac_exeext
36999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37000   (eval $ac_link) 2>conftest.er1
37001   ac_status=$?
37002   grep -v '^ *+' conftest.er1 >conftest.err
37003   rm -f conftest.er1
37004   cat conftest.err >&5
37005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006   (exit $ac_status); } &&
37007          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009   (eval $ac_try) 2>&5
37010   ac_status=$?
37011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012   (exit $ac_status); }; } &&
37013          { ac_try='test -s conftest$ac_exeext'
37014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37015   (eval $ac_try) 2>&5
37016   ac_status=$?
37017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018   (exit $ac_status); }; }; then
37019   eval "$as_ac_var=yes"
37020 else
37021   echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37023
37024 eval "$as_ac_var=no"
37025 fi
37026 rm -f conftest.err conftest.$ac_objext \
37027       conftest$ac_exeext conftest.$ac_ext
37028 fi
37029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37031 if test `eval echo '${'$as_ac_var'}'` = yes; then
37032   cat >>confdefs.h <<_ACEOF
37033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37034 _ACEOF
37035  cat >>confdefs.h <<\_ACEOF
37036 #define HAVE_INET_ATON 1
37037 _ACEOF
37038
37039 else
37040
37041                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37042 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37043 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37044 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37045   echo $ECHO_N "(cached) $ECHO_C" >&6
37046 else
37047   ac_check_lib_save_LIBS=$LIBS
37048 LIBS="-l$INET_LINK  $LIBS"
37049 cat >conftest.$ac_ext <<_ACEOF
37050 /* confdefs.h.  */
37051 _ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h.  */
37055
37056 /* Override any gcc2 internal prototype to avoid an error.  */
37057 #ifdef __cplusplus
37058 extern "C"
37059 #endif
37060 /* We use char because int might match the return type of a gcc2
37061    builtin and then its argument prototype would still apply.  */
37062 char inet_aton ();
37063 int
37064 main ()
37065 {
37066 inet_aton ();
37067   ;
37068   return 0;
37069 }
37070 _ACEOF
37071 rm -f conftest.$ac_objext conftest$ac_exeext
37072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37073   (eval $ac_link) 2>conftest.er1
37074   ac_status=$?
37075   grep -v '^ *+' conftest.er1 >conftest.err
37076   rm -f conftest.er1
37077   cat conftest.err >&5
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } &&
37080          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082   (eval $ac_try) 2>&5
37083   ac_status=$?
37084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085   (exit $ac_status); }; } &&
37086          { ac_try='test -s conftest$ac_exeext'
37087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088   (eval $ac_try) 2>&5
37089   ac_status=$?
37090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); }; }; then
37092   eval "$as_ac_Lib=yes"
37093 else
37094   echo "$as_me: failed program was:" >&5
37095 sed 's/^/| /' conftest.$ac_ext >&5
37096
37097 eval "$as_ac_Lib=no"
37098 fi
37099 rm -f conftest.err conftest.$ac_objext \
37100       conftest$ac_exeext conftest.$ac_ext
37101 LIBS=$ac_check_lib_save_LIBS
37102 fi
37103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37104 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37105 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37106   cat >>confdefs.h <<\_ACEOF
37107 #define HAVE_INET_ATON 1
37108 _ACEOF
37109
37110 fi
37111
37112
37113 fi
37114 done
37115
37116
37117 if test "x$INET_LINK" != "x"; then
37118     cat >>confdefs.h <<\_ACEOF
37119 #define HAVE_INET_ADDR 1
37120 _ACEOF
37121
37122     INET_LINK=" -l$INET_LINK"
37123 fi
37124
37125 fi
37126
37127
37128
37129 EXTRALIBS_ESD=
37130 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37131 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37132 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37133   echo $ECHO_N "(cached) $ECHO_C" >&6
37134 else
37135   ac_check_lib_save_LIBS=$LIBS
37136 LIBS="-lesd  $LIBS"
37137 cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143
37144 /* Override any gcc2 internal prototype to avoid an error.  */
37145 #ifdef __cplusplus
37146 extern "C"
37147 #endif
37148 /* We use char because int might match the return type of a gcc2
37149    builtin and then its argument prototype would still apply.  */
37150 char esd_close ();
37151 int
37152 main ()
37153 {
37154 esd_close ();
37155   ;
37156   return 0;
37157 }
37158 _ACEOF
37159 rm -f conftest.$ac_objext conftest$ac_exeext
37160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37161   (eval $ac_link) 2>conftest.er1
37162   ac_status=$?
37163   grep -v '^ *+' conftest.er1 >conftest.err
37164   rm -f conftest.er1
37165   cat conftest.err >&5
37166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167   (exit $ac_status); } &&
37168          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170   (eval $ac_try) 2>&5
37171   ac_status=$?
37172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173   (exit $ac_status); }; } &&
37174          { ac_try='test -s conftest$ac_exeext'
37175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37176   (eval $ac_try) 2>&5
37177   ac_status=$?
37178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179   (exit $ac_status); }; }; then
37180   ac_cv_lib_esd_esd_close=yes
37181 else
37182   echo "$as_me: failed program was:" >&5
37183 sed 's/^/| /' conftest.$ac_ext >&5
37184
37185 ac_cv_lib_esd_esd_close=no
37186 fi
37187 rm -f conftest.err conftest.$ac_objext \
37188       conftest$ac_exeext conftest.$ac_ext
37189 LIBS=$ac_check_lib_save_LIBS
37190 fi
37191 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37192 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37193 if test $ac_cv_lib_esd_esd_close = yes; then
37194
37195
37196 for ac_header in esd.h
37197 do
37198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37200   echo "$as_me:$LINENO: checking for $ac_header" >&5
37201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37203   echo $ECHO_N "(cached) $ECHO_C" >&6
37204 fi
37205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37207 else
37208   # Is the header compilable?
37209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37211 cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h.  */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h.  */
37217 $ac_includes_default
37218 #include <$ac_header>
37219 _ACEOF
37220 rm -f conftest.$ac_objext
37221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37222   (eval $ac_compile) 2>conftest.er1
37223   ac_status=$?
37224   grep -v '^ *+' conftest.er1 >conftest.err
37225   rm -f conftest.er1
37226   cat conftest.err >&5
37227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228   (exit $ac_status); } &&
37229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37231   (eval $ac_try) 2>&5
37232   ac_status=$?
37233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234   (exit $ac_status); }; } &&
37235          { ac_try='test -s conftest.$ac_objext'
37236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237   (eval $ac_try) 2>&5
37238   ac_status=$?
37239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240   (exit $ac_status); }; }; then
37241   ac_header_compiler=yes
37242 else
37243   echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37245
37246 ac_header_compiler=no
37247 fi
37248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37250 echo "${ECHO_T}$ac_header_compiler" >&6
37251
37252 # Is the header present?
37253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37255 cat >conftest.$ac_ext <<_ACEOF
37256 /* confdefs.h.  */
37257 _ACEOF
37258 cat confdefs.h >>conftest.$ac_ext
37259 cat >>conftest.$ac_ext <<_ACEOF
37260 /* end confdefs.h.  */
37261 #include <$ac_header>
37262 _ACEOF
37263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37265   ac_status=$?
37266   grep -v '^ *+' conftest.er1 >conftest.err
37267   rm -f conftest.er1
37268   cat conftest.err >&5
37269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270   (exit $ac_status); } >/dev/null; then
37271   if test -s conftest.err; then
37272     ac_cpp_err=$ac_cxx_preproc_warn_flag
37273     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37274   else
37275     ac_cpp_err=
37276   fi
37277 else
37278   ac_cpp_err=yes
37279 fi
37280 if test -z "$ac_cpp_err"; then
37281   ac_header_preproc=yes
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286   ac_header_preproc=no
37287 fi
37288 rm -f conftest.err conftest.$ac_ext
37289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37290 echo "${ECHO_T}$ac_header_preproc" >&6
37291
37292 # So?  What about this header?
37293 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37294   yes:no: )
37295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37299     ac_header_preproc=yes
37300     ;;
37301   no:yes:* )
37302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37314     (
37315       cat <<\_ASBOX
37316 ## ----------------------------------------- ##
37317 ## Report this to wx-dev@lists.wxwidgets.org ##
37318 ## ----------------------------------------- ##
37319 _ASBOX
37320     ) |
37321       sed "s/^/$as_me: WARNING:     /" >&2
37322     ;;
37323 esac
37324 echo "$as_me:$LINENO: checking for $ac_header" >&5
37325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37327   echo $ECHO_N "(cached) $ECHO_C" >&6
37328 else
37329   eval "$as_ac_Header=\$ac_header_preproc"
37330 fi
37331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37333
37334 fi
37335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37336   cat >>confdefs.h <<_ACEOF
37337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37338 _ACEOF
37339
37340     EXTRALIBS_ESD="-lesd"
37341
37342 fi
37343
37344 done
37345
37346
37347 fi
37348
37349
37350
37351 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37352 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37353 cat >conftest.$ac_ext <<_ACEOF
37354 /* confdefs.h.  */
37355 _ACEOF
37356 cat confdefs.h >>conftest.$ac_ext
37357 cat >>conftest.$ac_ext <<_ACEOF
37358 /* end confdefs.h.  */
37359 #ifdef __linux__
37360                 #include <linux/cdrom.h>
37361                 #else
37362                 /* For Solaris */
37363                 #include <sys/cdio.h>
37364                 #endif
37365
37366 int
37367 main ()
37368 {
37369 struct cdrom_tocentry entry, old_entry;
37370   ;
37371   return 0;
37372 }
37373 _ACEOF
37374 rm -f conftest.$ac_objext
37375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37376   (eval $ac_compile) 2>conftest.er1
37377   ac_status=$?
37378   grep -v '^ *+' conftest.er1 >conftest.err
37379   rm -f conftest.er1
37380   cat conftest.err >&5
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } &&
37383          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385   (eval $ac_try) 2>&5
37386   ac_status=$?
37387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388   (exit $ac_status); }; } &&
37389          { ac_try='test -s conftest.$ac_objext'
37390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391   (eval $ac_try) 2>&5
37392   ac_status=$?
37393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); }; }; then
37395   echo "$as_me:$LINENO: result: yes" >&5
37396 echo "${ECHO_T}yes" >&6
37397                 cat >>confdefs.h <<\_ACEOF
37398 #define HAVE_KNOWN_CDROM_INTERFACE 1
37399 _ACEOF
37400
37401 else
37402   echo "$as_me: failed program was:" >&5
37403 sed 's/^/| /' conftest.$ac_ext >&5
37404
37405 echo "$as_me:$LINENO: result: no" >&5
37406 echo "${ECHO_T}no" >&6
37407 fi
37408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37409
37410
37411 cat >confcache <<\_ACEOF
37412 # This file is a shell script that caches the results of configure
37413 # tests run on this system so they can be shared between configure
37414 # scripts and configure runs, see configure's option --config-cache.
37415 # It is not useful on other systems.  If it contains results you don't
37416 # want to keep, you may remove or edit it.
37417 #
37418 # config.status only pays attention to the cache file if you give it
37419 # the --recheck option to rerun configure.
37420 #
37421 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37422 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37423 # following values.
37424
37425 _ACEOF
37426
37427 # The following way of writing the cache mishandles newlines in values,
37428 # but we know of no workaround that is simple, portable, and efficient.
37429 # So, don't put newlines in cache variables' values.
37430 # Ultrix sh set writes to stderr and can't be redirected directly,
37431 # and sets the high bit in the cache file unless we assign to the vars.
37432 {
37433   (set) 2>&1 |
37434     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37435     *ac_space=\ *)
37436       # `set' does not quote correctly, so add quotes (double-quote
37437       # substitution turns \\\\ into \\, and sed turns \\ into \).
37438       sed -n \
37439         "s/'/'\\\\''/g;
37440           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37441       ;;
37442     *)
37443       # `set' quotes correctly as required by POSIX, so do not add quotes.
37444       sed -n \
37445         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37446       ;;
37447     esac;
37448 } |
37449   sed '
37450      t clear
37451      : clear
37452      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37453      t end
37454      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37455      : end' >>confcache
37456 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37457   if test -w $cache_file; then
37458     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37459     cat confcache >$cache_file
37460   else
37461     echo "not updating unwritable cache $cache_file"
37462   fi
37463 fi
37464 rm -f confcache
37465
37466
37467 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37468
37469
37470     THREADS_LINK=
37471     THREADS_CXXFLAGS=
37472
37473     if test "$wxUSE_THREADS" = "yes" ; then
37474         if test "$USE_BEOS" = 1; then
37475             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37476 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37477             wxUSE_THREADS="no"
37478         fi
37479     fi
37480
37481     if test "$wxUSE_THREADS" = "yes" ; then
37482
37483
37484                                 THREAD_OPTS="-pthread"
37485         case "${host}" in
37486           *-*-solaris2* | *-*-sunos4* )
37487                 if test "x$GCC" = "xyes"; then
37488                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
37489                 else
37490                     THREAD_OPTS="-mt $THREAD_OPTS"
37491                 fi
37492                 ;;
37493           *-*-freebsd*)
37494                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37495                 ;;
37496           *-*-darwin* | *-*-cygwin* )
37497                                                 THREAD_OPTS=""
37498                 ;;
37499           *-*-aix*)
37500                                 THREAD_OPTS="pthreads"
37501                 ;;
37502           *-hp-hpux* )
37503                 if test "x$GCC" = "xyes"; then
37504                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37505                         THREAD_OPTS=""
37506                 else
37507                                                             THREAD_OPTS="-mt"
37508                 fi
37509                 ;;
37510
37511           *-*-irix* )
37512                                                                 if test "x$GCC" = "xyes"; then
37513                     THREAD_OPTS=""
37514                 fi
37515                 ;;
37516
37517           *-*-*UnixWare*)
37518                                 if test "x$GCC" != "xyes"; then
37519                     THREAD_OPTS="-Ethread"
37520                 fi
37521                 ;;
37522         esac
37523
37524                                 THREAD_OPTS="$THREAD_OPTS pthread none"
37525
37526                 THREADS_OK=no
37527         for flag in $THREAD_OPTS; do
37528             case $flag in
37529                 none)
37530                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37531 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37532                     ;;
37533
37534                 -*)
37535                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37536 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37537                     THREADS_CXXFLAGS="$flag"
37538                     ;;
37539
37540                 *)
37541                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37542 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37543                     THREADS_LINK="-l$flag"
37544                     ;;
37545               esac
37546
37547               save_LIBS="$LIBS"
37548               save_CXXFLAGS="$CXXFLAGS"
37549               LIBS="$THREADS_LINK $LIBS"
37550               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
37551
37552               cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h.  */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h.  */
37558 #include <pthread.h>
37559 int
37560 main ()
37561 {
37562 pthread_create(0,0,0,0);
37563   ;
37564   return 0;
37565 }
37566 _ACEOF
37567 rm -f conftest.$ac_objext conftest$ac_exeext
37568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37569   (eval $ac_link) 2>conftest.er1
37570   ac_status=$?
37571   grep -v '^ *+' conftest.er1 >conftest.err
37572   rm -f conftest.er1
37573   cat conftest.err >&5
37574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575   (exit $ac_status); } &&
37576          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578   (eval $ac_try) 2>&5
37579   ac_status=$?
37580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581   (exit $ac_status); }; } &&
37582          { ac_try='test -s conftest$ac_exeext'
37583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584   (eval $ac_try) 2>&5
37585   ac_status=$?
37586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587   (exit $ac_status); }; }; then
37588   THREADS_OK=yes
37589 else
37590   echo "$as_me: failed program was:" >&5
37591 sed 's/^/| /' conftest.$ac_ext >&5
37592
37593 fi
37594 rm -f conftest.err conftest.$ac_objext \
37595       conftest$ac_exeext conftest.$ac_ext
37596
37597               LIBS="$save_LIBS"
37598               CXXFLAGS="$save_CXXFLAGS"
37599
37600               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37601 echo "${ECHO_T}$THREADS_OK" >&6
37602               if test "x$THREADS_OK" = "xyes"; then
37603                       break;
37604               fi
37605
37606               THREADS_LINK=""
37607               THREADS_CXXFLAGS=""
37608       done
37609
37610       if test "x$THREADS_OK" != "xyes"; then
37611           wxUSE_THREADS=no
37612           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37613 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37614       else
37615                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
37616           LIBS="$THREADS_LINK $LIBS"
37617
37618           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37619 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37620           flag=no
37621           case "${host}" in
37622             *-aix*)
37623                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37624                 flag="-D_THREAD_SAFE"
37625                 ;;
37626             *-freebsd*)
37627                 flag="-D_THREAD_SAFE"
37628                 ;;
37629             *-hp-hpux* )
37630                 flag="-D_REENTRANT"
37631                 if test "x$GCC" != "xyes"; then
37632                                         flag="$flag -D_RWSTD_MULTI_THREAD"
37633                 fi
37634                 ;;
37635             *solaris* | alpha*-osf*)
37636                 flag="-D_REENTRANT"
37637                 ;;
37638           esac
37639           echo "$as_me:$LINENO: result: ${flag}" >&5
37640 echo "${ECHO_T}${flag}" >&6
37641           if test "x$flag" != xno; then
37642               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
37643           fi
37644
37645                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
37646       fi
37647     fi
37648
37649         if test "$wxUSE_THREADS" = "yes" ; then
37650
37651 for ac_func in thr_setconcurrency
37652 do
37653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37654 echo "$as_me:$LINENO: checking for $ac_func" >&5
37655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37656 if eval "test \"\${$as_ac_var+set}\" = set"; then
37657   echo $ECHO_N "(cached) $ECHO_C" >&6
37658 else
37659   cat >conftest.$ac_ext <<_ACEOF
37660 /* confdefs.h.  */
37661 _ACEOF
37662 cat confdefs.h >>conftest.$ac_ext
37663 cat >>conftest.$ac_ext <<_ACEOF
37664 /* end confdefs.h.  */
37665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37667 #define $ac_func innocuous_$ac_func
37668
37669 /* System header to define __stub macros and hopefully few prototypes,
37670     which can conflict with char $ac_func (); below.
37671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37672     <limits.h> exists even on freestanding compilers.  */
37673
37674 #ifdef __STDC__
37675 # include <limits.h>
37676 #else
37677 # include <assert.h>
37678 #endif
37679
37680 #undef $ac_func
37681
37682 /* Override any gcc2 internal prototype to avoid an error.  */
37683 #ifdef __cplusplus
37684 extern "C"
37685 {
37686 #endif
37687 /* We use char because int might match the return type of a gcc2
37688    builtin and then its argument prototype would still apply.  */
37689 char $ac_func ();
37690 /* The GNU C library defines this for functions which it implements
37691     to always fail with ENOSYS.  Some functions are actually named
37692     something starting with __ and the normal name is an alias.  */
37693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37694 choke me
37695 #else
37696 char (*f) () = $ac_func;
37697 #endif
37698 #ifdef __cplusplus
37699 }
37700 #endif
37701
37702 int
37703 main ()
37704 {
37705 return f != $ac_func;
37706   ;
37707   return 0;
37708 }
37709 _ACEOF
37710 rm -f conftest.$ac_objext conftest$ac_exeext
37711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37712   (eval $ac_link) 2>conftest.er1
37713   ac_status=$?
37714   grep -v '^ *+' conftest.er1 >conftest.err
37715   rm -f conftest.er1
37716   cat conftest.err >&5
37717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718   (exit $ac_status); } &&
37719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721   (eval $ac_try) 2>&5
37722   ac_status=$?
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); }; } &&
37725          { ac_try='test -s conftest$ac_exeext'
37726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727   (eval $ac_try) 2>&5
37728   ac_status=$?
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); }; }; then
37731   eval "$as_ac_var=yes"
37732 else
37733   echo "$as_me: failed program was:" >&5
37734 sed 's/^/| /' conftest.$ac_ext >&5
37735
37736 eval "$as_ac_var=no"
37737 fi
37738 rm -f conftest.err conftest.$ac_objext \
37739       conftest$ac_exeext conftest.$ac_ext
37740 fi
37741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37743 if test `eval echo '${'$as_ac_var'}'` = yes; then
37744   cat >>confdefs.h <<_ACEOF
37745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37746 _ACEOF
37747
37748 fi
37749 done
37750
37751
37752                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37753 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37754 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37755   echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757
37758         cat >conftest.$ac_ext <<_ACEOF
37759 /* confdefs.h.  */
37760 _ACEOF
37761 cat confdefs.h >>conftest.$ac_ext
37762 cat >>conftest.$ac_ext <<_ACEOF
37763 /* end confdefs.h.  */
37764 #include <pthread.h>
37765                void ThreadCleanupFunc(void *p);
37766
37767 int
37768 main ()
37769 {
37770
37771                 void *p;
37772                 pthread_cleanup_push(ThreadCleanupFunc, p);
37773                 pthread_cleanup_pop(0);
37774
37775   ;
37776   return 0;
37777 }
37778 _ACEOF
37779 rm -f conftest.$ac_objext
37780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37781   (eval $ac_compile) 2>conftest.er1
37782   ac_status=$?
37783   grep -v '^ *+' conftest.er1 >conftest.err
37784   rm -f conftest.er1
37785   cat conftest.err >&5
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); } &&
37788          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; } &&
37794          { ac_try='test -s conftest.$ac_objext'
37795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796   (eval $ac_try) 2>&5
37797   ac_status=$?
37798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); }; }; then
37800
37801                wx_cv_func_pthread_cleanup=yes
37802
37803 else
37804   echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37806
37807
37808                wx_cv_func_pthread_cleanup=no
37809
37810
37811 fi
37812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37813
37814 fi
37815 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37816 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37817       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37818         cat >>confdefs.h <<\_ACEOF
37819 #define wxHAVE_PTHREAD_CLEANUP 1
37820 _ACEOF
37821
37822       fi
37823
37824
37825 for ac_header in sched.h
37826 do
37827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829   echo "$as_me:$LINENO: checking for $ac_header" >&5
37830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832   echo $ECHO_N "(cached) $ECHO_C" >&6
37833 fi
37834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37836 else
37837   # Is the header compilable?
37838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37840 cat >conftest.$ac_ext <<_ACEOF
37841 /* confdefs.h.  */
37842 _ACEOF
37843 cat confdefs.h >>conftest.$ac_ext
37844 cat >>conftest.$ac_ext <<_ACEOF
37845 /* end confdefs.h.  */
37846 $ac_includes_default
37847 #include <$ac_header>
37848 _ACEOF
37849 rm -f conftest.$ac_objext
37850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37851   (eval $ac_compile) 2>conftest.er1
37852   ac_status=$?
37853   grep -v '^ *+' conftest.er1 >conftest.err
37854   rm -f conftest.er1
37855   cat conftest.err >&5
37856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857   (exit $ac_status); } &&
37858          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37860   (eval $ac_try) 2>&5
37861   ac_status=$?
37862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863   (exit $ac_status); }; } &&
37864          { ac_try='test -s conftest.$ac_objext'
37865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37866   (eval $ac_try) 2>&5
37867   ac_status=$?
37868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869   (exit $ac_status); }; }; then
37870   ac_header_compiler=yes
37871 else
37872   echo "$as_me: failed program was:" >&5
37873 sed 's/^/| /' conftest.$ac_ext >&5
37874
37875 ac_header_compiler=no
37876 fi
37877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37879 echo "${ECHO_T}$ac_header_compiler" >&6
37880
37881 # Is the header present?
37882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37884 cat >conftest.$ac_ext <<_ACEOF
37885 /* confdefs.h.  */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h.  */
37890 #include <$ac_header>
37891 _ACEOF
37892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37894   ac_status=$?
37895   grep -v '^ *+' conftest.er1 >conftest.err
37896   rm -f conftest.er1
37897   cat conftest.err >&5
37898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899   (exit $ac_status); } >/dev/null; then
37900   if test -s conftest.err; then
37901     ac_cpp_err=$ac_cxx_preproc_warn_flag
37902     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37903   else
37904     ac_cpp_err=
37905   fi
37906 else
37907   ac_cpp_err=yes
37908 fi
37909 if test -z "$ac_cpp_err"; then
37910   ac_header_preproc=yes
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915   ac_header_preproc=no
37916 fi
37917 rm -f conftest.err conftest.$ac_ext
37918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37919 echo "${ECHO_T}$ac_header_preproc" >&6
37920
37921 # So?  What about this header?
37922 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37923   yes:no: )
37924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37928     ac_header_preproc=yes
37929     ;;
37930   no:yes:* )
37931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37943     (
37944       cat <<\_ASBOX
37945 ## ----------------------------------------- ##
37946 ## Report this to wx-dev@lists.wxwidgets.org ##
37947 ## ----------------------------------------- ##
37948 _ASBOX
37949     ) |
37950       sed "s/^/$as_me: WARNING:     /" >&2
37951     ;;
37952 esac
37953 echo "$as_me:$LINENO: checking for $ac_header" >&5
37954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37956   echo $ECHO_N "(cached) $ECHO_C" >&6
37957 else
37958   eval "$as_ac_Header=\$ac_header_preproc"
37959 fi
37960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37962
37963 fi
37964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37965   cat >>confdefs.h <<_ACEOF
37966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37967 _ACEOF
37968
37969 fi
37970
37971 done
37972
37973       if test "$ac_cv_header_sched_h" = "yes"; then
37974           echo "$as_me:$LINENO: checking for sched_yield" >&5
37975 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37976 if test "${ac_cv_func_sched_yield+set}" = set; then
37977   echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37979   cat >conftest.$ac_ext <<_ACEOF
37980 /* confdefs.h.  */
37981 _ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h.  */
37985 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37987 #define sched_yield innocuous_sched_yield
37988
37989 /* System header to define __stub macros and hopefully few prototypes,
37990     which can conflict with char sched_yield (); below.
37991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37992     <limits.h> exists even on freestanding compilers.  */
37993
37994 #ifdef __STDC__
37995 # include <limits.h>
37996 #else
37997 # include <assert.h>
37998 #endif
37999
38000 #undef sched_yield
38001
38002 /* Override any gcc2 internal prototype to avoid an error.  */
38003 #ifdef __cplusplus
38004 extern "C"
38005 {
38006 #endif
38007 /* We use char because int might match the return type of a gcc2
38008    builtin and then its argument prototype would still apply.  */
38009 char sched_yield ();
38010 /* The GNU C library defines this for functions which it implements
38011     to always fail with ENOSYS.  Some functions are actually named
38012     something starting with __ and the normal name is an alias.  */
38013 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38014 choke me
38015 #else
38016 char (*f) () = sched_yield;
38017 #endif
38018 #ifdef __cplusplus
38019 }
38020 #endif
38021
38022 int
38023 main ()
38024 {
38025 return f != sched_yield;
38026   ;
38027   return 0;
38028 }
38029 _ACEOF
38030 rm -f conftest.$ac_objext conftest$ac_exeext
38031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38032   (eval $ac_link) 2>conftest.er1
38033   ac_status=$?
38034   grep -v '^ *+' conftest.er1 >conftest.err
38035   rm -f conftest.er1
38036   cat conftest.err >&5
38037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038   (exit $ac_status); } &&
38039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38041   (eval $ac_try) 2>&5
38042   ac_status=$?
38043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044   (exit $ac_status); }; } &&
38045          { ac_try='test -s conftest$ac_exeext'
38046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047   (eval $ac_try) 2>&5
38048   ac_status=$?
38049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050   (exit $ac_status); }; }; then
38051   ac_cv_func_sched_yield=yes
38052 else
38053   echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38055
38056 ac_cv_func_sched_yield=no
38057 fi
38058 rm -f conftest.err conftest.$ac_objext \
38059       conftest$ac_exeext conftest.$ac_ext
38060 fi
38061 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38062 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38063 if test $ac_cv_func_sched_yield = yes; then
38064   cat >>confdefs.h <<\_ACEOF
38065 #define HAVE_SCHED_YIELD 1
38066 _ACEOF
38067
38068 else
38069
38070                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38071 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38072 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38073   echo $ECHO_N "(cached) $ECHO_C" >&6
38074 else
38075   ac_check_lib_save_LIBS=$LIBS
38076 LIBS="-lposix4  $LIBS"
38077 cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083
38084 /* Override any gcc2 internal prototype to avoid an error.  */
38085 #ifdef __cplusplus
38086 extern "C"
38087 #endif
38088 /* We use char because int might match the return type of a gcc2
38089    builtin and then its argument prototype would still apply.  */
38090 char sched_yield ();
38091 int
38092 main ()
38093 {
38094 sched_yield ();
38095   ;
38096   return 0;
38097 }
38098 _ACEOF
38099 rm -f conftest.$ac_objext conftest$ac_exeext
38100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38101   (eval $ac_link) 2>conftest.er1
38102   ac_status=$?
38103   grep -v '^ *+' conftest.er1 >conftest.err
38104   rm -f conftest.er1
38105   cat conftest.err >&5
38106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107   (exit $ac_status); } &&
38108          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38110   (eval $ac_try) 2>&5
38111   ac_status=$?
38112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113   (exit $ac_status); }; } &&
38114          { ac_try='test -s conftest$ac_exeext'
38115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38116   (eval $ac_try) 2>&5
38117   ac_status=$?
38118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119   (exit $ac_status); }; }; then
38120   ac_cv_lib_posix4_sched_yield=yes
38121 else
38122   echo "$as_me: failed program was:" >&5
38123 sed 's/^/| /' conftest.$ac_ext >&5
38124
38125 ac_cv_lib_posix4_sched_yield=no
38126 fi
38127 rm -f conftest.err conftest.$ac_objext \
38128       conftest$ac_exeext conftest.$ac_ext
38129 LIBS=$ac_check_lib_save_LIBS
38130 fi
38131 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38132 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38133 if test $ac_cv_lib_posix4_sched_yield = yes; then
38134   cat >>confdefs.h <<\_ACEOF
38135 #define HAVE_SCHED_YIELD 1
38136 _ACEOF
38137  POSIX4_LINK=" -lposix4"
38138 else
38139   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38140 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38141
38142 fi
38143
38144
38145
38146 fi
38147
38148       fi
38149
38150                                           HAVE_PRIOR_FUNCS=0
38151       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38152 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38153 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38164 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38165
38166 /* System header to define __stub macros and hopefully few prototypes,
38167     which can conflict with char pthread_attr_getschedpolicy (); below.
38168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38169     <limits.h> exists even on freestanding compilers.  */
38170
38171 #ifdef __STDC__
38172 # include <limits.h>
38173 #else
38174 # include <assert.h>
38175 #endif
38176
38177 #undef pthread_attr_getschedpolicy
38178
38179 /* Override any gcc2 internal prototype to avoid an error.  */
38180 #ifdef __cplusplus
38181 extern "C"
38182 {
38183 #endif
38184 /* We use char because int might match the return type of a gcc2
38185    builtin and then its argument prototype would still apply.  */
38186 char pthread_attr_getschedpolicy ();
38187 /* The GNU C library defines this for functions which it implements
38188     to always fail with ENOSYS.  Some functions are actually named
38189     something starting with __ and the normal name is an alias.  */
38190 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38191 choke me
38192 #else
38193 char (*f) () = pthread_attr_getschedpolicy;
38194 #endif
38195 #ifdef __cplusplus
38196 }
38197 #endif
38198
38199 int
38200 main ()
38201 {
38202 return f != pthread_attr_getschedpolicy;
38203   ;
38204   return 0;
38205 }
38206 _ACEOF
38207 rm -f conftest.$ac_objext conftest$ac_exeext
38208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38209   (eval $ac_link) 2>conftest.er1
38210   ac_status=$?
38211   grep -v '^ *+' conftest.er1 >conftest.err
38212   rm -f conftest.er1
38213   cat conftest.err >&5
38214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215   (exit $ac_status); } &&
38216          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218   (eval $ac_try) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); }; } &&
38222          { ac_try='test -s conftest$ac_exeext'
38223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224   (eval $ac_try) 2>&5
38225   ac_status=$?
38226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227   (exit $ac_status); }; }; then
38228   ac_cv_func_pthread_attr_getschedpolicy=yes
38229 else
38230   echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38232
38233 ac_cv_func_pthread_attr_getschedpolicy=no
38234 fi
38235 rm -f conftest.err conftest.$ac_objext \
38236       conftest$ac_exeext conftest.$ac_ext
38237 fi
38238 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38239 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38240 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38241   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38242 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38243 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38244   echo $ECHO_N "(cached) $ECHO_C" >&6
38245 else
38246   cat >conftest.$ac_ext <<_ACEOF
38247 /* confdefs.h.  */
38248 _ACEOF
38249 cat confdefs.h >>conftest.$ac_ext
38250 cat >>conftest.$ac_ext <<_ACEOF
38251 /* end confdefs.h.  */
38252 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38254 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38255
38256 /* System header to define __stub macros and hopefully few prototypes,
38257     which can conflict with char pthread_attr_setschedparam (); below.
38258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38259     <limits.h> exists even on freestanding compilers.  */
38260
38261 #ifdef __STDC__
38262 # include <limits.h>
38263 #else
38264 # include <assert.h>
38265 #endif
38266
38267 #undef pthread_attr_setschedparam
38268
38269 /* Override any gcc2 internal prototype to avoid an error.  */
38270 #ifdef __cplusplus
38271 extern "C"
38272 {
38273 #endif
38274 /* We use char because int might match the return type of a gcc2
38275    builtin and then its argument prototype would still apply.  */
38276 char pthread_attr_setschedparam ();
38277 /* The GNU C library defines this for functions which it implements
38278     to always fail with ENOSYS.  Some functions are actually named
38279     something starting with __ and the normal name is an alias.  */
38280 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38281 choke me
38282 #else
38283 char (*f) () = pthread_attr_setschedparam;
38284 #endif
38285 #ifdef __cplusplus
38286 }
38287 #endif
38288
38289 int
38290 main ()
38291 {
38292 return f != pthread_attr_setschedparam;
38293   ;
38294   return 0;
38295 }
38296 _ACEOF
38297 rm -f conftest.$ac_objext conftest$ac_exeext
38298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38299   (eval $ac_link) 2>conftest.er1
38300   ac_status=$?
38301   grep -v '^ *+' conftest.er1 >conftest.err
38302   rm -f conftest.er1
38303   cat conftest.err >&5
38304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305   (exit $ac_status); } &&
38306          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308   (eval $ac_try) 2>&5
38309   ac_status=$?
38310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311   (exit $ac_status); }; } &&
38312          { ac_try='test -s conftest$ac_exeext'
38313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38314   (eval $ac_try) 2>&5
38315   ac_status=$?
38316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317   (exit $ac_status); }; }; then
38318   ac_cv_func_pthread_attr_setschedparam=yes
38319 else
38320   echo "$as_me: failed program was:" >&5
38321 sed 's/^/| /' conftest.$ac_ext >&5
38322
38323 ac_cv_func_pthread_attr_setschedparam=no
38324 fi
38325 rm -f conftest.err conftest.$ac_objext \
38326       conftest$ac_exeext conftest.$ac_ext
38327 fi
38328 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38329 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38330 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38331   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38332 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38333 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38334   echo $ECHO_N "(cached) $ECHO_C" >&6
38335 else
38336   cat >conftest.$ac_ext <<_ACEOF
38337 /* confdefs.h.  */
38338 _ACEOF
38339 cat confdefs.h >>conftest.$ac_ext
38340 cat >>conftest.$ac_ext <<_ACEOF
38341 /* end confdefs.h.  */
38342 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38344 #define sched_get_priority_max innocuous_sched_get_priority_max
38345
38346 /* System header to define __stub macros and hopefully few prototypes,
38347     which can conflict with char sched_get_priority_max (); below.
38348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38349     <limits.h> exists even on freestanding compilers.  */
38350
38351 #ifdef __STDC__
38352 # include <limits.h>
38353 #else
38354 # include <assert.h>
38355 #endif
38356
38357 #undef sched_get_priority_max
38358
38359 /* Override any gcc2 internal prototype to avoid an error.  */
38360 #ifdef __cplusplus
38361 extern "C"
38362 {
38363 #endif
38364 /* We use char because int might match the return type of a gcc2
38365    builtin and then its argument prototype would still apply.  */
38366 char sched_get_priority_max ();
38367 /* The GNU C library defines this for functions which it implements
38368     to always fail with ENOSYS.  Some functions are actually named
38369     something starting with __ and the normal name is an alias.  */
38370 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38371 choke me
38372 #else
38373 char (*f) () = sched_get_priority_max;
38374 #endif
38375 #ifdef __cplusplus
38376 }
38377 #endif
38378
38379 int
38380 main ()
38381 {
38382 return f != sched_get_priority_max;
38383   ;
38384   return 0;
38385 }
38386 _ACEOF
38387 rm -f conftest.$ac_objext conftest$ac_exeext
38388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38389   (eval $ac_link) 2>conftest.er1
38390   ac_status=$?
38391   grep -v '^ *+' conftest.er1 >conftest.err
38392   rm -f conftest.er1
38393   cat conftest.err >&5
38394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395   (exit $ac_status); } &&
38396          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38398   (eval $ac_try) 2>&5
38399   ac_status=$?
38400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401   (exit $ac_status); }; } &&
38402          { ac_try='test -s conftest$ac_exeext'
38403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38404   (eval $ac_try) 2>&5
38405   ac_status=$?
38406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407   (exit $ac_status); }; }; then
38408   ac_cv_func_sched_get_priority_max=yes
38409 else
38410   echo "$as_me: failed program was:" >&5
38411 sed 's/^/| /' conftest.$ac_ext >&5
38412
38413 ac_cv_func_sched_get_priority_max=no
38414 fi
38415 rm -f conftest.err conftest.$ac_objext \
38416       conftest$ac_exeext conftest.$ac_ext
38417 fi
38418 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38419 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38420 if test $ac_cv_func_sched_get_priority_max = yes; then
38421   HAVE_PRIOR_FUNCS=1
38422 else
38423   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38424 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38425 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38426   echo $ECHO_N "(cached) $ECHO_C" >&6
38427 else
38428   ac_check_lib_save_LIBS=$LIBS
38429 LIBS="-lposix4  $LIBS"
38430 cat >conftest.$ac_ext <<_ACEOF
38431 /* confdefs.h.  */
38432 _ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h.  */
38436
38437 /* Override any gcc2 internal prototype to avoid an error.  */
38438 #ifdef __cplusplus
38439 extern "C"
38440 #endif
38441 /* We use char because int might match the return type of a gcc2
38442    builtin and then its argument prototype would still apply.  */
38443 char sched_get_priority_max ();
38444 int
38445 main ()
38446 {
38447 sched_get_priority_max ();
38448   ;
38449   return 0;
38450 }
38451 _ACEOF
38452 rm -f conftest.$ac_objext conftest$ac_exeext
38453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38454   (eval $ac_link) 2>conftest.er1
38455   ac_status=$?
38456   grep -v '^ *+' conftest.er1 >conftest.err
38457   rm -f conftest.er1
38458   cat conftest.err >&5
38459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460   (exit $ac_status); } &&
38461          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463   (eval $ac_try) 2>&5
38464   ac_status=$?
38465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466   (exit $ac_status); }; } &&
38467          { ac_try='test -s conftest$ac_exeext'
38468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469   (eval $ac_try) 2>&5
38470   ac_status=$?
38471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472   (exit $ac_status); }; }; then
38473   ac_cv_lib_posix4_sched_get_priority_max=yes
38474 else
38475   echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38477
38478 ac_cv_lib_posix4_sched_get_priority_max=no
38479 fi
38480 rm -f conftest.err conftest.$ac_objext \
38481       conftest$ac_exeext conftest.$ac_ext
38482 LIBS=$ac_check_lib_save_LIBS
38483 fi
38484 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38485 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38486 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38487
38488                                 HAVE_PRIOR_FUNCS=1
38489                                 POSIX4_LINK=" -lposix4"
38490
38491 fi
38492
38493
38494 fi
38495
38496
38497 fi
38498
38499
38500 fi
38501
38502
38503       if test "$HAVE_PRIOR_FUNCS" = 1; then
38504         cat >>confdefs.h <<\_ACEOF
38505 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38506 _ACEOF
38507
38508       else
38509         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38510 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38511       fi
38512
38513       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38514 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38515 if test "${ac_cv_func_pthread_cancel+set}" = set; then
38516   echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518   cat >conftest.$ac_ext <<_ACEOF
38519 /* confdefs.h.  */
38520 _ACEOF
38521 cat confdefs.h >>conftest.$ac_ext
38522 cat >>conftest.$ac_ext <<_ACEOF
38523 /* end confdefs.h.  */
38524 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38526 #define pthread_cancel innocuous_pthread_cancel
38527
38528 /* System header to define __stub macros and hopefully few prototypes,
38529     which can conflict with char pthread_cancel (); below.
38530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38531     <limits.h> exists even on freestanding compilers.  */
38532
38533 #ifdef __STDC__
38534 # include <limits.h>
38535 #else
38536 # include <assert.h>
38537 #endif
38538
38539 #undef pthread_cancel
38540
38541 /* Override any gcc2 internal prototype to avoid an error.  */
38542 #ifdef __cplusplus
38543 extern "C"
38544 {
38545 #endif
38546 /* We use char because int might match the return type of a gcc2
38547    builtin and then its argument prototype would still apply.  */
38548 char pthread_cancel ();
38549 /* The GNU C library defines this for functions which it implements
38550     to always fail with ENOSYS.  Some functions are actually named
38551     something starting with __ and the normal name is an alias.  */
38552 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38553 choke me
38554 #else
38555 char (*f) () = pthread_cancel;
38556 #endif
38557 #ifdef __cplusplus
38558 }
38559 #endif
38560
38561 int
38562 main ()
38563 {
38564 return f != pthread_cancel;
38565   ;
38566   return 0;
38567 }
38568 _ACEOF
38569 rm -f conftest.$ac_objext conftest$ac_exeext
38570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38571   (eval $ac_link) 2>conftest.er1
38572   ac_status=$?
38573   grep -v '^ *+' conftest.er1 >conftest.err
38574   rm -f conftest.er1
38575   cat conftest.err >&5
38576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577   (exit $ac_status); } &&
38578          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580   (eval $ac_try) 2>&5
38581   ac_status=$?
38582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583   (exit $ac_status); }; } &&
38584          { ac_try='test -s conftest$ac_exeext'
38585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586   (eval $ac_try) 2>&5
38587   ac_status=$?
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); }; }; then
38590   ac_cv_func_pthread_cancel=yes
38591 else
38592   echo "$as_me: failed program was:" >&5
38593 sed 's/^/| /' conftest.$ac_ext >&5
38594
38595 ac_cv_func_pthread_cancel=no
38596 fi
38597 rm -f conftest.err conftest.$ac_objext \
38598       conftest$ac_exeext conftest.$ac_ext
38599 fi
38600 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38601 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38602 if test $ac_cv_func_pthread_cancel = yes; then
38603   cat >>confdefs.h <<\_ACEOF
38604 #define HAVE_PTHREAD_CANCEL 1
38605 _ACEOF
38606
38607 else
38608   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38609 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38610 fi
38611
38612
38613       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38614 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38615 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38616   echo $ECHO_N "(cached) $ECHO_C" >&6
38617 else
38618   cat >conftest.$ac_ext <<_ACEOF
38619 /* confdefs.h.  */
38620 _ACEOF
38621 cat confdefs.h >>conftest.$ac_ext
38622 cat >>conftest.$ac_ext <<_ACEOF
38623 /* end confdefs.h.  */
38624 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38626 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38627
38628 /* System header to define __stub macros and hopefully few prototypes,
38629     which can conflict with char pthread_attr_setstacksize (); below.
38630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38631     <limits.h> exists even on freestanding compilers.  */
38632
38633 #ifdef __STDC__
38634 # include <limits.h>
38635 #else
38636 # include <assert.h>
38637 #endif
38638
38639 #undef pthread_attr_setstacksize
38640
38641 /* Override any gcc2 internal prototype to avoid an error.  */
38642 #ifdef __cplusplus
38643 extern "C"
38644 {
38645 #endif
38646 /* We use char because int might match the return type of a gcc2
38647    builtin and then its argument prototype would still apply.  */
38648 char pthread_attr_setstacksize ();
38649 /* The GNU C library defines this for functions which it implements
38650     to always fail with ENOSYS.  Some functions are actually named
38651     something starting with __ and the normal name is an alias.  */
38652 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38653 choke me
38654 #else
38655 char (*f) () = pthread_attr_setstacksize;
38656 #endif
38657 #ifdef __cplusplus
38658 }
38659 #endif
38660
38661 int
38662 main ()
38663 {
38664 return f != pthread_attr_setstacksize;
38665   ;
38666   return 0;
38667 }
38668 _ACEOF
38669 rm -f conftest.$ac_objext conftest$ac_exeext
38670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38671   (eval $ac_link) 2>conftest.er1
38672   ac_status=$?
38673   grep -v '^ *+' conftest.er1 >conftest.err
38674   rm -f conftest.er1
38675   cat conftest.err >&5
38676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677   (exit $ac_status); } &&
38678          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680   (eval $ac_try) 2>&5
38681   ac_status=$?
38682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683   (exit $ac_status); }; } &&
38684          { ac_try='test -s conftest$ac_exeext'
38685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686   (eval $ac_try) 2>&5
38687   ac_status=$?
38688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689   (exit $ac_status); }; }; then
38690   ac_cv_func_pthread_attr_setstacksize=yes
38691 else
38692   echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38694
38695 ac_cv_func_pthread_attr_setstacksize=no
38696 fi
38697 rm -f conftest.err conftest.$ac_objext \
38698       conftest$ac_exeext conftest.$ac_ext
38699 fi
38700 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38701 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38702 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38703   cat >>confdefs.h <<\_ACEOF
38704 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38705 _ACEOF
38706
38707 fi
38708
38709
38710
38711       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38712 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38713 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38714   echo $ECHO_N "(cached) $ECHO_C" >&6
38715 else
38716
38717         cat >conftest.$ac_ext <<_ACEOF
38718 /* confdefs.h.  */
38719 _ACEOF
38720 cat confdefs.h >>conftest.$ac_ext
38721 cat >>conftest.$ac_ext <<_ACEOF
38722 /* end confdefs.h.  */
38723 #include <pthread.h>
38724 int
38725 main ()
38726 {
38727
38728                pthread_mutexattr_t attr;
38729                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38730
38731   ;
38732   return 0;
38733 }
38734 _ACEOF
38735 rm -f conftest.$ac_objext
38736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38737   (eval $ac_compile) 2>conftest.er1
38738   ac_status=$?
38739   grep -v '^ *+' conftest.er1 >conftest.err
38740   rm -f conftest.er1
38741   cat conftest.err >&5
38742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743   (exit $ac_status); } &&
38744          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746   (eval $ac_try) 2>&5
38747   ac_status=$?
38748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749   (exit $ac_status); }; } &&
38750          { ac_try='test -s conftest.$ac_objext'
38751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752   (eval $ac_try) 2>&5
38753   ac_status=$?
38754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755   (exit $ac_status); }; }; then
38756   wx_cv_type_pthread_mutexattr_t=yes
38757 else
38758   echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38760
38761 wx_cv_type_pthread_mutexattr_t=no
38762
38763 fi
38764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38765
38766 fi
38767 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38768 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38769
38770       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38771         cat >>confdefs.h <<\_ACEOF
38772 #define HAVE_PTHREAD_MUTEXATTR_T 1
38773 _ACEOF
38774
38775
38776                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38777 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38778 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38779   echo $ECHO_N "(cached) $ECHO_C" >&6
38780 else
38781
38782                        cat >conftest.$ac_ext <<_ACEOF
38783 /* confdefs.h.  */
38784 _ACEOF
38785 cat confdefs.h >>conftest.$ac_ext
38786 cat >>conftest.$ac_ext <<_ACEOF
38787 /* end confdefs.h.  */
38788 #include <pthread.h>
38789 int
38790 main ()
38791 {
38792
38793                                pthread_mutexattr_t attr;
38794                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38795
38796   ;
38797   return 0;
38798 }
38799 _ACEOF
38800 rm -f conftest.$ac_objext
38801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38802   (eval $ac_compile) 2>conftest.er1
38803   ac_status=$?
38804   grep -v '^ *+' conftest.er1 >conftest.err
38805   rm -f conftest.er1
38806   cat conftest.err >&5
38807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38808   (exit $ac_status); } &&
38809          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38811   (eval $ac_try) 2>&5
38812   ac_status=$?
38813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814   (exit $ac_status); }; } &&
38815          { ac_try='test -s conftest.$ac_objext'
38816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38817   (eval $ac_try) 2>&5
38818   ac_status=$?
38819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820   (exit $ac_status); }; }; then
38821   wx_cv_func_pthread_mutexattr_settype_decl=yes
38822 else
38823   echo "$as_me: failed program was:" >&5
38824 sed 's/^/| /' conftest.$ac_ext >&5
38825
38826 wx_cv_func_pthread_mutexattr_settype_decl=no
38827
38828 fi
38829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38830
38831 fi
38832 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38833 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38834         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38835             cat >>confdefs.h <<\_ACEOF
38836 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38837 _ACEOF
38838
38839         fi
38840       else
38841                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38842 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38843 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38844   echo $ECHO_N "(cached) $ECHO_C" >&6
38845 else
38846
38847             cat >conftest.$ac_ext <<_ACEOF
38848 /* confdefs.h.  */
38849 _ACEOF
38850 cat confdefs.h >>conftest.$ac_ext
38851 cat >>conftest.$ac_ext <<_ACEOF
38852 /* end confdefs.h.  */
38853 #include <pthread.h>
38854 int
38855 main ()
38856 {
38857
38858                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38859
38860   ;
38861   return 0;
38862 }
38863 _ACEOF
38864 rm -f conftest.$ac_objext
38865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38866   (eval $ac_compile) 2>conftest.er1
38867   ac_status=$?
38868   grep -v '^ *+' conftest.er1 >conftest.err
38869   rm -f conftest.er1
38870   cat conftest.err >&5
38871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872   (exit $ac_status); } &&
38873          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38875   (eval $ac_try) 2>&5
38876   ac_status=$?
38877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878   (exit $ac_status); }; } &&
38879          { ac_try='test -s conftest.$ac_objext'
38880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38881   (eval $ac_try) 2>&5
38882   ac_status=$?
38883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884   (exit $ac_status); }; }; then
38885
38886                     wx_cv_type_pthread_rec_mutex_init=yes
38887
38888 else
38889   echo "$as_me: failed program was:" >&5
38890 sed 's/^/| /' conftest.$ac_ext >&5
38891
38892
38893                     wx_cv_type_pthread_rec_mutex_init=no
38894
38895
38896 fi
38897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38898
38899 fi
38900 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38901 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38902         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38903           cat >>confdefs.h <<\_ACEOF
38904 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38905 _ACEOF
38906
38907         else
38908                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38909 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38910         fi
38911       fi
38912     fi
38913
38914 else
38915     if test "$wxUSE_THREADS" = "yes" ; then
38916       case "${host}" in
38917         *-*-mingw32* )
38918                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38919 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38920 if test "${wx_cv_cflags_mthread+set}" = set; then
38921   echo $ECHO_N "(cached) $ECHO_C" >&6
38922 else
38923
38924                     CXXFLAGS_OLD="$CXXFLAGS"
38925                     CXXFLAGS="-mthreads $CXXFLAGS"
38926                     cat >conftest.$ac_ext <<_ACEOF
38927 /* confdefs.h.  */
38928 _ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h.  */
38932
38933 int
38934 main ()
38935 {
38936
38937   ;
38938   return 0;
38939 }
38940 _ACEOF
38941 rm -f conftest.$ac_objext
38942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38943   (eval $ac_compile) 2>conftest.er1
38944   ac_status=$?
38945   grep -v '^ *+' conftest.er1 >conftest.err
38946   rm -f conftest.er1
38947   cat conftest.err >&5
38948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949   (exit $ac_status); } &&
38950          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952   (eval $ac_try) 2>&5
38953   ac_status=$?
38954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955   (exit $ac_status); }; } &&
38956          { ac_try='test -s conftest.$ac_objext'
38957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958   (eval $ac_try) 2>&5
38959   ac_status=$?
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); }; }; then
38962   wx_cv_cflags_mthread=yes
38963 else
38964   echo "$as_me: failed program was:" >&5
38965 sed 's/^/| /' conftest.$ac_ext >&5
38966
38967 wx_cv_cflags_mthread=no
38968
38969 fi
38970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38971
38972
38973 fi
38974 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38975 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38976
38977             if test "$wx_cv_cflags_mthread" = "yes"; then
38978                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
38979                 LDFLAGS="$LDFLAGS -mthreads"
38980             else
38981                                 CXXFLAGS="$CXXFLAGS_OLD"
38982             fi
38983         ;;
38984         *-pc-os2*emx )
38985             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38986             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
38987             LDFLAGS="$LDFLAGS -Zmt"
38988         ;;
38989       esac
38990     fi
38991 fi
38992
38993 echo "$as_me:$LINENO: checking for localtime_r" >&5
38994 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38995 if test "${ac_cv_func_localtime_r+set}" = set; then
38996   echo $ECHO_N "(cached) $ECHO_C" >&6
38997 else
38998   cat >conftest.$ac_ext <<_ACEOF
38999 /* confdefs.h.  */
39000 _ACEOF
39001 cat confdefs.h >>conftest.$ac_ext
39002 cat >>conftest.$ac_ext <<_ACEOF
39003 /* end confdefs.h.  */
39004 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39006 #define localtime_r innocuous_localtime_r
39007
39008 /* System header to define __stub macros and hopefully few prototypes,
39009     which can conflict with char localtime_r (); below.
39010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39011     <limits.h> exists even on freestanding compilers.  */
39012
39013 #ifdef __STDC__
39014 # include <limits.h>
39015 #else
39016 # include <assert.h>
39017 #endif
39018
39019 #undef localtime_r
39020
39021 /* Override any gcc2 internal prototype to avoid an error.  */
39022 #ifdef __cplusplus
39023 extern "C"
39024 {
39025 #endif
39026 /* We use char because int might match the return type of a gcc2
39027    builtin and then its argument prototype would still apply.  */
39028 char localtime_r ();
39029 /* The GNU C library defines this for functions which it implements
39030     to always fail with ENOSYS.  Some functions are actually named
39031     something starting with __ and the normal name is an alias.  */
39032 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
39033 choke me
39034 #else
39035 char (*f) () = localtime_r;
39036 #endif
39037 #ifdef __cplusplus
39038 }
39039 #endif
39040
39041 int
39042 main ()
39043 {
39044 return f != localtime_r;
39045   ;
39046   return 0;
39047 }
39048 _ACEOF
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051   (eval $ac_link) 2>conftest.er1
39052   ac_status=$?
39053   grep -v '^ *+' conftest.er1 >conftest.err
39054   rm -f conftest.er1
39055   cat conftest.err >&5
39056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057   (exit $ac_status); } &&
39058          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060   (eval $ac_try) 2>&5
39061   ac_status=$?
39062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063   (exit $ac_status); }; } &&
39064          { ac_try='test -s conftest$ac_exeext'
39065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066   (eval $ac_try) 2>&5
39067   ac_status=$?
39068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069   (exit $ac_status); }; }; then
39070   ac_cv_func_localtime_r=yes
39071 else
39072   echo "$as_me: failed program was:" >&5
39073 sed 's/^/| /' conftest.$ac_ext >&5
39074
39075 ac_cv_func_localtime_r=no
39076 fi
39077 rm -f conftest.err conftest.$ac_objext \
39078       conftest$ac_exeext conftest.$ac_ext
39079 fi
39080 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39081 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39082 if test $ac_cv_func_localtime_r = yes; then
39083    cat >>confdefs.h <<\_ACEOF
39084 #define HAVE_LOCALTIME_R 1
39085 _ACEOF
39086
39087 fi
39088
39089 echo "$as_me:$LINENO: checking for gmtime_r" >&5
39090 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39091 if test "${ac_cv_func_gmtime_r+set}" = set; then
39092   echo $ECHO_N "(cached) $ECHO_C" >&6
39093 else
39094   cat >conftest.$ac_ext <<_ACEOF
39095 /* confdefs.h.  */
39096 _ACEOF
39097 cat confdefs.h >>conftest.$ac_ext
39098 cat >>conftest.$ac_ext <<_ACEOF
39099 /* end confdefs.h.  */
39100 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39102 #define gmtime_r innocuous_gmtime_r
39103
39104 /* System header to define __stub macros and hopefully few prototypes,
39105     which can conflict with char gmtime_r (); below.
39106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39107     <limits.h> exists even on freestanding compilers.  */
39108
39109 #ifdef __STDC__
39110 # include <limits.h>
39111 #else
39112 # include <assert.h>
39113 #endif
39114
39115 #undef gmtime_r
39116
39117 /* Override any gcc2 internal prototype to avoid an error.  */
39118 #ifdef __cplusplus
39119 extern "C"
39120 {
39121 #endif
39122 /* We use char because int might match the return type of a gcc2
39123    builtin and then its argument prototype would still apply.  */
39124 char gmtime_r ();
39125 /* The GNU C library defines this for functions which it implements
39126     to always fail with ENOSYS.  Some functions are actually named
39127     something starting with __ and the normal name is an alias.  */
39128 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39129 choke me
39130 #else
39131 char (*f) () = gmtime_r;
39132 #endif
39133 #ifdef __cplusplus
39134 }
39135 #endif
39136
39137 int
39138 main ()
39139 {
39140 return f != gmtime_r;
39141   ;
39142   return 0;
39143 }
39144 _ACEOF
39145 rm -f conftest.$ac_objext conftest$ac_exeext
39146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39147   (eval $ac_link) 2>conftest.er1
39148   ac_status=$?
39149   grep -v '^ *+' conftest.er1 >conftest.err
39150   rm -f conftest.er1
39151   cat conftest.err >&5
39152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153   (exit $ac_status); } &&
39154          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156   (eval $ac_try) 2>&5
39157   ac_status=$?
39158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159   (exit $ac_status); }; } &&
39160          { ac_try='test -s conftest$ac_exeext'
39161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162   (eval $ac_try) 2>&5
39163   ac_status=$?
39164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165   (exit $ac_status); }; }; then
39166   ac_cv_func_gmtime_r=yes
39167 else
39168   echo "$as_me: failed program was:" >&5
39169 sed 's/^/| /' conftest.$ac_ext >&5
39170
39171 ac_cv_func_gmtime_r=no
39172 fi
39173 rm -f conftest.err conftest.$ac_objext \
39174       conftest$ac_exeext conftest.$ac_ext
39175 fi
39176 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39177 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39178 if test $ac_cv_func_gmtime_r = yes; then
39179    cat >>confdefs.h <<\_ACEOF
39180 #define HAVE_GMTIME_R 1
39181 _ACEOF
39182
39183 fi
39184
39185 echo "$as_me:$LINENO: checking for readdir_r" >&5
39186 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39187 if test "${ac_cv_func_readdir_r+set}" = set; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190   cat >conftest.$ac_ext <<_ACEOF
39191 /* confdefs.h.  */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h.  */
39196 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39198 #define readdir_r innocuous_readdir_r
39199
39200 /* System header to define __stub macros and hopefully few prototypes,
39201     which can conflict with char readdir_r (); below.
39202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39203     <limits.h> exists even on freestanding compilers.  */
39204
39205 #ifdef __STDC__
39206 # include <limits.h>
39207 #else
39208 # include <assert.h>
39209 #endif
39210
39211 #undef readdir_r
39212
39213 /* Override any gcc2 internal prototype to avoid an error.  */
39214 #ifdef __cplusplus
39215 extern "C"
39216 {
39217 #endif
39218 /* We use char because int might match the return type of a gcc2
39219    builtin and then its argument prototype would still apply.  */
39220 char readdir_r ();
39221 /* The GNU C library defines this for functions which it implements
39222     to always fail with ENOSYS.  Some functions are actually named
39223     something starting with __ and the normal name is an alias.  */
39224 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39225 choke me
39226 #else
39227 char (*f) () = readdir_r;
39228 #endif
39229 #ifdef __cplusplus
39230 }
39231 #endif
39232
39233 int
39234 main ()
39235 {
39236 return f != readdir_r;
39237   ;
39238   return 0;
39239 }
39240 _ACEOF
39241 rm -f conftest.$ac_objext conftest$ac_exeext
39242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39243   (eval $ac_link) 2>conftest.er1
39244   ac_status=$?
39245   grep -v '^ *+' conftest.er1 >conftest.err
39246   rm -f conftest.er1
39247   cat conftest.err >&5
39248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249   (exit $ac_status); } &&
39250          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39252   (eval $ac_try) 2>&5
39253   ac_status=$?
39254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255   (exit $ac_status); }; } &&
39256          { ac_try='test -s conftest$ac_exeext'
39257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39258   (eval $ac_try) 2>&5
39259   ac_status=$?
39260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261   (exit $ac_status); }; }; then
39262   ac_cv_func_readdir_r=yes
39263 else
39264   echo "$as_me: failed program was:" >&5
39265 sed 's/^/| /' conftest.$ac_ext >&5
39266
39267 ac_cv_func_readdir_r=no
39268 fi
39269 rm -f conftest.err conftest.$ac_objext \
39270       conftest$ac_exeext conftest.$ac_ext
39271 fi
39272 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39273 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39274 if test $ac_cv_func_readdir_r = yes; then
39275    cat >>confdefs.h <<\_ACEOF
39276 #define HAVE_READDIR_R 1
39277 _ACEOF
39278
39279 fi
39280
39281
39282
39283
39284     ac_ext=c
39285 ac_cpp='$CPP $CPPFLAGS'
39286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39289
39290     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39291 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39292
39293     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39294   echo $ECHO_N "(cached) $ECHO_C" >&6
39295 else
39296
39297
39298 ################################################################
39299
39300 ac_cv_func_which_gethostbyname_r=unknown
39301
39302 #
39303 # ONE ARGUMENT (sanity check)
39304 #
39305
39306 # This should fail, as there is no variant of gethostbyname_r() that takes
39307 # a single argument. If it actually compiles, then we can assume that
39308 # netdb.h is not declaring the function, and the compiler is thereby
39309 # assuming an implicit prototype. In which case, we're out of luck.
39310 #
39311 cat >conftest.$ac_ext <<_ACEOF
39312 /* confdefs.h.  */
39313 _ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h.  */
39317 #include <netdb.h>
39318 int
39319 main ()
39320 {
39321
39322             char *name = "www.gnu.org";
39323             (void)gethostbyname_r(name) /* ; */
39324
39325   ;
39326   return 0;
39327 }
39328 _ACEOF
39329 rm -f conftest.$ac_objext
39330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39331   (eval $ac_compile) 2>conftest.er1
39332   ac_status=$?
39333   grep -v '^ *+' conftest.er1 >conftest.err
39334   rm -f conftest.er1
39335   cat conftest.err >&5
39336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); } &&
39338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340   (eval $ac_try) 2>&5
39341   ac_status=$?
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); }; } &&
39344          { ac_try='test -s conftest.$ac_objext'
39345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346   (eval $ac_try) 2>&5
39347   ac_status=$?
39348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349   (exit $ac_status); }; }; then
39350   ac_cv_func_which_gethostbyname_r=no
39351 else
39352   echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39354
39355 fi
39356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39357
39358 #
39359 # SIX ARGUMENTS
39360 # (e.g. Linux)
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, *retp;
39378             char buf[1024];
39379             int buflen = 1024;
39380             int my_h_errno;
39381             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39382
39383   ;
39384   return 0;
39385 }
39386 _ACEOF
39387 rm -f conftest.$ac_objext
39388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39389   (eval $ac_compile) 2>conftest.er1
39390   ac_status=$?
39391   grep -v '^ *+' conftest.er1 >conftest.err
39392   rm -f conftest.er1
39393   cat conftest.err >&5
39394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395   (exit $ac_status); } &&
39396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398   (eval $ac_try) 2>&5
39399   ac_status=$?
39400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401   (exit $ac_status); }; } &&
39402          { ac_try='test -s conftest.$ac_objext'
39403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404   (eval $ac_try) 2>&5
39405   ac_status=$?
39406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); }; }; then
39408   ac_cv_func_which_gethostbyname_r=six
39409 else
39410   echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39412
39413 fi
39414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39415
39416 fi
39417
39418 #
39419 # FIVE ARGUMENTS
39420 # (e.g. Solaris)
39421 #
39422
39423 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39424
39425 cat >conftest.$ac_ext <<_ACEOF
39426 /* confdefs.h.  */
39427 _ACEOF
39428 cat confdefs.h >>conftest.$ac_ext
39429 cat >>conftest.$ac_ext <<_ACEOF
39430 /* end confdefs.h.  */
39431 #include <netdb.h>
39432 int
39433 main ()
39434 {
39435
39436             char *name = "www.gnu.org";
39437             struct hostent ret;
39438             char buf[1024];
39439             int buflen = 1024;
39440             int my_h_errno;
39441             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39442
39443   ;
39444   return 0;
39445 }
39446 _ACEOF
39447 rm -f conftest.$ac_objext
39448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39449   (eval $ac_compile) 2>conftest.er1
39450   ac_status=$?
39451   grep -v '^ *+' conftest.er1 >conftest.err
39452   rm -f conftest.er1
39453   cat conftest.err >&5
39454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455   (exit $ac_status); } &&
39456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39458   (eval $ac_try) 2>&5
39459   ac_status=$?
39460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461   (exit $ac_status); }; } &&
39462          { ac_try='test -s conftest.$ac_objext'
39463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39464   (eval $ac_try) 2>&5
39465   ac_status=$?
39466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39467   (exit $ac_status); }; }; then
39468   ac_cv_func_which_gethostbyname_r=five
39469 else
39470   echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39472
39473 fi
39474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39475
39476 fi
39477
39478 #
39479 # THREE ARGUMENTS
39480 # (e.g. AIX, HP-UX, Tru64)
39481 #
39482
39483 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39484
39485 cat >conftest.$ac_ext <<_ACEOF
39486 /* confdefs.h.  */
39487 _ACEOF
39488 cat confdefs.h >>conftest.$ac_ext
39489 cat >>conftest.$ac_ext <<_ACEOF
39490 /* end confdefs.h.  */
39491 #include <netdb.h>
39492 int
39493 main ()
39494 {
39495
39496             char *name = "www.gnu.org";
39497             struct hostent ret;
39498             struct hostent_data data;
39499             (void)gethostbyname_r(name, &ret, &data) /* ; */
39500
39501   ;
39502   return 0;
39503 }
39504 _ACEOF
39505 rm -f conftest.$ac_objext
39506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39507   (eval $ac_compile) 2>conftest.er1
39508   ac_status=$?
39509   grep -v '^ *+' conftest.er1 >conftest.err
39510   rm -f conftest.er1
39511   cat conftest.err >&5
39512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513   (exit $ac_status); } &&
39514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516   (eval $ac_try) 2>&5
39517   ac_status=$?
39518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519   (exit $ac_status); }; } &&
39520          { ac_try='test -s conftest.$ac_objext'
39521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522   (eval $ac_try) 2>&5
39523   ac_status=$?
39524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525   (exit $ac_status); }; }; then
39526   ac_cv_func_which_gethostbyname_r=three
39527 else
39528   echo "$as_me: failed program was:" >&5
39529 sed 's/^/| /' conftest.$ac_ext >&5
39530
39531 fi
39532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39533
39534 fi
39535
39536 ################################################################
39537
39538
39539 fi
39540
39541 case "$ac_cv_func_which_gethostbyname_r" in
39542     three)
39543     echo "$as_me:$LINENO: result: three" >&5
39544 echo "${ECHO_T}three" >&6
39545     cat >>confdefs.h <<\_ACEOF
39546 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39547 _ACEOF
39548
39549     ;;
39550
39551     five)
39552     echo "$as_me:$LINENO: result: five" >&5
39553 echo "${ECHO_T}five" >&6
39554     cat >>confdefs.h <<\_ACEOF
39555 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39556 _ACEOF
39557
39558     ;;
39559
39560     six)
39561     echo "$as_me:$LINENO: result: six" >&5
39562 echo "${ECHO_T}six" >&6
39563     cat >>confdefs.h <<\_ACEOF
39564 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39565 _ACEOF
39566
39567     ;;
39568
39569     no)
39570     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39571 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39572     ;;
39573
39574     unknown)
39575     echo "$as_me:$LINENO: result: can't tell" >&5
39576 echo "${ECHO_T}can't tell" >&6
39577     ;;
39578
39579     *)
39580     { { echo "$as_me:$LINENO: error: internal error" >&5
39581 echo "$as_me: error: internal error" >&2;}
39582    { (exit 1); exit 1; }; }
39583     ;;
39584 esac
39585
39586 ac_ext=cc
39587 ac_cpp='$CXXCPP $CPPFLAGS'
39588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39591
39592
39593
39594       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39595               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39596           echo "$as_me:$LINENO: checking for gethostbyname" >&5
39597 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39598 if test "${ac_cv_func_gethostbyname+set}" = set; then
39599   echo $ECHO_N "(cached) $ECHO_C" >&6
39600 else
39601   cat >conftest.$ac_ext <<_ACEOF
39602 /* confdefs.h.  */
39603 _ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h.  */
39607 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39609 #define gethostbyname innocuous_gethostbyname
39610
39611 /* System header to define __stub macros and hopefully few prototypes,
39612     which can conflict with char gethostbyname (); below.
39613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39614     <limits.h> exists even on freestanding compilers.  */
39615
39616 #ifdef __STDC__
39617 # include <limits.h>
39618 #else
39619 # include <assert.h>
39620 #endif
39621
39622 #undef gethostbyname
39623
39624 /* Override any gcc2 internal prototype to avoid an error.  */
39625 #ifdef __cplusplus
39626 extern "C"
39627 {
39628 #endif
39629 /* We use char because int might match the return type of a gcc2
39630    builtin and then its argument prototype would still apply.  */
39631 char gethostbyname ();
39632 /* The GNU C library defines this for functions which it implements
39633     to always fail with ENOSYS.  Some functions are actually named
39634     something starting with __ and the normal name is an alias.  */
39635 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39636 choke me
39637 #else
39638 char (*f) () = gethostbyname;
39639 #endif
39640 #ifdef __cplusplus
39641 }
39642 #endif
39643
39644 int
39645 main ()
39646 {
39647 return f != gethostbyname;
39648   ;
39649   return 0;
39650 }
39651 _ACEOF
39652 rm -f conftest.$ac_objext conftest$ac_exeext
39653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39654   (eval $ac_link) 2>conftest.er1
39655   ac_status=$?
39656   grep -v '^ *+' conftest.er1 >conftest.err
39657   rm -f conftest.er1
39658   cat conftest.err >&5
39659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); } &&
39661          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663   (eval $ac_try) 2>&5
39664   ac_status=$?
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); }; } &&
39667          { ac_try='test -s conftest$ac_exeext'
39668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669   (eval $ac_try) 2>&5
39670   ac_status=$?
39671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672   (exit $ac_status); }; }; then
39673   ac_cv_func_gethostbyname=yes
39674 else
39675   echo "$as_me: failed program was:" >&5
39676 sed 's/^/| /' conftest.$ac_ext >&5
39677
39678 ac_cv_func_gethostbyname=no
39679 fi
39680 rm -f conftest.err conftest.$ac_objext \
39681       conftest$ac_exeext conftest.$ac_ext
39682 fi
39683 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39684 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39685 if test $ac_cv_func_gethostbyname = yes; then
39686    cat >>confdefs.h <<\_ACEOF
39687 #define HAVE_GETHOSTBYNAME 1
39688 _ACEOF
39689
39690 fi
39691
39692       fi
39693                               echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39694 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
39695 if test "${ac_cv_func_getservbyname_r+set}" = set; then
39696   echo $ECHO_N "(cached) $ECHO_C" >&6
39697 else
39698   cat >conftest.$ac_ext <<_ACEOF
39699 /* confdefs.h.  */
39700 _ACEOF
39701 cat confdefs.h >>conftest.$ac_ext
39702 cat >>conftest.$ac_ext <<_ACEOF
39703 /* end confdefs.h.  */
39704 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39706 #define getservbyname_r innocuous_getservbyname_r
39707
39708 /* System header to define __stub macros and hopefully few prototypes,
39709     which can conflict with char getservbyname_r (); below.
39710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39711     <limits.h> exists even on freestanding compilers.  */
39712
39713 #ifdef __STDC__
39714 # include <limits.h>
39715 #else
39716 # include <assert.h>
39717 #endif
39718
39719 #undef getservbyname_r
39720
39721 /* Override any gcc2 internal prototype to avoid an error.  */
39722 #ifdef __cplusplus
39723 extern "C"
39724 {
39725 #endif
39726 /* We use char because int might match the return type of a gcc2
39727    builtin and then its argument prototype would still apply.  */
39728 char getservbyname_r ();
39729 /* The GNU C library defines this for functions which it implements
39730     to always fail with ENOSYS.  Some functions are actually named
39731     something starting with __ and the normal name is an alias.  */
39732 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39733 choke me
39734 #else
39735 char (*f) () = getservbyname_r;
39736 #endif
39737 #ifdef __cplusplus
39738 }
39739 #endif
39740
39741 int
39742 main ()
39743 {
39744 return f != getservbyname_r;
39745   ;
39746   return 0;
39747 }
39748 _ACEOF
39749 rm -f conftest.$ac_objext conftest$ac_exeext
39750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39751   (eval $ac_link) 2>conftest.er1
39752   ac_status=$?
39753   grep -v '^ *+' conftest.er1 >conftest.err
39754   rm -f conftest.er1
39755   cat conftest.err >&5
39756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757   (exit $ac_status); } &&
39758          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760   (eval $ac_try) 2>&5
39761   ac_status=$?
39762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763   (exit $ac_status); }; } &&
39764          { ac_try='test -s conftest$ac_exeext'
39765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766   (eval $ac_try) 2>&5
39767   ac_status=$?
39768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769   (exit $ac_status); }; }; then
39770   ac_cv_func_getservbyname_r=yes
39771 else
39772   echo "$as_me: failed program was:" >&5
39773 sed 's/^/| /' conftest.$ac_ext >&5
39774
39775 ac_cv_func_getservbyname_r=no
39776 fi
39777 rm -f conftest.err conftest.$ac_objext \
39778       conftest$ac_exeext conftest.$ac_ext
39779 fi
39780 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39781 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39782 if test $ac_cv_func_getservbyname_r = yes; then
39783   cat >conftest.$ac_ext <<_ACEOF
39784 /* confdefs.h.  */
39785 _ACEOF
39786 cat confdefs.h >>conftest.$ac_ext
39787 cat >>conftest.$ac_ext <<_ACEOF
39788 /* end confdefs.h.  */
39789 #include <netdb.h>
39790 int
39791 main ()
39792 {
39793
39794             char *name;
39795             char *proto;
39796             struct servent *se;
39797             struct servent_data data;
39798             (void) getservbyname_r(name, proto, se, &data);
39799
39800   ;
39801   return 0;
39802 }
39803 _ACEOF
39804 rm -f conftest.$ac_objext
39805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39806   (eval $ac_compile) 2>conftest.er1
39807   ac_status=$?
39808   grep -v '^ *+' conftest.er1 >conftest.err
39809   rm -f conftest.er1
39810   cat conftest.err >&5
39811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812   (exit $ac_status); } &&
39813          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815   (eval $ac_try) 2>&5
39816   ac_status=$?
39817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818   (exit $ac_status); }; } &&
39819          { ac_try='test -s conftest.$ac_objext'
39820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821   (eval $ac_try) 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); }; }; then
39825   ac_cv_func_which_getservbyname_r=four
39826 else
39827   echo "$as_me: failed program was:" >&5
39828 sed 's/^/| /' conftest.$ac_ext >&5
39829
39830 cat >conftest.$ac_ext <<_ACEOF
39831 /* confdefs.h.  */
39832 _ACEOF
39833 cat confdefs.h >>conftest.$ac_ext
39834 cat >>conftest.$ac_ext <<_ACEOF
39835 /* end confdefs.h.  */
39836 #include <netdb.h>
39837 int
39838 main ()
39839 {
39840
39841                 char *name;
39842                 char *proto;
39843                 struct servent *se, *res;
39844                 char buffer[2048];
39845                 int buflen = 2048;
39846                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
39847
39848   ;
39849   return 0;
39850 }
39851 _ACEOF
39852 rm -f conftest.$ac_objext
39853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39854   (eval $ac_compile) 2>conftest.er1
39855   ac_status=$?
39856   grep -v '^ *+' conftest.er1 >conftest.err
39857   rm -f conftest.er1
39858   cat conftest.err >&5
39859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860   (exit $ac_status); } &&
39861          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863   (eval $ac_try) 2>&5
39864   ac_status=$?
39865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866   (exit $ac_status); }; } &&
39867          { ac_try='test -s conftest.$ac_objext'
39868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869   (eval $ac_try) 2>&5
39870   ac_status=$?
39871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872   (exit $ac_status); }; }; then
39873   ac_cv_func_which_getservbyname_r=six
39874 else
39875   echo "$as_me: failed program was:" >&5
39876 sed 's/^/| /' conftest.$ac_ext >&5
39877
39878 cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h.  */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h.  */
39884 #include <netdb.h>
39885 int
39886 main ()
39887 {
39888
39889                     char *name;
39890                     char *proto;
39891                     struct servent *se;
39892                     char buffer[2048];
39893                     int buflen = 2048;
39894                     (void) getservbyname_r(name, proto, se, buffer, buflen)
39895
39896   ;
39897   return 0;
39898 }
39899 _ACEOF
39900 rm -f conftest.$ac_objext
39901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39902   (eval $ac_compile) 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_objext'
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   ac_cv_func_which_getservbyname_r=five
39922 else
39923   echo "$as_me: failed program was:" >&5
39924 sed 's/^/| /' conftest.$ac_ext >&5
39925
39926 ac_cv_func_which_getservbyname_r=no
39927
39928 fi
39929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39930
39931 fi
39932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39933
39934 fi
39935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39936 else
39937   ac_cv_func_which_getservbyname_r=no
39938 fi
39939
39940
39941 if test $ac_cv_func_which_getservbyname_r = six; then
39942   cat >>confdefs.h <<\_ACEOF
39943 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
39944 _ACEOF
39945
39946 elif test $ac_cv_func_which_getservbyname_r = five; then
39947   cat >>confdefs.h <<\_ACEOF
39948 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
39949 _ACEOF
39950
39951 elif test $ac_cv_func_which_getservbyname_r = four; then
39952   cat >>confdefs.h <<\_ACEOF
39953 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
39954 _ACEOF
39955
39956 fi
39957
39958
39959       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39960               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39961
39962 for ac_func in getservbyname
39963 do
39964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39965 echo "$as_me:$LINENO: checking for $ac_func" >&5
39966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39967 if eval "test \"\${$as_ac_var+set}\" = set"; then
39968   echo $ECHO_N "(cached) $ECHO_C" >&6
39969 else
39970   cat >conftest.$ac_ext <<_ACEOF
39971 /* confdefs.h.  */
39972 _ACEOF
39973 cat confdefs.h >>conftest.$ac_ext
39974 cat >>conftest.$ac_ext <<_ACEOF
39975 /* end confdefs.h.  */
39976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39978 #define $ac_func innocuous_$ac_func
39979
39980 /* System header to define __stub macros and hopefully few prototypes,
39981     which can conflict with char $ac_func (); below.
39982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39983     <limits.h> exists even on freestanding compilers.  */
39984
39985 #ifdef __STDC__
39986 # include <limits.h>
39987 #else
39988 # include <assert.h>
39989 #endif
39990
39991 #undef $ac_func
39992
39993 /* Override any gcc2 internal prototype to avoid an error.  */
39994 #ifdef __cplusplus
39995 extern "C"
39996 {
39997 #endif
39998 /* We use char because int might match the return type of a gcc2
39999    builtin and then its argument prototype would still apply.  */
40000 char $ac_func ();
40001 /* The GNU C library defines this for functions which it implements
40002     to always fail with ENOSYS.  Some functions are actually named
40003     something starting with __ and the normal name is an alias.  */
40004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40005 choke me
40006 #else
40007 char (*f) () = $ac_func;
40008 #endif
40009 #ifdef __cplusplus
40010 }
40011 #endif
40012
40013 int
40014 main ()
40015 {
40016 return f != $ac_func;
40017   ;
40018   return 0;
40019 }
40020 _ACEOF
40021 rm -f conftest.$ac_objext conftest$ac_exeext
40022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40023   (eval $ac_link) 2>conftest.er1
40024   ac_status=$?
40025   grep -v '^ *+' conftest.er1 >conftest.err
40026   rm -f conftest.er1
40027   cat conftest.err >&5
40028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40029   (exit $ac_status); } &&
40030          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032   (eval $ac_try) 2>&5
40033   ac_status=$?
40034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035   (exit $ac_status); }; } &&
40036          { ac_try='test -s conftest$ac_exeext'
40037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038   (eval $ac_try) 2>&5
40039   ac_status=$?
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); }; }; then
40042   eval "$as_ac_var=yes"
40043 else
40044   echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40046
40047 eval "$as_ac_var=no"
40048 fi
40049 rm -f conftest.err conftest.$ac_objext \
40050       conftest$ac_exeext conftest.$ac_ext
40051 fi
40052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40054 if test `eval echo '${'$as_ac_var'}'` = yes; then
40055   cat >>confdefs.h <<_ACEOF
40056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40057 _ACEOF
40058   cat >>confdefs.h <<\_ACEOF
40059 #define HAVE_GETSERVBYNAME 1
40060 _ACEOF
40061
40062 fi
40063 done
40064
40065       fi
40066
40067 if test "$wxUSE_THREADS" = "yes"; then
40068   cat >>confdefs.h <<\_ACEOF
40069 #define wxUSE_THREADS 1
40070 _ACEOF
40071
40072
40073   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40074 else
40075       if test "$ac_cv_func_strtok_r" = "yes"; then
40076     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40077 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40078     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40079         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40080         echo "$as_me:$LINENO: result: yes" >&5
40081 echo "${ECHO_T}yes" >&6
40082     else
40083         echo "$as_me:$LINENO: result: no" >&5
40084 echo "${ECHO_T}no" >&6
40085     fi
40086   fi
40087 fi
40088
40089 if test "$WXGTK20" = 1 ; then
40090   cat >>confdefs.h <<_ACEOF
40091 #define __WXGTK20__ $WXGTK20
40092 _ACEOF
40093
40094   WXGTK12=1
40095 fi
40096
40097 if test "$WXGTK12" = 1 ; then
40098   cat >>confdefs.h <<_ACEOF
40099 #define __WXGTK12__ $WXGTK12
40100 _ACEOF
40101
40102 fi
40103
40104 if test "$WXGTK127" = 1 ; then
40105   cat >>confdefs.h <<_ACEOF
40106 #define __WXGTK127__ $WXGTK127
40107 _ACEOF
40108
40109 fi
40110
40111 if test "$WXGPE" = 1 ; then
40112   cat >>confdefs.h <<_ACEOF
40113 #define __WXGPE__ $WXGPE
40114 _ACEOF
40115
40116 fi
40117
40118 DEBUG_CFLAGS=
40119 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40120     DEBUG_CFLAGS="-g"
40121     wxUSE_OPTIMISE=no
40122 fi
40123
40124 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40125     wxUSE_DEBUG_INFO=yes
40126     if test "$GCC" = yes; then
40127         DEBUG_CFLAGS="-ggdb"
40128     fi
40129 fi
40130
40131 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40132     cat >>confdefs.h <<\_ACEOF
40133 #define WXDEBUG 1
40134 _ACEOF
40135
40136     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40137 else
40138     if test "$wxUSE_GTK" = 1 ; then
40139         if test "x$wxGTK_VERSION" = "x1" ; then
40140             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40141         fi
40142     fi
40143 fi
40144
40145 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40146     cat >>confdefs.h <<\_ACEOF
40147 #define wxUSE_MEMORY_TRACING 1
40148 _ACEOF
40149
40150     cat >>confdefs.h <<\_ACEOF
40151 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40152 _ACEOF
40153
40154     cat >>confdefs.h <<\_ACEOF
40155 #define wxUSE_DEBUG_NEW_ALWAYS 1
40156 _ACEOF
40157
40158     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40159 fi
40160
40161 if test "$wxUSE_DMALLOC" = "yes" ; then
40162     DMALLOC_LIBS="-ldmallocthcxx"
40163 fi
40164
40165 PROFILE_FLAGS=
40166 if test "$wxUSE_PROFILE" = "yes" ; then
40167     PROFILE_FLAGS=" -pg"
40168 fi
40169
40170 if test "$GCC" = "yes" ; then
40171     if test "$wxUSE_NO_RTTI" = "yes" ; then
40172         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40173     fi
40174     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40175         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40176     fi
40177     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40178         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40179     fi
40180
40181                                                 case "${host}" in
40182       powerpc*-*-aix* )
40183         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40184         ;;
40185       *-hppa* )
40186         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40187         ;;
40188     esac
40189 fi
40190
40191 OPTIMISE_CFLAGS=
40192 if test "$wxUSE_OPTIMISE" = "no" ; then
40193     if test "$GCC" = yes ; then
40194                         OPTIMISE_CFLAGS="-O0"
40195     fi
40196 else
40197     if test "$GCC" = yes ; then
40198         case "${host}" in
40199             *-pc-os2_emx | *-pc-os2-emx )
40200                                                 OPTIMISE_CFLAGS="-O2"
40201             ;;
40202             *)
40203                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40204             ;;
40205         esac
40206     else
40207         OPTIMISE_CFLAGS="-O"
40208     fi
40209 fi
40210
40211
40212 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40213     cat >>confdefs.h <<\_ACEOF
40214 #define WXWIN_COMPATIBILITY_2_4 1
40215 _ACEOF
40216
40217
40218     WXWIN_COMPATIBILITY_2_6="yes"
40219 fi
40220
40221 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40222     cat >>confdefs.h <<\_ACEOF
40223 #define WXWIN_COMPATIBILITY_2_6 1
40224 _ACEOF
40225
40226 fi
40227
40228
40229 if test "$wxUSE_GUI" = "yes"; then
40230     cat >>confdefs.h <<\_ACEOF
40231 #define wxUSE_GUI 1
40232 _ACEOF
40233
40234
40235                                             fi
40236
40237
40238 if test "$wxUSE_UNIX" = "yes"; then
40239   cat >>confdefs.h <<\_ACEOF
40240 #define wxUSE_UNIX 1
40241 _ACEOF
40242
40243 fi
40244
40245
40246 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40247
40248     HAVE_DL_FUNCS=0
40249     HAVE_SHL_FUNCS=0
40250     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40251         if test "$USE_DARWIN" = 1; then
40252                         HAVE_DL_FUNCS=1
40253         elif test "$USE_DOS" = 1; then
40254             HAVE_DL_FUNCS=0
40255         else
40256
40257 for ac_func in dlopen
40258 do
40259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40260 echo "$as_me:$LINENO: checking for $ac_func" >&5
40261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40262 if eval "test \"\${$as_ac_var+set}\" = set"; then
40263   echo $ECHO_N "(cached) $ECHO_C" >&6
40264 else
40265   cat >conftest.$ac_ext <<_ACEOF
40266 /* confdefs.h.  */
40267 _ACEOF
40268 cat confdefs.h >>conftest.$ac_ext
40269 cat >>conftest.$ac_ext <<_ACEOF
40270 /* end confdefs.h.  */
40271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40273 #define $ac_func innocuous_$ac_func
40274
40275 /* System header to define __stub macros and hopefully few prototypes,
40276     which can conflict with char $ac_func (); below.
40277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40278     <limits.h> exists even on freestanding compilers.  */
40279
40280 #ifdef __STDC__
40281 # include <limits.h>
40282 #else
40283 # include <assert.h>
40284 #endif
40285
40286 #undef $ac_func
40287
40288 /* Override any gcc2 internal prototype to avoid an error.  */
40289 #ifdef __cplusplus
40290 extern "C"
40291 {
40292 #endif
40293 /* We use char because int might match the return type of a gcc2
40294    builtin and then its argument prototype would still apply.  */
40295 char $ac_func ();
40296 /* The GNU C library defines this for functions which it implements
40297     to always fail with ENOSYS.  Some functions are actually named
40298     something starting with __ and the normal name is an alias.  */
40299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40300 choke me
40301 #else
40302 char (*f) () = $ac_func;
40303 #endif
40304 #ifdef __cplusplus
40305 }
40306 #endif
40307
40308 int
40309 main ()
40310 {
40311 return f != $ac_func;
40312   ;
40313   return 0;
40314 }
40315 _ACEOF
40316 rm -f conftest.$ac_objext conftest$ac_exeext
40317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40318   (eval $ac_link) 2>conftest.er1
40319   ac_status=$?
40320   grep -v '^ *+' conftest.er1 >conftest.err
40321   rm -f conftest.er1
40322   cat conftest.err >&5
40323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324   (exit $ac_status); } &&
40325          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40327   (eval $ac_try) 2>&5
40328   ac_status=$?
40329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330   (exit $ac_status); }; } &&
40331          { ac_try='test -s conftest$ac_exeext'
40332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333   (eval $ac_try) 2>&5
40334   ac_status=$?
40335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336   (exit $ac_status); }; }; then
40337   eval "$as_ac_var=yes"
40338 else
40339   echo "$as_me: failed program was:" >&5
40340 sed 's/^/| /' conftest.$ac_ext >&5
40341
40342 eval "$as_ac_var=no"
40343 fi
40344 rm -f conftest.err conftest.$ac_objext \
40345       conftest$ac_exeext conftest.$ac_ext
40346 fi
40347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40349 if test `eval echo '${'$as_ac_var'}'` = yes; then
40350   cat >>confdefs.h <<_ACEOF
40351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40352 _ACEOF
40353
40354                 cat >>confdefs.h <<\_ACEOF
40355 #define HAVE_DLOPEN 1
40356 _ACEOF
40357
40358                 HAVE_DL_FUNCS=1
40359
40360 else
40361
40362                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40365   echo $ECHO_N "(cached) $ECHO_C" >&6
40366 else
40367   ac_check_lib_save_LIBS=$LIBS
40368 LIBS="-ldl  $LIBS"
40369 cat >conftest.$ac_ext <<_ACEOF
40370 /* confdefs.h.  */
40371 _ACEOF
40372 cat confdefs.h >>conftest.$ac_ext
40373 cat >>conftest.$ac_ext <<_ACEOF
40374 /* end confdefs.h.  */
40375
40376 /* Override any gcc2 internal prototype to avoid an error.  */
40377 #ifdef __cplusplus
40378 extern "C"
40379 #endif
40380 /* We use char because int might match the return type of a gcc2
40381    builtin and then its argument prototype would still apply.  */
40382 char dlopen ();
40383 int
40384 main ()
40385 {
40386 dlopen ();
40387   ;
40388   return 0;
40389 }
40390 _ACEOF
40391 rm -f conftest.$ac_objext conftest$ac_exeext
40392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40393   (eval $ac_link) 2>conftest.er1
40394   ac_status=$?
40395   grep -v '^ *+' conftest.er1 >conftest.err
40396   rm -f conftest.er1
40397   cat conftest.err >&5
40398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399   (exit $ac_status); } &&
40400          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40402   (eval $ac_try) 2>&5
40403   ac_status=$?
40404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405   (exit $ac_status); }; } &&
40406          { ac_try='test -s conftest$ac_exeext'
40407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408   (eval $ac_try) 2>&5
40409   ac_status=$?
40410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411   (exit $ac_status); }; }; then
40412   ac_cv_lib_dl_dlopen=yes
40413 else
40414   echo "$as_me: failed program was:" >&5
40415 sed 's/^/| /' conftest.$ac_ext >&5
40416
40417 ac_cv_lib_dl_dlopen=no
40418 fi
40419 rm -f conftest.err conftest.$ac_objext \
40420       conftest$ac_exeext conftest.$ac_ext
40421 LIBS=$ac_check_lib_save_LIBS
40422 fi
40423 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40424 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40425 if test $ac_cv_lib_dl_dlopen = yes; then
40426
40427                                 cat >>confdefs.h <<\_ACEOF
40428 #define HAVE_DLOPEN 1
40429 _ACEOF
40430
40431                                 HAVE_DL_FUNCS=1
40432                                 DL_LINK=" -ldl$DL_LINK"
40433
40434 else
40435
40436
40437 for ac_func in shl_load
40438 do
40439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40440 echo "$as_me:$LINENO: checking for $ac_func" >&5
40441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40442 if eval "test \"\${$as_ac_var+set}\" = set"; then
40443   echo $ECHO_N "(cached) $ECHO_C" >&6
40444 else
40445   cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h.  */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h.  */
40451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40453 #define $ac_func innocuous_$ac_func
40454
40455 /* System header to define __stub macros and hopefully few prototypes,
40456     which can conflict with char $ac_func (); below.
40457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40458     <limits.h> exists even on freestanding compilers.  */
40459
40460 #ifdef __STDC__
40461 # include <limits.h>
40462 #else
40463 # include <assert.h>
40464 #endif
40465
40466 #undef $ac_func
40467
40468 /* Override any gcc2 internal prototype to avoid an error.  */
40469 #ifdef __cplusplus
40470 extern "C"
40471 {
40472 #endif
40473 /* We use char because int might match the return type of a gcc2
40474    builtin and then its argument prototype would still apply.  */
40475 char $ac_func ();
40476 /* The GNU C library defines this for functions which it implements
40477     to always fail with ENOSYS.  Some functions are actually named
40478     something starting with __ and the normal name is an alias.  */
40479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40480 choke me
40481 #else
40482 char (*f) () = $ac_func;
40483 #endif
40484 #ifdef __cplusplus
40485 }
40486 #endif
40487
40488 int
40489 main ()
40490 {
40491 return f != $ac_func;
40492   ;
40493   return 0;
40494 }
40495 _ACEOF
40496 rm -f conftest.$ac_objext conftest$ac_exeext
40497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40498   (eval $ac_link) 2>conftest.er1
40499   ac_status=$?
40500   grep -v '^ *+' conftest.er1 >conftest.err
40501   rm -f conftest.er1
40502   cat conftest.err >&5
40503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504   (exit $ac_status); } &&
40505          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507   (eval $ac_try) 2>&5
40508   ac_status=$?
40509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510   (exit $ac_status); }; } &&
40511          { ac_try='test -s conftest$ac_exeext'
40512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513   (eval $ac_try) 2>&5
40514   ac_status=$?
40515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516   (exit $ac_status); }; }; then
40517   eval "$as_ac_var=yes"
40518 else
40519   echo "$as_me: failed program was:" >&5
40520 sed 's/^/| /' conftest.$ac_ext >&5
40521
40522 eval "$as_ac_var=no"
40523 fi
40524 rm -f conftest.err conftest.$ac_objext \
40525       conftest$ac_exeext conftest.$ac_ext
40526 fi
40527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40529 if test `eval echo '${'$as_ac_var'}'` = yes; then
40530   cat >>confdefs.h <<_ACEOF
40531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40532 _ACEOF
40533
40534                                                 cat >>confdefs.h <<\_ACEOF
40535 #define HAVE_SHL_LOAD 1
40536 _ACEOF
40537
40538                                                 HAVE_SHL_FUNCS=1
40539
40540 else
40541
40542                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40543 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40544 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40545   echo $ECHO_N "(cached) $ECHO_C" >&6
40546 else
40547   ac_check_lib_save_LIBS=$LIBS
40548 LIBS="-lshl_load  $LIBS"
40549 cat >conftest.$ac_ext <<_ACEOF
40550 /* confdefs.h.  */
40551 _ACEOF
40552 cat confdefs.h >>conftest.$ac_ext
40553 cat >>conftest.$ac_ext <<_ACEOF
40554 /* end confdefs.h.  */
40555
40556 /* Override any gcc2 internal prototype to avoid an error.  */
40557 #ifdef __cplusplus
40558 extern "C"
40559 #endif
40560 /* We use char because int might match the return type of a gcc2
40561    builtin and then its argument prototype would still apply.  */
40562 char dld ();
40563 int
40564 main ()
40565 {
40566 dld ();
40567   ;
40568   return 0;
40569 }
40570 _ACEOF
40571 rm -f conftest.$ac_objext conftest$ac_exeext
40572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40573   (eval $ac_link) 2>conftest.er1
40574   ac_status=$?
40575   grep -v '^ *+' conftest.er1 >conftest.err
40576   rm -f conftest.er1
40577   cat conftest.err >&5
40578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579   (exit $ac_status); } &&
40580          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40582   (eval $ac_try) 2>&5
40583   ac_status=$?
40584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585   (exit $ac_status); }; } &&
40586          { ac_try='test -s conftest$ac_exeext'
40587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40588   (eval $ac_try) 2>&5
40589   ac_status=$?
40590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591   (exit $ac_status); }; }; then
40592   ac_cv_lib_shl_load_dld=yes
40593 else
40594   echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40596
40597 ac_cv_lib_shl_load_dld=no
40598 fi
40599 rm -f conftest.err conftest.$ac_objext \
40600       conftest$ac_exeext conftest.$ac_ext
40601 LIBS=$ac_check_lib_save_LIBS
40602 fi
40603 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40604 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40605 if test $ac_cv_lib_shl_load_dld = yes; then
40606
40607                                                                 HAVE_SHL_FUNCS=1
40608                                                                 DL_LINK=" -ldld$DL_LINK"
40609
40610 fi
40611
40612
40613 fi
40614 done
40615
40616
40617 fi
40618
40619
40620 fi
40621 done
40622
40623
40624                 if test "$HAVE_DL_FUNCS" = 1; then
40625
40626 for ac_func in dlerror
40627 do
40628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40629 echo "$as_me:$LINENO: checking for $ac_func" >&5
40630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40631 if eval "test \"\${$as_ac_var+set}\" = set"; then
40632   echo $ECHO_N "(cached) $ECHO_C" >&6
40633 else
40634   cat >conftest.$ac_ext <<_ACEOF
40635 /* confdefs.h.  */
40636 _ACEOF
40637 cat confdefs.h >>conftest.$ac_ext
40638 cat >>conftest.$ac_ext <<_ACEOF
40639 /* end confdefs.h.  */
40640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40642 #define $ac_func innocuous_$ac_func
40643
40644 /* System header to define __stub macros and hopefully few prototypes,
40645     which can conflict with char $ac_func (); below.
40646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40647     <limits.h> exists even on freestanding compilers.  */
40648
40649 #ifdef __STDC__
40650 # include <limits.h>
40651 #else
40652 # include <assert.h>
40653 #endif
40654
40655 #undef $ac_func
40656
40657 /* Override any gcc2 internal prototype to avoid an error.  */
40658 #ifdef __cplusplus
40659 extern "C"
40660 {
40661 #endif
40662 /* We use char because int might match the return type of a gcc2
40663    builtin and then its argument prototype would still apply.  */
40664 char $ac_func ();
40665 /* The GNU C library defines this for functions which it implements
40666     to always fail with ENOSYS.  Some functions are actually named
40667     something starting with __ and the normal name is an alias.  */
40668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40669 choke me
40670 #else
40671 char (*f) () = $ac_func;
40672 #endif
40673 #ifdef __cplusplus
40674 }
40675 #endif
40676
40677 int
40678 main ()
40679 {
40680 return f != $ac_func;
40681   ;
40682   return 0;
40683 }
40684 _ACEOF
40685 rm -f conftest.$ac_objext conftest$ac_exeext
40686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40687   (eval $ac_link) 2>conftest.er1
40688   ac_status=$?
40689   grep -v '^ *+' conftest.er1 >conftest.err
40690   rm -f conftest.er1
40691   cat conftest.err >&5
40692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40693   (exit $ac_status); } &&
40694          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40696   (eval $ac_try) 2>&5
40697   ac_status=$?
40698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699   (exit $ac_status); }; } &&
40700          { ac_try='test -s conftest$ac_exeext'
40701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702   (eval $ac_try) 2>&5
40703   ac_status=$?
40704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705   (exit $ac_status); }; }; then
40706   eval "$as_ac_var=yes"
40707 else
40708   echo "$as_me: failed program was:" >&5
40709 sed 's/^/| /' conftest.$ac_ext >&5
40710
40711 eval "$as_ac_var=no"
40712 fi
40713 rm -f conftest.err conftest.$ac_objext \
40714       conftest$ac_exeext conftest.$ac_ext
40715 fi
40716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40718 if test `eval echo '${'$as_ac_var'}'` = yes; then
40719   cat >>confdefs.h <<_ACEOF
40720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40721 _ACEOF
40722  cat >>confdefs.h <<\_ACEOF
40723 #define HAVE_DLERROR 1
40724 _ACEOF
40725
40726 else
40727
40728                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40729 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40730 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40731   echo $ECHO_N "(cached) $ECHO_C" >&6
40732 else
40733   ac_check_lib_save_LIBS=$LIBS
40734 LIBS="-ldl  $LIBS"
40735 cat >conftest.$ac_ext <<_ACEOF
40736 /* confdefs.h.  */
40737 _ACEOF
40738 cat confdefs.h >>conftest.$ac_ext
40739 cat >>conftest.$ac_ext <<_ACEOF
40740 /* end confdefs.h.  */
40741
40742 /* Override any gcc2 internal prototype to avoid an error.  */
40743 #ifdef __cplusplus
40744 extern "C"
40745 #endif
40746 /* We use char because int might match the return type of a gcc2
40747    builtin and then its argument prototype would still apply.  */
40748 char dlerror ();
40749 int
40750 main ()
40751 {
40752 dlerror ();
40753   ;
40754   return 0;
40755 }
40756 _ACEOF
40757 rm -f conftest.$ac_objext conftest$ac_exeext
40758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40759   (eval $ac_link) 2>conftest.er1
40760   ac_status=$?
40761   grep -v '^ *+' conftest.er1 >conftest.err
40762   rm -f conftest.er1
40763   cat conftest.err >&5
40764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40765   (exit $ac_status); } &&
40766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40768   (eval $ac_try) 2>&5
40769   ac_status=$?
40770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771   (exit $ac_status); }; } &&
40772          { ac_try='test -s conftest$ac_exeext'
40773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774   (eval $ac_try) 2>&5
40775   ac_status=$?
40776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777   (exit $ac_status); }; }; then
40778   ac_cv_lib_dl_dlerror=yes
40779 else
40780   echo "$as_me: failed program was:" >&5
40781 sed 's/^/| /' conftest.$ac_ext >&5
40782
40783 ac_cv_lib_dl_dlerror=no
40784 fi
40785 rm -f conftest.err conftest.$ac_objext \
40786       conftest$ac_exeext conftest.$ac_ext
40787 LIBS=$ac_check_lib_save_LIBS
40788 fi
40789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40790 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40791 if test $ac_cv_lib_dl_dlerror = yes; then
40792   cat >>confdefs.h <<\_ACEOF
40793 #define HAVE_DLERROR 1
40794 _ACEOF
40795
40796 fi
40797
40798
40799
40800 fi
40801 done
40802
40803         fi
40804         fi
40805
40806         if test "$HAVE_DL_FUNCS" = 0; then
40807             if test "$HAVE_SHL_FUNCS" = 0; then
40808               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
40809                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40810 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40811                   wxUSE_DYNAMIC_LOADER=no
40812                   wxUSE_DYNLIB_CLASS=no
40813               else
40814                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40815 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40816               fi
40817             fi
40818         fi
40819     fi
40820 fi
40821
40822 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40823     cat >>confdefs.h <<\_ACEOF
40824 #define wxUSE_DYNAMIC_LOADER 1
40825 _ACEOF
40826
40827 fi
40828 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40829     cat >>confdefs.h <<\_ACEOF
40830 #define wxUSE_DYNLIB_CLASS 1
40831 _ACEOF
40832
40833 fi
40834
40835
40836
40837 if test "$wxUSE_PLUGINS" = "yes" ; then
40838     if test "$wxUSE_SHARED" = "no" ; then
40839         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40840 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40841         wxUSE_PLUGINS=no
40842     fi
40843     if test "$wxUSE_MONOLITHIC" = "yes" ; then
40844         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40845 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40846         wxUSE_PLUGINS=no
40847     fi
40848     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40849         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40850 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40851         wxUSE_PLUGINS=no
40852     fi
40853     if test "$wxUSE_PLUGINS" = "yes" ; then
40854         cat >>confdefs.h <<\_ACEOF
40855 #define wxUSE_PLUGINS 1
40856 _ACEOF
40857
40858     fi
40859 fi
40860
40861
40862 if test "$wxUSE_STL" = "yes"; then
40863   cat >>confdefs.h <<\_ACEOF
40864 #define wxUSE_STL 1
40865 _ACEOF
40866
40867 fi
40868
40869 if test "$wxUSE_APPLE_IEEE" = "yes"; then
40870   cat >>confdefs.h <<\_ACEOF
40871 #define wxUSE_APPLE_IEEE 1
40872 _ACEOF
40873
40874 fi
40875
40876 if test "$wxUSE_TIMER" = "yes"; then
40877   cat >>confdefs.h <<\_ACEOF
40878 #define wxUSE_TIMER 1
40879 _ACEOF
40880
40881 fi
40882
40883 if test "$USE_UNIX" = "1" ; then
40884                 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40885 echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40886 if test "${ac_cv_header_sys_soundcard+set}" = set; then
40887   echo $ECHO_N "(cached) $ECHO_C" >&6
40888 else
40889
40890         cat >conftest.$ac_ext <<_ACEOF
40891 /* confdefs.h.  */
40892 _ACEOF
40893 cat confdefs.h >>conftest.$ac_ext
40894 cat >>conftest.$ac_ext <<_ACEOF
40895 /* end confdefs.h.  */
40896
40897                 #include <sys/soundcard.h>
40898
40899 int
40900 main ()
40901 {
40902
40903                 ioctl(0, SNDCTL_DSP_SYNC, 0);
40904
40905   ;
40906   return 0;
40907 }
40908 _ACEOF
40909 rm -f conftest.$ac_objext conftest$ac_exeext
40910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40911   (eval $ac_link) 2>conftest.er1
40912   ac_status=$?
40913   grep -v '^ *+' conftest.er1 >conftest.err
40914   rm -f conftest.er1
40915   cat conftest.err >&5
40916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917   (exit $ac_status); } &&
40918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40920   (eval $ac_try) 2>&5
40921   ac_status=$?
40922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923   (exit $ac_status); }; } &&
40924          { ac_try='test -s conftest$ac_exeext'
40925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40926   (eval $ac_try) 2>&5
40927   ac_status=$?
40928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929   (exit $ac_status); }; }; then
40930   ac_cv_header_sys_soundcard=yes
40931 else
40932   echo "$as_me: failed program was:" >&5
40933 sed 's/^/| /' conftest.$ac_ext >&5
40934
40935
40936                 saveLibs="$LIBS"
40937                 LIBS="$saveLibs -lossaudio"
40938                 cat >conftest.$ac_ext <<_ACEOF
40939 /* confdefs.h.  */
40940 _ACEOF
40941 cat confdefs.h >>conftest.$ac_ext
40942 cat >>conftest.$ac_ext <<_ACEOF
40943 /* end confdefs.h.  */
40944
40945                         #include <sys/soundcard.h>
40946
40947 int
40948 main ()
40949 {
40950
40951                         ioctl(0, SNDCTL_DSP_SYNC, 0);
40952
40953   ;
40954   return 0;
40955 }
40956 _ACEOF
40957 rm -f conftest.$ac_objext conftest$ac_exeext
40958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40959   (eval $ac_link) 2>conftest.er1
40960   ac_status=$?
40961   grep -v '^ *+' conftest.er1 >conftest.err
40962   rm -f conftest.er1
40963   cat conftest.err >&5
40964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965   (exit $ac_status); } &&
40966          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968   (eval $ac_try) 2>&5
40969   ac_status=$?
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); }; } &&
40972          { ac_try='test -s conftest$ac_exeext'
40973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974   (eval $ac_try) 2>&5
40975   ac_status=$?
40976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); }; }; then
40978   ac_cv_header_sys_soundcard=yes
40979 else
40980   echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40982
40983
40984                         LIBS="$saveLibs"
40985                         ac_cv_header_sys_soundcard=no
40986
40987
40988 fi
40989 rm -f conftest.err conftest.$ac_objext \
40990       conftest$ac_exeext conftest.$ac_ext
40991
40992
40993 fi
40994 rm -f conftest.err conftest.$ac_objext \
40995       conftest$ac_exeext conftest.$ac_ext
40996
40997 fi
40998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40999 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
41000
41001     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41002         cat >>confdefs.h <<\_ACEOF
41003 #define HAVE_SYS_SOUNDCARD_H 1
41004 _ACEOF
41005
41006     else
41007         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41008     fi
41009 fi
41010 WITH_PLUGIN_SDL=0
41011 if test "$wxUSE_SOUND" = "yes"; then
41012   if test "$USE_UNIX" = "1" ; then
41013     if test "$wxUSE_LIBSDL" != "no"; then
41014
41015 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41016 if test "${with_sdl_prefix+set}" = set; then
41017   withval="$with_sdl_prefix"
41018   sdl_prefix="$withval"
41019 else
41020   sdl_prefix=""
41021 fi;
41022
41023 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41024 if test "${with_sdl_exec_prefix+set}" = set; then
41025   withval="$with_sdl_exec_prefix"
41026   sdl_exec_prefix="$withval"
41027 else
41028   sdl_exec_prefix=""
41029 fi;
41030 # Check whether --enable-sdltest or --disable-sdltest was given.
41031 if test "${enable_sdltest+set}" = set; then
41032   enableval="$enable_sdltest"
41033
41034 else
41035   enable_sdltest=yes
41036 fi;
41037
41038   if test x$sdl_exec_prefix != x ; then
41039      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41040      if test x${SDL_CONFIG+set} != xset ; then
41041         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41042      fi
41043   fi
41044   if test x$sdl_prefix != x ; then
41045      sdl_args="$sdl_args --prefix=$sdl_prefix"
41046      if test x${SDL_CONFIG+set} != xset ; then
41047         SDL_CONFIG=$sdl_prefix/bin/sdl-config
41048      fi
41049   fi
41050
41051
41052   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41053   # Extract the first word of "sdl-config", so it can be a program name with args.
41054 set dummy sdl-config; ac_word=$2
41055 echo "$as_me:$LINENO: checking for $ac_word" >&5
41056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41057 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41058   echo $ECHO_N "(cached) $ECHO_C" >&6
41059 else
41060   case $SDL_CONFIG in
41061   [\\/]* | ?:[\\/]*)
41062   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41063   ;;
41064   *)
41065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41066 for as_dir in $PATH
41067 do
41068   IFS=$as_save_IFS
41069   test -z "$as_dir" && as_dir=.
41070   for ac_exec_ext in '' $ac_executable_extensions; do
41071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41072     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41074     break 2
41075   fi
41076 done
41077 done
41078
41079   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41080   ;;
41081 esac
41082 fi
41083 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41084
41085 if test -n "$SDL_CONFIG"; then
41086   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41087 echo "${ECHO_T}$SDL_CONFIG" >&6
41088 else
41089   echo "$as_me:$LINENO: result: no" >&5
41090 echo "${ECHO_T}no" >&6
41091 fi
41092
41093   min_sdl_version=1.2.0
41094   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41095 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41096   no_sdl=""
41097   if test "$SDL_CONFIG" = "no" ; then
41098     no_sdl=yes
41099   else
41100     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41101     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41102
41103     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41104            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41105     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41106            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41107     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41108            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41109     if test "x$enable_sdltest" = "xyes" ; then
41110       ac_save_CFLAGS="$CFLAGS"
41111       ac_save_CXXFLAGS="$CXXFLAGS"
41112       ac_save_LIBS="$LIBS"
41113       CFLAGS="$CFLAGS $SDL_CFLAGS"
41114       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41115       LIBS="$LIBS $SDL_LIBS"
41116       rm -f conf.sdltest
41117       if test "$cross_compiling" = yes; then
41118   echo $ac_n "cross compiling; assumed OK... $ac_c"
41119 else
41120   cat >conftest.$ac_ext <<_ACEOF
41121 /* confdefs.h.  */
41122 _ACEOF
41123 cat confdefs.h >>conftest.$ac_ext
41124 cat >>conftest.$ac_ext <<_ACEOF
41125 /* end confdefs.h.  */
41126
41127 #include <stdio.h>
41128 #include <stdlib.h>
41129 #include <string.h>
41130 #include "SDL.h"
41131
41132 char*
41133 my_strdup (char *str)
41134 {
41135   char *new_str;
41136
41137   if (str)
41138     {
41139       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41140       strcpy (new_str, str);
41141     }
41142   else
41143     new_str = NULL;
41144
41145   return new_str;
41146 }
41147
41148 int main (int argc, char *argv[])
41149 {
41150   int major, minor, micro;
41151   char *tmp_version;
41152
41153   /* This hangs on some systems (?)
41154   system ("touch conf.sdltest");
41155   */
41156   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41157
41158   /* HP/UX 9 (%@#!) writes to sscanf strings */
41159   tmp_version = my_strdup("$min_sdl_version");
41160   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41161      printf("%s, bad version string\n", "$min_sdl_version");
41162      exit(1);
41163    }
41164
41165    if (($sdl_major_version > major) ||
41166       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41167       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41168     {
41169       return 0;
41170     }
41171   else
41172     {
41173       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41174       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41175       printf("*** best to upgrade to the required version.\n");
41176       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41177       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41178       printf("*** config.cache before re-running configure\n");
41179       return 1;
41180     }
41181 }
41182
41183
41184 _ACEOF
41185 rm -f conftest$ac_exeext
41186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41187   (eval $ac_link) 2>&5
41188   ac_status=$?
41189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41192   (eval $ac_try) 2>&5
41193   ac_status=$?
41194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); }; }; then
41196   :
41197 else
41198   echo "$as_me: program exited with status $ac_status" >&5
41199 echo "$as_me: failed program was:" >&5
41200 sed 's/^/| /' conftest.$ac_ext >&5
41201
41202 ( exit $ac_status )
41203 no_sdl=yes
41204 fi
41205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41206 fi
41207        CFLAGS="$ac_save_CFLAGS"
41208        CXXFLAGS="$ac_save_CXXFLAGS"
41209        LIBS="$ac_save_LIBS"
41210      fi
41211   fi
41212   if test "x$no_sdl" = x ; then
41213      echo "$as_me:$LINENO: result: yes" >&5
41214 echo "${ECHO_T}yes" >&6
41215
41216                     EXTRALIBS_SDL="$SDL_LIBS"
41217                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41218                     cat >>confdefs.h <<\_ACEOF
41219 #define wxUSE_LIBSDL 1
41220 _ACEOF
41221
41222
41223   else
41224      echo "$as_me:$LINENO: result: no" >&5
41225 echo "${ECHO_T}no" >&6
41226      if test "$SDL_CONFIG" = "no" ; then
41227        echo "*** The sdl-config script installed by SDL could not be found"
41228        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41229        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41230        echo "*** full path to sdl-config."
41231      else
41232        if test -f conf.sdltest ; then
41233         :
41234        else
41235           echo "*** Could not run SDL test program, checking why..."
41236           CFLAGS="$CFLAGS $SDL_CFLAGS"
41237           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41238           LIBS="$LIBS $SDL_LIBS"
41239           cat >conftest.$ac_ext <<_ACEOF
41240 /* confdefs.h.  */
41241 _ACEOF
41242 cat confdefs.h >>conftest.$ac_ext
41243 cat >>conftest.$ac_ext <<_ACEOF
41244 /* end confdefs.h.  */
41245
41246 #include <stdio.h>
41247 #include "SDL.h"
41248
41249 int main(int argc, char *argv[])
41250 { return 0; }
41251 #undef  main
41252 #define main K_and_R_C_main
41253
41254 int
41255 main ()
41256 {
41257  return 0;
41258   ;
41259   return 0;
41260 }
41261 _ACEOF
41262 rm -f conftest.$ac_objext conftest$ac_exeext
41263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41264   (eval $ac_link) 2>conftest.er1
41265   ac_status=$?
41266   grep -v '^ *+' conftest.er1 >conftest.err
41267   rm -f conftest.er1
41268   cat conftest.err >&5
41269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270   (exit $ac_status); } &&
41271          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41273   (eval $ac_try) 2>&5
41274   ac_status=$?
41275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276   (exit $ac_status); }; } &&
41277          { ac_try='test -s conftest$ac_exeext'
41278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41279   (eval $ac_try) 2>&5
41280   ac_status=$?
41281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282   (exit $ac_status); }; }; then
41283    echo "*** The test program compiled, but did not run. This usually means"
41284           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41285           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41286           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41287           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41288           echo "*** is required on your system"
41289           echo "***"
41290           echo "*** If you have an old version installed, it is best to remove it, although"
41291           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41292 else
41293   echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41295
41296  echo "*** The test program failed to compile or link. See the file config.log for the"
41297           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41298           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41299           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41300 fi
41301 rm -f conftest.err conftest.$ac_objext \
41302       conftest$ac_exeext conftest.$ac_ext
41303           CFLAGS="$ac_save_CFLAGS"
41304           CXXFLAGS="$ac_save_CXXFLAGS"
41305           LIBS="$ac_save_LIBS"
41306        fi
41307      fi
41308      SDL_CFLAGS=""
41309      SDL_LIBS=""
41310      wxUSE_LIBSDL="no"
41311   fi
41312
41313
41314   rm -f conf.sdltest
41315
41316       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41317         WITH_PLUGIN_SDL=1
41318       fi
41319     fi
41320   fi
41321
41322   cat >>confdefs.h <<\_ACEOF
41323 #define wxUSE_SOUND 1
41324 _ACEOF
41325
41326   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41327 fi
41328
41329 if test "$WXGTK20" = 1; then
41330     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41331         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41332
41333
41334   succeeded=no
41335
41336   if test -z "$PKG_CONFIG"; then
41337     # Extract the first word of "pkg-config", so it can be a program name with args.
41338 set dummy pkg-config; ac_word=$2
41339 echo "$as_me:$LINENO: checking for $ac_word" >&5
41340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41341 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   case $PKG_CONFIG in
41345   [\\/]* | ?:[\\/]*)
41346   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41347   ;;
41348   *)
41349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41350 for as_dir in $PATH
41351 do
41352   IFS=$as_save_IFS
41353   test -z "$as_dir" && as_dir=.
41354   for ac_exec_ext in '' $ac_executable_extensions; do
41355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41356     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41358     break 2
41359   fi
41360 done
41361 done
41362
41363   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41364   ;;
41365 esac
41366 fi
41367 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41368
41369 if test -n "$PKG_CONFIG"; then
41370   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41371 echo "${ECHO_T}$PKG_CONFIG" >&6
41372 else
41373   echo "$as_me:$LINENO: result: no" >&5
41374 echo "${ECHO_T}no" >&6
41375 fi
41376
41377   fi
41378
41379   if test "$PKG_CONFIG" = "no" ; then
41380      echo "*** The pkg-config script could not be found. Make sure it is"
41381      echo "*** in your path, or set the PKG_CONFIG environment variable"
41382      echo "*** to the full path to pkg-config."
41383      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41384   else
41385      PKG_CONFIG_MIN_VERSION=0.9.0
41386      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41387         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41388 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
41389
41390         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
41391             echo "$as_me:$LINENO: result: yes" >&5
41392 echo "${ECHO_T}yes" >&6
41393             succeeded=yes
41394
41395             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41396 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
41397             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
41398             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41399 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41400
41401             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41402 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
41403             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
41404             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41405 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41406         else
41407             LIBGNOMEPRINTUI_CFLAGS=""
41408             LIBGNOMEPRINTUI_LIBS=""
41409             ## If we have a custom action on failure, don't print errors, but
41410             ## do set a variable so people can do so.
41411             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41412
41413         fi
41414
41415
41416
41417      else
41418         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41419         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41420      fi
41421   fi
41422
41423   if test $succeeded = yes; then
41424
41425                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41426                         cat >>confdefs.h <<\_ACEOF
41427 #define wxUSE_LIBGNOMEPRINT 1
41428 _ACEOF
41429
41430
41431   else
41432
41433                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41434 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41435                         wxUSE_LIBGNOMEPRINT="no"
41436
41437
41438   fi
41439
41440         fi
41441     fi
41442 fi
41443
41444 if test "$WXGTK20" = 1; then
41445     if test "$wxUSE_MIMETYPE" = "yes" ; then
41446         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41447
41448
41449   succeeded=no
41450
41451   if test -z "$PKG_CONFIG"; then
41452     # Extract the first word of "pkg-config", so it can be a program name with args.
41453 set dummy pkg-config; ac_word=$2
41454 echo "$as_me:$LINENO: checking for $ac_word" >&5
41455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41456 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41457   echo $ECHO_N "(cached) $ECHO_C" >&6
41458 else
41459   case $PKG_CONFIG in
41460   [\\/]* | ?:[\\/]*)
41461   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41462   ;;
41463   *)
41464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41465 for as_dir in $PATH
41466 do
41467   IFS=$as_save_IFS
41468   test -z "$as_dir" && as_dir=.
41469   for ac_exec_ext in '' $ac_executable_extensions; do
41470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41471     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41473     break 2
41474   fi
41475 done
41476 done
41477
41478   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41479   ;;
41480 esac
41481 fi
41482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41483
41484 if test -n "$PKG_CONFIG"; then
41485   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41486 echo "${ECHO_T}$PKG_CONFIG" >&6
41487 else
41488   echo "$as_me:$LINENO: result: no" >&5
41489 echo "${ECHO_T}no" >&6
41490 fi
41491
41492   fi
41493
41494   if test "$PKG_CONFIG" = "no" ; then
41495      echo "*** The pkg-config script could not be found. Make sure it is"
41496      echo "*** in your path, or set the PKG_CONFIG environment variable"
41497      echo "*** to the full path to pkg-config."
41498      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41499   else
41500      PKG_CONFIG_MIN_VERSION=0.9.0
41501      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41502         echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41503 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41504
41505         if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41506             echo "$as_me:$LINENO: result: yes" >&5
41507 echo "${ECHO_T}yes" >&6
41508             succeeded=yes
41509
41510             echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41511 echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41512             GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41513             echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41514 echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41515
41516             echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41517 echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41518             GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41519             echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41520 echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41521         else
41522             GNOMEVFS_CFLAGS=""
41523             GNOMEVFS_LIBS=""
41524             ## If we have a custom action on failure, don't print errors, but
41525             ## do set a variable so people can do so.
41526             GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41527
41528         fi
41529
41530
41531
41532      else
41533         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41534         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41535      fi
41536   fi
41537
41538   if test $succeeded = yes; then
41539
41540                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41541                         cat >>confdefs.h <<\_ACEOF
41542 #define wxUSE_LIBGNOMEVFS 1
41543 _ACEOF
41544
41545
41546   else
41547
41548                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41549 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41550                         wxUSE_LIBGNOMEVFS="no"
41551
41552
41553   fi
41554
41555         fi
41556     fi
41557 fi
41558
41559 if test "$WXGTK20" = 1; then
41560     if test "$wxUSE_LIBHILDON" = "yes" ; then
41561
41562   succeeded=no
41563
41564   if test -z "$PKG_CONFIG"; then
41565     # Extract the first word of "pkg-config", so it can be a program name with args.
41566 set dummy pkg-config; ac_word=$2
41567 echo "$as_me:$LINENO: checking for $ac_word" >&5
41568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41570   echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572   case $PKG_CONFIG in
41573   [\\/]* | ?:[\\/]*)
41574   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41575   ;;
41576   *)
41577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41578 for as_dir in $PATH
41579 do
41580   IFS=$as_save_IFS
41581   test -z "$as_dir" && as_dir=.
41582   for ac_exec_ext in '' $ac_executable_extensions; do
41583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41584     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41586     break 2
41587   fi
41588 done
41589 done
41590
41591   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41592   ;;
41593 esac
41594 fi
41595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41596
41597 if test -n "$PKG_CONFIG"; then
41598   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41599 echo "${ECHO_T}$PKG_CONFIG" >&6
41600 else
41601   echo "$as_me:$LINENO: result: no" >&5
41602 echo "${ECHO_T}no" >&6
41603 fi
41604
41605   fi
41606
41607   if test "$PKG_CONFIG" = "no" ; then
41608      echo "*** The pkg-config script could not be found. Make sure it is"
41609      echo "*** in your path, or set the PKG_CONFIG environment variable"
41610      echo "*** to the full path to pkg-config."
41611      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41612   else
41613      PKG_CONFIG_MIN_VERSION=0.9.0
41614      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41615         echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41616 echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41617
41618         if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41619             echo "$as_me:$LINENO: result: yes" >&5
41620 echo "${ECHO_T}yes" >&6
41621             succeeded=yes
41622
41623             echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41624 echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41625             HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41626             echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41627 echo "${ECHO_T}$HILDON_CFLAGS" >&6
41628
41629             echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41630 echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41631             HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41632             echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41633 echo "${ECHO_T}$HILDON_LIBS" >&6
41634         else
41635             HILDON_CFLAGS=""
41636             HILDON_LIBS=""
41637             ## If we have a custom action on failure, don't print errors, but
41638             ## do set a variable so people can do so.
41639             HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41640
41641         fi
41642
41643
41644
41645      else
41646         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41647         echo "*** See http://www.freedesktop.org/software/pkgconfig"
41648      fi
41649   fi
41650
41651   if test $succeeded = yes; then
41652
41653                 EXTRALIBS_HILDON="$HILDON_LIBS"
41654                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41655                 cat >>confdefs.h <<\_ACEOF
41656 #define wxUSE_LIBHILDON 1
41657 _ACEOF
41658
41659
41660   else
41661
41662                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41663 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41664                         wxUSE_LIBHILDON="no"
41665
41666
41667   fi
41668
41669     fi
41670 fi
41671
41672 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41673   cat >>confdefs.h <<\_ACEOF
41674 #define wxUSE_CMDLINE_PARSER 1
41675 _ACEOF
41676
41677 fi
41678
41679 if test "$wxUSE_STOPWATCH" = "yes"; then
41680   cat >>confdefs.h <<\_ACEOF
41681 #define wxUSE_STOPWATCH 1
41682 _ACEOF
41683
41684 fi
41685
41686 if test "$wxUSE_DATETIME" = "yes"; then
41687   cat >>confdefs.h <<\_ACEOF
41688 #define wxUSE_DATETIME 1
41689 _ACEOF
41690
41691 fi
41692
41693 if test "$wxUSE_FILE" = "yes"; then
41694   cat >>confdefs.h <<\_ACEOF
41695 #define wxUSE_FILE 1
41696 _ACEOF
41697
41698 fi
41699
41700 if test "$wxUSE_FFILE" = "yes"; then
41701   cat >>confdefs.h <<\_ACEOF
41702 #define wxUSE_FFILE 1
41703 _ACEOF
41704
41705 fi
41706
41707 if test "$wxUSE_FILESYSTEM" = "yes"; then
41708   cat >>confdefs.h <<\_ACEOF
41709 #define wxUSE_FILESYSTEM 1
41710 _ACEOF
41711
41712 fi
41713
41714 if test "$wxUSE_FS_ZIP" = "yes"; then
41715   cat >>confdefs.h <<\_ACEOF
41716 #define wxUSE_FS_ZIP 1
41717 _ACEOF
41718
41719 fi
41720
41721 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
41722   cat >>confdefs.h <<\_ACEOF
41723 #define wxUSE_ARCHIVE_STREAMS 1
41724 _ACEOF
41725
41726 fi
41727
41728 if test "$wxUSE_ZIPSTREAM" = "yes"; then
41729   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
41730     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41731 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41732   elif test "$wxUSE_ZLIB" = "no"; then
41733     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41734 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41735   else
41736     cat >>confdefs.h <<\_ACEOF
41737 #define wxUSE_ZIPSTREAM 1
41738 _ACEOF
41739
41740   fi
41741 fi
41742
41743 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41744   if test "$USE_UNIX" != 1; then
41745     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41746 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41747     wxUSE_ON_FATAL_EXCEPTION=no
41748   else
41749     cat >>confdefs.h <<\_ACEOF
41750 #define wxUSE_ON_FATAL_EXCEPTION 1
41751 _ACEOF
41752
41753   fi
41754 fi
41755
41756 if test "$wxUSE_STACKWALKER" = "yes"; then
41757     cat >>confdefs.h <<\_ACEOF
41758 #define wxUSE_STACKWALKER 1
41759 _ACEOF
41760
41761 fi
41762
41763 if test "$wxUSE_DEBUGREPORT" = "yes"; then
41764     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41765         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41766 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
41767         wxUSE_DEBUGREPORT=no
41768     else
41769         cat >>confdefs.h <<\_ACEOF
41770 #define wxUSE_DEBUGREPORT 1
41771 _ACEOF
41772
41773         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41774             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41775         fi
41776     fi
41777 fi
41778
41779 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41780   cat >>confdefs.h <<\_ACEOF
41781 #define wxUSE_SNGLINST_CHECKER 1
41782 _ACEOF
41783
41784 fi
41785
41786 if test "$wxUSE_BUSYINFO" = "yes"; then
41787   cat >>confdefs.h <<\_ACEOF
41788 #define wxUSE_BUSYINFO 1
41789 _ACEOF
41790
41791 fi
41792
41793 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41794   cat >>confdefs.h <<\_ACEOF
41795 #define wxUSE_STD_IOSTREAM 1
41796 _ACEOF
41797
41798 fi
41799
41800 if test "$wxUSE_STD_STRING" = "yes"; then
41801   cat >>confdefs.h <<\_ACEOF
41802 #define wxUSE_STD_STRING 1
41803 _ACEOF
41804
41805 fi
41806
41807 if test "$wxUSE_STDPATHS" = "yes"; then
41808   cat >>confdefs.h <<\_ACEOF
41809 #define wxUSE_STDPATHS 1
41810 _ACEOF
41811
41812 fi
41813
41814 if test "$wxUSE_TEXTBUFFER" = "yes"; then
41815     cat >>confdefs.h <<\_ACEOF
41816 #define wxUSE_TEXTBUFFER 1
41817 _ACEOF
41818
41819 fi
41820
41821 if test "$wxUSE_TEXTFILE" = "yes"; then
41822   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41823     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41824 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41825   else
41826     cat >>confdefs.h <<\_ACEOF
41827 #define wxUSE_TEXTFILE 1
41828 _ACEOF
41829
41830   fi
41831 fi
41832
41833 if test "$wxUSE_CONFIG" = "yes" ; then
41834   if test "$wxUSE_TEXTFILE" != "yes"; then
41835     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41836 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41837   else
41838     cat >>confdefs.h <<\_ACEOF
41839 #define wxUSE_CONFIG 1
41840 _ACEOF
41841
41842     cat >>confdefs.h <<\_ACEOF
41843 #define wxUSE_CONFIG_NATIVE 1
41844 _ACEOF
41845
41846     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41847   fi
41848 fi
41849
41850 if test "$wxUSE_INTL" = "yes" ; then
41851   if test "$wxUSE_FILE" != "yes"; then
41852     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41853 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41854   else
41855     cat >>confdefs.h <<\_ACEOF
41856 #define wxUSE_INTL 1
41857 _ACEOF
41858
41859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41860     GUIDIST="$GUIDIST INTL_DIST"
41861   fi
41862 fi
41863
41864 if test "$wxUSE_LOG" = "yes"; then
41865   cat >>confdefs.h <<\_ACEOF
41866 #define wxUSE_LOG 1
41867 _ACEOF
41868
41869
41870     if test "$wxUSE_LOGGUI" = "yes"; then
41871       cat >>confdefs.h <<\_ACEOF
41872 #define wxUSE_LOGGUI 1
41873 _ACEOF
41874
41875     fi
41876
41877     if test "$wxUSE_LOGWINDOW" = "yes"; then
41878       cat >>confdefs.h <<\_ACEOF
41879 #define wxUSE_LOGWINDOW 1
41880 _ACEOF
41881
41882     fi
41883
41884     if test "$wxUSE_LOGDIALOG" = "yes"; then
41885       cat >>confdefs.h <<\_ACEOF
41886 #define wxUSE_LOG_DIALOG 1
41887 _ACEOF
41888
41889     fi
41890
41891         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
41892 fi
41893
41894 if test "$wxUSE_LONGLONG" = "yes"; then
41895   cat >>confdefs.h <<\_ACEOF
41896 #define wxUSE_LONGLONG 1
41897 _ACEOF
41898
41899 fi
41900
41901 if test "$wxUSE_GEOMETRY" = "yes"; then
41902   cat >>confdefs.h <<\_ACEOF
41903 #define wxUSE_GEOMETRY 1
41904 _ACEOF
41905
41906 fi
41907
41908 if test "$wxUSE_STREAMS" = "yes" ; then
41909   cat >>confdefs.h <<\_ACEOF
41910 #define wxUSE_STREAMS 1
41911 _ACEOF
41912
41913 fi
41914
41915 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
41916   cat >>confdefs.h <<\_ACEOF
41917 #define wxUSE_PRINTF_POS_PARAMS 1
41918 _ACEOF
41919
41920 fi
41921
41922
41923
41924 if test "$wxUSE_DATETIME" = "yes"; then
41925
41926 for ac_func in strptime
41927 do
41928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41929 echo "$as_me:$LINENO: checking for $ac_func" >&5
41930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41931 if eval "test \"\${$as_ac_var+set}\" = set"; then
41932   echo $ECHO_N "(cached) $ECHO_C" >&6
41933 else
41934   cat >conftest.$ac_ext <<_ACEOF
41935 /* confdefs.h.  */
41936 _ACEOF
41937 cat confdefs.h >>conftest.$ac_ext
41938 cat >>conftest.$ac_ext <<_ACEOF
41939 /* end confdefs.h.  */
41940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41942 #define $ac_func innocuous_$ac_func
41943
41944 /* System header to define __stub macros and hopefully few prototypes,
41945     which can conflict with char $ac_func (); below.
41946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41947     <limits.h> exists even on freestanding compilers.  */
41948
41949 #ifdef __STDC__
41950 # include <limits.h>
41951 #else
41952 # include <assert.h>
41953 #endif
41954
41955 #undef $ac_func
41956
41957 /* Override any gcc2 internal prototype to avoid an error.  */
41958 #ifdef __cplusplus
41959 extern "C"
41960 {
41961 #endif
41962 /* We use char because int might match the return type of a gcc2
41963    builtin and then its argument prototype would still apply.  */
41964 char $ac_func ();
41965 /* The GNU C library defines this for functions which it implements
41966     to always fail with ENOSYS.  Some functions are actually named
41967     something starting with __ and the normal name is an alias.  */
41968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41969 choke me
41970 #else
41971 char (*f) () = $ac_func;
41972 #endif
41973 #ifdef __cplusplus
41974 }
41975 #endif
41976
41977 int
41978 main ()
41979 {
41980 return f != $ac_func;
41981   ;
41982   return 0;
41983 }
41984 _ACEOF
41985 rm -f conftest.$ac_objext conftest$ac_exeext
41986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41987   (eval $ac_link) 2>conftest.er1
41988   ac_status=$?
41989   grep -v '^ *+' conftest.er1 >conftest.err
41990   rm -f conftest.er1
41991   cat conftest.err >&5
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); } &&
41994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41996   (eval $ac_try) 2>&5
41997   ac_status=$?
41998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999   (exit $ac_status); }; } &&
42000          { ac_try='test -s conftest$ac_exeext'
42001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42002   (eval $ac_try) 2>&5
42003   ac_status=$?
42004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005   (exit $ac_status); }; }; then
42006   eval "$as_ac_var=yes"
42007 else
42008   echo "$as_me: failed program was:" >&5
42009 sed 's/^/| /' conftest.$ac_ext >&5
42010
42011 eval "$as_ac_var=no"
42012 fi
42013 rm -f conftest.err conftest.$ac_objext \
42014       conftest$ac_exeext conftest.$ac_ext
42015 fi
42016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42018 if test `eval echo '${'$as_ac_var'}'` = yes; then
42019   cat >>confdefs.h <<_ACEOF
42020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42021 _ACEOF
42022
42023 fi
42024 done
42025
42026     if test "$ac_cv_func_strptime" = "yes"; then
42027         echo "$as_me:$LINENO: checking for strptime declaration" >&5
42028 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42029 if test "${wx_cv_func_strptime_decl+set}" = set; then
42030   echo $ECHO_N "(cached) $ECHO_C" >&6
42031 else
42032
42033                 cat >conftest.$ac_ext <<_ACEOF
42034 /* confdefs.h.  */
42035 _ACEOF
42036 cat confdefs.h >>conftest.$ac_ext
42037 cat >>conftest.$ac_ext <<_ACEOF
42038 /* end confdefs.h.  */
42039
42040                         #include <time.h>
42041
42042 int
42043 main ()
42044 {
42045
42046                         struct tm t;
42047                         strptime("foo", "bar", &t);
42048
42049   ;
42050   return 0;
42051 }
42052 _ACEOF
42053 rm -f conftest.$ac_objext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42055   (eval $ac_compile) 2>conftest.er1
42056   ac_status=$?
42057   grep -v '^ *+' conftest.er1 >conftest.err
42058   rm -f conftest.er1
42059   cat conftest.err >&5
42060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); } &&
42062          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064   (eval $ac_try) 2>&5
42065   ac_status=$?
42066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067   (exit $ac_status); }; } &&
42068          { ac_try='test -s conftest.$ac_objext'
42069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42070   (eval $ac_try) 2>&5
42071   ac_status=$?
42072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42073   (exit $ac_status); }; }; then
42074   wx_cv_func_strptime_decl=yes
42075 else
42076   echo "$as_me: failed program was:" >&5
42077 sed 's/^/| /' conftest.$ac_ext >&5
42078
42079 wx_cv_func_strptime_decl=no
42080
42081 fi
42082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42083
42084
42085 fi
42086 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42087 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42088     fi
42089     if test "$wx_cv_func_strptime_decl" = "yes"; then
42090         cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_STRPTIME_DECL 1
42092 _ACEOF
42093
42094     fi
42095
42096             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42097 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42098 if test "${wx_cv_var_timezone+set}" = set; then
42099   echo $ECHO_N "(cached) $ECHO_C" >&6
42100 else
42101
42102                         cat >conftest.$ac_ext <<_ACEOF
42103 /* confdefs.h.  */
42104 _ACEOF
42105 cat confdefs.h >>conftest.$ac_ext
42106 cat >>conftest.$ac_ext <<_ACEOF
42107 /* end confdefs.h.  */
42108
42109                                 #include <time.h>
42110
42111 int
42112 main ()
42113 {
42114
42115                                 int tz;
42116                                 tz = timezone;
42117
42118   ;
42119   return 0;
42120 }
42121 _ACEOF
42122 rm -f conftest.$ac_objext
42123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42124   (eval $ac_compile) 2>conftest.er1
42125   ac_status=$?
42126   grep -v '^ *+' conftest.er1 >conftest.err
42127   rm -f conftest.er1
42128   cat conftest.err >&5
42129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130   (exit $ac_status); } &&
42131          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42133   (eval $ac_try) 2>&5
42134   ac_status=$?
42135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136   (exit $ac_status); }; } &&
42137          { ac_try='test -s conftest.$ac_objext'
42138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139   (eval $ac_try) 2>&5
42140   ac_status=$?
42141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142   (exit $ac_status); }; }; then
42143
42144                                 wx_cv_var_timezone=timezone
42145
42146 else
42147   echo "$as_me: failed program was:" >&5
42148 sed 's/^/| /' conftest.$ac_ext >&5
42149
42150
42151                                 cat >conftest.$ac_ext <<_ACEOF
42152 /* confdefs.h.  */
42153 _ACEOF
42154 cat confdefs.h >>conftest.$ac_ext
42155 cat >>conftest.$ac_ext <<_ACEOF
42156 /* end confdefs.h.  */
42157
42158                                         #include <time.h>
42159
42160 int
42161 main ()
42162 {
42163
42164                                         int tz;
42165                                         tz = _timezone;
42166
42167   ;
42168   return 0;
42169 }
42170 _ACEOF
42171 rm -f conftest.$ac_objext
42172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42173   (eval $ac_compile) 2>conftest.er1
42174   ac_status=$?
42175   grep -v '^ *+' conftest.er1 >conftest.err
42176   rm -f conftest.er1
42177   cat conftest.err >&5
42178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179   (exit $ac_status); } &&
42180          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42182   (eval $ac_try) 2>&5
42183   ac_status=$?
42184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185   (exit $ac_status); }; } &&
42186          { ac_try='test -s conftest.$ac_objext'
42187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42188   (eval $ac_try) 2>&5
42189   ac_status=$?
42190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191   (exit $ac_status); }; }; then
42192
42193                                         wx_cv_var_timezone=_timezone
42194
42195 else
42196   echo "$as_me: failed program was:" >&5
42197 sed 's/^/| /' conftest.$ac_ext >&5
42198
42199
42200                                         cat >conftest.$ac_ext <<_ACEOF
42201 /* confdefs.h.  */
42202 _ACEOF
42203 cat confdefs.h >>conftest.$ac_ext
42204 cat >>conftest.$ac_ext <<_ACEOF
42205 /* end confdefs.h.  */
42206
42207                                                 #include <time.h>
42208
42209 int
42210 main ()
42211 {
42212
42213                                                 int tz;
42214                                                 tz = __timezone;
42215
42216   ;
42217   return 0;
42218 }
42219 _ACEOF
42220 rm -f conftest.$ac_objext
42221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42222   (eval $ac_compile) 2>conftest.er1
42223   ac_status=$?
42224   grep -v '^ *+' conftest.er1 >conftest.err
42225   rm -f conftest.er1
42226   cat conftest.err >&5
42227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42228   (exit $ac_status); } &&
42229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42231   (eval $ac_try) 2>&5
42232   ac_status=$?
42233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42234   (exit $ac_status); }; } &&
42235          { ac_try='test -s conftest.$ac_objext'
42236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42237   (eval $ac_try) 2>&5
42238   ac_status=$?
42239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240   (exit $ac_status); }; }; then
42241
42242                                                 wx_cv_var_timezone=__timezone
42243
42244 else
42245   echo "$as_me: failed program was:" >&5
42246 sed 's/^/| /' conftest.$ac_ext >&5
42247
42248
42249                                                 if test "$USE_DOS" = 0 ; then
42250                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42251 echo "$as_me: WARNING: no timezone variable" >&2;}
42252                                                 fi
42253
42254
42255 fi
42256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42257
42258
42259 fi
42260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42261
42262
42263 fi
42264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42265
42266
42267 fi
42268 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42269 echo "${ECHO_T}$wx_cv_var_timezone" >&6
42270
42271         if test "x$wx_cv_var_timezone" != x ; then
42272         cat >>confdefs.h <<_ACEOF
42273 #define WX_TIMEZONE $wx_cv_var_timezone
42274 _ACEOF
42275
42276     fi
42277
42278
42279 for ac_func in localtime
42280 do
42281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42282 echo "$as_me:$LINENO: checking for $ac_func" >&5
42283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42284 if eval "test \"\${$as_ac_var+set}\" = set"; then
42285   echo $ECHO_N "(cached) $ECHO_C" >&6
42286 else
42287   cat >conftest.$ac_ext <<_ACEOF
42288 /* confdefs.h.  */
42289 _ACEOF
42290 cat confdefs.h >>conftest.$ac_ext
42291 cat >>conftest.$ac_ext <<_ACEOF
42292 /* end confdefs.h.  */
42293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42295 #define $ac_func innocuous_$ac_func
42296
42297 /* System header to define __stub macros and hopefully few prototypes,
42298     which can conflict with char $ac_func (); below.
42299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42300     <limits.h> exists even on freestanding compilers.  */
42301
42302 #ifdef __STDC__
42303 # include <limits.h>
42304 #else
42305 # include <assert.h>
42306 #endif
42307
42308 #undef $ac_func
42309
42310 /* Override any gcc2 internal prototype to avoid an error.  */
42311 #ifdef __cplusplus
42312 extern "C"
42313 {
42314 #endif
42315 /* We use char because int might match the return type of a gcc2
42316    builtin and then its argument prototype would still apply.  */
42317 char $ac_func ();
42318 /* The GNU C library defines this for functions which it implements
42319     to always fail with ENOSYS.  Some functions are actually named
42320     something starting with __ and the normal name is an alias.  */
42321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42322 choke me
42323 #else
42324 char (*f) () = $ac_func;
42325 #endif
42326 #ifdef __cplusplus
42327 }
42328 #endif
42329
42330 int
42331 main ()
42332 {
42333 return f != $ac_func;
42334   ;
42335   return 0;
42336 }
42337 _ACEOF
42338 rm -f conftest.$ac_objext conftest$ac_exeext
42339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42340   (eval $ac_link) 2>conftest.er1
42341   ac_status=$?
42342   grep -v '^ *+' conftest.er1 >conftest.err
42343   rm -f conftest.er1
42344   cat conftest.err >&5
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); } &&
42347          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349   (eval $ac_try) 2>&5
42350   ac_status=$?
42351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352   (exit $ac_status); }; } &&
42353          { ac_try='test -s conftest$ac_exeext'
42354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355   (eval $ac_try) 2>&5
42356   ac_status=$?
42357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358   (exit $ac_status); }; }; then
42359   eval "$as_ac_var=yes"
42360 else
42361   echo "$as_me: failed program was:" >&5
42362 sed 's/^/| /' conftest.$ac_ext >&5
42363
42364 eval "$as_ac_var=no"
42365 fi
42366 rm -f conftest.err conftest.$ac_objext \
42367       conftest$ac_exeext conftest.$ac_ext
42368 fi
42369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42371 if test `eval echo '${'$as_ac_var'}'` = yes; then
42372   cat >>confdefs.h <<_ACEOF
42373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42374 _ACEOF
42375
42376 fi
42377 done
42378
42379
42380     if test "$ac_cv_func_localtime" = "yes"; then
42381         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42382 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42383 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42384   echo $ECHO_N "(cached) $ECHO_C" >&6
42385 else
42386
42387             cat >conftest.$ac_ext <<_ACEOF
42388 /* confdefs.h.  */
42389 _ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h.  */
42393
42394                     #include <time.h>
42395
42396 int
42397 main ()
42398 {
42399
42400                     struct tm tm;
42401                     tm.tm_gmtoff++;
42402
42403   ;
42404   return 0;
42405 }
42406 _ACEOF
42407 rm -f conftest.$ac_objext
42408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42409   (eval $ac_compile) 2>conftest.er1
42410   ac_status=$?
42411   grep -v '^ *+' conftest.er1 >conftest.err
42412   rm -f conftest.er1
42413   cat conftest.err >&5
42414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415   (exit $ac_status); } &&
42416          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42418   (eval $ac_try) 2>&5
42419   ac_status=$?
42420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42421   (exit $ac_status); }; } &&
42422          { ac_try='test -s conftest.$ac_objext'
42423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42424   (eval $ac_try) 2>&5
42425   ac_status=$?
42426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427   (exit $ac_status); }; }; then
42428
42429                     wx_cv_struct_tm_has_gmtoff=yes
42430
42431 else
42432   echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435 wx_cv_struct_tm_has_gmtoff=no
42436
42437 fi
42438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42439
42440 fi
42441 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42442 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42443     fi
42444
42445     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42446         cat >>confdefs.h <<\_ACEOF
42447 #define WX_GMTOFF_IN_TM 1
42448 _ACEOF
42449
42450     fi
42451
42452
42453
42454 for ac_func in gettimeofday ftime
42455 do
42456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42457 echo "$as_me:$LINENO: checking for $ac_func" >&5
42458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42459 if eval "test \"\${$as_ac_var+set}\" = set"; then
42460   echo $ECHO_N "(cached) $ECHO_C" >&6
42461 else
42462   cat >conftest.$ac_ext <<_ACEOF
42463 /* confdefs.h.  */
42464 _ACEOF
42465 cat confdefs.h >>conftest.$ac_ext
42466 cat >>conftest.$ac_ext <<_ACEOF
42467 /* end confdefs.h.  */
42468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42470 #define $ac_func innocuous_$ac_func
42471
42472 /* System header to define __stub macros and hopefully few prototypes,
42473     which can conflict with char $ac_func (); below.
42474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42475     <limits.h> exists even on freestanding compilers.  */
42476
42477 #ifdef __STDC__
42478 # include <limits.h>
42479 #else
42480 # include <assert.h>
42481 #endif
42482
42483 #undef $ac_func
42484
42485 /* Override any gcc2 internal prototype to avoid an error.  */
42486 #ifdef __cplusplus
42487 extern "C"
42488 {
42489 #endif
42490 /* We use char because int might match the return type of a gcc2
42491    builtin and then its argument prototype would still apply.  */
42492 char $ac_func ();
42493 /* The GNU C library defines this for functions which it implements
42494     to always fail with ENOSYS.  Some functions are actually named
42495     something starting with __ and the normal name is an alias.  */
42496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42497 choke me
42498 #else
42499 char (*f) () = $ac_func;
42500 #endif
42501 #ifdef __cplusplus
42502 }
42503 #endif
42504
42505 int
42506 main ()
42507 {
42508 return f != $ac_func;
42509   ;
42510   return 0;
42511 }
42512 _ACEOF
42513 rm -f conftest.$ac_objext conftest$ac_exeext
42514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42515   (eval $ac_link) 2>conftest.er1
42516   ac_status=$?
42517   grep -v '^ *+' conftest.er1 >conftest.err
42518   rm -f conftest.er1
42519   cat conftest.err >&5
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); } &&
42522          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42524   (eval $ac_try) 2>&5
42525   ac_status=$?
42526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527   (exit $ac_status); }; } &&
42528          { ac_try='test -s conftest$ac_exeext'
42529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42530   (eval $ac_try) 2>&5
42531   ac_status=$?
42532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42533   (exit $ac_status); }; }; then
42534   eval "$as_ac_var=yes"
42535 else
42536   echo "$as_me: failed program was:" >&5
42537 sed 's/^/| /' conftest.$ac_ext >&5
42538
42539 eval "$as_ac_var=no"
42540 fi
42541 rm -f conftest.err conftest.$ac_objext \
42542       conftest$ac_exeext conftest.$ac_ext
42543 fi
42544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42546 if test `eval echo '${'$as_ac_var'}'` = yes; then
42547   cat >>confdefs.h <<_ACEOF
42548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42549 _ACEOF
42550  break
42551 fi
42552 done
42553
42554
42555     if test "$ac_cv_func_gettimeofday" = "yes"; then
42556         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42557 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42558 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42559   echo $ECHO_N "(cached) $ECHO_C" >&6
42560 else
42561
42562                         cat >conftest.$ac_ext <<_ACEOF
42563 /* confdefs.h.  */
42564 _ACEOF
42565 cat confdefs.h >>conftest.$ac_ext
42566 cat >>conftest.$ac_ext <<_ACEOF
42567 /* end confdefs.h.  */
42568
42569                     #include <sys/time.h>
42570                     #include <unistd.h>
42571
42572 int
42573 main ()
42574 {
42575
42576                     struct timeval tv;
42577                     gettimeofday(&tv, NULL);
42578
42579   ;
42580   return 0;
42581 }
42582 _ACEOF
42583 rm -f conftest.$ac_objext
42584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42585   (eval $ac_compile) 2>conftest.er1
42586   ac_status=$?
42587   grep -v '^ *+' conftest.er1 >conftest.err
42588   rm -f conftest.er1
42589   cat conftest.err >&5
42590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42591   (exit $ac_status); } &&
42592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42594   (eval $ac_try) 2>&5
42595   ac_status=$?
42596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42597   (exit $ac_status); }; } &&
42598          { ac_try='test -s conftest.$ac_objext'
42599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42600   (eval $ac_try) 2>&5
42601   ac_status=$?
42602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603   (exit $ac_status); }; }; then
42604   wx_cv_func_gettimeofday_has_2_args=yes
42605 else
42606   echo "$as_me: failed program was:" >&5
42607 sed 's/^/| /' conftest.$ac_ext >&5
42608
42609 cat >conftest.$ac_ext <<_ACEOF
42610 /* confdefs.h.  */
42611 _ACEOF
42612 cat confdefs.h >>conftest.$ac_ext
42613 cat >>conftest.$ac_ext <<_ACEOF
42614 /* end confdefs.h.  */
42615
42616                         #include <sys/time.h>
42617                         #include <unistd.h>
42618
42619 int
42620 main ()
42621 {
42622
42623                         struct timeval tv;
42624                         gettimeofday(&tv);
42625
42626   ;
42627   return 0;
42628 }
42629 _ACEOF
42630 rm -f conftest.$ac_objext
42631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42632   (eval $ac_compile) 2>conftest.er1
42633   ac_status=$?
42634   grep -v '^ *+' conftest.er1 >conftest.err
42635   rm -f conftest.er1
42636   cat conftest.err >&5
42637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638   (exit $ac_status); } &&
42639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42641   (eval $ac_try) 2>&5
42642   ac_status=$?
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); }; } &&
42645          { ac_try='test -s conftest.$ac_objext'
42646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42647   (eval $ac_try) 2>&5
42648   ac_status=$?
42649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650   (exit $ac_status); }; }; then
42651   wx_cv_func_gettimeofday_has_2_args=no
42652 else
42653   echo "$as_me: failed program was:" >&5
42654 sed 's/^/| /' conftest.$ac_ext >&5
42655
42656
42657                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42658 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42659                         wx_cv_func_gettimeofday_has_2_args=unknown
42660
42661
42662 fi
42663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42664
42665 fi
42666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42667
42668 fi
42669 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42670 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42671
42672         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42673             cat >>confdefs.h <<\_ACEOF
42674 #define WX_GETTIMEOFDAY_NO_TZ 1
42675 _ACEOF
42676
42677         fi
42678     fi
42679
42680     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42681 fi
42682
42683
42684 if test "$wxUSE_SOCKETS" = "yes"; then
42685     if test "$wxUSE_MGL" = "1"; then
42686         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42687 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42688         wxUSE_SOCKETS="no"
42689     fi
42690 fi
42691
42692 if test "$wxUSE_SOCKETS" = "yes"; then
42693         if test "$TOOLKIT" != "MSW"; then
42694                 echo "$as_me:$LINENO: checking for socket" >&5
42695 echo $ECHO_N "checking for socket... $ECHO_C" >&6
42696 if test "${ac_cv_func_socket+set}" = set; then
42697   echo $ECHO_N "(cached) $ECHO_C" >&6
42698 else
42699   cat >conftest.$ac_ext <<_ACEOF
42700 /* confdefs.h.  */
42701 _ACEOF
42702 cat confdefs.h >>conftest.$ac_ext
42703 cat >>conftest.$ac_ext <<_ACEOF
42704 /* end confdefs.h.  */
42705 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
42706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42707 #define socket innocuous_socket
42708
42709 /* System header to define __stub macros and hopefully few prototypes,
42710     which can conflict with char socket (); below.
42711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42712     <limits.h> exists even on freestanding compilers.  */
42713
42714 #ifdef __STDC__
42715 # include <limits.h>
42716 #else
42717 # include <assert.h>
42718 #endif
42719
42720 #undef socket
42721
42722 /* Override any gcc2 internal prototype to avoid an error.  */
42723 #ifdef __cplusplus
42724 extern "C"
42725 {
42726 #endif
42727 /* We use char because int might match the return type of a gcc2
42728    builtin and then its argument prototype would still apply.  */
42729 char socket ();
42730 /* The GNU C library defines this for functions which it implements
42731     to always fail with ENOSYS.  Some functions are actually named
42732     something starting with __ and the normal name is an alias.  */
42733 #if defined (__stub_socket) || defined (__stub___socket)
42734 choke me
42735 #else
42736 char (*f) () = socket;
42737 #endif
42738 #ifdef __cplusplus
42739 }
42740 #endif
42741
42742 int
42743 main ()
42744 {
42745 return f != socket;
42746   ;
42747   return 0;
42748 }
42749 _ACEOF
42750 rm -f conftest.$ac_objext conftest$ac_exeext
42751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42752   (eval $ac_link) 2>conftest.er1
42753   ac_status=$?
42754   grep -v '^ *+' conftest.er1 >conftest.err
42755   rm -f conftest.er1
42756   cat conftest.err >&5
42757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42758   (exit $ac_status); } &&
42759          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42761   (eval $ac_try) 2>&5
42762   ac_status=$?
42763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764   (exit $ac_status); }; } &&
42765          { ac_try='test -s conftest$ac_exeext'
42766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42767   (eval $ac_try) 2>&5
42768   ac_status=$?
42769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42770   (exit $ac_status); }; }; then
42771   ac_cv_func_socket=yes
42772 else
42773   echo "$as_me: failed program was:" >&5
42774 sed 's/^/| /' conftest.$ac_ext >&5
42775
42776 ac_cv_func_socket=no
42777 fi
42778 rm -f conftest.err conftest.$ac_objext \
42779       conftest$ac_exeext conftest.$ac_ext
42780 fi
42781 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42782 echo "${ECHO_T}$ac_cv_func_socket" >&6
42783 if test $ac_cv_func_socket = yes; then
42784   :
42785 else
42786
42787                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42788 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42789 if test "${ac_cv_lib_socket_socket+set}" = set; then
42790   echo $ECHO_N "(cached) $ECHO_C" >&6
42791 else
42792   ac_check_lib_save_LIBS=$LIBS
42793 LIBS="-lsocket  $LIBS"
42794 cat >conftest.$ac_ext <<_ACEOF
42795 /* confdefs.h.  */
42796 _ACEOF
42797 cat confdefs.h >>conftest.$ac_ext
42798 cat >>conftest.$ac_ext <<_ACEOF
42799 /* end confdefs.h.  */
42800
42801 /* Override any gcc2 internal prototype to avoid an error.  */
42802 #ifdef __cplusplus
42803 extern "C"
42804 #endif
42805 /* We use char because int might match the return type of a gcc2
42806    builtin and then its argument prototype would still apply.  */
42807 char socket ();
42808 int
42809 main ()
42810 {
42811 socket ();
42812   ;
42813   return 0;
42814 }
42815 _ACEOF
42816 rm -f conftest.$ac_objext conftest$ac_exeext
42817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42818   (eval $ac_link) 2>conftest.er1
42819   ac_status=$?
42820   grep -v '^ *+' conftest.er1 >conftest.err
42821   rm -f conftest.er1
42822   cat conftest.err >&5
42823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824   (exit $ac_status); } &&
42825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42827   (eval $ac_try) 2>&5
42828   ac_status=$?
42829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830   (exit $ac_status); }; } &&
42831          { ac_try='test -s conftest$ac_exeext'
42832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833   (eval $ac_try) 2>&5
42834   ac_status=$?
42835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836   (exit $ac_status); }; }; then
42837   ac_cv_lib_socket_socket=yes
42838 else
42839   echo "$as_me: failed program was:" >&5
42840 sed 's/^/| /' conftest.$ac_ext >&5
42841
42842 ac_cv_lib_socket_socket=no
42843 fi
42844 rm -f conftest.err conftest.$ac_objext \
42845       conftest$ac_exeext conftest.$ac_ext
42846 LIBS=$ac_check_lib_save_LIBS
42847 fi
42848 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42849 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42850 if test $ac_cv_lib_socket_socket = yes; then
42851   if test "$INET_LINK" != " -lsocket"; then
42852                         INET_LINK="$INET_LINK -lsocket"
42853                     fi
42854 else
42855
42856                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42857 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42858                         wxUSE_SOCKETS=no
42859
42860
42861 fi
42862
42863
42864
42865 fi
42866
42867     fi
42868 fi
42869
42870 if test "$wxUSE_SOCKETS" = "yes" ; then
42871                 if test "$TOOLKIT" != "MSW"; then
42872                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
42873 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42874 if test "${wx_cv_type_getsockname3+set}" = set; then
42875   echo $ECHO_N "(cached) $ECHO_C" >&6
42876 else
42877
42878                 cat >conftest.$ac_ext <<_ACEOF
42879 /* confdefs.h.  */
42880 _ACEOF
42881 cat confdefs.h >>conftest.$ac_ext
42882 cat >>conftest.$ac_ext <<_ACEOF
42883 /* end confdefs.h.  */
42884
42885                         #include <sys/types.h>
42886                         #include <sys/socket.h>
42887
42888 int
42889 main ()
42890 {
42891
42892                         socklen_t len;
42893                         getsockname(0, 0, &len);
42894
42895   ;
42896   return 0;
42897 }
42898 _ACEOF
42899 rm -f conftest.$ac_objext
42900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42901   (eval $ac_compile) 2>conftest.er1
42902   ac_status=$?
42903   grep -v '^ *+' conftest.er1 >conftest.err
42904   rm -f conftest.er1
42905   cat conftest.err >&5
42906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907   (exit $ac_status); } &&
42908          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42910   (eval $ac_try) 2>&5
42911   ac_status=$?
42912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913   (exit $ac_status); }; } &&
42914          { ac_try='test -s conftest.$ac_objext'
42915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42916   (eval $ac_try) 2>&5
42917   ac_status=$?
42918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919   (exit $ac_status); }; }; then
42920   wx_cv_type_getsockname3=socklen_t
42921 else
42922   echo "$as_me: failed program was:" >&5
42923 sed 's/^/| /' conftest.$ac_ext >&5
42924
42925
42926                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
42927                         if test "$GCC" = yes ; then
42928                             CXXFLAGS="-Werror $CXXFLAGS"
42929                         fi
42930
42931                         cat >conftest.$ac_ext <<_ACEOF
42932 /* confdefs.h.  */
42933 _ACEOF
42934 cat confdefs.h >>conftest.$ac_ext
42935 cat >>conftest.$ac_ext <<_ACEOF
42936 /* end confdefs.h.  */
42937
42938                                 #include <sys/types.h>
42939                                 #include <sys/socket.h>
42940
42941 int
42942 main ()
42943 {
42944
42945                                 size_t len;
42946                                 getsockname(0, 0, &len);
42947
42948   ;
42949   return 0;
42950 }
42951 _ACEOF
42952 rm -f conftest.$ac_objext
42953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42954   (eval $ac_compile) 2>conftest.er1
42955   ac_status=$?
42956   grep -v '^ *+' conftest.er1 >conftest.err
42957   rm -f conftest.er1
42958   cat conftest.err >&5
42959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960   (exit $ac_status); } &&
42961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42963   (eval $ac_try) 2>&5
42964   ac_status=$?
42965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966   (exit $ac_status); }; } &&
42967          { ac_try='test -s conftest.$ac_objext'
42968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42969   (eval $ac_try) 2>&5
42970   ac_status=$?
42971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972   (exit $ac_status); }; }; then
42973   wx_cv_type_getsockname3=size_t
42974 else
42975   echo "$as_me: failed program was:" >&5
42976 sed 's/^/| /' conftest.$ac_ext >&5
42977
42978 cat >conftest.$ac_ext <<_ACEOF
42979 /* confdefs.h.  */
42980 _ACEOF
42981 cat confdefs.h >>conftest.$ac_ext
42982 cat >>conftest.$ac_ext <<_ACEOF
42983 /* end confdefs.h.  */
42984
42985                                     #include <sys/types.h>
42986                                     #include <sys/socket.h>
42987
42988 int
42989 main ()
42990 {
42991
42992                                     int len;
42993                                     getsockname(0, 0, &len);
42994
42995   ;
42996   return 0;
42997 }
42998 _ACEOF
42999 rm -f conftest.$ac_objext
43000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43001   (eval $ac_compile) 2>conftest.er1
43002   ac_status=$?
43003   grep -v '^ *+' conftest.er1 >conftest.err
43004   rm -f conftest.er1
43005   cat conftest.err >&5
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); } &&
43008          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010   (eval $ac_try) 2>&5
43011   ac_status=$?
43012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013   (exit $ac_status); }; } &&
43014          { ac_try='test -s conftest.$ac_objext'
43015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016   (eval $ac_try) 2>&5
43017   ac_status=$?
43018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019   (exit $ac_status); }; }; then
43020   wx_cv_type_getsockname3=int
43021 else
43022   echo "$as_me: failed program was:" >&5
43023 sed 's/^/| /' conftest.$ac_ext >&5
43024
43025 wx_cv_type_getsockname3=unknown
43026
43027 fi
43028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43029
43030 fi
43031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43032
43033                         CXXFLAGS="$CXXFLAGS_OLD"
43034
43035
43036 fi
43037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43038
43039 fi
43040 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43041 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43042
43043         if test "$wx_cv_type_getsockname3" = "unknown"; then
43044             wxUSE_SOCKETS=no
43045             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43046 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43047         else
43048             cat >>confdefs.h <<_ACEOF
43049 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43050 _ACEOF
43051
43052         fi
43053                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43054 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43055 if test "${wx_cv_type_getsockopt5+set}" = set; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058
43059                 cat >conftest.$ac_ext <<_ACEOF
43060 /* confdefs.h.  */
43061 _ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h.  */
43065
43066                         #include <sys/types.h>
43067                         #include <sys/socket.h>
43068
43069 int
43070 main ()
43071 {
43072
43073                         socklen_t len;
43074                         getsockopt(0, 0, 0, 0, &len);
43075
43076   ;
43077   return 0;
43078 }
43079 _ACEOF
43080 rm -f conftest.$ac_objext
43081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43082   (eval $ac_compile) 2>conftest.er1
43083   ac_status=$?
43084   grep -v '^ *+' conftest.er1 >conftest.err
43085   rm -f conftest.er1
43086   cat conftest.err >&5
43087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088   (exit $ac_status); } &&
43089          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091   (eval $ac_try) 2>&5
43092   ac_status=$?
43093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094   (exit $ac_status); }; } &&
43095          { ac_try='test -s conftest.$ac_objext'
43096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43097   (eval $ac_try) 2>&5
43098   ac_status=$?
43099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100   (exit $ac_status); }; }; then
43101   wx_cv_type_getsockopt5=socklen_t
43102 else
43103   echo "$as_me: failed program was:" >&5
43104 sed 's/^/| /' conftest.$ac_ext >&5
43105
43106
43107                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43108                         if test "$GCC" = yes ; then
43109                             CXXFLAGS="-Werror $CXXFLAGS"
43110                         fi
43111
43112                         cat >conftest.$ac_ext <<_ACEOF
43113 /* confdefs.h.  */
43114 _ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h.  */
43118
43119                                 #include <sys/types.h>
43120                                 #include <sys/socket.h>
43121
43122 int
43123 main ()
43124 {
43125
43126                                 size_t len;
43127                                 getsockopt(0, 0, 0, 0, &len);
43128
43129   ;
43130   return 0;
43131 }
43132 _ACEOF
43133 rm -f conftest.$ac_objext
43134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43135   (eval $ac_compile) 2>conftest.er1
43136   ac_status=$?
43137   grep -v '^ *+' conftest.er1 >conftest.err
43138   rm -f conftest.er1
43139   cat conftest.err >&5
43140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141   (exit $ac_status); } &&
43142          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43144   (eval $ac_try) 2>&5
43145   ac_status=$?
43146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43147   (exit $ac_status); }; } &&
43148          { ac_try='test -s conftest.$ac_objext'
43149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43150   (eval $ac_try) 2>&5
43151   ac_status=$?
43152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43153   (exit $ac_status); }; }; then
43154   wx_cv_type_getsockopt5=size_t
43155 else
43156   echo "$as_me: failed program was:" >&5
43157 sed 's/^/| /' conftest.$ac_ext >&5
43158
43159 cat >conftest.$ac_ext <<_ACEOF
43160 /* confdefs.h.  */
43161 _ACEOF
43162 cat confdefs.h >>conftest.$ac_ext
43163 cat >>conftest.$ac_ext <<_ACEOF
43164 /* end confdefs.h.  */
43165
43166                                     #include <sys/types.h>
43167                                     #include <sys/socket.h>
43168
43169 int
43170 main ()
43171 {
43172
43173                                     int len;
43174                                     getsockopt(0, 0, 0, 0, &len);
43175
43176   ;
43177   return 0;
43178 }
43179 _ACEOF
43180 rm -f conftest.$ac_objext
43181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43182   (eval $ac_compile) 2>conftest.er1
43183   ac_status=$?
43184   grep -v '^ *+' conftest.er1 >conftest.err
43185   rm -f conftest.er1
43186   cat conftest.err >&5
43187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188   (exit $ac_status); } &&
43189          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43191   (eval $ac_try) 2>&5
43192   ac_status=$?
43193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194   (exit $ac_status); }; } &&
43195          { ac_try='test -s conftest.$ac_objext'
43196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197   (eval $ac_try) 2>&5
43198   ac_status=$?
43199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200   (exit $ac_status); }; }; then
43201   wx_cv_type_getsockopt5=int
43202 else
43203   echo "$as_me: failed program was:" >&5
43204 sed 's/^/| /' conftest.$ac_ext >&5
43205
43206 wx_cv_type_getsockopt5=unknown
43207
43208 fi
43209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43210
43211 fi
43212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43213
43214                         CXXFLAGS="$CXXFLAGS_OLD"
43215
43216
43217 fi
43218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43219
43220 fi
43221 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43222 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43223
43224         if test "$wx_cv_type_getsockopt5" = "unknown"; then
43225             wxUSE_SOCKETS=no
43226             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43227 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43228         else
43229             cat >>confdefs.h <<_ACEOF
43230 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
43231 _ACEOF
43232
43233         fi
43234     fi
43235 fi
43236
43237 if test "$wxUSE_SOCKETS" = "yes" ; then
43238     cat >>confdefs.h <<\_ACEOF
43239 #define wxUSE_SOCKETS 1
43240 _ACEOF
43241
43242     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43243 fi
43244
43245 if test "$wxUSE_PROTOCOL" = "yes"; then
43246     if test "$wxUSE_SOCKETS" != "yes"; then
43247         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43248 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43249         wxUSE_PROTOCOL=no
43250     fi
43251 fi
43252
43253 if test "$wxUSE_PROTOCOL" = "yes"; then
43254     cat >>confdefs.h <<\_ACEOF
43255 #define wxUSE_PROTOCOL 1
43256 _ACEOF
43257
43258
43259     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43260         cat >>confdefs.h <<\_ACEOF
43261 #define wxUSE_PROTOCOL_HTTP 1
43262 _ACEOF
43263
43264     fi
43265     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43266         cat >>confdefs.h <<\_ACEOF
43267 #define wxUSE_PROTOCOL_FTP 1
43268 _ACEOF
43269
43270     fi
43271     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43272         cat >>confdefs.h <<\_ACEOF
43273 #define wxUSE_PROTOCOL_FILE 1
43274 _ACEOF
43275
43276     fi
43277 else
43278     if test "$wxUSE_FS_INET" = "yes"; then
43279         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43280 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43281         wxUSE_FS_INET="no"
43282     fi
43283 fi
43284
43285 if test "$wxUSE_URL" = "yes"; then
43286     if test "$wxUSE_PROTOCOL" != "yes"; then
43287         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43288 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43289         wxUSE_URL=no
43290     fi
43291     if test "$wxUSE_URL" = "yes"; then
43292         cat >>confdefs.h <<\_ACEOF
43293 #define wxUSE_URL 1
43294 _ACEOF
43295
43296     fi
43297 fi
43298
43299 if test "$wxUSE_FS_INET" = "yes"; then
43300   cat >>confdefs.h <<\_ACEOF
43301 #define wxUSE_FS_INET 1
43302 _ACEOF
43303
43304 fi
43305
43306
43307 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43308     wxUSE_JOYSTICK=no
43309
43310         if test "$TOOLKIT" = "MSW"; then
43311         wxUSE_JOYSTICK=yes
43312
43313         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43314         if test "$USE_DARWIN" = 1; then
43315                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43316 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
43317             cat >conftest.$ac_ext <<_ACEOF
43318 /* confdefs.h.  */
43319 _ACEOF
43320 cat confdefs.h >>conftest.$ac_ext
43321 cat >>conftest.$ac_ext <<_ACEOF
43322 /* end confdefs.h.  */
43323  #include <IOKit/hid/IOHIDLib.h>
43324 int
43325 main ()
43326 {
43327  IOHIDQueueInterface *qi = NULL;
43328                               IOHIDCallbackFunction cb = NULL;
43329                               qi->setEventCallout(NULL, cb, NULL, NULL);
43330   ;
43331   return 0;
43332 }
43333 _ACEOF
43334 rm -f conftest.$ac_objext
43335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43336   (eval $ac_compile) 2>conftest.er1
43337   ac_status=$?
43338   grep -v '^ *+' conftest.er1 >conftest.err
43339   rm -f conftest.er1
43340   cat conftest.err >&5
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); } &&
43343          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43345   (eval $ac_try) 2>&5
43346   ac_status=$?
43347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348   (exit $ac_status); }; } &&
43349          { ac_try='test -s conftest.$ac_objext'
43350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351   (eval $ac_try) 2>&5
43352   ac_status=$?
43353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354   (exit $ac_status); }; }; then
43355    wxUSE_JOYSTICK=yes
43356
43357 else
43358   echo "$as_me: failed program was:" >&5
43359 sed 's/^/| /' conftest.$ac_ext >&5
43360
43361 fi
43362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43363             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43364 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43365         fi
43366
43367         else
43368
43369 for ac_header in linux/joystick.h
43370 do
43371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43373   echo "$as_me:$LINENO: checking for $ac_header" >&5
43374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43376   echo $ECHO_N "(cached) $ECHO_C" >&6
43377 fi
43378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43380 else
43381   # Is the header compilable?
43382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43384 cat >conftest.$ac_ext <<_ACEOF
43385 /* confdefs.h.  */
43386 _ACEOF
43387 cat confdefs.h >>conftest.$ac_ext
43388 cat >>conftest.$ac_ext <<_ACEOF
43389 /* end confdefs.h.  */
43390 $ac_includes_default
43391 #include <$ac_header>
43392 _ACEOF
43393 rm -f conftest.$ac_objext
43394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43395   (eval $ac_compile) 2>conftest.er1
43396   ac_status=$?
43397   grep -v '^ *+' conftest.er1 >conftest.err
43398   rm -f conftest.er1
43399   cat conftest.err >&5
43400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401   (exit $ac_status); } &&
43402          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404   (eval $ac_try) 2>&5
43405   ac_status=$?
43406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407   (exit $ac_status); }; } &&
43408          { ac_try='test -s conftest.$ac_objext'
43409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43410   (eval $ac_try) 2>&5
43411   ac_status=$?
43412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413   (exit $ac_status); }; }; then
43414   ac_header_compiler=yes
43415 else
43416   echo "$as_me: failed program was:" >&5
43417 sed 's/^/| /' conftest.$ac_ext >&5
43418
43419 ac_header_compiler=no
43420 fi
43421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43423 echo "${ECHO_T}$ac_header_compiler" >&6
43424
43425 # Is the header present?
43426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43428 cat >conftest.$ac_ext <<_ACEOF
43429 /* confdefs.h.  */
43430 _ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h.  */
43434 #include <$ac_header>
43435 _ACEOF
43436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43438   ac_status=$?
43439   grep -v '^ *+' conftest.er1 >conftest.err
43440   rm -f conftest.er1
43441   cat conftest.err >&5
43442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443   (exit $ac_status); } >/dev/null; then
43444   if test -s conftest.err; then
43445     ac_cpp_err=$ac_cxx_preproc_warn_flag
43446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43447   else
43448     ac_cpp_err=
43449   fi
43450 else
43451   ac_cpp_err=yes
43452 fi
43453 if test -z "$ac_cpp_err"; then
43454   ac_header_preproc=yes
43455 else
43456   echo "$as_me: failed program was:" >&5
43457 sed 's/^/| /' conftest.$ac_ext >&5
43458
43459   ac_header_preproc=no
43460 fi
43461 rm -f conftest.err conftest.$ac_ext
43462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43463 echo "${ECHO_T}$ac_header_preproc" >&6
43464
43465 # So?  What about this header?
43466 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43467   yes:no: )
43468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43472     ac_header_preproc=yes
43473     ;;
43474   no:yes:* )
43475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43487     (
43488       cat <<\_ASBOX
43489 ## ----------------------------------------- ##
43490 ## Report this to wx-dev@lists.wxwidgets.org ##
43491 ## ----------------------------------------- ##
43492 _ASBOX
43493     ) |
43494       sed "s/^/$as_me: WARNING:     /" >&2
43495     ;;
43496 esac
43497 echo "$as_me:$LINENO: checking for $ac_header" >&5
43498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43500   echo $ECHO_N "(cached) $ECHO_C" >&6
43501 else
43502   eval "$as_ac_Header=\$ac_header_preproc"
43503 fi
43504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43506
43507 fi
43508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43509   cat >>confdefs.h <<_ACEOF
43510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43511 _ACEOF
43512  wxUSE_JOYSTICK=yes
43513 fi
43514
43515 done
43516
43517     fi
43518
43519     if test "$wxUSE_JOYSTICK" = "yes"; then
43520         cat >>confdefs.h <<\_ACEOF
43521 #define wxUSE_JOYSTICK 1
43522 _ACEOF
43523
43524         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43525     else
43526         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43527 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
43528     fi
43529 fi
43530
43531
43532
43533 if test "$wxUSE_FONTMAP" = "yes" ; then
43534   cat >>confdefs.h <<\_ACEOF
43535 #define wxUSE_FONTMAP 1
43536 _ACEOF
43537
43538 fi
43539
43540 if test "$wxUSE_UNICODE" = "yes" ; then
43541   cat >>confdefs.h <<\_ACEOF
43542 #define wxUSE_UNICODE 1
43543 _ACEOF
43544
43545
43546   if test "$USE_WIN32" != 1; then
43547       wxUSE_UNICODE_MSLU=no
43548   fi
43549
43550   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43551         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43552 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43553 if test "${ac_cv_lib_unicows_main+set}" = set; then
43554   echo $ECHO_N "(cached) $ECHO_C" >&6
43555 else
43556   ac_check_lib_save_LIBS=$LIBS
43557 LIBS="-lunicows  $LIBS"
43558 cat >conftest.$ac_ext <<_ACEOF
43559 /* confdefs.h.  */
43560 _ACEOF
43561 cat confdefs.h >>conftest.$ac_ext
43562 cat >>conftest.$ac_ext <<_ACEOF
43563 /* end confdefs.h.  */
43564
43565
43566 int
43567 main ()
43568 {
43569 main ();
43570   ;
43571   return 0;
43572 }
43573 _ACEOF
43574 rm -f conftest.$ac_objext conftest$ac_exeext
43575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43576   (eval $ac_link) 2>conftest.er1
43577   ac_status=$?
43578   grep -v '^ *+' conftest.er1 >conftest.err
43579   rm -f conftest.er1
43580   cat conftest.err >&5
43581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43582   (exit $ac_status); } &&
43583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585   (eval $ac_try) 2>&5
43586   ac_status=$?
43587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588   (exit $ac_status); }; } &&
43589          { ac_try='test -s conftest$ac_exeext'
43590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43591   (eval $ac_try) 2>&5
43592   ac_status=$?
43593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594   (exit $ac_status); }; }; then
43595   ac_cv_lib_unicows_main=yes
43596 else
43597   echo "$as_me: failed program was:" >&5
43598 sed 's/^/| /' conftest.$ac_ext >&5
43599
43600 ac_cv_lib_unicows_main=no
43601 fi
43602 rm -f conftest.err conftest.$ac_objext \
43603       conftest$ac_exeext conftest.$ac_ext
43604 LIBS=$ac_check_lib_save_LIBS
43605 fi
43606 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43607 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43608 if test $ac_cv_lib_unicows_main = yes; then
43609
43610                 cat >>confdefs.h <<\_ACEOF
43611 #define wxUSE_UNICODE_MSLU 1
43612 _ACEOF
43613
43614
43615 else
43616
43617                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43618                              Applications will only run on Windows NT/2000/XP!" >&5
43619 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43620                              Applications will only run on Windows NT/2000/XP!" >&2;}
43621                 wxUSE_UNICODE_MSLU=no
43622
43623 fi
43624
43625     fi
43626 fi
43627
43628 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43629   cat >>confdefs.h <<\_ACEOF
43630 #define wxUSE_EXPERIMENTAL_PRINTF 1
43631 _ACEOF
43632
43633 fi
43634
43635
43636 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43637   cat >>confdefs.h <<\_ACEOF
43638 #define wxUSE_POSTSCRIPT 1
43639 _ACEOF
43640
43641 fi
43642
43643 cat >>confdefs.h <<\_ACEOF
43644 #define wxUSE_AFM_FOR_POSTSCRIPT 1
43645 _ACEOF
43646
43647
43648 cat >>confdefs.h <<\_ACEOF
43649 #define wxUSE_NORMALIZED_PS_FONTS 1
43650 _ACEOF
43651
43652
43653
43654 if test "$wxUSE_CONSTRAINTS" = "yes"; then
43655     cat >>confdefs.h <<\_ACEOF
43656 #define wxUSE_CONSTRAINTS 1
43657 _ACEOF
43658
43659     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43660 fi
43661
43662 if test "$wxUSE_MDI" = "yes"; then
43663     cat >>confdefs.h <<\_ACEOF
43664 #define wxUSE_MDI 1
43665 _ACEOF
43666
43667
43668     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43669         cat >>confdefs.h <<\_ACEOF
43670 #define wxUSE_MDI_ARCHITECTURE 1
43671 _ACEOF
43672
43673         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43674     fi
43675 fi
43676
43677 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43678     cat >>confdefs.h <<\_ACEOF
43679 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
43680 _ACEOF
43681
43682     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43683     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43684         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43685     fi
43686 fi
43687
43688 if test "$wxUSE_HELP" = "yes"; then
43689     cat >>confdefs.h <<\_ACEOF
43690 #define wxUSE_HELP 1
43691 _ACEOF
43692
43693     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43694
43695     if test "$wxUSE_MSW" = 1; then
43696       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43697         cat >>confdefs.h <<\_ACEOF
43698 #define wxUSE_MS_HTML_HELP 1
43699 _ACEOF
43700
43701       fi
43702     fi
43703
43704     if test "$wxUSE_WXHTML_HELP" = "yes"; then
43705       if test "$wxUSE_HTML" = "yes"; then
43706         cat >>confdefs.h <<\_ACEOF
43707 #define wxUSE_WXHTML_HELP 1
43708 _ACEOF
43709
43710       else
43711         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43712 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43713         wxUSE_WXHTML_HELP=no
43714       fi
43715     fi
43716 fi
43717
43718 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43719     if test "$wxUSE_CONSTRAINTS" != "yes"; then
43720         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43721 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43722     else
43723         cat >>confdefs.h <<\_ACEOF
43724 #define wxUSE_PRINTING_ARCHITECTURE 1
43725 _ACEOF
43726
43727     fi
43728     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43729 fi
43730
43731 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
43732     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43733 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43734    { (exit 1); exit 1; }; }
43735 fi
43736
43737
43738 if test "$wxUSE_METAFILE" = "yes"; then
43739     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43740         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43741 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43742         wxUSE_METAFILE=no
43743     fi
43744 fi
43745
43746
43747 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
43748                           -o "$wxUSE_CLIPBOARD"     = "yes" \
43749                           -o "$wxUSE_OLE"     = "yes" \
43750                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43751
43752 for ac_header in ole2.h
43753 do
43754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43756   echo "$as_me:$LINENO: checking for $ac_header" >&5
43757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43759   echo $ECHO_N "(cached) $ECHO_C" >&6
43760 fi
43761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43763 else
43764   # Is the header compilable?
43765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43767 cat >conftest.$ac_ext <<_ACEOF
43768 /* confdefs.h.  */
43769 _ACEOF
43770 cat confdefs.h >>conftest.$ac_ext
43771 cat >>conftest.$ac_ext <<_ACEOF
43772 /* end confdefs.h.  */
43773 $ac_includes_default
43774 #include <$ac_header>
43775 _ACEOF
43776 rm -f conftest.$ac_objext
43777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43778   (eval $ac_compile) 2>conftest.er1
43779   ac_status=$?
43780   grep -v '^ *+' conftest.er1 >conftest.err
43781   rm -f conftest.er1
43782   cat conftest.err >&5
43783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43784   (exit $ac_status); } &&
43785          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43787   (eval $ac_try) 2>&5
43788   ac_status=$?
43789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790   (exit $ac_status); }; } &&
43791          { ac_try='test -s conftest.$ac_objext'
43792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43793   (eval $ac_try) 2>&5
43794   ac_status=$?
43795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796   (exit $ac_status); }; }; then
43797   ac_header_compiler=yes
43798 else
43799   echo "$as_me: failed program was:" >&5
43800 sed 's/^/| /' conftest.$ac_ext >&5
43801
43802 ac_header_compiler=no
43803 fi
43804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43806 echo "${ECHO_T}$ac_header_compiler" >&6
43807
43808 # Is the header present?
43809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43811 cat >conftest.$ac_ext <<_ACEOF
43812 /* confdefs.h.  */
43813 _ACEOF
43814 cat confdefs.h >>conftest.$ac_ext
43815 cat >>conftest.$ac_ext <<_ACEOF
43816 /* end confdefs.h.  */
43817 #include <$ac_header>
43818 _ACEOF
43819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43821   ac_status=$?
43822   grep -v '^ *+' conftest.er1 >conftest.err
43823   rm -f conftest.er1
43824   cat conftest.err >&5
43825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43826   (exit $ac_status); } >/dev/null; then
43827   if test -s conftest.err; then
43828     ac_cpp_err=$ac_cxx_preproc_warn_flag
43829     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43830   else
43831     ac_cpp_err=
43832   fi
43833 else
43834   ac_cpp_err=yes
43835 fi
43836 if test -z "$ac_cpp_err"; then
43837   ac_header_preproc=yes
43838 else
43839   echo "$as_me: failed program was:" >&5
43840 sed 's/^/| /' conftest.$ac_ext >&5
43841
43842   ac_header_preproc=no
43843 fi
43844 rm -f conftest.err conftest.$ac_ext
43845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43846 echo "${ECHO_T}$ac_header_preproc" >&6
43847
43848 # So?  What about this header?
43849 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43850   yes:no: )
43851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43855     ac_header_preproc=yes
43856     ;;
43857   no:yes:* )
43858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43870     (
43871       cat <<\_ASBOX
43872 ## ----------------------------------------- ##
43873 ## Report this to wx-dev@lists.wxwidgets.org ##
43874 ## ----------------------------------------- ##
43875 _ASBOX
43876     ) |
43877       sed "s/^/$as_me: WARNING:     /" >&2
43878     ;;
43879 esac
43880 echo "$as_me:$LINENO: checking for $ac_header" >&5
43881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43883   echo $ECHO_N "(cached) $ECHO_C" >&6
43884 else
43885   eval "$as_ac_Header=\$ac_header_preproc"
43886 fi
43887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43889
43890 fi
43891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43892   cat >>confdefs.h <<_ACEOF
43893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43894 _ACEOF
43895
43896 fi
43897
43898 done
43899
43900
43901     if test "$ac_cv_header_ole2_h" = "yes" ; then
43902         if test "$GCC" = yes ; then
43903             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43904 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43905             cat >conftest.$ac_ext <<_ACEOF
43906 /* confdefs.h.  */
43907 _ACEOF
43908 cat confdefs.h >>conftest.$ac_ext
43909 cat >>conftest.$ac_ext <<_ACEOF
43910 /* end confdefs.h.  */
43911 #include <windows.h>
43912                             #include <ole2.h>
43913 int
43914 main ()
43915 {
43916
43917   ;
43918   return 0;
43919 }
43920 _ACEOF
43921 rm -f conftest.$ac_objext
43922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43923   (eval $ac_compile) 2>conftest.er1
43924   ac_status=$?
43925   grep -v '^ *+' conftest.er1 >conftest.err
43926   rm -f conftest.er1
43927   cat conftest.err >&5
43928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929   (exit $ac_status); } &&
43930          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932   (eval $ac_try) 2>&5
43933   ac_status=$?
43934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935   (exit $ac_status); }; } &&
43936          { ac_try='test -s conftest.$ac_objext'
43937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938   (eval $ac_try) 2>&5
43939   ac_status=$?
43940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); }; }; then
43942   echo "$as_me:$LINENO: result: no" >&5
43943 echo "${ECHO_T}no" >&6
43944 else
43945   echo "$as_me: failed program was:" >&5
43946 sed 's/^/| /' conftest.$ac_ext >&5
43947
43948 echo "$as_me:$LINENO: result: yes" >&5
43949 echo "${ECHO_T}yes" >&6
43950                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
43951 fi
43952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43953             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43954             if test "$wxUSE_OLE" = "yes" ; then
43955                 cat >>confdefs.h <<\_ACEOF
43956 #define wxUSE_OLE 1
43957 _ACEOF
43958
43959                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
43960             fi
43961         fi
43962
43963                 if test "$wxUSE_DATAOBJ" = "yes" ; then
43964             cat >>confdefs.h <<\_ACEOF
43965 #define wxUSE_DATAOBJ 1
43966 _ACEOF
43967
43968         fi
43969     else
43970         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43971 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43972
43973         wxUSE_CLIPBOARD=no
43974         wxUSE_DRAG_AND_DROP=no
43975         wxUSE_DATAOBJ=no
43976         wxUSE_OLE=no
43977     fi
43978
43979     if test "$wxUSE_METAFILE" = "yes"; then
43980         cat >>confdefs.h <<\_ACEOF
43981 #define wxUSE_METAFILE 1
43982 _ACEOF
43983
43984
43985                 cat >>confdefs.h <<\_ACEOF
43986 #define wxUSE_ENH_METAFILE 1
43987 _ACEOF
43988
43989     fi
43990 fi
43991
43992 if test "$wxUSE_IPC" = "yes"; then
43993     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
43994         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43995 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
43996         wxUSE_IPC=no
43997     fi
43998
43999     if test "$wxUSE_IPC" = "yes"; then
44000         cat >>confdefs.h <<\_ACEOF
44001 #define wxUSE_IPC 1
44002 _ACEOF
44003
44004         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44005     fi
44006 fi
44007
44008 if test "$wxUSE_DATAOBJ" = "yes"; then
44009     if test "$wxUSE_MGL" = 1; then
44010         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44011 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44012         wxUSE_DATAOBJ=no
44013     else
44014         cat >>confdefs.h <<\_ACEOF
44015 #define wxUSE_DATAOBJ 1
44016 _ACEOF
44017
44018     fi
44019 else
44020     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44021 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44022     wxUSE_CLIPBOARD=no
44023     wxUSE_DRAG_AND_DROP=no
44024 fi
44025
44026 if test "$wxUSE_CLIPBOARD" = "yes"; then
44027     if test "$wxUSE_MGL" = 1; then
44028         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44029 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44030         wxUSE_CLIPBOARD=no
44031     fi
44032
44033     if test "$wxUSE_CLIPBOARD" = "yes"; then
44034         cat >>confdefs.h <<\_ACEOF
44035 #define wxUSE_CLIPBOARD 1
44036 _ACEOF
44037
44038     fi
44039 fi
44040
44041 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44042     if test "$wxUSE_GTK" = 1; then
44043         if test "$WXGTK12" != 1; then
44044             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44045 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44046             wxUSE_DRAG_AND_DROP=no
44047         fi
44048     fi
44049
44050     if test "$wxUSE_MOTIF" = 1; then
44051         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44052 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44053         wxUSE_DRAG_AND_DROP=no
44054     fi
44055
44056     if test "$wxUSE_X11" = 1; then
44057         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44058 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44059         wxUSE_DRAG_AND_DROP=no
44060     fi
44061
44062     if test "$wxUSE_MGL" = 1; then
44063         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44064 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44065         wxUSE_DRAG_AND_DROP=no
44066     fi
44067
44068     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44069         cat >>confdefs.h <<\_ACEOF
44070 #define wxUSE_DRAG_AND_DROP 1
44071 _ACEOF
44072
44073     fi
44074
44075 fi
44076
44077 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44078     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44079 fi
44080
44081 if test "$wxUSE_SPLINES" = "yes" ; then
44082   cat >>confdefs.h <<\_ACEOF
44083 #define wxUSE_SPLINES 1
44084 _ACEOF
44085
44086 fi
44087
44088 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44089   cat >>confdefs.h <<\_ACEOF
44090 #define wxUSE_MOUSEWHEEL 1
44091 _ACEOF
44092
44093 fi
44094
44095
44096 USES_CONTROLS=0
44097 if test "$wxUSE_CONTROLS" = "yes"; then
44098   USES_CONTROLS=1
44099 fi
44100
44101 if test "$wxUSE_ACCEL" = "yes"; then
44102   cat >>confdefs.h <<\_ACEOF
44103 #define wxUSE_ACCEL 1
44104 _ACEOF
44105
44106   USES_CONTROLS=1
44107 fi
44108
44109 if test "$wxUSE_BUTTON" = "yes"; then
44110   cat >>confdefs.h <<\_ACEOF
44111 #define wxUSE_BUTTON 1
44112 _ACEOF
44113
44114   USES_CONTROLS=1
44115 fi
44116
44117 if test "$wxUSE_BMPBUTTON" = "yes"; then
44118   cat >>confdefs.h <<\_ACEOF
44119 #define wxUSE_BMPBUTTON 1
44120 _ACEOF
44121
44122   USES_CONTROLS=1
44123 fi
44124
44125 if test "$wxUSE_CALCTRL" = "yes"; then
44126   cat >>confdefs.h <<\_ACEOF
44127 #define wxUSE_CALENDARCTRL 1
44128 _ACEOF
44129
44130   USES_CONTROLS=1
44131   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44132 fi
44133
44134 if test "$wxUSE_CARET" = "yes"; then
44135   cat >>confdefs.h <<\_ACEOF
44136 #define wxUSE_CARET 1
44137 _ACEOF
44138
44139   USES_CONTROLS=1
44140   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44141 fi
44142
44143 if test "$wxUSE_COMBOBOX" = "yes"; then
44144   cat >>confdefs.h <<\_ACEOF
44145 #define wxUSE_COMBOBOX 1
44146 _ACEOF
44147
44148   USES_CONTROLS=1
44149 fi
44150
44151 if test "$wxUSE_COMBOCTRL" = "yes"; then
44152   cat >>confdefs.h <<\_ACEOF
44153 #define wxUSE_COMBOCTRL 1
44154 _ACEOF
44155
44156   USES_CONTROLS=1
44157 fi
44158
44159 if test "$wxUSE_CHOICE" = "yes"; then
44160   cat >>confdefs.h <<\_ACEOF
44161 #define wxUSE_CHOICE 1
44162 _ACEOF
44163
44164   USES_CONTROLS=1
44165 fi
44166
44167 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44168     cat >>confdefs.h <<\_ACEOF
44169 #define wxUSE_CHOICEBOOK 1
44170 _ACEOF
44171
44172     USES_CONTROLS=1
44173 fi
44174
44175 if test "$wxUSE_CHECKBOX" = "yes"; then
44176   cat >>confdefs.h <<\_ACEOF
44177 #define wxUSE_CHECKBOX 1
44178 _ACEOF
44179
44180   USES_CONTROLS=1
44181 fi
44182
44183 if test "$wxUSE_CHECKLST" = "yes"; then
44184   cat >>confdefs.h <<\_ACEOF
44185 #define wxUSE_CHECKLISTBOX 1
44186 _ACEOF
44187
44188   USES_CONTROLS=1
44189   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44190 fi
44191
44192 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44193   cat >>confdefs.h <<\_ACEOF
44194 #define wxUSE_COLOURPICKERCTRL 1
44195 _ACEOF
44196
44197   USES_CONTROLS=1
44198 fi
44199
44200 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44201   cat >>confdefs.h <<\_ACEOF
44202 #define wxUSE_DATEPICKCTRL 1
44203 _ACEOF
44204
44205   USES_CONTROLS=1
44206 fi
44207
44208 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44209   cat >>confdefs.h <<\_ACEOF
44210 #define wxUSE_DIRPICKERCTRL 1
44211 _ACEOF
44212
44213   USES_CONTROLS=1
44214 fi
44215
44216 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44217   cat >>confdefs.h <<\_ACEOF
44218 #define wxUSE_FILEPICKERCTRL 1
44219 _ACEOF
44220
44221   USES_CONTROLS=1
44222 fi
44223
44224 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44225   cat >>confdefs.h <<\_ACEOF
44226 #define wxUSE_FONTPICKERCTRL 1
44227 _ACEOF
44228
44229   USES_CONTROLS=1
44230 fi
44231
44232 if test "$wxUSE_DISPLAY" = "yes"; then
44233     cat >>confdefs.h <<\_ACEOF
44234 #define wxUSE_DISPLAY 1
44235 _ACEOF
44236
44237     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44238 fi
44239
44240 if test "$wxUSE_GAUGE" = "yes"; then
44241   cat >>confdefs.h <<\_ACEOF
44242 #define wxUSE_GAUGE 1
44243 _ACEOF
44244
44245   USES_CONTROLS=1
44246 fi
44247
44248 if test "$wxUSE_GRID" = "yes"; then
44249   cat >>confdefs.h <<\_ACEOF
44250 #define wxUSE_GRID 1
44251 _ACEOF
44252
44253   USES_CONTROLS=1
44254   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44255 fi
44256
44257 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44258   cat >>confdefs.h <<\_ACEOF
44259 #define wxUSE_HYPERLINKCTRL 1
44260 _ACEOF
44261
44262   USES_CONTROLS=1
44263 fi
44264
44265 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44266   cat >>confdefs.h <<\_ACEOF
44267 #define wxUSE_DATAVIEWCTRL 1
44268 _ACEOF
44269
44270   USES_CONTROLS=1
44271   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44272 fi
44273
44274 if test "$wxUSE_IMAGLIST" = "yes"; then
44275     cat >>confdefs.h <<\_ACEOF
44276 #define wxUSE_IMAGLIST 1
44277 _ACEOF
44278
44279 fi
44280
44281 if test "$wxUSE_LISTBOOK" = "yes"; then
44282     cat >>confdefs.h <<\_ACEOF
44283 #define wxUSE_LISTBOOK 1
44284 _ACEOF
44285
44286     USES_CONTROLS=1
44287 fi
44288
44289 if test "$wxUSE_LISTBOX" = "yes"; then
44290     cat >>confdefs.h <<\_ACEOF
44291 #define wxUSE_LISTBOX 1
44292 _ACEOF
44293
44294     USES_CONTROLS=1
44295     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44296 fi
44297
44298 if test "$wxUSE_LISTCTRL" = "yes"; then
44299     if test "$wxUSE_IMAGLIST" = "yes"; then
44300         cat >>confdefs.h <<\_ACEOF
44301 #define wxUSE_LISTCTRL 1
44302 _ACEOF
44303
44304         USES_CONTROLS=1
44305         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44306     else
44307         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44308 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44309     fi
44310 fi
44311
44312 if test "$wxUSE_NOTEBOOK" = "yes"; then
44313     cat >>confdefs.h <<\_ACEOF
44314 #define wxUSE_NOTEBOOK 1
44315 _ACEOF
44316
44317     USES_CONTROLS=1
44318     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44319 fi
44320
44321 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44322   cat >>confdefs.h <<\_ACEOF
44323 #define wxUSE_ODCOMBOBOX 1
44324 _ACEOF
44325
44326   USES_CONTROLS=1
44327   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44328 fi
44329
44330
44331 if test "$wxUSE_RADIOBOX" = "yes"; then
44332     cat >>confdefs.h <<\_ACEOF
44333 #define wxUSE_RADIOBOX 1
44334 _ACEOF
44335
44336     USES_CONTROLS=1
44337 fi
44338
44339 if test "$wxUSE_RADIOBTN" = "yes"; then
44340     cat >>confdefs.h <<\_ACEOF
44341 #define wxUSE_RADIOBTN 1
44342 _ACEOF
44343
44344     USES_CONTROLS=1
44345 fi
44346
44347 if test "$wxUSE_SASH" = "yes"; then
44348     cat >>confdefs.h <<\_ACEOF
44349 #define wxUSE_SASH 1
44350 _ACEOF
44351
44352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44353 fi
44354
44355 if test "$wxUSE_SCROLLBAR" = "yes"; then
44356     cat >>confdefs.h <<\_ACEOF
44357 #define wxUSE_SCROLLBAR 1
44358 _ACEOF
44359
44360     USES_CONTROLS=1
44361     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44362 fi
44363
44364 if test "$wxUSE_SLIDER" = "yes"; then
44365     cat >>confdefs.h <<\_ACEOF
44366 #define wxUSE_SLIDER 1
44367 _ACEOF
44368
44369     USES_CONTROLS=1
44370 fi
44371
44372 if test "$wxUSE_SPINBTN" = "yes"; then
44373     cat >>confdefs.h <<\_ACEOF
44374 #define wxUSE_SPINBTN 1
44375 _ACEOF
44376
44377     USES_CONTROLS=1
44378 fi
44379
44380 if test "$wxUSE_SPINCTRL" = "yes"; then
44381     cat >>confdefs.h <<\_ACEOF
44382 #define wxUSE_SPINCTRL 1
44383 _ACEOF
44384
44385     USES_CONTROLS=1
44386 fi
44387
44388 if test "$wxUSE_SPLITTER" = "yes"; then
44389     cat >>confdefs.h <<\_ACEOF
44390 #define wxUSE_SPLITTER 1
44391 _ACEOF
44392
44393     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44394 fi
44395
44396 if test "$wxUSE_STATBMP" = "yes"; then
44397     cat >>confdefs.h <<\_ACEOF
44398 #define wxUSE_STATBMP 1
44399 _ACEOF
44400
44401     USES_CONTROLS=1
44402 fi
44403
44404 if test "$wxUSE_STATBOX" = "yes"; then
44405     cat >>confdefs.h <<\_ACEOF
44406 #define wxUSE_STATBOX 1
44407 _ACEOF
44408
44409     USES_CONTROLS=1
44410 fi
44411
44412 if test "$wxUSE_STATTEXT" = "yes"; then
44413     cat >>confdefs.h <<\_ACEOF
44414 #define wxUSE_STATTEXT 1
44415 _ACEOF
44416
44417     USES_CONTROLS=1
44418 fi
44419
44420 if test "$wxUSE_STATLINE" = "yes"; then
44421     cat >>confdefs.h <<\_ACEOF
44422 #define wxUSE_STATLINE 1
44423 _ACEOF
44424
44425     USES_CONTROLS=1
44426 fi
44427
44428 if test "$wxUSE_STATUSBAR" = "yes"; then
44429         cat >>confdefs.h <<\_ACEOF
44430 #define wxUSE_NATIVE_STATUSBAR 1
44431 _ACEOF
44432
44433     cat >>confdefs.h <<\_ACEOF
44434 #define wxUSE_STATUSBAR 1
44435 _ACEOF
44436
44437     USES_CONTROLS=1
44438
44439     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44440 fi
44441
44442 if test "$wxUSE_TAB_DIALOG" = "yes"; then
44443     cat >>confdefs.h <<\_ACEOF
44444 #define wxUSE_TAB_DIALOG 1
44445 _ACEOF
44446
44447 fi
44448
44449 if test "$wxUSE_TEXTCTRL" = "yes"; then
44450     cat >>confdefs.h <<\_ACEOF
44451 #define wxUSE_TEXTCTRL 1
44452 _ACEOF
44453
44454     USES_CONTROLS=1
44455     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44456 fi
44457
44458 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44459     if test "$wxUSE_COCOA" = 1 ; then
44460         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44461 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44462         wxUSE_TOGGLEBTN=no
44463     fi
44464
44465     if test "$wxUSE_TOGGLEBTN" = "yes"; then
44466         cat >>confdefs.h <<\_ACEOF
44467 #define wxUSE_TOGGLEBTN 1
44468 _ACEOF
44469
44470         USES_CONTROLS=1
44471     fi
44472 fi
44473
44474 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44475     cat >>confdefs.h <<\_ACEOF
44476 #define wxUSE_TOOLBAR_SIMPLE 1
44477 _ACEOF
44478
44479     wxUSE_TOOLBAR="yes"
44480     USES_CONTROLS=1
44481 fi
44482
44483 if test "$wxUSE_TOOLBAR" = "yes"; then
44484     cat >>confdefs.h <<\_ACEOF
44485 #define wxUSE_TOOLBAR 1
44486 _ACEOF
44487
44488     USES_CONTROLS=1
44489
44490         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44491         wxUSE_TOOLBAR_NATIVE="yes"
44492     fi
44493
44494     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44495         cat >>confdefs.h <<\_ACEOF
44496 #define wxUSE_TOOLBAR_NATIVE 1
44497 _ACEOF
44498
44499         USES_CONTROLS=1
44500     fi
44501
44502     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44503 fi
44504
44505 if test "$wxUSE_TOOLTIPS" = "yes"; then
44506     if test "$wxUSE_MOTIF" = 1; then
44507         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44508 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44509     else
44510         if test "$wxUSE_UNIVERSAL" = "yes"; then
44511             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44512 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44513         else
44514             cat >>confdefs.h <<\_ACEOF
44515 #define wxUSE_TOOLTIPS 1
44516 _ACEOF
44517
44518         fi
44519     fi
44520 fi
44521
44522 if test "$wxUSE_TREEBOOK" = "yes"; then
44523     cat >>confdefs.h <<\_ACEOF
44524 #define wxUSE_TREEBOOK 1
44525 _ACEOF
44526
44527     USES_CONTROLS=1
44528 fi
44529
44530 if test "$wxUSE_TOOLBOOK" = "yes"; then
44531     cat >>confdefs.h <<\_ACEOF
44532 #define wxUSE_TOOLBOOK 1
44533 _ACEOF
44534
44535     USES_CONTROLS=1
44536 fi
44537
44538 if test "$wxUSE_TREECTRL" = "yes"; then
44539     if test "$wxUSE_IMAGLIST" = "yes"; then
44540         cat >>confdefs.h <<\_ACEOF
44541 #define wxUSE_TREECTRL 1
44542 _ACEOF
44543
44544         USES_CONTROLS=1
44545         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44546     else
44547         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44548 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44549     fi
44550 fi
44551
44552 if test "$wxUSE_POPUPWIN" = "yes"; then
44553     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44554         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44555 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44556     else
44557         if test "$wxUSE_PM" = 1; then
44558             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44559 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44560         else
44561             cat >>confdefs.h <<\_ACEOF
44562 #define wxUSE_POPUPWIN 1
44563 _ACEOF
44564
44565             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
44566
44567             USES_CONTROLS=1
44568         fi
44569     fi
44570 fi
44571
44572 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
44573     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44574         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44575 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44576     else
44577         cat >>confdefs.h <<\_ACEOF
44578 #define wxUSE_DIALUP_MANAGER 1
44579 _ACEOF
44580
44581         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44582     fi
44583 fi
44584
44585 if test "$wxUSE_TIPWINDOW" = "yes"; then
44586     if test "$wxUSE_PM" = 1; then
44587         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44588 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44589     else
44590         cat >>confdefs.h <<\_ACEOF
44591 #define wxUSE_TIPWINDOW 1
44592 _ACEOF
44593
44594     fi
44595 fi
44596
44597 if test "$USES_CONTROLS" = 1; then
44598     cat >>confdefs.h <<\_ACEOF
44599 #define wxUSE_CONTROLS 1
44600 _ACEOF
44601
44602 fi
44603
44604
44605 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44606     cat >>confdefs.h <<\_ACEOF
44607 #define wxUSE_ACCESSIBILITY 1
44608 _ACEOF
44609
44610     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44611 fi
44612
44613 if test "$wxUSE_DC_CACHEING" = "yes"; then
44614     cat >>confdefs.h <<\_ACEOF
44615 #define wxUSE_DC_CACHEING 1
44616 _ACEOF
44617
44618 fi
44619
44620 if test "$wxUSE_DRAGIMAGE" = "yes"; then
44621     cat >>confdefs.h <<\_ACEOF
44622 #define wxUSE_DRAGIMAGE 1
44623 _ACEOF
44624
44625     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44626 fi
44627
44628 if test "$wxUSE_EXCEPTIONS" = "yes"; then
44629     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44630         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44631 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44632     else
44633         cat >>confdefs.h <<\_ACEOF
44634 #define wxUSE_EXCEPTIONS 1
44635 _ACEOF
44636
44637         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44638     fi
44639 fi
44640
44641 USE_HTML=0
44642 if test "$wxUSE_HTML" = "yes"; then
44643     cat >>confdefs.h <<\_ACEOF
44644 #define wxUSE_HTML 1
44645 _ACEOF
44646
44647     USE_HTML=1
44648     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
44649     if test "$wxUSE_MAC" = 1; then
44650         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44651     fi
44652 fi
44653 if test "$wxUSE_WEBKIT" = "yes"; then
44654     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
44655         old_CPPFLAGS="$CPPFLAGS"
44656         CPPFLAGS="-x objective-c++ $CPPFLAGS"
44657         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44658 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44659 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44660   echo $ECHO_N "(cached) $ECHO_C" >&6
44661 else
44662   cat >conftest.$ac_ext <<_ACEOF
44663 /* confdefs.h.  */
44664 _ACEOF
44665 cat confdefs.h >>conftest.$ac_ext
44666 cat >>conftest.$ac_ext <<_ACEOF
44667 /* end confdefs.h.  */
44668 #include <Carbon/Carbon.h>
44669
44670 #include <WebKit/HIWebView.h>
44671 _ACEOF
44672 rm -f conftest.$ac_objext
44673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44674   (eval $ac_compile) 2>conftest.er1
44675   ac_status=$?
44676   grep -v '^ *+' conftest.er1 >conftest.err
44677   rm -f conftest.er1
44678   cat conftest.err >&5
44679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680   (exit $ac_status); } &&
44681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44683   (eval $ac_try) 2>&5
44684   ac_status=$?
44685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44686   (exit $ac_status); }; } &&
44687          { ac_try='test -s conftest.$ac_objext'
44688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44689   (eval $ac_try) 2>&5
44690   ac_status=$?
44691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692   (exit $ac_status); }; }; then
44693   ac_cv_header_WebKit_HIWebView_h=yes
44694 else
44695   echo "$as_me: failed program was:" >&5
44696 sed 's/^/| /' conftest.$ac_ext >&5
44697
44698 ac_cv_header_WebKit_HIWebView_h=no
44699 fi
44700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44701 fi
44702 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44703 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44704 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44705
44706                            cat >>confdefs.h <<\_ACEOF
44707 #define wxUSE_WEBKIT 1
44708 _ACEOF
44709
44710                            WEBKIT_LINK="-framework WebKit"
44711
44712 else
44713
44714                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44715 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44716                            wxUSE_WEBKIT=no
44717
44718 fi
44719
44720
44721         CPPFLAGS="$old_CPPFLAGS"
44722     elif test "$wxUSE_COCOA" = 1; then
44723         cat >>confdefs.h <<\_ACEOF
44724 #define wxUSE_WEBKIT 1
44725 _ACEOF
44726
44727     else
44728         wxUSE_WEBKIT=no
44729     fi
44730 fi
44731
44732 USE_XRC=0
44733 if test "$wxUSE_XRC" = "yes"; then
44734     if test "$wxUSE_XML" != "yes"; then
44735         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44736 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44737         wxUSE_XRC=no
44738     else
44739         cat >>confdefs.h <<\_ACEOF
44740 #define wxUSE_XRC 1
44741 _ACEOF
44742
44743         USE_XRC=1
44744         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44745     fi
44746 fi
44747
44748 USE_AUI=0
44749 if test "$wxUSE_AUI" = "yes"; then
44750    cat >>confdefs.h <<\_ACEOF
44751 #define wxUSE_AUI 1
44752 _ACEOF
44753
44754    USE_AUI=1
44755    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
44756 fi
44757
44758 if test "$wxUSE_MENUS" = "yes"; then
44759     cat >>confdefs.h <<\_ACEOF
44760 #define wxUSE_MENUS 1
44761 _ACEOF
44762
44763     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44764 fi
44765
44766 if test "$wxUSE_METAFILE" = "yes"; then
44767     cat >>confdefs.h <<\_ACEOF
44768 #define wxUSE_METAFILE 1
44769 _ACEOF
44770
44771 fi
44772
44773 if test "$wxUSE_MIMETYPE" = "yes"; then
44774     cat >>confdefs.h <<\_ACEOF
44775 #define wxUSE_MIMETYPE 1
44776 _ACEOF
44777
44778 fi
44779
44780 if test "$wxUSE_MINIFRAME" = "yes"; then
44781     cat >>confdefs.h <<\_ACEOF
44782 #define wxUSE_MINIFRAME 1
44783 _ACEOF
44784
44785     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44786 fi
44787
44788 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44789     cat >>confdefs.h <<\_ACEOF
44790 #define wxUSE_SYSTEM_OPTIONS 1
44791 _ACEOF
44792
44793     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
44794         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
44795         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44796     fi
44797 fi
44798
44799
44800 if test "$wxUSE_VALIDATORS" = "yes"; then
44801     cat >>confdefs.h <<\_ACEOF
44802 #define wxUSE_VALIDATORS 1
44803 _ACEOF
44804
44805     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44806 fi
44807
44808 if test "$wxUSE_PALETTE" = "yes" ; then
44809   cat >>confdefs.h <<\_ACEOF
44810 #define wxUSE_PALETTE 1
44811 _ACEOF
44812
44813 fi
44814
44815 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44816     LIBS=" -lunicows $LIBS"
44817 fi
44818
44819 USE_RICHTEXT=0
44820 if test "$wxUSE_RICHTEXT" = "yes"; then
44821     cat >>confdefs.h <<\_ACEOF
44822 #define wxUSE_RICHTEXT 1
44823 _ACEOF
44824
44825     USE_RICHTEXT=1
44826     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44827 fi
44828
44829
44830 if test "$wxUSE_IMAGE" = "yes" ; then
44831     cat >>confdefs.h <<\_ACEOF
44832 #define wxUSE_IMAGE 1
44833 _ACEOF
44834
44835
44836     if test "$wxUSE_GIF" = "yes" ; then
44837       cat >>confdefs.h <<\_ACEOF
44838 #define wxUSE_GIF 1
44839 _ACEOF
44840
44841     fi
44842
44843     if test "$wxUSE_PCX" = "yes" ; then
44844       cat >>confdefs.h <<\_ACEOF
44845 #define wxUSE_PCX 1
44846 _ACEOF
44847
44848     fi
44849
44850     if test "$wxUSE_IFF" = "yes" ; then
44851       cat >>confdefs.h <<\_ACEOF
44852 #define wxUSE_IFF 1
44853 _ACEOF
44854
44855     fi
44856
44857     if test "$wxUSE_PNM" = "yes" ; then
44858       cat >>confdefs.h <<\_ACEOF
44859 #define wxUSE_PNM 1
44860 _ACEOF
44861
44862     fi
44863
44864     if test "$wxUSE_XPM" = "yes" ; then
44865       cat >>confdefs.h <<\_ACEOF
44866 #define wxUSE_XPM 1
44867 _ACEOF
44868
44869     fi
44870
44871     if test "$wxUSE_ICO_CUR" = "yes" ; then
44872       cat >>confdefs.h <<\_ACEOF
44873 #define wxUSE_ICO_CUR 1
44874 _ACEOF
44875
44876     fi
44877 fi
44878
44879
44880 if test "$wxUSE_CHOICEDLG" = "yes"; then
44881     cat >>confdefs.h <<\_ACEOF
44882 #define wxUSE_CHOICEDLG 1
44883 _ACEOF
44884
44885 fi
44886
44887 if test "$wxUSE_COLOURDLG" = "yes"; then
44888     cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_COLOURDLG 1
44890 _ACEOF
44891
44892 fi
44893
44894 if test "$wxUSE_FILEDLG" = "yes"; then
44895     cat >>confdefs.h <<\_ACEOF
44896 #define wxUSE_FILEDLG 1
44897 _ACEOF
44898
44899 fi
44900
44901 if test "$wxUSE_FINDREPLDLG" = "yes"; then
44902     cat >>confdefs.h <<\_ACEOF
44903 #define wxUSE_FINDREPLDLG 1
44904 _ACEOF
44905
44906 fi
44907
44908 if test "$wxUSE_FONTDLG" = "yes"; then
44909     cat >>confdefs.h <<\_ACEOF
44910 #define wxUSE_FONTDLG 1
44911 _ACEOF
44912
44913 fi
44914
44915 if test "$wxUSE_DIRDLG" = "yes"; then
44916     if test "$wxUSE_TREECTRL" != "yes"; then
44917         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44918 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44919     else
44920         cat >>confdefs.h <<\_ACEOF
44921 #define wxUSE_DIRDLG 1
44922 _ACEOF
44923
44924     fi
44925 fi
44926
44927 if test "$wxUSE_MSGDLG" = "yes"; then
44928     cat >>confdefs.h <<\_ACEOF
44929 #define wxUSE_MSGDLG 1
44930 _ACEOF
44931
44932 fi
44933
44934 if test "$wxUSE_NUMBERDLG" = "yes"; then
44935     cat >>confdefs.h <<\_ACEOF
44936 #define wxUSE_NUMBERDLG 1
44937 _ACEOF
44938
44939 fi
44940
44941 if test "$wxUSE_PROGRESSDLG" = "yes"; then
44942     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44943        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44944 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44945     else
44946         cat >>confdefs.h <<\_ACEOF
44947 #define wxUSE_PROGRESSDLG 1
44948 _ACEOF
44949
44950     fi
44951 fi
44952
44953 if test "$wxUSE_SPLASH" = "yes"; then
44954     cat >>confdefs.h <<\_ACEOF
44955 #define wxUSE_SPLASH 1
44956 _ACEOF
44957
44958     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
44959 fi
44960
44961 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44962     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44963        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44964 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44965     else
44966         cat >>confdefs.h <<\_ACEOF
44967 #define wxUSE_STARTUP_TIPS 1
44968 _ACEOF
44969
44970     fi
44971 fi
44972
44973 if test "$wxUSE_TEXTDLG" = "yes"; then
44974     cat >>confdefs.h <<\_ACEOF
44975 #define wxUSE_TEXTDLG 1
44976 _ACEOF
44977
44978 fi
44979
44980 if test "$wxUSE_WIZARDDLG" = "yes"; then
44981     cat >>confdefs.h <<\_ACEOF
44982 #define wxUSE_WIZARDDLG 1
44983 _ACEOF
44984
44985     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44986 fi
44987
44988
44989 USE_MEDIA=0
44990
44991 if test "$wxUSE_MEDIACTRL" = "yes"; then
44992     USE_MEDIA=1
44993
44994                 if test "$wxUSE_GTK" = 1; then
44995         wxUSE_GSTREAMER="no"
44996
44997                                                                 GST_VERSION_MAJOR=0
44998         GST_VERSION_MINOR=10
44999         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45000
45001         if test "$wxUSE_GSTREAMER8" = "no"; then
45002
45003   succeeded=no
45004
45005   if test -z "$PKG_CONFIG"; then
45006     # Extract the first word of "pkg-config", so it can be a program name with args.
45007 set dummy pkg-config; ac_word=$2
45008 echo "$as_me:$LINENO: checking for $ac_word" >&5
45009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45010 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45011   echo $ECHO_N "(cached) $ECHO_C" >&6
45012 else
45013   case $PKG_CONFIG in
45014   [\\/]* | ?:[\\/]*)
45015   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45016   ;;
45017   *)
45018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45019 for as_dir in $PATH
45020 do
45021   IFS=$as_save_IFS
45022   test -z "$as_dir" && as_dir=.
45023   for ac_exec_ext in '' $ac_executable_extensions; do
45024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45025     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45027     break 2
45028   fi
45029 done
45030 done
45031
45032   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45033   ;;
45034 esac
45035 fi
45036 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45037
45038 if test -n "$PKG_CONFIG"; then
45039   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45040 echo "${ECHO_T}$PKG_CONFIG" >&6
45041 else
45042   echo "$as_me:$LINENO: result: no" >&5
45043 echo "${ECHO_T}no" >&6
45044 fi
45045
45046   fi
45047
45048   if test "$PKG_CONFIG" = "no" ; then
45049      echo "*** The pkg-config script could not be found. Make sure it is"
45050      echo "*** in your path, or set the PKG_CONFIG environment variable"
45051      echo "*** to the full path to pkg-config."
45052      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45053   else
45054      PKG_CONFIG_MIN_VERSION=0.9.0
45055      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45056         echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" >&5
45057 echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0... $ECHO_C" >&6
45058
45059         if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" ; then
45060             echo "$as_me:$LINENO: result: yes" >&5
45061 echo "${ECHO_T}yes" >&6
45062             succeeded=yes
45063
45064             echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45065 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45066             GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45067             echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45068 echo "${ECHO_T}$GST_CFLAGS" >&6
45069
45070             echo "$as_me:$LINENO: checking GST_LIBS" >&5
45071 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45072             GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45073             echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45074 echo "${ECHO_T}$GST_LIBS" >&6
45075         else
45076             GST_CFLAGS=""
45077             GST_LIBS=""
45078             ## If we have a custom action on failure, don't print errors, but
45079             ## do set a variable so people can do so.
45080             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45081
45082         fi
45083
45084
45085
45086      else
45087         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45088         echo "*** See http://www.freedesktop.org/software/pkgconfig"
45089      fi
45090   fi
45091
45092   if test $succeeded = yes; then
45093
45094                     wxUSE_GSTREAMER="yes"
45095                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
45096
45097   else
45098
45099                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45100 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45101                     GST_VERSION_MINOR=8
45102
45103
45104   fi
45105
45106         else
45107                         GST_VERSION_MINOR=8
45108         fi
45109
45110         if test $GST_VERSION_MINOR = "8"; then
45111             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45112
45113   succeeded=no
45114
45115   if test -z "$PKG_CONFIG"; then
45116     # Extract the first word of "pkg-config", so it can be a program name with args.
45117 set dummy pkg-config; ac_word=$2
45118 echo "$as_me:$LINENO: checking for $ac_word" >&5
45119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45120 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45121   echo $ECHO_N "(cached) $ECHO_C" >&6
45122 else
45123   case $PKG_CONFIG in
45124   [\\/]* | ?:[\\/]*)
45125   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45126   ;;
45127   *)
45128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45129 for as_dir in $PATH
45130 do
45131   IFS=$as_save_IFS
45132   test -z "$as_dir" && as_dir=.
45133   for ac_exec_ext in '' $ac_executable_extensions; do
45134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45135     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45137     break 2
45138   fi
45139 done
45140 done
45141
45142   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45143   ;;
45144 esac
45145 fi
45146 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45147
45148 if test -n "$PKG_CONFIG"; then
45149   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45150 echo "${ECHO_T}$PKG_CONFIG" >&6
45151 else
45152   echo "$as_me:$LINENO: result: no" >&5
45153 echo "${ECHO_T}no" >&6
45154 fi
45155
45156   fi
45157
45158   if test "$PKG_CONFIG" = "no" ; then
45159      echo "*** The pkg-config script could not be found. Make sure it is"
45160      echo "*** in your path, or set the PKG_CONFIG environment variable"
45161      echo "*** to the full path to pkg-config."
45162      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45163   else
45164      PKG_CONFIG_MIN_VERSION=0.9.0
45165      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45166         echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" >&5
45167 echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION... $ECHO_C" >&6
45168
45169         if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" ; then
45170             echo "$as_me:$LINENO: result: yes" >&5
45171 echo "${ECHO_T}yes" >&6
45172             succeeded=yes
45173
45174             echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45175 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45176             GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45177             echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45178 echo "${ECHO_T}$GST_CFLAGS" >&6
45179
45180             echo "$as_me:$LINENO: checking GST_LIBS" >&5
45181 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45182             GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45183             echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45184 echo "${ECHO_T}$GST_LIBS" >&6
45185         else
45186             GST_CFLAGS=""
45187             GST_LIBS=""
45188             ## If we have a custom action on failure, don't print errors, but
45189             ## do set a variable so people can do so.
45190             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45191
45192         fi
45193
45194
45195
45196      else
45197         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45198         echo "*** See http://www.freedesktop.org/software/pkgconfig"
45199      fi
45200   fi
45201
45202   if test $succeeded = yes; then
45203      wxUSE_GSTREAMER="yes"
45204   else
45205
45206                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45207 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45208
45209   fi
45210
45211         fi
45212
45213
45214         if test "$wxUSE_GSTREAMER" = "yes"; then
45215                                     case "${host}" in
45216                 *-*-solaris2* )
45217                     if "$GCC" = yes; then
45218                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45219                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45220                     fi
45221             esac
45222
45223             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45224             LIBS="$GST_LIBS $LIBS"
45225
45226             cat >>confdefs.h <<\_ACEOF
45227 #define wxUSE_GSTREAMER 1
45228 _ACEOF
45229
45230         else
45231             USE_MEDIA=0
45232         fi
45233     fi
45234
45235     if test $USE_MEDIA = 1; then
45236         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45237         cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_MEDIACTRL 1
45239 _ACEOF
45240
45241     fi
45242 fi
45243
45244
45245 if test "$cross_compiling" = "yes"; then
45246         OSINFO="\"$host\""
45247 else
45248         OSINFO=`uname -s -r -m`
45249     OSINFO="\"$OSINFO\""
45250 fi
45251
45252 cat >>confdefs.h <<_ACEOF
45253 #define WXWIN_OS_DESCRIPTION $OSINFO
45254 _ACEOF
45255
45256
45257
45258 if test "x$prefix" != "xNONE"; then
45259     wxPREFIX=$prefix
45260 else
45261     wxPREFIX=$ac_default_prefix
45262 fi
45263
45264 cat >>confdefs.h <<_ACEOF
45265 #define wxINSTALL_PREFIX "$wxPREFIX"
45266 _ACEOF
45267
45268
45269
45270
45271 CORE_BASE_LIBS="net base"
45272 CORE_GUI_LIBS="adv core"
45273
45274 if test "$wxUSE_XML" = "yes" ; then
45275     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45276 fi
45277 if test "$wxUSE_ODBC" != "no" ; then
45278     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45279     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45280 fi
45281 if test "$wxUSE_HTML" = "yes" ; then
45282     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45283 fi
45284 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45285     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45286 fi
45287 if test "$wxUSE_XRC" = "yes" ; then
45288     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45289 fi
45290 if test "$wxUSE_AUI" = "yes" ; then
45291     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45292 fi
45293
45294 if test "$wxUSE_GUI" != "yes"; then
45295     CORE_GUI_LIBS=""
45296 fi
45297
45298
45299
45300
45301
45302 ac_ext=c
45303 ac_cpp='$CPP $CPPFLAGS'
45304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45307
45308
45309
45310 if test "$wxUSE_MAC" = 1 ; then
45311     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
45312         if test "$USE_DARWIN" = 1; then
45313             LDFLAGS="$LDFLAGS -framework QuickTime"
45314         else
45315             LDFLAGS="$LDFLAGS -lQuickTimeLib"
45316         fi
45317     fi
45318     if test "$USE_DARWIN" = 1; then
45319         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45320     else
45321         LDFLAGS="$LDFLAGS -lCarbonLib"
45322     fi
45323 fi
45324 if test "$wxUSE_COCOA" = 1 ; then
45325     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
45326     if test "$wxUSE_MEDIACTRL" = "yes"; then
45327         LDFLAGS="$LDFLAGS -framework QuickTime"
45328     fi
45329 fi
45330 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45331     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45332 fi
45333
45334 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45335
45336 if test "$wxUSE_GUI" = "yes"; then
45337
45338
45339         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45340                      dynamic erase event exec font image minimal mobile \
45341                      mobile/wxedit mobile/styles propsize render \
45342                      rotate shaped vscroll widgets"
45343
45344     if test "$wxUSE_MONOLITHIC" != "yes"; then
45345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45346     fi
45347     if test "$TOOLKIT" = "MSW"; then
45348         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45349         if test "$wxUSE_UNIVERSAL" != "yes"; then
45350             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45351         fi
45352     fi
45353     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45354         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
45355     fi
45356 else
45357     SAMPLES_SUBDIRS="console"
45358 fi
45359
45360
45361 if test "x$INTELCC" = "xyes" ; then
45362                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45363 elif test "$GCC" = yes ; then
45364     CWARNINGS="-Wall -Wundef"
45365 fi
45366
45367 if test "x$INTELCXX" = "xyes" ; then
45368                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
45369 elif test "$GXX" = yes ; then
45370         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
45371 fi
45372
45373
45374 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45375 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45376
45377
45378 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
45379  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
45380  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45381  $CPPFLAGS `
45382
45383 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
45384 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
45385 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
45386
45387 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45388
45389
45390 if test "x$MWCC" = "xyes"; then
45391
45392             CC="$CC -cwd source -I-"
45393     CXX="$CXX -cwd source -I-"
45394 fi
45395
45396
45397 LIBS=`echo $LIBS`
45398 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45399 EXTRALIBS_XML="$EXPAT_LINK"
45400 EXTRALIBS_HTML="$MSPACK_LINK"
45401 EXTRALIBS_ODBC="$ODBC_LINK"
45402 if test "$wxUSE_GUI" = "yes"; then
45403     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
45404 fi
45405 if test "$wxUSE_OPENGL" = "yes"; then
45406     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45407 fi
45408
45409 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
45410
45411 WXCONFIG_LIBS="$LIBS"
45412
45413 if test "$wxUSE_REGEX" = "builtin" ; then
45414     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
45415 fi
45416 if test "$wxUSE_EXPAT" = "builtin" ; then
45417     wxconfig_3rdparty="expat $wxconfig_3rdparty"
45418 fi
45419 if test "$wxUSE_ODBC" = "builtin" ; then
45420     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
45421 fi
45422 if test "$wxUSE_LIBTIFF" = "builtin" ; then
45423     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
45424 fi
45425 if test "$wxUSE_LIBJPEG" = "builtin" ; then
45426     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
45427 fi
45428 if test "$wxUSE_LIBPNG" = "builtin" ; then
45429     wxconfig_3rdparty="png $wxconfig_3rdparty"
45430 fi
45431 if test "$wxUSE_ZLIB" = "builtin" ; then
45432     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
45433 fi
45434
45435 for i in $wxconfig_3rdparty ; do
45436     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
45437 done
45438
45439
45440 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45441     WXUNIV=1
45442 else
45443     WXUNIV=0
45444 fi
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454 if test $wxUSE_MONOLITHIC = "yes" ; then
45455     MONOLITHIC=1
45456 else
45457     MONOLITHIC=0
45458 fi
45459
45460 if test $wxUSE_PLUGINS = "yes" ; then
45461     USE_PLUGINS=1
45462 else
45463     USE_PLUGINS=0
45464 fi
45465
45466 if test $wxUSE_ODBC != "no" ; then
45467     USE_ODBC=1
45468 else
45469     USE_ODBC=0
45470 fi
45471
45472 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45473     USE_QA=1
45474 else
45475     USE_QA=0
45476 fi
45477
45478 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45479     OFFICIAL_BUILD=1
45480 else
45481     OFFICIAL_BUILD=0
45482 fi
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45509
45510
45511
45512
45513
45514
45515
45516
45517 case "$TOOLKIT" in
45518     GTK)
45519         TOOLKIT_USER="GTK+"
45520         if test "$WXGTK20" = 1; then
45521             TOOLKIT_USER="$TOOLKIT_USER 2"
45522         fi
45523         ;;
45524
45525     *)
45526         TOOLKIT_USER=$TOOLKIT_LOWERCASE
45527         ;;
45528 esac
45529
45530 if test "$wxUSE_WINE" = "yes"; then
45531     BAKEFILE_FORCE_PLATFORM=win32
45532 fi
45533
45534 if test "$wxUSE_MAC" = 1 ; then
45535     if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45536         CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45537         CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45538         LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45539         bk_use_pch=no
45540     fi
45541     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45542     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45543     # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45544 fi
45545
45546
45547
45548
45549     if test "x$BAKEFILE_HOST" = "x"; then
45550                if test "x${host}" = "x" ; then
45551                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45552 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45553    { (exit 1); exit 1; }; }
45554                fi
45555
45556         BAKEFILE_HOST="${host}"
45557     fi
45558
45559     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45560
45561     if test -n "$ac_tool_prefix"; then
45562   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45564 echo "$as_me:$LINENO: checking for $ac_word" >&5
45565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45566 if test "${ac_cv_prog_RANLIB+set}" = set; then
45567   echo $ECHO_N "(cached) $ECHO_C" >&6
45568 else
45569   if test -n "$RANLIB"; then
45570   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45571 else
45572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45573 for as_dir in $PATH
45574 do
45575   IFS=$as_save_IFS
45576   test -z "$as_dir" && as_dir=.
45577   for ac_exec_ext in '' $ac_executable_extensions; do
45578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45579     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45581     break 2
45582   fi
45583 done
45584 done
45585
45586 fi
45587 fi
45588 RANLIB=$ac_cv_prog_RANLIB
45589 if test -n "$RANLIB"; then
45590   echo "$as_me:$LINENO: result: $RANLIB" >&5
45591 echo "${ECHO_T}$RANLIB" >&6
45592 else
45593   echo "$as_me:$LINENO: result: no" >&5
45594 echo "${ECHO_T}no" >&6
45595 fi
45596
45597 fi
45598 if test -z "$ac_cv_prog_RANLIB"; then
45599   ac_ct_RANLIB=$RANLIB
45600   # Extract the first word of "ranlib", so it can be a program name with args.
45601 set dummy ranlib; ac_word=$2
45602 echo "$as_me:$LINENO: checking for $ac_word" >&5
45603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45604 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45605   echo $ECHO_N "(cached) $ECHO_C" >&6
45606 else
45607   if test -n "$ac_ct_RANLIB"; then
45608   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45609 else
45610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45611 for as_dir in $PATH
45612 do
45613   IFS=$as_save_IFS
45614   test -z "$as_dir" && as_dir=.
45615   for ac_exec_ext in '' $ac_executable_extensions; do
45616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45617     ac_cv_prog_ac_ct_RANLIB="ranlib"
45618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45619     break 2
45620   fi
45621 done
45622 done
45623
45624   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45625 fi
45626 fi
45627 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45628 if test -n "$ac_ct_RANLIB"; then
45629   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45630 echo "${ECHO_T}$ac_ct_RANLIB" >&6
45631 else
45632   echo "$as_me:$LINENO: result: no" >&5
45633 echo "${ECHO_T}no" >&6
45634 fi
45635
45636   RANLIB=$ac_ct_RANLIB
45637 else
45638   RANLIB="$ac_cv_prog_RANLIB"
45639 fi
45640
45641     # Find a good install program.  We prefer a C program (faster),
45642 # so one script is as good as another.  But avoid the broken or
45643 # incompatible versions:
45644 # SysV /etc/install, /usr/sbin/install
45645 # SunOS /usr/etc/install
45646 # IRIX /sbin/install
45647 # AIX /bin/install
45648 # AmigaOS /C/install, which installs bootblocks on floppy discs
45649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
45651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
45652 # OS/2's system install, which has a completely different semantic
45653 # ./install, which can be erroneously created by make from ./install.sh.
45654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45656 if test -z "$INSTALL"; then
45657 if test "${ac_cv_path_install+set}" = set; then
45658   echo $ECHO_N "(cached) $ECHO_C" >&6
45659 else
45660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45661 for as_dir in $PATH
45662 do
45663   IFS=$as_save_IFS
45664   test -z "$as_dir" && as_dir=.
45665   # Account for people who put trailing slashes in PATH elements.
45666 case $as_dir/ in
45667   ./ | .// | /cC/* | \
45668   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
45669   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
45670   /usr/ucb/* ) ;;
45671   *)
45672     # OSF1 and SCO ODT 3.0 have their own names for install.
45673     # Don't use installbsd from OSF since it installs stuff as root
45674     # by default.
45675     for ac_prog in ginstall scoinst install; do
45676       for ac_exec_ext in '' $ac_executable_extensions; do
45677         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45678           if test $ac_prog = install &&
45679             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45680             # AIX install.  It has an incompatible calling convention.
45681             :
45682           elif test $ac_prog = install &&
45683             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45684             # program-specific install script used by HP pwplus--don't use.
45685             :
45686           else
45687             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45688             break 3
45689           fi
45690         fi
45691       done
45692     done
45693     ;;
45694 esac
45695 done
45696
45697
45698 fi
45699   if test "${ac_cv_path_install+set}" = set; then
45700     INSTALL=$ac_cv_path_install
45701   else
45702     # As a last resort, use the slow shell script.  We don't cache a
45703     # path for INSTALL within a source directory, because that will
45704     # break other packages using the cache if that directory is
45705     # removed, or if the path is relative.
45706     INSTALL=$ac_install_sh
45707   fi
45708 fi
45709 echo "$as_me:$LINENO: result: $INSTALL" >&5
45710 echo "${ECHO_T}$INSTALL" >&6
45711
45712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45713 # It thinks the first close brace ends the variable substitution.
45714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45715
45716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45717
45718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45719
45720     echo "$as_me:$LINENO: checking whether ln -s works" >&5
45721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45722 LN_S=$as_ln_s
45723 if test "$LN_S" = "ln -s"; then
45724   echo "$as_me:$LINENO: result: yes" >&5
45725 echo "${ECHO_T}yes" >&6
45726 else
45727   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45728 echo "${ECHO_T}no, using $LN_S" >&6
45729 fi
45730
45731
45732     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
45734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
45735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45736   echo $ECHO_N "(cached) $ECHO_C" >&6
45737 else
45738   cat >conftest.make <<\_ACEOF
45739 all:
45740         @echo 'ac_maketemp="$(MAKE)"'
45741 _ACEOF
45742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45744 if test -n "$ac_maketemp"; then
45745   eval ac_cv_prog_make_${ac_make}_set=yes
45746 else
45747   eval ac_cv_prog_make_${ac_make}_set=no
45748 fi
45749 rm -f conftest.make
45750 fi
45751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45752   echo "$as_me:$LINENO: result: yes" >&5
45753 echo "${ECHO_T}yes" >&6
45754   SET_MAKE=
45755 else
45756   echo "$as_me:$LINENO: result: no" >&5
45757 echo "${ECHO_T}no" >&6
45758   SET_MAKE="MAKE=${MAKE-make}"
45759 fi
45760
45761
45762
45763     if test -n "$ac_tool_prefix"; then
45764   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45765 set dummy ${ac_tool_prefix}ar; ac_word=$2
45766 echo "$as_me:$LINENO: checking for $ac_word" >&5
45767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45768 if test "${ac_cv_prog_AR+set}" = set; then
45769   echo $ECHO_N "(cached) $ECHO_C" >&6
45770 else
45771   if test -n "$AR"; then
45772   ac_cv_prog_AR="$AR" # Let the user override the test.
45773 else
45774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45775 for as_dir in $PATH
45776 do
45777   IFS=$as_save_IFS
45778   test -z "$as_dir" && as_dir=.
45779   for ac_exec_ext in '' $ac_executable_extensions; do
45780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45781     ac_cv_prog_AR="${ac_tool_prefix}ar"
45782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45783     break 2
45784   fi
45785 done
45786 done
45787
45788 fi
45789 fi
45790 AR=$ac_cv_prog_AR
45791 if test -n "$AR"; then
45792   echo "$as_me:$LINENO: result: $AR" >&5
45793 echo "${ECHO_T}$AR" >&6
45794 else
45795   echo "$as_me:$LINENO: result: no" >&5
45796 echo "${ECHO_T}no" >&6
45797 fi
45798
45799 fi
45800 if test -z "$ac_cv_prog_AR"; then
45801   ac_ct_AR=$AR
45802   # Extract the first word of "ar", so it can be a program name with args.
45803 set dummy ar; ac_word=$2
45804 echo "$as_me:$LINENO: checking for $ac_word" >&5
45805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45807   echo $ECHO_N "(cached) $ECHO_C" >&6
45808 else
45809   if test -n "$ac_ct_AR"; then
45810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45811 else
45812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45813 for as_dir in $PATH
45814 do
45815   IFS=$as_save_IFS
45816   test -z "$as_dir" && as_dir=.
45817   for ac_exec_ext in '' $ac_executable_extensions; do
45818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45819     ac_cv_prog_ac_ct_AR="ar"
45820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45821     break 2
45822   fi
45823 done
45824 done
45825
45826   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45827 fi
45828 fi
45829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
45830 if test -n "$ac_ct_AR"; then
45831   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45832 echo "${ECHO_T}$ac_ct_AR" >&6
45833 else
45834   echo "$as_me:$LINENO: result: no" >&5
45835 echo "${ECHO_T}no" >&6
45836 fi
45837
45838   AR=$ac_ct_AR
45839 else
45840   AR="$ac_cv_prog_AR"
45841 fi
45842
45843     if test -n "$ac_tool_prefix"; then
45844   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45845 set dummy ${ac_tool_prefix}strip; ac_word=$2
45846 echo "$as_me:$LINENO: checking for $ac_word" >&5
45847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45848 if test "${ac_cv_prog_STRIP+set}" = set; then
45849   echo $ECHO_N "(cached) $ECHO_C" >&6
45850 else
45851   if test -n "$STRIP"; then
45852   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45853 else
45854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45855 for as_dir in $PATH
45856 do
45857   IFS=$as_save_IFS
45858   test -z "$as_dir" && as_dir=.
45859   for ac_exec_ext in '' $ac_executable_extensions; do
45860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45861     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45863     break 2
45864   fi
45865 done
45866 done
45867
45868 fi
45869 fi
45870 STRIP=$ac_cv_prog_STRIP
45871 if test -n "$STRIP"; then
45872   echo "$as_me:$LINENO: result: $STRIP" >&5
45873 echo "${ECHO_T}$STRIP" >&6
45874 else
45875   echo "$as_me:$LINENO: result: no" >&5
45876 echo "${ECHO_T}no" >&6
45877 fi
45878
45879 fi
45880 if test -z "$ac_cv_prog_STRIP"; then
45881   ac_ct_STRIP=$STRIP
45882   # Extract the first word of "strip", so it can be a program name with args.
45883 set dummy strip; ac_word=$2
45884 echo "$as_me:$LINENO: checking for $ac_word" >&5
45885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45887   echo $ECHO_N "(cached) $ECHO_C" >&6
45888 else
45889   if test -n "$ac_ct_STRIP"; then
45890   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45891 else
45892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45893 for as_dir in $PATH
45894 do
45895   IFS=$as_save_IFS
45896   test -z "$as_dir" && as_dir=.
45897   for ac_exec_ext in '' $ac_executable_extensions; do
45898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45899     ac_cv_prog_ac_ct_STRIP="strip"
45900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45901     break 2
45902   fi
45903 done
45904 done
45905
45906   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45907 fi
45908 fi
45909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45910 if test -n "$ac_ct_STRIP"; then
45911   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45912 echo "${ECHO_T}$ac_ct_STRIP" >&6
45913 else
45914   echo "$as_me:$LINENO: result: no" >&5
45915 echo "${ECHO_T}no" >&6
45916 fi
45917
45918   STRIP=$ac_ct_STRIP
45919 else
45920   STRIP="$ac_cv_prog_STRIP"
45921 fi
45922
45923     if test -n "$ac_tool_prefix"; then
45924   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45925 set dummy ${ac_tool_prefix}nm; ac_word=$2
45926 echo "$as_me:$LINENO: checking for $ac_word" >&5
45927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45928 if test "${ac_cv_prog_NM+set}" = set; then
45929   echo $ECHO_N "(cached) $ECHO_C" >&6
45930 else
45931   if test -n "$NM"; then
45932   ac_cv_prog_NM="$NM" # Let the user override the test.
45933 else
45934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45935 for as_dir in $PATH
45936 do
45937   IFS=$as_save_IFS
45938   test -z "$as_dir" && as_dir=.
45939   for ac_exec_ext in '' $ac_executable_extensions; do
45940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45941     ac_cv_prog_NM="${ac_tool_prefix}nm"
45942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45943     break 2
45944   fi
45945 done
45946 done
45947
45948 fi
45949 fi
45950 NM=$ac_cv_prog_NM
45951 if test -n "$NM"; then
45952   echo "$as_me:$LINENO: result: $NM" >&5
45953 echo "${ECHO_T}$NM" >&6
45954 else
45955   echo "$as_me:$LINENO: result: no" >&5
45956 echo "${ECHO_T}no" >&6
45957 fi
45958
45959 fi
45960 if test -z "$ac_cv_prog_NM"; then
45961   ac_ct_NM=$NM
45962   # Extract the first word of "nm", so it can be a program name with args.
45963 set dummy nm; ac_word=$2
45964 echo "$as_me:$LINENO: checking for $ac_word" >&5
45965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45966 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45967   echo $ECHO_N "(cached) $ECHO_C" >&6
45968 else
45969   if test -n "$ac_ct_NM"; then
45970   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45971 else
45972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45973 for as_dir in $PATH
45974 do
45975   IFS=$as_save_IFS
45976   test -z "$as_dir" && as_dir=.
45977   for ac_exec_ext in '' $ac_executable_extensions; do
45978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45979     ac_cv_prog_ac_ct_NM="nm"
45980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45981     break 2
45982   fi
45983 done
45984 done
45985
45986   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45987 fi
45988 fi
45989 ac_ct_NM=$ac_cv_prog_ac_ct_NM
45990 if test -n "$ac_ct_NM"; then
45991   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45992 echo "${ECHO_T}$ac_ct_NM" >&6
45993 else
45994   echo "$as_me:$LINENO: result: no" >&5
45995 echo "${ECHO_T}no" >&6
45996 fi
45997
45998   NM=$ac_ct_NM
45999 else
46000   NM="$ac_cv_prog_NM"
46001 fi
46002
46003
46004     case ${BAKEFILE_HOST} in
46005         *-hp-hpux* )
46006                                     INSTALL_DIR="mkdir -p"
46007             ;;
46008         *)  INSTALL_DIR="$INSTALL -d"
46009             ;;
46010     esac
46011
46012
46013     LDFLAGS_GUI=
46014     case ${BAKEFILE_HOST} in
46015         *-*-cygwin* | *-*-mingw32* )
46016         LDFLAGS_GUI="-mwindows"
46017     esac
46018
46019
46020     fi
46021
46022         echo "$as_me:$LINENO: checking if make is GNU make" >&5
46023 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46024 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46025   echo $ECHO_N "(cached) $ECHO_C" >&6
46026 else
46027
46028         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46029                 egrep -s GNU > /dev/null); then
46030             bakefile_cv_prog_makeisgnu="yes"
46031         else
46032             bakefile_cv_prog_makeisgnu="no"
46033         fi
46034
46035 fi
46036 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46037 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46038
46039     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46040         IF_GNU_MAKE=""
46041     else
46042         IF_GNU_MAKE="#"
46043     fi
46044
46045
46046
46047     PLATFORM_UNIX=0
46048     PLATFORM_WIN32=0
46049     PLATFORM_MSDOS=0
46050     PLATFORM_MAC=0
46051     PLATFORM_MACOS=0
46052     PLATFORM_MACOSX=0
46053     PLATFORM_OS2=0
46054     PLATFORM_BEOS=0
46055
46056     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46057         case "${BAKEFILE_HOST}" in
46058             *-*-mingw32* )
46059                 PLATFORM_WIN32=1
46060             ;;
46061             *-pc-msdosdjgpp )
46062                 PLATFORM_MSDOS=1
46063             ;;
46064             *-pc-os2_emx | *-pc-os2-emx )
46065                 PLATFORM_OS2=1
46066             ;;
46067             *-*-darwin* )
46068                 PLATFORM_MAC=1
46069                 PLATFORM_MACOSX=1
46070             ;;
46071             *-*-beos* )
46072                 PLATFORM_BEOS=1
46073             ;;
46074             powerpc-apple-macos* )
46075                 PLATFORM_MAC=1
46076                 PLATFORM_MACOS=1
46077             ;;
46078             * )
46079                 PLATFORM_UNIX=1
46080             ;;
46081         esac
46082     else
46083         case "$BAKEFILE_FORCE_PLATFORM" in
46084             win32 )
46085                 PLATFORM_WIN32=1
46086             ;;
46087             msdos )
46088                 PLATFORM_MSDOS=1
46089             ;;
46090             os2 )
46091                 PLATFORM_OS2=1
46092             ;;
46093             darwin )
46094                 PLATFORM_MAC=1
46095                 PLATFORM_MACOSX=1
46096             ;;
46097             unix )
46098                 PLATFORM_UNIX=1
46099             ;;
46100             beos )
46101                 PLATFORM_BEOS=1
46102             ;;
46103             * )
46104                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46105 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46106    { (exit 1); exit 1; }; }
46107             ;;
46108         esac
46109     fi
46110
46111
46112
46113
46114
46115
46116
46117
46118
46119
46120
46121     # Check whether --enable-omf or --disable-omf was given.
46122 if test "${enable_omf+set}" = set; then
46123   enableval="$enable_omf"
46124   bk_os2_use_omf="$enableval"
46125 fi;
46126
46127     case "${BAKEFILE_HOST}" in
46128       *-*-darwin* )
46129                         if test "x$GCC" = "xyes"; then
46130             CFLAGS="$CFLAGS -fno-common"
46131             CXXFLAGS="$CXXFLAGS -fno-common"
46132         fi
46133         if test "x$XLCC" = "xyes"; then
46134             CFLAGS="$CFLAGS -qnocommon"
46135             CXXFLAGS="$CXXFLAGS -qnocommon"
46136         fi
46137         ;;
46138
46139       *-pc-os2_emx | *-pc-os2-emx )
46140         if test "x$bk_os2_use_omf" = "xyes" ; then
46141             AR=emxomfar
46142             RANLIB=:
46143             LDFLAGS="-Zomf $LDFLAGS"
46144             CFLAGS="-Zomf $CFLAGS"
46145             CXXFLAGS="-Zomf $CXXFLAGS"
46146             OS2_LIBEXT="lib"
46147         else
46148             OS2_LIBEXT="a"
46149         fi
46150         ;;
46151
46152       i*86-*-beos* )
46153         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46154         ;;
46155     esac
46156
46157
46158     SO_SUFFIX="so"
46159     SO_SUFFIX_MODULE="so"
46160     EXEEXT=""
46161     LIBPREFIX="lib"
46162     LIBEXT=".a"
46163     DLLPREFIX="lib"
46164     DLLPREFIX_MODULE=""
46165     DLLIMP_SUFFIX=""
46166     dlldir="$libdir"
46167
46168     case "${BAKEFILE_HOST}" in
46169         *-hp-hpux* )
46170             SO_SUFFIX="sl"
46171             SO_SUFFIX_MODULE="sl"
46172         ;;
46173         *-*-aix* )
46174                                                                         SO_SUFFIX="a"
46175             SO_SUFFIX_MODULE="a"
46176         ;;
46177         *-*-cygwin* )
46178             SO_SUFFIX="dll"
46179             SO_SUFFIX_MODULE="dll"
46180             DLLIMP_SUFFIX="dll.a"
46181             EXEEXT=".exe"
46182             DLLPREFIX="cyg"
46183             dlldir="$bindir"
46184         ;;
46185         *-*-mingw32* )
46186             SO_SUFFIX="dll"
46187             SO_SUFFIX_MODULE="dll"
46188             DLLIMP_SUFFIX="dll.a"
46189             EXEEXT=".exe"
46190             DLLPREFIX=""
46191             dlldir="$bindir"
46192         ;;
46193         *-pc-msdosdjgpp )
46194             EXEEXT=".exe"
46195             DLLPREFIX=""
46196             dlldir="$bindir"
46197         ;;
46198         *-pc-os2_emx | *-pc-os2-emx )
46199             SO_SUFFIX="dll"
46200             SO_SUFFIX_MODULE="dll"
46201             DLLIMP_SUFFIX=$OS2_LIBEXT
46202             EXEEXT=".exe"
46203             DLLPREFIX=""
46204             LIBPREFIX=""
46205             LIBEXT=".$OS2_LIBEXT"
46206             dlldir="$bindir"
46207         ;;
46208         *-*-darwin* )
46209             SO_SUFFIX="dylib"
46210             SO_SUFFIX_MODULE="bundle"
46211         ;;
46212     esac
46213
46214     if test "x$DLLIMP_SUFFIX" = "x" ; then
46215         DLLIMP_SUFFIX="$SO_SUFFIX"
46216     fi
46217
46218
46219
46220
46221
46222
46223
46224
46225
46226
46227
46228
46229         PIC_FLAG=""
46230     if test "x$GCC" = "xyes"; then
46231                 PIC_FLAG="-fPIC"
46232     fi
46233
46234         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46235     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
46236     WINDOWS_IMPLIB=0
46237
46238     case "${BAKEFILE_HOST}" in
46239       *-hp-hpux* )
46240                 if test "x$GCC" != "xyes"; then
46241                         LDFLAGS="$LDFLAGS -L/usr/lib"
46242
46243             SHARED_LD_CC="${CC} -b -o"
46244             SHARED_LD_CXX="${CXX} -b -o"
46245             PIC_FLAG="+Z"
46246         fi
46247       ;;
46248
46249       *-*-linux* )
46250         if test "x$GCC" != "xyes"; then
46251             echo "$as_me:$LINENO: checking for Intel compiler" >&5
46252 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46253 if test "${bakefile_cv_prog_icc+set}" = set; then
46254   echo $ECHO_N "(cached) $ECHO_C" >&6
46255 else
46256
46257                 cat >conftest.$ac_ext <<_ACEOF
46258 /* confdefs.h.  */
46259 _ACEOF
46260 cat confdefs.h >>conftest.$ac_ext
46261 cat >>conftest.$ac_ext <<_ACEOF
46262 /* end confdefs.h.  */
46263
46264 int
46265 main ()
46266 {
46267
46268                         #ifndef __INTEL_COMPILER
46269                         This is not ICC
46270                         #endif
46271
46272   ;
46273   return 0;
46274 }
46275 _ACEOF
46276 rm -f conftest.$ac_objext
46277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46278   (eval $ac_compile) 2>conftest.er1
46279   ac_status=$?
46280   grep -v '^ *+' conftest.er1 >conftest.err
46281   rm -f conftest.er1
46282   cat conftest.err >&5
46283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46284   (exit $ac_status); } &&
46285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46287   (eval $ac_try) 2>&5
46288   ac_status=$?
46289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46290   (exit $ac_status); }; } &&
46291          { ac_try='test -s conftest.$ac_objext'
46292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46293   (eval $ac_try) 2>&5
46294   ac_status=$?
46295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46296   (exit $ac_status); }; }; then
46297   bakefile_cv_prog_icc=yes
46298 else
46299   echo "$as_me: failed program was:" >&5
46300 sed 's/^/| /' conftest.$ac_ext >&5
46301
46302 bakefile_cv_prog_icc=no
46303
46304 fi
46305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46306
46307 fi
46308 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46309 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46310             if test "$bakefile_cv_prog_icc" = "yes"; then
46311                 PIC_FLAG="-KPIC"
46312             fi
46313         fi
46314       ;;
46315
46316       *-*-solaris2* )
46317         if test "x$GCC" != xyes ; then
46318             SHARED_LD_CC="${CC} -G -o"
46319             SHARED_LD_CXX="${CXX} -G -o"
46320             PIC_FLAG="-KPIC"
46321         fi
46322       ;;
46323
46324       *-*-darwin* )
46325
46326 D='$'
46327 cat <<EOF >shared-ld-sh
46328 #!/bin/sh
46329 #-----------------------------------------------------------------------------
46330 #-- Name:        distrib/mac/shared-ld-sh
46331 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
46332 #-- Author:      Gilles Depeyrot
46333 #-- Copyright:   (c) 2002 Gilles Depeyrot
46334 #-- Licence:     any use permitted
46335 #-----------------------------------------------------------------------------
46336
46337 verbose=0
46338 args=""
46339 objects=""
46340 linking_flag="-dynamiclib"
46341 ldargs="-r -keep_private_externs -nostdlib"
46342
46343 while test ${D}# -gt 0; do
46344     case ${D}1 in
46345
46346        -v)
46347         verbose=1
46348         ;;
46349
46350        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46351         # collect these options and values
46352         args="${D}{args} ${D}1 ${D}2"
46353         shift
46354         ;;
46355
46356        -s|-Wl,*)
46357         # collect these load args
46358         ldargs="${D}{ldargs} ${D}1"
46359         ;;
46360
46361        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
46362         # collect these options
46363         args="${D}{args} ${D}1"
46364         ;;
46365
46366        -dynamiclib|-bundle)
46367         linking_flag="${D}1"
46368         ;;
46369
46370        -*)
46371         echo "shared-ld: unhandled option '${D}1'"
46372         exit 1
46373         ;;
46374
46375         *.o | *.a | *.dylib)
46376         # collect object files
46377         objects="${D}{objects} ${D}1"
46378         ;;
46379
46380         *)
46381         echo "shared-ld: unhandled argument '${D}1'"
46382         exit 1
46383         ;;
46384
46385     esac
46386     shift
46387 done
46388
46389 status=0
46390
46391 #
46392 # Link one module containing all the others
46393 #
46394 if test ${D}{verbose} = 1; then
46395     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
46396 fi
46397 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
46398 status=${D}?
46399
46400 #
46401 # Link the shared library from the single module created, but only if the
46402 # previous command didn't fail:
46403 #
46404 if test ${D}{status} = 0; then
46405     if test ${D}{verbose} = 1; then
46406         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46407     fi
46408     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46409     status=${D}?
46410 fi
46411
46412 #
46413 # Remove intermediate module
46414 #
46415 rm -f master.${D}${D}.o
46416
46417 exit ${D}status
46418 EOF
46419
46420         chmod +x shared-ld-sh
46421
46422         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46423         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46424
46425
46426                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46427 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46428 if test "${bakefile_cv_gcc31+set}" = set; then
46429   echo $ECHO_N "(cached) $ECHO_C" >&6
46430 else
46431
46432            cat >conftest.$ac_ext <<_ACEOF
46433 /* confdefs.h.  */
46434 _ACEOF
46435 cat confdefs.h >>conftest.$ac_ext
46436 cat >>conftest.$ac_ext <<_ACEOF
46437 /* end confdefs.h.  */
46438
46439 int
46440 main ()
46441 {
46442
46443                    #if (__GNUC__ < 3) || \
46444                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46445                        This is old gcc
46446                    #endif
46447
46448   ;
46449   return 0;
46450 }
46451 _ACEOF
46452 rm -f conftest.$ac_objext
46453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46454   (eval $ac_compile) 2>conftest.er1
46455   ac_status=$?
46456   grep -v '^ *+' conftest.er1 >conftest.err
46457   rm -f conftest.er1
46458   cat conftest.err >&5
46459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460   (exit $ac_status); } &&
46461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46463   (eval $ac_try) 2>&5
46464   ac_status=$?
46465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46466   (exit $ac_status); }; } &&
46467          { ac_try='test -s conftest.$ac_objext'
46468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46469   (eval $ac_try) 2>&5
46470   ac_status=$?
46471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46472   (exit $ac_status); }; }; then
46473
46474                    bakefile_cv_gcc31=yes
46475
46476 else
46477   echo "$as_me: failed program was:" >&5
46478 sed 's/^/| /' conftest.$ac_ext >&5
46479
46480
46481                    bakefile_cv_gcc31=no
46482
46483
46484 fi
46485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46486
46487 fi
46488 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46489 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46490         if test "$bakefile_cv_gcc31" = "no"; then
46491                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
46492             SHARED_LD_CXX="$SHARED_LD_CC"
46493         else
46494                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
46495             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
46496         fi
46497
46498         if test "x$GCC" == "xyes"; then
46499             PIC_FLAG="-dynamic -fPIC"
46500         fi
46501         if test "x$XLCC" = "xyes"; then
46502             PIC_FLAG="-dynamic -DPIC"
46503         fi
46504       ;;
46505
46506       *-*-aix* )
46507         if test "x$GCC" = "xyes"; then
46508                                                             PIC_FLAG=""
46509
46510                                                                                     case "${BAKEFILE_HOST}" in
46511                 *-*-aix5* )
46512                     LD_EXPFULL="-Wl,-bexpfull"
46513                     ;;
46514             esac
46515
46516             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46517             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46518         else
46519                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
46520 set dummy makeC++SharedLib; ac_word=$2
46521 echo "$as_me:$LINENO: checking for $ac_word" >&5
46522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46523 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46524   echo $ECHO_N "(cached) $ECHO_C" >&6
46525 else
46526   if test -n "$AIX_CXX_LD"; then
46527   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46528 else
46529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46530 for as_dir in $PATH
46531 do
46532   IFS=$as_save_IFS
46533   test -z "$as_dir" && as_dir=.
46534   for ac_exec_ext in '' $ac_executable_extensions; do
46535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46536     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46538     break 2
46539   fi
46540 done
46541 done
46542
46543   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46544 fi
46545 fi
46546 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46547 if test -n "$AIX_CXX_LD"; then
46548   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46549 echo "${ECHO_T}$AIX_CXX_LD" >&6
46550 else
46551   echo "$as_me:$LINENO: result: no" >&5
46552 echo "${ECHO_T}no" >&6
46553 fi
46554
46555             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
46556             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46557         fi
46558       ;;
46559
46560       *-*-beos* )
46561                         SHARED_LD_CC="${LD} -nostart -o"
46562         SHARED_LD_CXX="${LD} -nostart -o"
46563       ;;
46564
46565       *-*-irix* )
46566                 if test "x$GCC" != "xyes"; then
46567             PIC_FLAG="-KPIC"
46568         fi
46569       ;;
46570
46571       *-*-cygwin* | *-*-mingw32* )
46572         PIC_FLAG=""
46573         SHARED_LD_CC="\$(CC) -shared -o"
46574         SHARED_LD_CXX="\$(CXX) -shared -o"
46575         WINDOWS_IMPLIB=1
46576       ;;
46577
46578       *-pc-os2_emx | *-pc-os2-emx )
46579         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46580         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46581         PIC_FLAG=""
46582
46583 D='$'
46584 cat <<EOF >dllar.sh
46585 #!/bin/sh
46586 #
46587 # dllar - a tool to build both a .dll and an .a file
46588 # from a set of object (.o) files for EMX/OS2.
46589 #
46590 #  Written by Andrew Zabolotny, bit@freya.etu.ru
46591 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46592 #
46593 #  This script will accept a set of files on the command line.
46594 #  All the public symbols from the .o files will be exported into
46595 #  a .DEF file, then linker will be run (through gcc) against them to
46596 #  build a shared library consisting of all given .o files. All libraries
46597 #  (.a) will be first decompressed into component .o files then act as
46598 #  described above. You can optionally give a description (-d "description")
46599 #  which will be put into .DLL. To see the list of accepted options (as well
46600 #  as command-line format) simply run this program without options. The .DLL
46601 #  is built to be imported by name (there is no guarantee that new versions
46602 #  of the library you build will have same ordinals for same symbols).
46603 #
46604 #  dllar is free software; you can redistribute it and/or modify
46605 #  it under the terms of the GNU General Public License as published by
46606 #  the Free Software Foundation; either version 2, or (at your option)
46607 #  any later version.
46608 #
46609 #  dllar is distributed in the hope that it will be useful,
46610 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
46611 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46612 #  GNU General Public License for more details.
46613 #
46614 #  You should have received a copy of the GNU General Public License
46615 #  along with dllar; see the file COPYING.  If not, write to the Free
46616 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46617 #  02111-1307, USA.
46618
46619 # To successfuly run this program you will need:
46620 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
46621 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46622 #  - gcc
46623 #    (used to build the .dll)
46624 #  - emxexp
46625 #    (used to create .def file from .o files)
46626 #  - emximp
46627 #    (used to create .a file from .def file)
46628 #  - GNU text utilites (cat, sort, uniq)
46629 #    used to process emxexp output
46630 #  - GNU file utilities (mv, rm)
46631 #  - GNU sed
46632 #  - lxlite (optional, see flag below)
46633 #    (used for general .dll cleanup)
46634 #
46635
46636 flag_USE_LXLITE=1;
46637
46638 #
46639 # helper functions
46640 # basnam, variant of basename, which does _not_ remove the path, _iff_
46641 #                              second argument (suffix to remove) is given
46642 basnam(){
46643     case ${D}# in
46644     1)
46645         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
46646         ;;
46647     2)
46648         echo ${D}1 | sed 's/'${D}2'${D}//'
46649         ;;
46650     *)
46651         echo "error in basnam ${D}*"
46652         exit 8
46653         ;;
46654     esac
46655 }
46656
46657 # Cleanup temporary files and output
46658 CleanUp() {
46659     cd ${D}curDir
46660     for i in ${D}inputFiles ; do
46661         case ${D}i in
46662         *!)
46663             rm -rf \`basnam ${D}i !\`
46664             ;;
46665         *)
46666             ;;
46667         esac
46668     done
46669
46670     # Kill result in case of failure as there is just to many stupid make/nmake
46671     # things out there which doesn't do this.
46672     if [ ${D}# -eq 0 ]; then
46673         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46674     fi
46675 }
46676
46677 # Print usage and exit script with rc=1.
46678 PrintHelp() {
46679  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46680  echo '       [-name-mangler-script script.sh]'
46681  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46682  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
46683  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
46684  echo '       [*.o] [*.a]'
46685  echo '*> "output_file" should have no extension.'
46686  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
46687  echo '   The import library name is derived from this and is set to "name".a,'
46688  echo '   unless overridden by -import'
46689  echo '*> "importlib_name" should have no extension.'
46690  echo '   If it has the .o, or .a extension, it is automatically removed.'
46691  echo '   This name is used as the import library name and may be longer and'
46692  echo '   more descriptive than the DLL name which has to follow the old '
46693  echo '   8.3 convention of FAT.'
46694  echo '*> "script.sh may be given to override the output_file name by a'
46695  echo '   different name. It is mainly useful if the regular make process'
46696  echo '   of some package does not take into account OS/2 restriction of'
46697  echo '   DLL name lengths. It takes the importlib name as input and is'
46698  echo '   supposed to procude a shorter name as output. The script should'
46699  echo '   expect to get importlib_name without extension and should produce'
46700  echo '   a (max.) 8 letter name without extension.'
46701  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
46702  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46703  echo '   These flags will be put at the start of GCC command line.'
46704  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46705  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
46706  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46707  echo '   If the last character of a symbol is "*", all symbols beginning'
46708  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
46709  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
46710  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
46711  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
46712  echo '   C runtime DLLs.'
46713  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
46714  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46715  echo '   unchanged to GCC at the end of command line.'
46716  echo '*> If you create a DLL from a library and you do not specify -o,'
46717  echo '   the basename for DLL and import library will be set to library name,'
46718  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
46719  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46720  echo '   library will be renamed into gcc_s.a.'
46721  echo '--------'
46722  echo 'Example:'
46723  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46724  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46725  CleanUp
46726  exit 1
46727 }
46728
46729 # Execute a command.
46730 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46731 # @Uses    Whatever CleanUp() uses.
46732 doCommand() {
46733     echo "${D}*"
46734     eval ${D}*
46735     rcCmd=${D}?
46736
46737     if [ ${D}rcCmd -ne 0 ]; then
46738         echo "command failed, exit code="${D}rcCmd
46739         CleanUp
46740         exit ${D}rcCmd
46741     fi
46742 }
46743
46744 # main routine
46745 # setup globals
46746 cmdLine=${D}*
46747 outFile=""
46748 outimpFile=""
46749 inputFiles=""
46750 renameScript=""
46751 description=""
46752 CC=gcc.exe
46753 CFLAGS="-s -Zcrtdll"
46754 EXTRA_CFLAGS=""
46755 EXPORT_BY_ORDINALS=0
46756 exclude_symbols=""
46757 library_flags=""
46758 curDir=\`pwd\`
46759 curDirS=curDir
46760 case ${D}curDirS in
46761 */)
46762   ;;
46763 *)
46764   curDirS=${D}{curDirS}"/"
46765   ;;
46766 esac
46767 # Parse commandline
46768 libsToLink=0
46769 omfLinking=0
46770 while [ ${D}1 ]; do
46771     case ${D}1 in
46772     -ord*)
46773         EXPORT_BY_ORDINALS=1;
46774         ;;
46775     -o*)
46776         shift
46777         outFile=${D}1
46778         ;;
46779     -i*)
46780         shift
46781         outimpFile=${D}1
46782         ;;
46783     -name-mangler-script)
46784         shift
46785         renameScript=${D}1
46786         ;;
46787     -d*)
46788         shift
46789         description=${D}1
46790         ;;
46791     -f*)
46792         shift
46793         CFLAGS=${D}1
46794         ;;
46795     -c*)
46796         shift
46797         CC=${D}1
46798         ;;
46799     -h*)
46800         PrintHelp
46801         ;;
46802     -ex*)
46803         shift
46804         exclude_symbols=${D}{exclude_symbols}${D}1" "
46805         ;;
46806     -libf*)
46807         shift
46808         library_flags=${D}{library_flags}${D}1" "
46809         ;;
46810     -nocrt*)
46811         CFLAGS="-s"
46812         ;;
46813     -nolxl*)
46814         flag_USE_LXLITE=0
46815         ;;
46816     -* | /*)
46817         case ${D}1 in
46818         -L* | -l*)
46819             libsToLink=1
46820             ;;
46821         -Zomf)
46822             omfLinking=1
46823             ;;
46824         *)
46825             ;;
46826         esac
46827         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46828         ;;
46829     *.dll)
46830         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46831         if [ ${D}omfLinking -eq 1 ]; then
46832             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46833         else
46834             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46835         fi
46836         ;;
46837     *)
46838         found=0;
46839         if [ ${D}libsToLink -ne 0 ]; then
46840             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46841         else
46842             for file in ${D}1 ; do
46843                 if [ -f ${D}file ]; then
46844                     inputFiles="${D}{inputFiles} ${D}file"
46845                     found=1
46846                 fi
46847             done
46848             if [ ${D}found -eq 0 ]; then
46849                 echo "ERROR: No file(s) found: "${D}1
46850                 exit 8
46851             fi
46852         fi
46853       ;;
46854     esac
46855     shift
46856 done # iterate cmdline words
46857
46858 #
46859 if [ -z "${D}inputFiles" ]; then
46860     echo "dllar: no input files"
46861     PrintHelp
46862 fi
46863
46864 # Now extract all .o files from .a files
46865 newInputFiles=""
46866 for file in ${D}inputFiles ; do
46867     case ${D}file in
46868     *.a | *.lib)
46869         case ${D}file in
46870         *.a)
46871             suffix=".a"
46872             AR="ar"
46873             ;;
46874         *.lib)
46875             suffix=".lib"
46876             AR="emxomfar"
46877             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46878             ;;
46879         *)
46880             ;;
46881         esac
46882         dirname=\`basnam ${D}file ${D}suffix\`"_%"
46883         mkdir ${D}dirname
46884         if [ ${D}? -ne 0 ]; then
46885             echo "Failed to create subdirectory ./${D}dirname"
46886             CleanUp
46887             exit 8;
46888         fi
46889         # Append '!' to indicate archive
46890         newInputFiles="${D}newInputFiles ${D}{dirname}!"
46891         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46892         cd ${D}curDir
46893         found=0;
46894         for subfile in ${D}dirname/*.o* ; do
46895             if [ -f ${D}subfile ]; then
46896                 found=1
46897                 if [ -s ${D}subfile ]; then
46898                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46899                     newInputFiles="${D}newInputFiles ${D}subfile"
46900                 fi
46901             fi
46902         done
46903         if [ ${D}found -eq 0 ]; then
46904             echo "WARNING: there are no files in archive \\'${D}file\\'"
46905         fi
46906         ;;
46907     *)
46908         newInputFiles="${D}{newInputFiles} ${D}file"
46909         ;;
46910     esac
46911 done
46912 inputFiles="${D}newInputFiles"
46913
46914 # Output filename(s).
46915 do_backup=0;
46916 if [ -z ${D}outFile ]; then
46917     do_backup=1;
46918     set outFile ${D}inputFiles; outFile=${D}2
46919 fi
46920
46921 # If it is an archive, remove the '!' and the '_%' suffixes
46922 case ${D}outFile in
46923 *_%!)
46924     outFile=\`basnam ${D}outFile _%!\`
46925     ;;
46926 *)
46927     ;;
46928 esac
46929 case ${D}outFile in
46930 *.dll)
46931     outFile=\`basnam ${D}outFile .dll\`
46932     ;;
46933 *.DLL)
46934     outFile=\`basnam ${D}outFile .DLL\`
46935     ;;
46936 *.o)
46937     outFile=\`basnam ${D}outFile .o\`
46938     ;;
46939 *.obj)
46940     outFile=\`basnam ${D}outFile .obj\`
46941     ;;
46942 *.a)
46943     outFile=\`basnam ${D}outFile .a\`
46944     ;;
46945 *.lib)
46946     outFile=\`basnam ${D}outFile .lib\`
46947     ;;
46948 *)
46949     ;;
46950 esac
46951 case ${D}outimpFile in
46952 *.a)
46953     outimpFile=\`basnam ${D}outimpFile .a\`
46954     ;;
46955 *.lib)
46956     outimpFile=\`basnam ${D}outimpFile .lib\`
46957     ;;
46958 *)
46959     ;;
46960 esac
46961 if [ -z ${D}outimpFile ]; then
46962     outimpFile=${D}outFile
46963 fi
46964 defFile="${D}{outFile}.def"
46965 arcFile="${D}{outimpFile}.a"
46966 arcFile2="${D}{outimpFile}.lib"
46967
46968 #create ${D}dllFile as something matching 8.3 restrictions,
46969 if [ -z ${D}renameScript ] ; then
46970     dllFile="${D}outFile"
46971 else
46972     dllFile=\`${D}renameScript ${D}outimpFile\`
46973 fi
46974
46975 if [ ${D}do_backup -ne 0 ] ; then
46976     if [ -f ${D}arcFile ] ; then
46977         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46978     fi
46979     if [ -f ${D}arcFile2 ] ; then
46980         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46981     fi
46982 fi
46983
46984 # Extract public symbols from all the object files.
46985 tmpdefFile=${D}{defFile}_%
46986 rm -f ${D}tmpdefFile
46987 for file in ${D}inputFiles ; do
46988     case ${D}file in
46989     *!)
46990         ;;
46991     *)
46992         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46993         ;;
46994     esac
46995 done
46996
46997 # Create the def file.
46998 rm -f ${D}defFile
46999 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
47000 dllFile="${D}{dllFile}.dll"
47001 if [ ! -z ${D}description ]; then
47002     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
47003 fi
47004 echo "EXPORTS" >> ${D}defFile
47005
47006 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47007 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47008
47009 # Checks if the export is ok or not.
47010 for word in ${D}exclude_symbols; do
47011     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47012     mv ${D}{tmpdefFile}% ${D}tmpdefFile
47013 done
47014
47015
47016 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47017     sed "=" < ${D}tmpdefFile | \\
47018     sed '
47019       N
47020       : loop
47021       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
47022       t loop
47023     ' > ${D}{tmpdefFile}%
47024     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47025 else
47026     rm -f ${D}{tmpdefFile}%
47027 fi
47028 cat ${D}tmpdefFile >> ${D}defFile
47029 rm -f ${D}tmpdefFile
47030
47031 # Do linking, create implib, and apply lxlite.
47032 gccCmdl="";
47033 for file in ${D}inputFiles ; do
47034     case ${D}file in
47035     *!)
47036         ;;
47037     *)
47038         gccCmdl="${D}gccCmdl ${D}file"
47039         ;;
47040     esac
47041 done
47042 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47043 touch "${D}{outFile}.dll"
47044
47045 doCommand "emximp -o ${D}arcFile ${D}defFile"
47046 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
47047     add_flags="";
47048     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47049         add_flags="-ynd"
47050     fi
47051     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47052 fi
47053 doCommand "emxomf -s -l ${D}arcFile"
47054
47055 # Successful exit.
47056 CleanUp 1
47057 exit 0
47058 EOF
47059
47060         chmod +x dllar.sh
47061       ;;
47062
47063       powerpc-apple-macos* | \
47064       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
47065       *-*-mirbsd* | \
47066       *-*-sunos4* | \
47067       *-*-osf* | \
47068       *-*-dgux5* | \
47069       *-*-sysv5* | \
47070       *-pc-msdosdjgpp )
47071               ;;
47072
47073       *)
47074         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47075 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47076    { (exit 1); exit 1; }; }
47077     esac
47078
47079     if test "x$PIC_FLAG" != "x" ; then
47080         PIC_FLAG="$PIC_FLAG -DPIC"
47081     fi
47082
47083     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47084         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47085     fi
47086     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47087         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47088     fi
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098     USE_SOVERSION=0
47099     USE_SOVERLINUX=0
47100     USE_SOVERSOLARIS=0
47101     USE_SOVERCYGWIN=0
47102     USE_SOSYMLINKS=0
47103     USE_MACVERSION=0
47104     SONAME_FLAG=
47105
47106     case "${BAKEFILE_HOST}" in
47107       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
47108         SONAME_FLAG="-Wl,-soname,"
47109         USE_SOVERSION=1
47110         USE_SOVERLINUX=1
47111         USE_SOSYMLINKS=1
47112       ;;
47113
47114       *-*-solaris2* )
47115         SONAME_FLAG="-h "
47116         USE_SOVERSION=1
47117         USE_SOVERSOLARIS=1
47118         USE_SOSYMLINKS=1
47119       ;;
47120
47121       *-*-darwin* )
47122         USE_MACVERSION=1
47123         USE_SOVERSION=1
47124         USE_SOSYMLINKS=1
47125       ;;
47126
47127       *-*-cygwin* )
47128         USE_SOVERSION=1
47129         USE_SOVERCYGWIN=1
47130       ;;
47131     esac
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47143 if test "${enable_dependency_tracking+set}" = set; then
47144   enableval="$enable_dependency_tracking"
47145   bk_use_trackdeps="$enableval"
47146 fi;
47147
47148     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47149 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
47150
47151     if test "x$bk_use_trackdeps" = "xno" ; then
47152         DEPS_TRACKING=0
47153         echo "$as_me:$LINENO: result: disabled" >&5
47154 echo "${ECHO_T}disabled" >&6
47155     else
47156         DEPS_TRACKING=1
47157
47158         if test "x$GCC" = "xyes"; then
47159             DEPSMODE=gcc
47160             case "${BAKEFILE_HOST}" in
47161                 *-*-darwin* )
47162                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47163                 ;;
47164                 * )
47165                     DEPSFLAG="-MMD"
47166                 ;;
47167             esac
47168             echo "$as_me:$LINENO: result: gcc" >&5
47169 echo "${ECHO_T}gcc" >&6
47170         elif test "x$MWCC" = "xyes"; then
47171             DEPSMODE=mwcc
47172             DEPSFLAG="-MM"
47173             echo "$as_me:$LINENO: result: mwcc" >&5
47174 echo "${ECHO_T}mwcc" >&6
47175         elif test "x$SUNCC" = "xyes"; then
47176             DEPSMODE=unixcc
47177             DEPSFLAG="-xM1"
47178             echo "$as_me:$LINENO: result: Sun cc" >&5
47179 echo "${ECHO_T}Sun cc" >&6
47180         elif test "x$SGICC" = "xyes"; then
47181             DEPSMODE=unixcc
47182             DEPSFLAG="-M"
47183             echo "$as_me:$LINENO: result: SGI cc" >&5
47184 echo "${ECHO_T}SGI cc" >&6
47185         elif test "x$HPCC" = "xyes"; then
47186             DEPSMODE=unixcc
47187             DEPSFLAG="+make"
47188             echo "$as_me:$LINENO: result: HP cc" >&5
47189 echo "${ECHO_T}HP cc" >&6
47190         elif test "x$COMPAQCC" = "xyes"; then
47191             DEPSMODE=gcc
47192             DEPSFLAG="-MD"
47193             echo "$as_me:$LINENO: result: Compaq cc" >&5
47194 echo "${ECHO_T}Compaq cc" >&6
47195         else
47196             DEPS_TRACKING=0
47197             echo "$as_me:$LINENO: result: none" >&5
47198 echo "${ECHO_T}none" >&6
47199         fi
47200
47201         if test $DEPS_TRACKING = 1 ; then
47202
47203 D='$'
47204 cat <<EOF >bk-deps
47205 #!/bin/sh
47206
47207 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47208 # script. It is used to track C/C++ files dependencies in portable way.
47209 #
47210 # Permission is given to use this file in any way.
47211
47212 DEPSMODE=${DEPSMODE}
47213 DEPSDIR=.deps
47214 DEPSFLAG="${DEPSFLAG}"
47215
47216 mkdir -p ${D}DEPSDIR
47217
47218 if test ${D}DEPSMODE = gcc ; then
47219     ${D}* ${D}{DEPSFLAG}
47220     status=${D}?
47221     if test ${D}{status} != 0 ; then
47222         exit ${D}{status}
47223     fi
47224     # move created file to the location we want it in:
47225     while test ${D}# -gt 0; do
47226         case "${D}1" in
47227             -o )
47228                 shift
47229                 objfile=${D}1
47230             ;;
47231             -* )
47232             ;;
47233             * )
47234                 srcfile=${D}1
47235             ;;
47236         esac
47237         shift
47238     done
47239     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47240     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
47241     if test -f ${D}depfile ; then
47242         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47243         rm -f ${D}depfile
47244     else
47245         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
47246         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
47247         if test ! -f ${D}depfile ; then
47248             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47249             depfile="${D}objfile.d"
47250         fi
47251         if test -f ${D}depfile ; then
47252             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47253             rm -f ${D}depfile
47254         fi
47255     fi
47256     exit 0
47257 elif test ${D}DEPSMODE = mwcc ; then
47258     ${D}* || exit ${D}?
47259     # Run mwcc again with -MM and redirect into the dep file we want
47260     # NOTE: We can't use shift here because we need ${D}* to be valid
47261     prevarg=
47262     for arg in ${D}* ; do
47263         if test "${D}prevarg" = "-o"; then
47264             objfile=${D}arg
47265         else
47266             case "${D}arg" in
47267                 -* )
47268                 ;;
47269                 * )
47270                     srcfile=${D}arg
47271                 ;;
47272             esac
47273         fi
47274         prevarg="${D}arg"
47275     done
47276     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
47277     exit 0
47278 elif test ${D}DEPSMODE = unixcc; then
47279     ${D}* || exit ${D}?
47280     # Run compiler again with deps flag and redirect into the dep file.
47281     # It doesn't work if the '-o FILE' option is used, but without it the
47282     # dependency file will contain the wrong name for the object. So it is
47283     # removed from the command line, and the dep file is fixed with sed.
47284     cmd=""
47285     while test ${D}# -gt 0; do
47286         case "${D}1" in
47287             -o )
47288                 shift
47289                 objfile=${D}1
47290             ;;
47291             * )
47292                 eval arg${D}#=\\${D}1
47293                 cmd="${D}cmd \\${D}arg${D}#"
47294             ;;
47295         esac
47296         shift
47297     done
47298     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
47299     exit 0
47300 else
47301     ${D}*
47302     exit ${D}?
47303 fi
47304 EOF
47305
47306             chmod +x bk-deps
47307         fi
47308     fi
47309
47310
47311
47312
47313     case ${BAKEFILE_HOST} in
47314         *-*-cygwin* | *-*-mingw32* )
47315                         if test -n "$ac_tool_prefix"; then
47316   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47317 set dummy ${ac_tool_prefix}windres; ac_word=$2
47318 echo "$as_me:$LINENO: checking for $ac_word" >&5
47319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47320 if test "${ac_cv_prog_WINDRES+set}" = set; then
47321   echo $ECHO_N "(cached) $ECHO_C" >&6
47322 else
47323   if test -n "$WINDRES"; then
47324   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47325 else
47326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47327 for as_dir in $PATH
47328 do
47329   IFS=$as_save_IFS
47330   test -z "$as_dir" && as_dir=.
47331   for ac_exec_ext in '' $ac_executable_extensions; do
47332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47333     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47335     break 2
47336   fi
47337 done
47338 done
47339
47340 fi
47341 fi
47342 WINDRES=$ac_cv_prog_WINDRES
47343 if test -n "$WINDRES"; then
47344   echo "$as_me:$LINENO: result: $WINDRES" >&5
47345 echo "${ECHO_T}$WINDRES" >&6
47346 else
47347   echo "$as_me:$LINENO: result: no" >&5
47348 echo "${ECHO_T}no" >&6
47349 fi
47350
47351 fi
47352 if test -z "$ac_cv_prog_WINDRES"; then
47353   ac_ct_WINDRES=$WINDRES
47354   # Extract the first word of "windres", so it can be a program name with args.
47355 set dummy windres; ac_word=$2
47356 echo "$as_me:$LINENO: checking for $ac_word" >&5
47357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47358 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
47359   echo $ECHO_N "(cached) $ECHO_C" >&6
47360 else
47361   if test -n "$ac_ct_WINDRES"; then
47362   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
47363 else
47364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47365 for as_dir in $PATH
47366 do
47367   IFS=$as_save_IFS
47368   test -z "$as_dir" && as_dir=.
47369   for ac_exec_ext in '' $ac_executable_extensions; do
47370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47371     ac_cv_prog_ac_ct_WINDRES="windres"
47372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47373     break 2
47374   fi
47375 done
47376 done
47377
47378 fi
47379 fi
47380 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47381 if test -n "$ac_ct_WINDRES"; then
47382   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47383 echo "${ECHO_T}$ac_ct_WINDRES" >&6
47384 else
47385   echo "$as_me:$LINENO: result: no" >&5
47386 echo "${ECHO_T}no" >&6
47387 fi
47388
47389   WINDRES=$ac_ct_WINDRES
47390 else
47391   WINDRES="$ac_cv_prog_WINDRES"
47392 fi
47393
47394          ;;
47395
47396       *-*-darwin* | powerpc-apple-macos* )
47397             # Extract the first word of "Rez", so it can be a program name with args.
47398 set dummy Rez; ac_word=$2
47399 echo "$as_me:$LINENO: checking for $ac_word" >&5
47400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47401 if test "${ac_cv_prog_REZ+set}" = set; then
47402   echo $ECHO_N "(cached) $ECHO_C" >&6
47403 else
47404   if test -n "$REZ"; then
47405   ac_cv_prog_REZ="$REZ" # Let the user override the test.
47406 else
47407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47408 for as_dir in $PATH
47409 do
47410   IFS=$as_save_IFS
47411   test -z "$as_dir" && as_dir=.
47412   for ac_exec_ext in '' $ac_executable_extensions; do
47413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47414     ac_cv_prog_REZ="Rez"
47415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47416     break 2
47417   fi
47418 done
47419 done
47420
47421   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
47422 fi
47423 fi
47424 REZ=$ac_cv_prog_REZ
47425 if test -n "$REZ"; then
47426   echo "$as_me:$LINENO: result: $REZ" >&5
47427 echo "${ECHO_T}$REZ" >&6
47428 else
47429   echo "$as_me:$LINENO: result: no" >&5
47430 echo "${ECHO_T}no" >&6
47431 fi
47432
47433             # Extract the first word of "SetFile", so it can be a program name with args.
47434 set dummy SetFile; ac_word=$2
47435 echo "$as_me:$LINENO: checking for $ac_word" >&5
47436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47437 if test "${ac_cv_prog_SETFILE+set}" = set; then
47438   echo $ECHO_N "(cached) $ECHO_C" >&6
47439 else
47440   if test -n "$SETFILE"; then
47441   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47442 else
47443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47444 for as_dir in $PATH
47445 do
47446   IFS=$as_save_IFS
47447   test -z "$as_dir" && as_dir=.
47448   for ac_exec_ext in '' $ac_executable_extensions; do
47449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47450     ac_cv_prog_SETFILE="SetFile"
47451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47452     break 2
47453   fi
47454 done
47455 done
47456
47457   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47458 fi
47459 fi
47460 SETFILE=$ac_cv_prog_SETFILE
47461 if test -n "$SETFILE"; then
47462   echo "$as_me:$LINENO: result: $SETFILE" >&5
47463 echo "${ECHO_T}$SETFILE" >&6
47464 else
47465   echo "$as_me:$LINENO: result: no" >&5
47466 echo "${ECHO_T}no" >&6
47467 fi
47468
47469         ;;
47470     esac
47471
47472
47473
47474
47475
47476
47477     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
47478
47479
47480 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
47481
47482
47483
47484     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47485 if test "${enable_precomp_headers+set}" = set; then
47486   enableval="$enable_precomp_headers"
47487   bk_use_pch="$enableval"
47488 fi;
47489
47490     GCC_PCH=0
47491     ICC_PCH=0
47492     USE_PCH=0
47493
47494     case ${BAKEFILE_HOST} in
47495         *-*-cygwin* )
47496                                                 bk_use_pch="no"
47497             ;;
47498     esac
47499
47500     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47501         if test "x$GCC" = "xyes"; then
47502                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47503 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47504             cat >conftest.$ac_ext <<_ACEOF
47505 /* confdefs.h.  */
47506 _ACEOF
47507 cat confdefs.h >>conftest.$ac_ext
47508 cat >>conftest.$ac_ext <<_ACEOF
47509 /* end confdefs.h.  */
47510
47511 int
47512 main ()
47513 {
47514
47515                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47516                         There is no PCH support
47517                     #endif
47518                     #if (__GNUC__ < 3)
47519                         There is no PCH support
47520                     #endif
47521                     #if (__GNUC__ == 3) && \
47522                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47523                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47524                        ( defined(__INTEL_COMPILER) )
47525                         There is no PCH support
47526                     #endif
47527
47528   ;
47529   return 0;
47530 }
47531 _ACEOF
47532 rm -f conftest.$ac_objext
47533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47534   (eval $ac_compile) 2>conftest.er1
47535   ac_status=$?
47536   grep -v '^ *+' conftest.er1 >conftest.err
47537   rm -f conftest.er1
47538   cat conftest.err >&5
47539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540   (exit $ac_status); } &&
47541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47543   (eval $ac_try) 2>&5
47544   ac_status=$?
47545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47546   (exit $ac_status); }; } &&
47547          { ac_try='test -s conftest.$ac_objext'
47548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47549   (eval $ac_try) 2>&5
47550   ac_status=$?
47551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47552   (exit $ac_status); }; }; then
47553
47554                     echo "$as_me:$LINENO: result: yes" >&5
47555 echo "${ECHO_T}yes" >&6
47556                     GCC_PCH=1
47557
47558 else
47559   echo "$as_me: failed program was:" >&5
47560 sed 's/^/| /' conftest.$ac_ext >&5
47561
47562
47563                     cat >conftest.$ac_ext <<_ACEOF
47564 /* confdefs.h.  */
47565 _ACEOF
47566 cat confdefs.h >>conftest.$ac_ext
47567 cat >>conftest.$ac_ext <<_ACEOF
47568 /* end confdefs.h.  */
47569
47570 int
47571 main ()
47572 {
47573
47574                             #if !defined(__INTEL_COMPILER) || \
47575                                 (__INTEL_COMPILER < 800)
47576                                 There is no PCH support
47577                             #endif
47578
47579   ;
47580   return 0;
47581 }
47582 _ACEOF
47583 rm -f conftest.$ac_objext
47584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47585   (eval $ac_compile) 2>conftest.er1
47586   ac_status=$?
47587   grep -v '^ *+' conftest.er1 >conftest.err
47588   rm -f conftest.er1
47589   cat conftest.err >&5
47590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47591   (exit $ac_status); } &&
47592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47594   (eval $ac_try) 2>&5
47595   ac_status=$?
47596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597   (exit $ac_status); }; } &&
47598          { ac_try='test -s conftest.$ac_objext'
47599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47600   (eval $ac_try) 2>&5
47601   ac_status=$?
47602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47603   (exit $ac_status); }; }; then
47604
47605                             echo "$as_me:$LINENO: result: yes" >&5
47606 echo "${ECHO_T}yes" >&6
47607                             ICC_PCH=1
47608
47609 else
47610   echo "$as_me: failed program was:" >&5
47611 sed 's/^/| /' conftest.$ac_ext >&5
47612
47613
47614                             echo "$as_me:$LINENO: result: no" >&5
47615 echo "${ECHO_T}no" >&6
47616
47617 fi
47618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47619
47620 fi
47621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47622             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47623                 USE_PCH=1
47624
47625 D='$'
47626 cat <<EOF >bk-make-pch
47627 #!/bin/sh
47628
47629 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47630 # script. It is used to generated precompiled headers.
47631 #
47632 # Permission is given to use this file in any way.
47633
47634 outfile="${D}{1}"
47635 header="${D}{2}"
47636 shift
47637 shift
47638
47639 compiler=""
47640 headerfile=""
47641
47642 while test ${D}{#} -gt 0; do
47643     add_to_cmdline=1
47644     case "${D}{1}" in
47645         -I* )
47646             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47647             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47648                 headerfile="${D}{incdir}/${D}{header}"
47649             fi
47650         ;;
47651         -use-pch|-use_pch )
47652             shift
47653             add_to_cmdline=0
47654         ;;
47655     esac
47656     if test ${D}add_to_cmdline = 1 ; then
47657         compiler="${D}{compiler} ${D}{1}"
47658     fi
47659     shift
47660 done
47661
47662 if test "x${D}{headerfile}" = "x" ; then
47663     echo "error: can't find header ${D}{header} in include paths" >&2
47664 else
47665     if test -f ${D}{outfile} ; then
47666         rm -f ${D}{outfile}
47667     else
47668         mkdir -p \`dirname ${D}{outfile}\`
47669     fi
47670     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
47671     mkdir -p .deps
47672     if test "x${GCC_PCH}" = "x1" ; then
47673         # can do this because gcc is >= 3.4:
47674         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47675     elif test "x${ICC_PCH}" = "x1" ; then
47676         filename=pch_gen-${D}${D}
47677         file=${D}{filename}.c
47678         dfile=${D}{filename}.d
47679         cat > ${D}file <<EOT
47680 #include "${D}header"
47681 EOT
47682         # using -MF icc complains about differing command lines in creation/use
47683         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47684           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47685           rm -f ${D}file ${D}dfile ${D}{filename}.o
47686     fi
47687     exit ${D}{?}
47688 fi
47689 EOF
47690
47691                 chmod +x bk-make-pch
47692             fi
47693         fi
47694     fi
47695
47696
47697
47698
47699     COND_BUILD_DEBUG="#"
47700     if test "x$BUILD" = "xdebug" ; then
47701         COND_BUILD_DEBUG=""
47702     fi
47703
47704     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47705     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47706         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47707     fi
47708
47709     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47710     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47711         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47712     fi
47713
47714     COND_BUILD_DEBUG_UNICODE_0="#"
47715     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47716         COND_BUILD_DEBUG_UNICODE_0=""
47717     fi
47718
47719     COND_BUILD_DEBUG_UNICODE_1="#"
47720     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47721         COND_BUILD_DEBUG_UNICODE_1=""
47722     fi
47723
47724     COND_BUILD_RELEASE="#"
47725     if test "x$BUILD" = "xrelease" ; then
47726         COND_BUILD_RELEASE=""
47727     fi
47728
47729     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47730     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47731         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47732     fi
47733
47734     COND_BUILD_RELEASE_UNICODE_0="#"
47735     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47736         COND_BUILD_RELEASE_UNICODE_0=""
47737     fi
47738
47739     COND_BUILD_RELEASE_UNICODE_1="#"
47740     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47741         COND_BUILD_RELEASE_UNICODE_1=""
47742     fi
47743
47744     COND_DEBUG_FLAG_1="#"
47745     if test "x$DEBUG_FLAG" = "x1" ; then
47746         COND_DEBUG_FLAG_1=""
47747     fi
47748
47749     COND_DEBUG_INFO_0="#"
47750     if test "x$DEBUG_INFO" = "x0" ; then
47751         COND_DEBUG_INFO_0=""
47752     fi
47753
47754     COND_DEBUG_INFO_1="#"
47755     if test "x$DEBUG_INFO" = "x1" ; then
47756         COND_DEBUG_INFO_1=""
47757     fi
47758
47759     COND_DEPS_TRACKING_0="#"
47760     if test "x$DEPS_TRACKING" = "x0" ; then
47761         COND_DEPS_TRACKING_0=""
47762     fi
47763
47764     COND_DEPS_TRACKING_1="#"
47765     if test "x$DEPS_TRACKING" = "x1" ; then
47766         COND_DEPS_TRACKING_1=""
47767     fi
47768
47769     COND_GCC_PCH_1="#"
47770     if test "x$GCC_PCH" = "x1" ; then
47771         COND_GCC_PCH_1=""
47772     fi
47773
47774     COND_ICC_PCH_1="#"
47775     if test "x$ICC_PCH" = "x1" ; then
47776         COND_ICC_PCH_1=""
47777     fi
47778
47779     COND_MONOLITHIC_0="#"
47780     if test "x$MONOLITHIC" = "x0" ; then
47781         COND_MONOLITHIC_0=""
47782     fi
47783
47784     COND_MONOLITHIC_0_SHARED_0="#"
47785     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47786         COND_MONOLITHIC_0_SHARED_0=""
47787     fi
47788
47789     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
47790     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
47791         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
47792     fi
47793
47794     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47795     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47796         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47797     fi
47798
47799     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47800     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47801         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47802     fi
47803
47804     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47805     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47806         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47807     fi
47808
47809     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47810     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47811         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47812     fi
47813
47814     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47815     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47816         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47817     fi
47818
47819     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47820     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47821         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47822     fi
47823
47824     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
47825     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
47826         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
47827     fi
47828
47829     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47830     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47831         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47832     fi
47833
47834     COND_MONOLITHIC_0_SHARED_1="#"
47835     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47836         COND_MONOLITHIC_0_SHARED_1=""
47837     fi
47838
47839     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
47840     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
47841         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
47842     fi
47843
47844     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47845     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47846         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47847     fi
47848
47849     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47850     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47851         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47852     fi
47853
47854     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47855     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47856         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47857     fi
47858
47859     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47860     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47861         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47862     fi
47863
47864     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47865     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47866         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47867     fi
47868
47869     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47870     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47871         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47872     fi
47873
47874     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
47875     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
47876         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
47877     fi
47878
47879     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47880     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47881         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47882     fi
47883
47884     COND_MONOLITHIC_0_USE_MEDIA_1="#"
47885     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47886         COND_MONOLITHIC_0_USE_MEDIA_1=""
47887     fi
47888
47889     COND_MONOLITHIC_0_USE_ODBC_1="#"
47890     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47891         COND_MONOLITHIC_0_USE_ODBC_1=""
47892     fi
47893
47894     COND_MONOLITHIC_1="#"
47895     if test "x$MONOLITHIC" = "x1" ; then
47896         COND_MONOLITHIC_1=""
47897     fi
47898
47899     COND_MONOLITHIC_1_SHARED_0="#"
47900     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47901         COND_MONOLITHIC_1_SHARED_0=""
47902     fi
47903
47904     COND_MONOLITHIC_1_SHARED_1="#"
47905     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47906         COND_MONOLITHIC_1_SHARED_1=""
47907     fi
47908
47909     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47910     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47911         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47912     fi
47913
47914     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47915     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47916         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47917     fi
47918
47919     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47920     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47921         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47922     fi
47923
47924     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47925     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47926         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47927     fi
47928
47929     COND_PLATFORM_MACOSX_1="#"
47930     if test "x$PLATFORM_MACOSX" = "x1" ; then
47931         COND_PLATFORM_MACOSX_1=""
47932     fi
47933
47934     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47935     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47936         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47937     fi
47938
47939     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47940     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47941         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47942     fi
47943
47944     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47945     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47946         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47947     fi
47948
47949     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47950     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47951         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47952     fi
47953
47954     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47955     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47956         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47957     fi
47958
47959     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47960     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47961         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47962     fi
47963
47964     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47965     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47966         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47967     fi
47968
47969     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47970     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47971         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47972     fi
47973
47974     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47975     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47976         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47977     fi
47978
47979     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47980     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47981         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47982     fi
47983
47984     COND_PLATFORM_MACOS_1="#"
47985     if test "x$PLATFORM_MACOS" = "x1" ; then
47986         COND_PLATFORM_MACOS_1=""
47987     fi
47988
47989     COND_PLATFORM_MAC_1="#"
47990     if test "x$PLATFORM_MAC" = "x1" ; then
47991         COND_PLATFORM_MAC_1=""
47992     fi
47993
47994     COND_PLATFORM_MSDOS_0="#"
47995     if test "x$PLATFORM_MSDOS" = "x0" ; then
47996         COND_PLATFORM_MSDOS_0=""
47997     fi
47998
47999     COND_PLATFORM_MSDOS_1="#"
48000     if test "x$PLATFORM_MSDOS" = "x1" ; then
48001         COND_PLATFORM_MSDOS_1=""
48002     fi
48003
48004     COND_PLATFORM_OS2_1="#"
48005     if test "x$PLATFORM_OS2" = "x1" ; then
48006         COND_PLATFORM_OS2_1=""
48007     fi
48008
48009     COND_PLATFORM_UNIX_0="#"
48010     if test "x$PLATFORM_UNIX" = "x0" ; then
48011         COND_PLATFORM_UNIX_0=""
48012     fi
48013
48014     COND_PLATFORM_UNIX_1="#"
48015     if test "x$PLATFORM_UNIX" = "x1" ; then
48016         COND_PLATFORM_UNIX_1=""
48017     fi
48018
48019     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48020     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48021         COND_PLATFORM_UNIX_1_USE_GUI_1=""
48022     fi
48023
48024     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48025     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48026         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48027     fi
48028
48029     COND_PLATFORM_WIN32_0="#"
48030     if test "x$PLATFORM_WIN32" = "x0" ; then
48031         COND_PLATFORM_WIN32_0=""
48032     fi
48033
48034     COND_PLATFORM_WIN32_1="#"
48035     if test "x$PLATFORM_WIN32" = "x1" ; then
48036         COND_PLATFORM_WIN32_1=""
48037     fi
48038
48039     COND_SHARED_0="#"
48040     if test "x$SHARED" = "x0" ; then
48041         COND_SHARED_0=""
48042     fi
48043
48044     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48045     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48046         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48047     fi
48048
48049     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48050     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48051         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48052     fi
48053
48054     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48055     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48056         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48057     fi
48058
48059     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48060     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48061         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48062     fi
48063
48064     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48065     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48066         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48067     fi
48068
48069     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48070     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48071         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48072     fi
48073
48074     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48075     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48076         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48077     fi
48078
48079     COND_SHARED_0_USE_XRC_1="#"
48080     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48081         COND_SHARED_0_USE_XRC_1=""
48082     fi
48083
48084     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48085     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48086         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48087     fi
48088
48089     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48090     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48091         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48092     fi
48093
48094     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48095     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48096         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48097     fi
48098
48099     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48100     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48101         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48102     fi
48103
48104     COND_SHARED_1="#"
48105     if test "x$SHARED" = "x1" ; then
48106         COND_SHARED_1=""
48107     fi
48108
48109     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48110     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48111         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48112     fi
48113
48114     COND_SHARED_1_USE_XRC_1="#"
48115     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48116         COND_SHARED_1_USE_XRC_1=""
48117     fi
48118
48119     COND_TOOLKIT_="#"
48120     if test "x$TOOLKIT" = "x" ; then
48121         COND_TOOLKIT_=""
48122     fi
48123
48124     COND_TOOLKIT_COCOA="#"
48125     if test "x$TOOLKIT" = "xCOCOA" ; then
48126         COND_TOOLKIT_COCOA=""
48127     fi
48128
48129     COND_TOOLKIT_COCOA_USE_GUI_1="#"
48130     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48131         COND_TOOLKIT_COCOA_USE_GUI_1=""
48132     fi
48133
48134     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48135     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48136         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48137     fi
48138
48139     COND_TOOLKIT_GTK="#"
48140     if test "x$TOOLKIT" = "xGTK" ; then
48141         COND_TOOLKIT_GTK=""
48142     fi
48143
48144     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48145     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48146         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48147     fi
48148
48149     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48150     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48151         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48152     fi
48153
48154     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48155     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48156         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48157     fi
48158
48159     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48160     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48161         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48162     fi
48163
48164     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48165     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48166         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48167     fi
48168
48169     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48170     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48171         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48172     fi
48173
48174     COND_TOOLKIT_GTK_USE_GUI_1="#"
48175     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48176         COND_TOOLKIT_GTK_USE_GUI_1=""
48177     fi
48178
48179     COND_TOOLKIT_MAC="#"
48180     if test "x$TOOLKIT" = "xMAC" ; then
48181         COND_TOOLKIT_MAC=""
48182     fi
48183
48184     COND_TOOLKIT_MAC_USE_GUI_1="#"
48185     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48186         COND_TOOLKIT_MAC_USE_GUI_1=""
48187     fi
48188
48189     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48190     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48191         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48192     fi
48193
48194     COND_TOOLKIT_MGL="#"
48195     if test "x$TOOLKIT" = "xMGL" ; then
48196         COND_TOOLKIT_MGL=""
48197     fi
48198
48199     COND_TOOLKIT_MGL_USE_GUI_1="#"
48200     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48201         COND_TOOLKIT_MGL_USE_GUI_1=""
48202     fi
48203
48204     COND_TOOLKIT_MOTIF="#"
48205     if test "x$TOOLKIT" = "xMOTIF" ; then
48206         COND_TOOLKIT_MOTIF=""
48207     fi
48208
48209     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48210     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48211         COND_TOOLKIT_MOTIF_USE_GUI_1=""
48212     fi
48213
48214     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48215     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48216         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48217     fi
48218
48219     COND_TOOLKIT_MSW="#"
48220     if test "x$TOOLKIT" = "xMSW" ; then
48221         COND_TOOLKIT_MSW=""
48222     fi
48223
48224     COND_TOOLKIT_MSW_USE_GUI_1="#"
48225     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48226         COND_TOOLKIT_MSW_USE_GUI_1=""
48227     fi
48228
48229     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48230     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48231         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48232     fi
48233
48234     COND_TOOLKIT_MSW_WXUNIV_0="#"
48235     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48236         COND_TOOLKIT_MSW_WXUNIV_0=""
48237     fi
48238
48239     COND_TOOLKIT_PM="#"
48240     if test "x$TOOLKIT" = "xPM" ; then
48241         COND_TOOLKIT_PM=""
48242     fi
48243
48244     COND_TOOLKIT_PM_USE_GUI_1="#"
48245     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48246         COND_TOOLKIT_PM_USE_GUI_1=""
48247     fi
48248
48249     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48250     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48251         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48252     fi
48253
48254     COND_TOOLKIT_WINCE="#"
48255     if test "x$TOOLKIT" = "xWINCE" ; then
48256         COND_TOOLKIT_WINCE=""
48257     fi
48258
48259     COND_TOOLKIT_WINCE_USE_GUI_1="#"
48260     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48261         COND_TOOLKIT_WINCE_USE_GUI_1=""
48262     fi
48263
48264     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48265     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48266         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48267     fi
48268
48269     COND_TOOLKIT_WINCE_WXUNIV_0="#"
48270     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48271         COND_TOOLKIT_WINCE_WXUNIV_0=""
48272     fi
48273
48274     COND_TOOLKIT_X11="#"
48275     if test "x$TOOLKIT" = "xX11" ; then
48276         COND_TOOLKIT_X11=""
48277     fi
48278
48279     COND_TOOLKIT_X11_USE_GUI_1="#"
48280     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48281         COND_TOOLKIT_X11_USE_GUI_1=""
48282     fi
48283
48284     COND_UNICODE_1="#"
48285     if test "x$UNICODE" = "x1" ; then
48286         COND_UNICODE_1=""
48287     fi
48288
48289     COND_USE_EXCEPTIONS_0="#"
48290     if test "x$USE_EXCEPTIONS" = "x0" ; then
48291         COND_USE_EXCEPTIONS_0=""
48292     fi
48293
48294     COND_USE_EXCEPTIONS_1="#"
48295     if test "x$USE_EXCEPTIONS" = "x1" ; then
48296         COND_USE_EXCEPTIONS_1=""
48297     fi
48298
48299     COND_USE_GUI_0="#"
48300     if test "x$USE_GUI" = "x0" ; then
48301         COND_USE_GUI_0=""
48302     fi
48303
48304     COND_USE_GUI_1="#"
48305     if test "x$USE_GUI" = "x1" ; then
48306         COND_USE_GUI_1=""
48307     fi
48308
48309     COND_USE_GUI_1_WXUNIV_0="#"
48310     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48311         COND_USE_GUI_1_WXUNIV_0=""
48312     fi
48313
48314     COND_USE_GUI_1_WXUNIV_1="#"
48315     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48316         COND_USE_GUI_1_WXUNIV_1=""
48317     fi
48318
48319     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48320     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48321         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48322     fi
48323
48324     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48325     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48326         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48327     fi
48328
48329     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48330     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48331         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48332     fi
48333
48334     COND_USE_ODBC_1="#"
48335     if test "x$USE_ODBC" = "x1" ; then
48336         COND_USE_ODBC_1=""
48337     fi
48338
48339     COND_USE_OPENGL_1="#"
48340     if test "x$USE_OPENGL" = "x1" ; then
48341         COND_USE_OPENGL_1=""
48342     fi
48343
48344     COND_USE_PCH_1="#"
48345     if test "x$USE_PCH" = "x1" ; then
48346         COND_USE_PCH_1=""
48347     fi
48348
48349     COND_USE_PLUGINS_0="#"
48350     if test "x$USE_PLUGINS" = "x0" ; then
48351         COND_USE_PLUGINS_0=""
48352     fi
48353
48354     COND_USE_RTTI_0="#"
48355     if test "x$USE_RTTI" = "x0" ; then
48356         COND_USE_RTTI_0=""
48357     fi
48358
48359     COND_USE_RTTI_1="#"
48360     if test "x$USE_RTTI" = "x1" ; then
48361         COND_USE_RTTI_1=""
48362     fi
48363
48364     COND_USE_SOSYMLINKS_1="#"
48365     if test "x$USE_SOSYMLINKS" = "x1" ; then
48366         COND_USE_SOSYMLINKS_1=""
48367     fi
48368
48369     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48370     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48371         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48372     fi
48373
48374     COND_USE_SOVERLINUX_1="#"
48375     if test "x$USE_SOVERLINUX" = "x1" ; then
48376         COND_USE_SOVERLINUX_1=""
48377     fi
48378
48379     COND_USE_SOVERSION_0="#"
48380     if test "x$USE_SOVERSION" = "x0" ; then
48381         COND_USE_SOVERSION_0=""
48382     fi
48383
48384     COND_USE_SOVERSOLARIS_1="#"
48385     if test "x$USE_SOVERSOLARIS" = "x1" ; then
48386         COND_USE_SOVERSOLARIS_1=""
48387     fi
48388
48389     COND_USE_THREADS_0="#"
48390     if test "x$USE_THREADS" = "x0" ; then
48391         COND_USE_THREADS_0=""
48392     fi
48393
48394     COND_USE_THREADS_1="#"
48395     if test "x$USE_THREADS" = "x1" ; then
48396         COND_USE_THREADS_1=""
48397     fi
48398
48399     COND_USE_XRC_1="#"
48400     if test "x$USE_XRC" = "x1" ; then
48401         COND_USE_XRC_1=""
48402     fi
48403
48404     COND_WINDOWS_IMPLIB_1="#"
48405     if test "x$WINDOWS_IMPLIB" = "x1" ; then
48406         COND_WINDOWS_IMPLIB_1=""
48407     fi
48408
48409     COND_WITH_PLUGIN_SDL_1="#"
48410     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48411         COND_WITH_PLUGIN_SDL_1=""
48412     fi
48413
48414     COND_WXUNIV_0="#"
48415     if test "x$WXUNIV" = "x0" ; then
48416         COND_WXUNIV_0=""
48417     fi
48418
48419     COND_WXUNIV_1="#"
48420     if test "x$WXUNIV" = "x1" ; then
48421         COND_WXUNIV_1=""
48422     fi
48423
48424     COND_WXUSE_EXPAT_BUILTIN="#"
48425     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48426         COND_WXUSE_EXPAT_BUILTIN=""
48427     fi
48428
48429     COND_WXUSE_LIBJPEG_BUILTIN="#"
48430     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48431         COND_WXUSE_LIBJPEG_BUILTIN=""
48432     fi
48433
48434     COND_WXUSE_LIBPNG_BUILTIN="#"
48435     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48436         COND_WXUSE_LIBPNG_BUILTIN=""
48437     fi
48438
48439     COND_WXUSE_LIBTIFF_BUILTIN="#"
48440     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48441         COND_WXUSE_LIBTIFF_BUILTIN=""
48442     fi
48443
48444     COND_WXUSE_ODBC_BUILTIN="#"
48445     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48446         COND_WXUSE_ODBC_BUILTIN=""
48447     fi
48448
48449     COND_WXUSE_REGEX_BUILTIN="#"
48450     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48451         COND_WXUSE_REGEX_BUILTIN=""
48452     fi
48453
48454     COND_WXUSE_ZLIB_BUILTIN="#"
48455     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48456         COND_WXUSE_ZLIB_BUILTIN=""
48457     fi
48458
48459
48460
48461     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48462         { { 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
48463 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;}
48464    { (exit 1); exit 1; }; }
48465     fi
48466
48467     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48468         { { 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
48469 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;}
48470    { (exit 1); exit 1; }; }
48471     fi
48472
48473
48474
48475 if test "$wxUSE_MAC" = 1 ; then
48476     if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48477         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48478         mv temp bk-deps
48479         chmod +x bk-deps
48480     fi
48481 fi
48482
48483 if test "$wxUSE_SHARED" = "yes"; then
48484
48485                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48486     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48487
48488                 case "${host}" in
48489       *-pc-os2_emx | *-pc-os2-emx )
48490         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48491         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48492         cp -p ${srcdir}/src/os2/dllnames.sh .
48493         cp -p ${srcdir}/src/os2/dllar.sh .
48494       ;;
48495     esac
48496 else
48497
48498         EXE_LINKER="$CXX -o"
48499
48500 fi
48501 if test "$wxUSE_OMF" = "yes"; then
48502     case "${host}" in
48503       *-pc-os2_emx | *-pc-os2-emx )
48504         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48505         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48506         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48507       ;;
48508     esac
48509 fi
48510
48511 if test $GCC_PCH = 1 ; then
48512     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
48513 fi
48514
48515 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
48516
48517 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48580 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48582 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48583   echo $ECHO_N "(cached) $ECHO_C" >&6
48584 else
48585   cat >conftest.make <<\_ACEOF
48586 all:
48587         @echo 'ac_maketemp="$(MAKE)"'
48588 _ACEOF
48589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48590 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48591 if test -n "$ac_maketemp"; then
48592   eval ac_cv_prog_make_${ac_make}_set=yes
48593 else
48594   eval ac_cv_prog_make_${ac_make}_set=no
48595 fi
48596 rm -f conftest.make
48597 fi
48598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48599   echo "$as_me:$LINENO: result: yes" >&5
48600 echo "${ECHO_T}yes" >&6
48601   SET_MAKE=
48602 else
48603   echo "$as_me:$LINENO: result: no" >&5
48604 echo "${ECHO_T}no" >&6
48605   SET_MAKE="MAKE=${MAKE-make}"
48606 fi
48607
48608
48609
48610           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48611
48612
48613 if test "$USE_WIN32" = 1; then
48614               ac_config_commands="$ac_config_commands
48615             rcdefs.h
48616         "
48617
48618 fi
48619
48620           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
48621
48622
48623           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
48624
48625
48626                     ac_config_files="$ac_config_files version-script Makefile"
48627
48628
48629           ac_config_commands="$ac_config_commands wx-config"
48630
48631
48632
48633 if test "$wxWITH_SUBDIRS" != "no"; then
48634 if test "$wxUSE_GUI" = "yes"; then
48635     SUBDIRS="samples demos utils contrib"
48636 else         SUBDIRS="samples utils"
48637 fi
48638
48639
48640
48641 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48642 if test "${with_cppunit_prefix+set}" = set; then
48643   withval="$with_cppunit_prefix"
48644   cppunit_config_prefix="$withval"
48645 else
48646   cppunit_config_prefix=""
48647 fi;
48648
48649 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48650 if test "${with_cppunit_exec_prefix+set}" = set; then
48651   withval="$with_cppunit_exec_prefix"
48652   cppunit_config_exec_prefix="$withval"
48653 else
48654   cppunit_config_exec_prefix=""
48655 fi;
48656
48657   if test x$cppunit_config_exec_prefix != x ; then
48658      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48659      if test x${CPPUNIT_CONFIG+set} != xset ; then
48660         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48661      fi
48662   fi
48663   if test x$cppunit_config_prefix != x ; then
48664      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48665      if test x${CPPUNIT_CONFIG+set} != xset ; then
48666         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48667      fi
48668   fi
48669
48670   # Extract the first word of "cppunit-config", so it can be a program name with args.
48671 set dummy cppunit-config; ac_word=$2
48672 echo "$as_me:$LINENO: checking for $ac_word" >&5
48673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48674 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48675   echo $ECHO_N "(cached) $ECHO_C" >&6
48676 else
48677   case $CPPUNIT_CONFIG in
48678   [\\/]* | ?:[\\/]*)
48679   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48680   ;;
48681   *)
48682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48683 for as_dir in $PATH
48684 do
48685   IFS=$as_save_IFS
48686   test -z "$as_dir" && as_dir=.
48687   for ac_exec_ext in '' $ac_executable_extensions; do
48688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48689     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48691     break 2
48692   fi
48693 done
48694 done
48695
48696   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48697   ;;
48698 esac
48699 fi
48700 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48701
48702 if test -n "$CPPUNIT_CONFIG"; then
48703   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48704 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48705 else
48706   echo "$as_me:$LINENO: result: no" >&5
48707 echo "${ECHO_T}no" >&6
48708 fi
48709
48710   cppunit_version_min=1.8.0
48711
48712   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48713 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48714   no_cppunit=""
48715   if test "$CPPUNIT_CONFIG" = "no" ; then
48716     no_cppunit=yes
48717   else
48718     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48719     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48720     cppunit_version=`$CPPUNIT_CONFIG --version`
48721
48722     cppunit_major_version=`echo $cppunit_version | \
48723            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48724     cppunit_minor_version=`echo $cppunit_version | \
48725            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48726     cppunit_micro_version=`echo $cppunit_version | \
48727            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48728
48729     cppunit_major_min=`echo $cppunit_version_min | \
48730            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48731     cppunit_minor_min=`echo $cppunit_version_min | \
48732            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48733     cppunit_micro_min=`echo $cppunit_version_min | \
48734            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48735
48736     cppunit_version_proper=`expr \
48737         $cppunit_major_version \> $cppunit_major_min \| \
48738         $cppunit_major_version \= $cppunit_major_min \& \
48739         $cppunit_minor_version \> $cppunit_minor_min \| \
48740         $cppunit_major_version \= $cppunit_major_min \& \
48741         $cppunit_minor_version \= $cppunit_minor_min \& \
48742         $cppunit_micro_version \>= $cppunit_micro_min `
48743
48744     if test "$cppunit_version_proper" = "1" ; then
48745       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48746 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48747     else
48748       echo "$as_me:$LINENO: result: no" >&5
48749 echo "${ECHO_T}no" >&6
48750       no_cppunit=yes
48751     fi
48752   fi
48753
48754   if test "x$no_cppunit" = x ; then
48755      SUBDIRS="$SUBDIRS tests"
48756   else
48757      CPPUNIT_CFLAGS=""
48758      CPPUNIT_LIBS=""
48759      :
48760   fi
48761
48762
48763
48764
48765
48766 for subdir in `echo $SUBDIRS`; do
48767     if test -d ${srcdir}/${subdir} ; then
48768         if test "$wxUSE_GUI" = "yes"; then
48769             if test ${subdir} = "samples"; then
48770                                                 makefiles="samples/Makefile.in $makefiles"
48771                 for sample in `echo $SAMPLES_SUBDIRS`; do
48772                     if test -d $srcdir/samples/$sample; then
48773                         makefiles="samples/$sample/Makefile.in $makefiles"
48774                     fi
48775                 done
48776             else
48777                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48778                 eval "disabled=\$$disabled_var"
48779                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48780                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
48781             fi
48782         else                                     if test ${subdir} = "samples"; then
48783                 makefiles="samples/Makefile.in samples/console/Makefile.in"
48784             elif test ${subdir} = "utils"; then
48785                 makefiles=""
48786                 for util in HelpGen tex2rtf ; do
48787                     if test -d $srcdir/utils/$util ; then
48788                         makefiles="utils/$util/Makefile.in \
48789                                    utils/$util/src/Makefile.in \
48790                                    $makefiles"
48791                     fi
48792                 done
48793             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48794             fi
48795         fi
48796
48797         for mkin in $makefiles ; do
48798             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48799                       ac_config_files="$ac_config_files $mk"
48800
48801         done
48802     fi
48803 done
48804 fi
48805 cat >confcache <<\_ACEOF
48806 # This file is a shell script that caches the results of configure
48807 # tests run on this system so they can be shared between configure
48808 # scripts and configure runs, see configure's option --config-cache.
48809 # It is not useful on other systems.  If it contains results you don't
48810 # want to keep, you may remove or edit it.
48811 #
48812 # config.status only pays attention to the cache file if you give it
48813 # the --recheck option to rerun configure.
48814 #
48815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48817 # following values.
48818
48819 _ACEOF
48820
48821 # The following way of writing the cache mishandles newlines in values,
48822 # but we know of no workaround that is simple, portable, and efficient.
48823 # So, don't put newlines in cache variables' values.
48824 # Ultrix sh set writes to stderr and can't be redirected directly,
48825 # and sets the high bit in the cache file unless we assign to the vars.
48826 {
48827   (set) 2>&1 |
48828     case `(ac_space=' '; set | grep ac_space) 2>&1` in
48829     *ac_space=\ *)
48830       # `set' does not quote correctly, so add quotes (double-quote
48831       # substitution turns \\\\ into \\, and sed turns \\ into \).
48832       sed -n \
48833         "s/'/'\\\\''/g;
48834           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48835       ;;
48836     *)
48837       # `set' quotes correctly as required by POSIX, so do not add quotes.
48838       sed -n \
48839         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
48840       ;;
48841     esac;
48842 } |
48843   sed '
48844      t clear
48845      : clear
48846      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48847      t end
48848      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48849      : end' >>confcache
48850 if diff $cache_file confcache >/dev/null 2>&1; then :; else
48851   if test -w $cache_file; then
48852     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48853     cat confcache >$cache_file
48854   else
48855     echo "not updating unwritable cache $cache_file"
48856   fi
48857 fi
48858 rm -f confcache
48859
48860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48861 # Let make expand exec_prefix.
48862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48863
48864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
48865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48866 # trailing colons and then remove the whole line if VPATH becomes empty
48867 # (actually we leave an empty line to preserve line numbers).
48868 if test "x$srcdir" = x.; then
48869   ac_vpsub='/^[  ]*VPATH[        ]*=/{
48870 s/:*\$(srcdir):*/:/;
48871 s/:*\${srcdir}:*/:/;
48872 s/:*@srcdir@:*/:/;
48873 s/^\([^=]*=[     ]*\):*/\1/;
48874 s/:*$//;
48875 s/^[^=]*=[       ]*$//;
48876 }'
48877 fi
48878
48879 DEFS=-DHAVE_CONFIG_H
48880
48881 ac_libobjs=
48882 ac_ltlibobjs=
48883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48884   # 1. Remove the extension, and $U if already installed.
48885   ac_i=`echo "$ac_i" |
48886          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
48887   # 2. Add them.
48888   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48889   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48890 done
48891 LIBOBJS=$ac_libobjs
48892
48893 LTLIBOBJS=$ac_ltlibobjs
48894
48895
48896
48897 : ${CONFIG_STATUS=./config.status}
48898 ac_clean_files_save=$ac_clean_files
48899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48900 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48901 echo "$as_me: creating $CONFIG_STATUS" >&6;}
48902 cat >$CONFIG_STATUS <<_ACEOF
48903 #! $SHELL
48904 # Generated by $as_me.
48905 # Run this file to recreate the current configuration.
48906 # Compiler output produced by configure, useful for debugging
48907 # configure, is in config.log if it exists.
48908
48909 debug=false
48910 ac_cs_recheck=false
48911 ac_cs_silent=false
48912 SHELL=\${CONFIG_SHELL-$SHELL}
48913 _ACEOF
48914
48915 cat >>$CONFIG_STATUS <<\_ACEOF
48916 ## --------------------- ##
48917 ## M4sh Initialization.  ##
48918 ## --------------------- ##
48919
48920 # Be Bourne compatible
48921 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48922   emulate sh
48923   NULLCMD=:
48924   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48925   # is contrary to our usage.  Disable this feature.
48926   alias -g '${1+"$@"}'='"$@"'
48927 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48928   set -o posix
48929 fi
48930 DUALCASE=1; export DUALCASE # for MKS sh
48931
48932 # Support unset when possible.
48933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48934   as_unset=unset
48935 else
48936   as_unset=false
48937 fi
48938
48939
48940 # Work around bugs in pre-3.0 UWIN ksh.
48941 $as_unset ENV MAIL MAILPATH
48942 PS1='$ '
48943 PS2='> '
48944 PS4='+ '
48945
48946 # NLS nuisances.
48947 for as_var in \
48948   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48949   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48950   LC_TELEPHONE LC_TIME
48951 do
48952   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48953     eval $as_var=C; export $as_var
48954   else
48955     $as_unset $as_var
48956   fi
48957 done
48958
48959 # Required to use basename.
48960 if expr a : '\(a\)' >/dev/null 2>&1; then
48961   as_expr=expr
48962 else
48963   as_expr=false
48964 fi
48965
48966 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48967   as_basename=basename
48968 else
48969   as_basename=false
48970 fi
48971
48972
48973 # Name of the executable.
48974 as_me=`$as_basename "$0" ||
48975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48976          X"$0" : 'X\(//\)$' \| \
48977          X"$0" : 'X\(/\)$' \| \
48978          .     : '\(.\)' 2>/dev/null ||
48979 echo X/"$0" |
48980     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48981           /^X\/\(\/\/\)$/{ s//\1/; q; }
48982           /^X\/\(\/\).*/{ s//\1/; q; }
48983           s/.*/./; q'`
48984
48985
48986 # PATH needs CR, and LINENO needs CR and PATH.
48987 # Avoid depending upon Character Ranges.
48988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48991 as_cr_digits='0123456789'
48992 as_cr_alnum=$as_cr_Letters$as_cr_digits
48993
48994 # The user is always right.
48995 if test "${PATH_SEPARATOR+set}" != set; then
48996   echo "#! /bin/sh" >conf$$.sh
48997   echo  "exit 0"   >>conf$$.sh
48998   chmod +x conf$$.sh
48999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49000     PATH_SEPARATOR=';'
49001   else
49002     PATH_SEPARATOR=:
49003   fi
49004   rm -f conf$$.sh
49005 fi
49006
49007
49008   as_lineno_1=$LINENO
49009   as_lineno_2=$LINENO
49010   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49011   test "x$as_lineno_1" != "x$as_lineno_2" &&
49012   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49013   # Find who we are.  Look in the path if we contain no path at all
49014   # relative or not.
49015   case $0 in
49016     *[\\/]* ) as_myself=$0 ;;
49017     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49018 for as_dir in $PATH
49019 do
49020   IFS=$as_save_IFS
49021   test -z "$as_dir" && as_dir=.
49022   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49023 done
49024
49025        ;;
49026   esac
49027   # We did not find ourselves, most probably we were run as `sh COMMAND'
49028   # in which case we are not to be found in the path.
49029   if test "x$as_myself" = x; then
49030     as_myself=$0
49031   fi
49032   if test ! -f "$as_myself"; then
49033     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49034 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49035    { (exit 1); exit 1; }; }
49036   fi
49037   case $CONFIG_SHELL in
49038   '')
49039     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49040 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49041 do
49042   IFS=$as_save_IFS
49043   test -z "$as_dir" && as_dir=.
49044   for as_base in sh bash ksh sh5; do
49045          case $as_dir in
49046          /*)
49047            if ("$as_dir/$as_base" -c '
49048   as_lineno_1=$LINENO
49049   as_lineno_2=$LINENO
49050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49051   test "x$as_lineno_1" != "x$as_lineno_2" &&
49052   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49053              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49054              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49055              CONFIG_SHELL=$as_dir/$as_base
49056              export CONFIG_SHELL
49057              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49058            fi;;
49059          esac
49060        done
49061 done
49062 ;;
49063   esac
49064
49065   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49066   # uniformly replaced by the line number.  The first 'sed' inserts a
49067   # line-number line before each line; the second 'sed' does the real
49068   # work.  The second script uses 'N' to pair each line-number line
49069   # with the numbered line, and appends trailing '-' during
49070   # substitution so that $LINENO is not a special case at line end.
49071   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49072   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49073   sed '=' <$as_myself |
49074     sed '
49075       N
49076       s,$,-,
49077       : loop
49078       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49079       t loop
49080       s,-$,,
49081       s,^['$as_cr_digits']*\n,,
49082     ' >$as_me.lineno &&
49083   chmod +x $as_me.lineno ||
49084     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49085 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49086    { (exit 1); exit 1; }; }
49087
49088   # Don't try to exec as it changes $[0], causing all sort of problems
49089   # (the dirname of $[0] is not the place where we might find the
49090   # original and so on.  Autoconf is especially sensible to this).
49091   . ./$as_me.lineno
49092   # Exit status is that of the last command.
49093   exit
49094 }
49095
49096
49097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49098   *c*,-n*) ECHO_N= ECHO_C='
49099 ' ECHO_T='      ' ;;
49100   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49101   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49102 esac
49103
49104 if expr a : '\(a\)' >/dev/null 2>&1; then
49105   as_expr=expr
49106 else
49107   as_expr=false
49108 fi
49109
49110 rm -f conf$$ conf$$.exe conf$$.file
49111 echo >conf$$.file
49112 if ln -s conf$$.file conf$$ 2>/dev/null; then
49113   # We could just check for DJGPP; but this test a) works b) is more generic
49114   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49115   if test -f conf$$.exe; then
49116     # Don't use ln at all; we don't have any links
49117     as_ln_s='cp -p'
49118   else
49119     as_ln_s='ln -s'
49120   fi
49121 elif ln conf$$.file conf$$ 2>/dev/null; then
49122   as_ln_s=ln
49123 else
49124   as_ln_s='cp -p'
49125 fi
49126 rm -f conf$$ conf$$.exe conf$$.file
49127
49128 if mkdir -p . 2>/dev/null; then
49129   as_mkdir_p=:
49130 else
49131   test -d ./-p && rmdir ./-p
49132   as_mkdir_p=false
49133 fi
49134
49135 as_executable_p="test -f"
49136
49137 # Sed expression to map a string onto a valid CPP name.
49138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49139
49140 # Sed expression to map a string onto a valid variable name.
49141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49142
49143
49144 # IFS
49145 # We need space, tab and new line, in precisely that order.
49146 as_nl='
49147 '
49148 IFS="   $as_nl"
49149
49150 # CDPATH.
49151 $as_unset CDPATH
49152
49153 exec 6>&1
49154
49155 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49156 # report actual input values of CONFIG_FILES etc. instead of their
49157 # values after options handling.  Logging --version etc. is OK.
49158 exec 5>>config.log
49159 {
49160   echo
49161   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49162 ## Running $as_me. ##
49163 _ASBOX
49164 } >&5
49165 cat >&5 <<_CSEOF
49166
49167 This file was extended by wxWidgets $as_me 2.7.0, which was
49168 generated by GNU Autoconf 2.59.  Invocation command line was
49169
49170   CONFIG_FILES    = $CONFIG_FILES
49171   CONFIG_HEADERS  = $CONFIG_HEADERS
49172   CONFIG_LINKS    = $CONFIG_LINKS
49173   CONFIG_COMMANDS = $CONFIG_COMMANDS
49174   $ $0 $@
49175
49176 _CSEOF
49177 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49178 echo >&5
49179 _ACEOF
49180
49181 # Files that config.status was made for.
49182 if test -n "$ac_config_files"; then
49183   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49184 fi
49185
49186 if test -n "$ac_config_headers"; then
49187   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49188 fi
49189
49190 if test -n "$ac_config_links"; then
49191   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49192 fi
49193
49194 if test -n "$ac_config_commands"; then
49195   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49196 fi
49197
49198 cat >>$CONFIG_STATUS <<\_ACEOF
49199
49200 ac_cs_usage="\
49201 \`$as_me' instantiates files from templates according to the
49202 current configuration.
49203
49204 Usage: $0 [OPTIONS] [FILE]...
49205
49206   -h, --help       print this help, then exit
49207   -V, --version    print version number, then exit
49208   -q, --quiet      do not print progress messages
49209   -d, --debug      don't remove temporary files
49210       --recheck    update $as_me by reconfiguring in the same conditions
49211   --file=FILE[:TEMPLATE]
49212                    instantiate the configuration file FILE
49213   --header=FILE[:TEMPLATE]
49214                    instantiate the configuration header FILE
49215
49216 Configuration files:
49217 $config_files
49218
49219 Configuration headers:
49220 $config_headers
49221
49222 Configuration commands:
49223 $config_commands
49224
49225 Report bugs to <bug-autoconf@gnu.org>."
49226 _ACEOF
49227
49228 cat >>$CONFIG_STATUS <<_ACEOF
49229 ac_cs_version="\\
49230 wxWidgets config.status 2.7.0
49231 configured by $0, generated by GNU Autoconf 2.59,
49232   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49233
49234 Copyright (C) 2003 Free Software Foundation, Inc.
49235 This config.status script is free software; the Free Software Foundation
49236 gives unlimited permission to copy, distribute and modify it."
49237 srcdir=$srcdir
49238 INSTALL="$INSTALL"
49239 _ACEOF
49240
49241 cat >>$CONFIG_STATUS <<\_ACEOF
49242 # If no file are specified by the user, then we need to provide default
49243 # value.  By we need to know if files were specified by the user.
49244 ac_need_defaults=:
49245 while test $# != 0
49246 do
49247   case $1 in
49248   --*=*)
49249     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49250     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49251     ac_shift=:
49252     ;;
49253   -*)
49254     ac_option=$1
49255     ac_optarg=$2
49256     ac_shift=shift
49257     ;;
49258   *) # This is not an option, so the user has probably given explicit
49259      # arguments.
49260      ac_option=$1
49261      ac_need_defaults=false;;
49262   esac
49263
49264   case $ac_option in
49265   # Handling of the options.
49266 _ACEOF
49267 cat >>$CONFIG_STATUS <<\_ACEOF
49268   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49269     ac_cs_recheck=: ;;
49270   --version | --vers* | -V )
49271     echo "$ac_cs_version"; exit 0 ;;
49272   --he | --h)
49273     # Conflict between --help and --header
49274     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49275 Try \`$0 --help' for more information." >&5
49276 echo "$as_me: error: ambiguous option: $1
49277 Try \`$0 --help' for more information." >&2;}
49278    { (exit 1); exit 1; }; };;
49279   --help | --hel | -h )
49280     echo "$ac_cs_usage"; exit 0 ;;
49281   --debug | --d* | -d )
49282     debug=: ;;
49283   --file | --fil | --fi | --f )
49284     $ac_shift
49285     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49286     ac_need_defaults=false;;
49287   --header | --heade | --head | --hea )
49288     $ac_shift
49289     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49290     ac_need_defaults=false;;
49291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49292   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49293     ac_cs_silent=: ;;
49294
49295   # This is an error.
49296   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49297 Try \`$0 --help' for more information." >&5
49298 echo "$as_me: error: unrecognized option: $1
49299 Try \`$0 --help' for more information." >&2;}
49300    { (exit 1); exit 1; }; } ;;
49301
49302   *) ac_config_targets="$ac_config_targets $1" ;;
49303
49304   esac
49305   shift
49306 done
49307
49308 ac_configure_extra_args=
49309
49310 if $ac_cs_silent; then
49311   exec 6>/dev/null
49312   ac_configure_extra_args="$ac_configure_extra_args --silent"
49313 fi
49314
49315 _ACEOF
49316 cat >>$CONFIG_STATUS <<_ACEOF
49317 if \$ac_cs_recheck; then
49318   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49319   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49320 fi
49321
49322 _ACEOF
49323
49324 cat >>$CONFIG_STATUS <<_ACEOF
49325 #
49326 # INIT-COMMANDS section.
49327 #
49328
49329
49330             CPP="$CPP"
49331             infile="$srcdir/include/wx/msw/genrcdefs.h"
49332             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49333
49334
49335  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49336  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49337  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49338                      LN_S="${LN_S}"
49339
49340
49341 _ACEOF
49342
49343
49344
49345 cat >>$CONFIG_STATUS <<\_ACEOF
49346 for ac_config_target in $ac_config_targets
49347 do
49348   case "$ac_config_target" in
49349   # Handling of arguments.
49350   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49351   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
49352   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49353   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49354   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
49355   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
49356   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49357   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
49358   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49359 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49360    { (exit 1); exit 1; }; };;
49361   esac
49362 done
49363
49364 # If the user did not use the arguments to specify the items to instantiate,
49365 # then the envvar interface is used.  Set only those that are not.
49366 # We use the long form for the default assignment because of an extremely
49367 # bizarre bug on SunOS 4.1.3.
49368 if $ac_need_defaults; then
49369   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49370   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49371   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49372 fi
49373
49374 # Have a temporary directory for convenience.  Make it in the build tree
49375 # simply because there is no reason to put it here, and in addition,
49376 # creating and moving files from /tmp can sometimes cause problems.
49377 # Create a temporary directory, and hook for its removal unless debugging.
49378 $debug ||
49379 {
49380   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49381   trap '{ (exit 1); exit 1; }' 1 2 13 15
49382 }
49383
49384 # Create a (secure) tmp directory for tmp files.
49385
49386 {
49387   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49388   test -n "$tmp" && test -d "$tmp"
49389 }  ||
49390 {
49391   tmp=./confstat$$-$RANDOM
49392   (umask 077 && mkdir $tmp)
49393 } ||
49394 {
49395    echo "$me: cannot create a temporary directory in ." >&2
49396    { (exit 1); exit 1; }
49397 }
49398
49399 _ACEOF
49400
49401 cat >>$CONFIG_STATUS <<_ACEOF
49402
49403 #
49404 # CONFIG_FILES section.
49405 #
49406
49407 # No need to generate the scripts if there are no CONFIG_FILES.
49408 # This happens for instance when ./config.status config.h
49409 if test -n "\$CONFIG_FILES"; then
49410   # Protect against being on the right side of a sed subst in config.status.
49411   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49412    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49413 s,@SHELL@,$SHELL,;t t
49414 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49415 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49416 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49417 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49418 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49419 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49420 s,@exec_prefix@,$exec_prefix,;t t
49421 s,@prefix@,$prefix,;t t
49422 s,@program_transform_name@,$program_transform_name,;t t
49423 s,@bindir@,$bindir,;t t
49424 s,@sbindir@,$sbindir,;t t
49425 s,@libexecdir@,$libexecdir,;t t
49426 s,@datadir@,$datadir,;t t
49427 s,@sysconfdir@,$sysconfdir,;t t
49428 s,@sharedstatedir@,$sharedstatedir,;t t
49429 s,@localstatedir@,$localstatedir,;t t
49430 s,@libdir@,$libdir,;t t
49431 s,@includedir@,$includedir,;t t
49432 s,@oldincludedir@,$oldincludedir,;t t
49433 s,@infodir@,$infodir,;t t
49434 s,@mandir@,$mandir,;t t
49435 s,@build_alias@,$build_alias,;t t
49436 s,@host_alias@,$host_alias,;t t
49437 s,@target_alias@,$target_alias,;t t
49438 s,@DEFS@,$DEFS,;t t
49439 s,@ECHO_C@,$ECHO_C,;t t
49440 s,@ECHO_N@,$ECHO_N,;t t
49441 s,@ECHO_T@,$ECHO_T,;t t
49442 s,@LIBS@,$LIBS,;t t
49443 s,@build@,$build,;t t
49444 s,@build_cpu@,$build_cpu,;t t
49445 s,@build_vendor@,$build_vendor,;t t
49446 s,@build_os@,$build_os,;t t
49447 s,@host@,$host,;t t
49448 s,@host_cpu@,$host_cpu,;t t
49449 s,@host_vendor@,$host_vendor,;t t
49450 s,@host_os@,$host_os,;t t
49451 s,@target@,$target,;t t
49452 s,@target_cpu@,$target_cpu,;t t
49453 s,@target_vendor@,$target_vendor,;t t
49454 s,@target_os@,$target_os,;t t
49455 s,@CC@,$CC,;t t
49456 s,@CFLAGS@,$CFLAGS,;t t
49457 s,@LDFLAGS@,$LDFLAGS,;t t
49458 s,@CPPFLAGS@,$CPPFLAGS,;t t
49459 s,@ac_ct_CC@,$ac_ct_CC,;t t
49460 s,@EXEEXT@,$EXEEXT,;t t
49461 s,@OBJEXT@,$OBJEXT,;t t
49462 s,@CPP@,$CPP,;t t
49463 s,@EGREP@,$EGREP,;t t
49464 s,@CXX@,$CXX,;t t
49465 s,@CXXFLAGS@,$CXXFLAGS,;t t
49466 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49467 s,@RANLIB@,$RANLIB,;t t
49468 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49469 s,@AR@,$AR,;t t
49470 s,@ac_ct_AR@,$ac_ct_AR,;t t
49471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49474 s,@STRIP@,$STRIP,;t t
49475 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49476 s,@WINDRES@,$WINDRES,;t t
49477 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
49478 s,@DLLTOOL@,$DLLTOOL,;t t
49479 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
49480 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49481 s,@LN_S@,$LN_S,;t t
49482 s,@CXXCPP@,$CXXCPP,;t t
49483 s,@subdirs@,$subdirs,;t t
49484 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49485 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49486 s,@GTK_LIBS@,$GTK_LIBS,;t t
49487 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
49488 s,@X_CFLAGS@,$X_CFLAGS,;t t
49489 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49490 s,@X_LIBS@,$X_LIBS,;t t
49491 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49492 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49493 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
49494 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49495 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
49496 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49497 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
49498 s,@REZ@,$REZ,;t t
49499 s,@DEREZ@,$DEREZ,;t t
49500 s,@SETFILE@,$SETFILE,;t t
49501 s,@LIBICONV@,$LIBICONV,;t t
49502 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49503 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49504 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49505 s,@SDL_LIBS@,$SDL_LIBS,;t t
49506 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49507 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
49508 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49509 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
49510 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49511 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
49512 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49513 s,@GST_LIBS@,$GST_LIBS,;t t
49514 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49515 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49516 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49517 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49518 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49519 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49520 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49521 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49522 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49523 s,@VENDOR@,$VENDOR,;t t
49524 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
49525 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49526 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
49527 s,@WXUNIV@,$WXUNIV,;t t
49528 s,@MONOLITHIC@,$MONOLITHIC,;t t
49529 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49530 s,@EXTRALIBS@,$EXTRALIBS,;t t
49531 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49532 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49533 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49534 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49535 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49536 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49537 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
49538 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
49539 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
49540 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
49541 s,@UNICODE@,$UNICODE,;t t
49542 s,@BUILD@,$BUILD,;t t
49543 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49544 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
49545 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49546 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49547 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49548 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49549 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49550 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49551 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49552 s,@SET_MAKE@,$SET_MAKE,;t t
49553 s,@MAKE_SET@,$MAKE_SET,;t t
49554 s,@NM@,$NM,;t t
49555 s,@ac_ct_NM@,$ac_ct_NM,;t t
49556 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49557 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49558 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49559 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49560 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49561 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
49562 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
49563 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49564 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
49565 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
49566 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49567 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49568 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49569 s,@LIBPREFIX@,$LIBPREFIX,;t t
49570 s,@LIBEXT@,$LIBEXT,;t t
49571 s,@DLLPREFIX@,$DLLPREFIX,;t t
49572 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
49573 s,@dlldir@,$dlldir,;t t
49574 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49575 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49576 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49577 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49578 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49579 s,@PIC_FLAG@,$PIC_FLAG,;t t
49580 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
49581 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49582 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49583 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
49584 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
49585 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49586 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49587 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49588 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49589 s,@GCC_PCH@,$GCC_PCH,;t t
49590 s,@ICC_PCH@,$ICC_PCH,;t t
49591 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49592 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49593 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49594 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49595 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49596 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49597 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49598 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49599 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49600 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49601 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49602 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49603 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49604 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49605 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49606 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
49607 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49608 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49609 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
49610 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
49611 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
49612 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
49613 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
49614 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
49615 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
49616 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
49617 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
49618 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49619 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
49620 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
49621 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
49622 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
49623 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
49624 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
49625 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
49626 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
49627 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
49628 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
49629 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49630 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49631 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49632 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49633 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49634 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
49635 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
49636 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49637 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
49638 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
49639 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49640 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49641 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
49642 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
49643 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
49644 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49645 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
49646 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49647 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
49648 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
49649 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
49650 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
49651 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
49652 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49653 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49654 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49655 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49656 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49657 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49658 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49659 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
49660 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49661 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49662 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
49663 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49664 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49665 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49666 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49667 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
49668 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49669 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49670 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49671 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49672 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49673 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
49674 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
49675 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
49676 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
49677 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
49678 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49679 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
49680 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49681 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49682 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49683 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
49684 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49685 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
49686 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
49687 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49688 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49689 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49690 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49691 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49692 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49693 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49694 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49695 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49696 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49697 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
49698 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
49699 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49700 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49701 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
49702 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49703 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49704 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
49705 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
49706 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49707 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49708 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49709 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49710 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49711 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49712 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49713 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49714 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49715 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49716 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49717 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49718 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49719 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
49720 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
49721 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
49722 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49723 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
49724 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
49725 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
49726 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49727 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49728 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
49729 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49730 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
49731 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
49732 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
49733 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
49734 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
49735 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49736 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49737 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49738 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49739 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49740 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49741 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49742 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
49743 s,@SHARED@,$SHARED,;t t
49744 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49745 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
49746 s,@USE_GUI@,$USE_GUI,;t t
49747 s,@AFMINSTALL@,$AFMINSTALL,;t t
49748 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49749 s,@TOOLKIT@,$TOOLKIT,;t t
49750 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
49751 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
49752 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
49753 s,@cross_compiling@,$cross_compiling,;t t
49754 s,@WIDGET_SET@,$WIDGET_SET,;t t
49755 s,@WX_RELEASE@,$WX_RELEASE,;t t
49756 s,@WX_VERSION@,$WX_VERSION,;t t
49757 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49758 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49759 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
49760 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49761 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49762 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49763 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
49764 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49765 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
49766 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
49767 s,@EXE_LINKER@,$EXE_LINKER,;t t
49768 s,@GUIDIST@,$GUIDIST,;t t
49769 s,@DISTDIR@,$DISTDIR,;t t
49770 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49771 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
49772 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49773 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49774 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
49775 s,@RESCOMP@,$RESCOMP,;t t
49776 s,@RESFLAGS@,$RESFLAGS,;t t
49777 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49778 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49779 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49780 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
49781 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
49782 s,@MACSETFILE@,$MACSETFILE,;t t
49783 s,@GCC@,$GCC,;t t
49784 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49785 s,@LIBOBJS@,$LIBOBJS,;t t
49786 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49787 CEOF
49788
49789 _ACEOF
49790
49791   cat >>$CONFIG_STATUS <<\_ACEOF
49792   # Split the substitutions into bite-sized pieces for seds with
49793   # small command number limits, like on Digital OSF/1 and HP-UX.
49794   ac_max_sed_lines=48
49795   ac_sed_frag=1 # Number of current file.
49796   ac_beg=1 # First line for current file.
49797   ac_end=$ac_max_sed_lines # Line after last line for current file.
49798   ac_more_lines=:
49799   ac_sed_cmds=
49800   while $ac_more_lines; do
49801     if test $ac_beg -gt 1; then
49802       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49803     else
49804       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49805     fi
49806     if test ! -s $tmp/subs.frag; then
49807       ac_more_lines=false
49808     else
49809       # The purpose of the label and of the branching condition is to
49810       # speed up the sed processing (if there are no `@' at all, there
49811       # is no need to browse any of the substitutions).
49812       # These are the two extra sed commands mentioned above.
49813       (echo ':t
49814   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49815       if test -z "$ac_sed_cmds"; then
49816         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
49817       else
49818         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
49819       fi
49820       ac_sed_frag=`expr $ac_sed_frag + 1`
49821       ac_beg=$ac_end
49822       ac_end=`expr $ac_end + $ac_max_sed_lines`
49823     fi
49824   done
49825   if test -z "$ac_sed_cmds"; then
49826     ac_sed_cmds=cat
49827   fi
49828 fi # test -n "$CONFIG_FILES"
49829
49830 _ACEOF
49831 cat >>$CONFIG_STATUS <<\_ACEOF
49832 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49833   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49834   case $ac_file in
49835   - | *:- | *:-:* ) # input from stdin
49836         cat >$tmp/stdin
49837         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49838         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49839   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49840         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49841   * )   ac_file_in=$ac_file.in ;;
49842   esac
49843
49844   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49845   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49847          X"$ac_file" : 'X\(//\)[^/]' \| \
49848          X"$ac_file" : 'X\(//\)$' \| \
49849          X"$ac_file" : 'X\(/\)' \| \
49850          .     : '\(.\)' 2>/dev/null ||
49851 echo X"$ac_file" |
49852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49853           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49854           /^X\(\/\/\)$/{ s//\1/; q; }
49855           /^X\(\/\).*/{ s//\1/; q; }
49856           s/.*/./; q'`
49857   { if $as_mkdir_p; then
49858     mkdir -p "$ac_dir"
49859   else
49860     as_dir="$ac_dir"
49861     as_dirs=
49862     while test ! -d "$as_dir"; do
49863       as_dirs="$as_dir $as_dirs"
49864       as_dir=`(dirname "$as_dir") 2>/dev/null ||
49865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49866          X"$as_dir" : 'X\(//\)[^/]' \| \
49867          X"$as_dir" : 'X\(//\)$' \| \
49868          X"$as_dir" : 'X\(/\)' \| \
49869          .     : '\(.\)' 2>/dev/null ||
49870 echo X"$as_dir" |
49871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49873           /^X\(\/\/\)$/{ s//\1/; q; }
49874           /^X\(\/\).*/{ s//\1/; q; }
49875           s/.*/./; q'`
49876     done
49877     test ! -n "$as_dirs" || mkdir $as_dirs
49878   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49880    { (exit 1); exit 1; }; }; }
49881
49882   ac_builddir=.
49883
49884 if test "$ac_dir" != .; then
49885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49886   # A "../" for each directory in $ac_dir_suffix.
49887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49888 else
49889   ac_dir_suffix= ac_top_builddir=
49890 fi
49891
49892 case $srcdir in
49893   .)  # No --srcdir option.  We are building in place.
49894     ac_srcdir=.
49895     if test -z "$ac_top_builddir"; then
49896        ac_top_srcdir=.
49897     else
49898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49899     fi ;;
49900   [\\/]* | ?:[\\/]* )  # Absolute path.
49901     ac_srcdir=$srcdir$ac_dir_suffix;
49902     ac_top_srcdir=$srcdir ;;
49903   *) # Relative path.
49904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
49906 esac
49907
49908 # Do not use `cd foo && pwd` to compute absolute paths, because
49909 # the directories may not exist.
49910 case `pwd` in
49911 .) ac_abs_builddir="$ac_dir";;
49912 *)
49913   case "$ac_dir" in
49914   .) ac_abs_builddir=`pwd`;;
49915   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49916   *) ac_abs_builddir=`pwd`/"$ac_dir";;
49917   esac;;
49918 esac
49919 case $ac_abs_builddir in
49920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
49921 *)
49922   case ${ac_top_builddir}. in
49923   .) ac_abs_top_builddir=$ac_abs_builddir;;
49924   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49925   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49926   esac;;
49927 esac
49928 case $ac_abs_builddir in
49929 .) ac_abs_srcdir=$ac_srcdir;;
49930 *)
49931   case $ac_srcdir in
49932   .) ac_abs_srcdir=$ac_abs_builddir;;
49933   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49934   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49935   esac;;
49936 esac
49937 case $ac_abs_builddir in
49938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
49939 *)
49940   case $ac_top_srcdir in
49941   .) ac_abs_top_srcdir=$ac_abs_builddir;;
49942   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49943   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49944   esac;;
49945 esac
49946
49947
49948   case $INSTALL in
49949   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49950   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49951   esac
49952
49953   # Let's still pretend it is `configure' which instantiates (i.e., don't
49954   # use $as_me), people would be surprised to read:
49955   #    /* config.h.  Generated by config.status.  */
49956   if test x"$ac_file" = x-; then
49957     configure_input=
49958   else
49959     configure_input="$ac_file.  "
49960   fi
49961   configure_input=$configure_input"Generated from `echo $ac_file_in |
49962                                      sed 's,.*/,,'` by configure."
49963
49964   # First look for the input files in the build tree, otherwise in the
49965   # src tree.
49966   ac_file_inputs=`IFS=:
49967     for f in $ac_file_in; do
49968       case $f in
49969       -) echo $tmp/stdin ;;
49970       [\\/$]*)
49971          # Absolute (can't be DOS-style, as IFS=:)
49972          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49973 echo "$as_me: error: cannot find input file: $f" >&2;}
49974    { (exit 1); exit 1; }; }
49975          echo "$f";;
49976       *) # Relative
49977          if test -f "$f"; then
49978            # Build tree
49979            echo "$f"
49980          elif test -f "$srcdir/$f"; then
49981            # Source tree
49982            echo "$srcdir/$f"
49983          else
49984            # /dev/null tree
49985            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49986 echo "$as_me: error: cannot find input file: $f" >&2;}
49987    { (exit 1); exit 1; }; }
49988          fi;;
49989       esac
49990     done` || { (exit 1); exit 1; }
49991
49992   if test x"$ac_file" != x-; then
49993     { echo "$as_me:$LINENO: creating $ac_file" >&5
49994 echo "$as_me: creating $ac_file" >&6;}
49995     rm -f "$ac_file"
49996   fi
49997 _ACEOF
49998 cat >>$CONFIG_STATUS <<_ACEOF
49999   sed "$ac_vpsub
50000 $extrasub
50001 _ACEOF
50002 cat >>$CONFIG_STATUS <<\_ACEOF
50003 :t
50004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50005 s,@configure_input@,$configure_input,;t t
50006 s,@srcdir@,$ac_srcdir,;t t
50007 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50008 s,@top_srcdir@,$ac_top_srcdir,;t t
50009 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50010 s,@builddir@,$ac_builddir,;t t
50011 s,@abs_builddir@,$ac_abs_builddir,;t t
50012 s,@top_builddir@,$ac_top_builddir,;t t
50013 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50014 s,@INSTALL@,$ac_INSTALL,;t t
50015 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50016   rm -f $tmp/stdin
50017   if test x"$ac_file" != x-; then
50018     mv $tmp/out $ac_file
50019   else
50020     cat $tmp/out
50021     rm -f $tmp/out
50022   fi
50023
50024   # Run the commands associated with the file.
50025   case $ac_file in
50026     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
50027     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
50028   esac
50029 done
50030 _ACEOF
50031 cat >>$CONFIG_STATUS <<\_ACEOF
50032
50033 #
50034 # CONFIG_HEADER section.
50035 #
50036
50037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50039 #
50040 # ac_d sets the value in "#define NAME VALUE" lines.
50041 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50042 ac_dB='[         ].*$,\1#\2'
50043 ac_dC=' '
50044 ac_dD=',;t'
50045 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50046 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50047 ac_uB='$,\1#\2define\3'
50048 ac_uC=' '
50049 ac_uD=',;t'
50050
50051 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50052   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50053   case $ac_file in
50054   - | *:- | *:-:* ) # input from stdin
50055         cat >$tmp/stdin
50056         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50058   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50059         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50060   * )   ac_file_in=$ac_file.in ;;
50061   esac
50062
50063   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50064 echo "$as_me: creating $ac_file" >&6;}
50065
50066   # First look for the input files in the build tree, otherwise in the
50067   # src tree.
50068   ac_file_inputs=`IFS=:
50069     for f in $ac_file_in; do
50070       case $f in
50071       -) echo $tmp/stdin ;;
50072       [\\/$]*)
50073          # Absolute (can't be DOS-style, as IFS=:)
50074          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50075 echo "$as_me: error: cannot find input file: $f" >&2;}
50076    { (exit 1); exit 1; }; }
50077          # Do quote $f, to prevent DOS paths from being IFS'd.
50078          echo "$f";;
50079       *) # Relative
50080          if test -f "$f"; then
50081            # Build tree
50082            echo "$f"
50083          elif test -f "$srcdir/$f"; then
50084            # Source tree
50085            echo "$srcdir/$f"
50086          else
50087            # /dev/null tree
50088            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50089 echo "$as_me: error: cannot find input file: $f" >&2;}
50090    { (exit 1); exit 1; }; }
50091          fi;;
50092       esac
50093     done` || { (exit 1); exit 1; }
50094   # Remove the trailing spaces.
50095   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50096
50097 _ACEOF
50098
50099 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50100 # `conftest.undefs', that substitutes the proper values into
50101 # config.h.in to produce config.h.  The first handles `#define'
50102 # templates, and the second `#undef' templates.
50103 # And first: Protect against being on the right side of a sed subst in
50104 # config.status.  Protect against being in an unquoted here document
50105 # in config.status.
50106 rm -f conftest.defines conftest.undefs
50107 # Using a here document instead of a string reduces the quoting nightmare.
50108 # Putting comments in sed scripts is not portable.
50109 #
50110 # `end' is used to avoid that the second main sed command (meant for
50111 # 0-ary CPP macros) applies to n-ary macro definitions.
50112 # See the Autoconf documentation for `clear'.
50113 cat >confdef2sed.sed <<\_ACEOF
50114 s/[\\&,]/\\&/g
50115 s,[\\$`],\\&,g
50116 t clear
50117 : clear
50118 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50119 t end
50120 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50121 : end
50122 _ACEOF
50123 # If some macros were called several times there might be several times
50124 # the same #defines, which is useless.  Nevertheless, we may not want to
50125 # sort them, since we want the *last* AC-DEFINE to be honored.
50126 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50127 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50128 rm -f confdef2sed.sed
50129
50130 # This sed command replaces #undef with comments.  This is necessary, for
50131 # example, in the case of _POSIX_SOURCE, which is predefined and required
50132 # on some systems where configure will not decide to define it.
50133 cat >>conftest.undefs <<\_ACEOF
50134 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50135 _ACEOF
50136
50137 # Break up conftest.defines because some shells have a limit on the size
50138 # of here documents, and old seds have small limits too (100 cmds).
50139 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50140 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50141 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50142 echo '  :' >>$CONFIG_STATUS
50143 rm -f conftest.tail
50144 while grep . conftest.defines >/dev/null
50145 do
50146   # Write a limited-size here document to $tmp/defines.sed.
50147   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50148   # Speed up: don't consider the non `#define' lines.
50149   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50150   # Work around the forget-to-reset-the-flag bug.
50151   echo 't clr' >>$CONFIG_STATUS
50152   echo ': clr' >>$CONFIG_STATUS
50153   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50154   echo 'CEOF
50155   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50156   rm -f $tmp/in
50157   mv $tmp/out $tmp/in
50158 ' >>$CONFIG_STATUS
50159   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50160   rm -f conftest.defines
50161   mv conftest.tail conftest.defines
50162 done
50163 rm -f conftest.defines
50164 echo '  fi # grep' >>$CONFIG_STATUS
50165 echo >>$CONFIG_STATUS
50166
50167 # Break up conftest.undefs because some shells have a limit on the size
50168 # of here documents, and old seds have small limits too (100 cmds).
50169 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50170 rm -f conftest.tail
50171 while grep . conftest.undefs >/dev/null
50172 do
50173   # Write a limited-size here document to $tmp/undefs.sed.
50174   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50175   # Speed up: don't consider the non `#undef'
50176   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50177   # Work around the forget-to-reset-the-flag bug.
50178   echo 't clr' >>$CONFIG_STATUS
50179   echo ': clr' >>$CONFIG_STATUS
50180   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50181   echo 'CEOF
50182   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50183   rm -f $tmp/in
50184   mv $tmp/out $tmp/in
50185 ' >>$CONFIG_STATUS
50186   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50187   rm -f conftest.undefs
50188   mv conftest.tail conftest.undefs
50189 done
50190 rm -f conftest.undefs
50191
50192 cat >>$CONFIG_STATUS <<\_ACEOF
50193   # Let's still pretend it is `configure' which instantiates (i.e., don't
50194   # use $as_me), people would be surprised to read:
50195   #    /* config.h.  Generated by config.status.  */
50196   if test x"$ac_file" = x-; then
50197     echo "/* Generated by configure.  */" >$tmp/config.h
50198   else
50199     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50200   fi
50201   cat $tmp/in >>$tmp/config.h
50202   rm -f $tmp/in
50203   if test x"$ac_file" != x-; then
50204     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50205       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50206 echo "$as_me: $ac_file is unchanged" >&6;}
50207     else
50208       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50210          X"$ac_file" : 'X\(//\)[^/]' \| \
50211          X"$ac_file" : 'X\(//\)$' \| \
50212          X"$ac_file" : 'X\(/\)' \| \
50213          .     : '\(.\)' 2>/dev/null ||
50214 echo X"$ac_file" |
50215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50217           /^X\(\/\/\)$/{ s//\1/; q; }
50218           /^X\(\/\).*/{ s//\1/; q; }
50219           s/.*/./; q'`
50220       { if $as_mkdir_p; then
50221     mkdir -p "$ac_dir"
50222   else
50223     as_dir="$ac_dir"
50224     as_dirs=
50225     while test ! -d "$as_dir"; do
50226       as_dirs="$as_dir $as_dirs"
50227       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50229          X"$as_dir" : 'X\(//\)[^/]' \| \
50230          X"$as_dir" : 'X\(//\)$' \| \
50231          X"$as_dir" : 'X\(/\)' \| \
50232          .     : '\(.\)' 2>/dev/null ||
50233 echo X"$as_dir" |
50234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50236           /^X\(\/\/\)$/{ s//\1/; q; }
50237           /^X\(\/\).*/{ s//\1/; q; }
50238           s/.*/./; q'`
50239     done
50240     test ! -n "$as_dirs" || mkdir $as_dirs
50241   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50242 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50243    { (exit 1); exit 1; }; }; }
50244
50245       rm -f $ac_file
50246       mv $tmp/config.h $ac_file
50247     fi
50248   else
50249     cat $tmp/config.h
50250     rm -f $tmp/config.h
50251   fi
50252 done
50253 _ACEOF
50254 cat >>$CONFIG_STATUS <<\_ACEOF
50255
50256 #
50257 # CONFIG_COMMANDS section.
50258 #
50259 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50260   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50261   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50262   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50263 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50264          X"$ac_dest" : 'X\(//\)[^/]' \| \
50265          X"$ac_dest" : 'X\(//\)$' \| \
50266          X"$ac_dest" : 'X\(/\)' \| \
50267          .     : '\(.\)' 2>/dev/null ||
50268 echo X"$ac_dest" |
50269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50271           /^X\(\/\/\)$/{ s//\1/; q; }
50272           /^X\(\/\).*/{ s//\1/; q; }
50273           s/.*/./; q'`
50274   { if $as_mkdir_p; then
50275     mkdir -p "$ac_dir"
50276   else
50277     as_dir="$ac_dir"
50278     as_dirs=
50279     while test ! -d "$as_dir"; do
50280       as_dirs="$as_dir $as_dirs"
50281       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50283          X"$as_dir" : 'X\(//\)[^/]' \| \
50284          X"$as_dir" : 'X\(//\)$' \| \
50285          X"$as_dir" : 'X\(/\)' \| \
50286          .     : '\(.\)' 2>/dev/null ||
50287 echo X"$as_dir" |
50288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50289           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50290           /^X\(\/\/\)$/{ s//\1/; q; }
50291           /^X\(\/\).*/{ s//\1/; q; }
50292           s/.*/./; q'`
50293     done
50294     test ! -n "$as_dirs" || mkdir $as_dirs
50295   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50296 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50297    { (exit 1); exit 1; }; }; }
50298
50299   ac_builddir=.
50300
50301 if test "$ac_dir" != .; then
50302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50303   # A "../" for each directory in $ac_dir_suffix.
50304   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50305 else
50306   ac_dir_suffix= ac_top_builddir=
50307 fi
50308
50309 case $srcdir in
50310   .)  # No --srcdir option.  We are building in place.
50311     ac_srcdir=.
50312     if test -z "$ac_top_builddir"; then
50313        ac_top_srcdir=.
50314     else
50315        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50316     fi ;;
50317   [\\/]* | ?:[\\/]* )  # Absolute path.
50318     ac_srcdir=$srcdir$ac_dir_suffix;
50319     ac_top_srcdir=$srcdir ;;
50320   *) # Relative path.
50321     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50322     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50323 esac
50324
50325 # Do not use `cd foo && pwd` to compute absolute paths, because
50326 # the directories may not exist.
50327 case `pwd` in
50328 .) ac_abs_builddir="$ac_dir";;
50329 *)
50330   case "$ac_dir" in
50331   .) ac_abs_builddir=`pwd`;;
50332   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50333   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50334   esac;;
50335 esac
50336 case $ac_abs_builddir in
50337 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50338 *)
50339   case ${ac_top_builddir}. in
50340   .) ac_abs_top_builddir=$ac_abs_builddir;;
50341   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50342   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50343   esac;;
50344 esac
50345 case $ac_abs_builddir in
50346 .) ac_abs_srcdir=$ac_srcdir;;
50347 *)
50348   case $ac_srcdir in
50349   .) ac_abs_srcdir=$ac_abs_builddir;;
50350   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50351   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50352   esac;;
50353 esac
50354 case $ac_abs_builddir in
50355 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50356 *)
50357   case $ac_top_srcdir in
50358   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50359   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50360   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50361   esac;;
50362 esac
50363
50364
50365   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50366 echo "$as_me: executing $ac_dest commands" >&6;}
50367   case $ac_dest in
50368     rcdefs.h )
50369             mkdir -p $outdir &&
50370             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50371          ;;
50372     wx-config )  rm -f wx-config
50373                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50374                     ;;
50375   esac
50376 done
50377 _ACEOF
50378
50379 cat >>$CONFIG_STATUS <<\_ACEOF
50380
50381 { (exit 0); exit 0; }
50382 _ACEOF
50383 chmod +x $CONFIG_STATUS
50384 ac_clean_files=$ac_clean_files_save
50385
50386
50387 # configure is writing to config.log, and then calls config.status.
50388 # config.status does its own redirection, appending to config.log.
50389 # Unfortunately, on DOS this fails, as config.log is still kept open
50390 # by configure, so config.status won't be able to write to it; its
50391 # output is simply discarded.  So we exec the FD to /dev/null,
50392 # effectively closing config.log, so it can be properly (re)opened and
50393 # appended to by config.status.  When coming back to configure, we
50394 # need to make the FD available again.
50395 if test "$no_create" != yes; then
50396   ac_cs_success=:
50397   ac_config_status_args=
50398   test "$silent" = yes &&
50399     ac_config_status_args="$ac_config_status_args --quiet"
50400   exec 5>/dev/null
50401   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50402   exec 5>>config.log
50403   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50404   # would make configure fail if this is the last instruction.
50405   $ac_cs_success || { (exit 1); exit 1; }
50406 fi
50407
50408 #
50409 # CONFIG_SUBDIRS section.
50410 #
50411 if test "$no_recursion" != yes; then
50412
50413   # Remove --cache-file and --srcdir arguments so they do not pile up.
50414   ac_sub_configure_args=
50415   ac_prev=
50416   for ac_arg in $ac_configure_args; do
50417     if test -n "$ac_prev"; then
50418       ac_prev=
50419       continue
50420     fi
50421     case $ac_arg in
50422     -cache-file | --cache-file | --cache-fil | --cache-fi \
50423     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50424       ac_prev=cache_file ;;
50425     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50426     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50427     | --c=*)
50428       ;;
50429     --config-cache | -C)
50430       ;;
50431     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50432       ac_prev=srcdir ;;
50433     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50434       ;;
50435     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50436       ac_prev=prefix ;;
50437     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50438       ;;
50439     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50440     esac
50441   done
50442
50443   # Always prepend --prefix to ensure using the same prefix
50444   # in subdir configurations.
50445   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50446
50447   ac_popdir=`pwd`
50448   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50449
50450     # Do not complain, so a configure script can configure whichever
50451     # parts of a large source tree are present.
50452     test -d $srcdir/$ac_dir || continue
50453
50454     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50455 echo "$as_me: configuring in $ac_dir" >&6;}
50456     { if $as_mkdir_p; then
50457     mkdir -p "$ac_dir"
50458   else
50459     as_dir="$ac_dir"
50460     as_dirs=
50461     while test ! -d "$as_dir"; do
50462       as_dirs="$as_dir $as_dirs"
50463       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50465          X"$as_dir" : 'X\(//\)[^/]' \| \
50466          X"$as_dir" : 'X\(//\)$' \| \
50467          X"$as_dir" : 'X\(/\)' \| \
50468          .     : '\(.\)' 2>/dev/null ||
50469 echo X"$as_dir" |
50470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50471           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50472           /^X\(\/\/\)$/{ s//\1/; q; }
50473           /^X\(\/\).*/{ s//\1/; q; }
50474           s/.*/./; q'`
50475     done
50476     test ! -n "$as_dirs" || mkdir $as_dirs
50477   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50479    { (exit 1); exit 1; }; }; }
50480
50481     ac_builddir=.
50482
50483 if test "$ac_dir" != .; then
50484   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50485   # A "../" for each directory in $ac_dir_suffix.
50486   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50487 else
50488   ac_dir_suffix= ac_top_builddir=
50489 fi
50490
50491 case $srcdir in
50492   .)  # No --srcdir option.  We are building in place.
50493     ac_srcdir=.
50494     if test -z "$ac_top_builddir"; then
50495        ac_top_srcdir=.
50496     else
50497        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50498     fi ;;
50499   [\\/]* | ?:[\\/]* )  # Absolute path.
50500     ac_srcdir=$srcdir$ac_dir_suffix;
50501     ac_top_srcdir=$srcdir ;;
50502   *) # Relative path.
50503     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50504     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50505 esac
50506
50507 # Do not use `cd foo && pwd` to compute absolute paths, because
50508 # the directories may not exist.
50509 case `pwd` in
50510 .) ac_abs_builddir="$ac_dir";;
50511 *)
50512   case "$ac_dir" in
50513   .) ac_abs_builddir=`pwd`;;
50514   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50515   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50516   esac;;
50517 esac
50518 case $ac_abs_builddir in
50519 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50520 *)
50521   case ${ac_top_builddir}. in
50522   .) ac_abs_top_builddir=$ac_abs_builddir;;
50523   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50524   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50525   esac;;
50526 esac
50527 case $ac_abs_builddir in
50528 .) ac_abs_srcdir=$ac_srcdir;;
50529 *)
50530   case $ac_srcdir in
50531   .) ac_abs_srcdir=$ac_abs_builddir;;
50532   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50533   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50534   esac;;
50535 esac
50536 case $ac_abs_builddir in
50537 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50538 *)
50539   case $ac_top_srcdir in
50540   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50541   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50542   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50543   esac;;
50544 esac
50545
50546
50547     cd $ac_dir
50548
50549     # Check for guested configure; otherwise get Cygnus style configure.
50550     if test -f $ac_srcdir/configure.gnu; then
50551       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50552     elif test -f $ac_srcdir/configure; then
50553       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50554     elif test -f $ac_srcdir/configure.in; then
50555       ac_sub_configure=$ac_configure
50556     else
50557       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50559       ac_sub_configure=
50560     fi
50561
50562     # The recursion is here.
50563     if test -n "$ac_sub_configure"; then
50564       # Make the cache file name correct relative to the subdirectory.
50565       case $cache_file in
50566       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50567       *) # Relative path.
50568         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
50569       esac
50570
50571       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50572 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50573       # The eval makes quoting arguments work.
50574       eval $ac_sub_configure $ac_sub_configure_args \
50575            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50576         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
50577 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50578    { (exit 1); exit 1; }; }
50579     fi
50580
50581     cd "$ac_popdir"
50582   done
50583 fi
50584
50585
50586 echo
50587 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
50588 echo ""
50589 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
50590 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
50591
50592 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
50593 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
50594 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
50595
50596 echo "  What level of wxWidgets compatibility should be enabled?"
50597 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
50598 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
50599
50600 echo "  Which libraries should wxWidgets use?"
50601 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
50602 echo "                                       png                ${wxUSE_LIBPNG-none}"
50603 echo "                                       regex              ${wxUSE_REGEX}"
50604 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
50605 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50606 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
50607 fi
50608 echo "                                       zlib               ${wxUSE_ZLIB}"
50609 echo "                                       odbc               ${wxUSE_ODBC}"
50610 echo "                                       expat              ${wxUSE_EXPAT}"
50611 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
50612 echo "                                       sdl                ${wxUSE_LIBSDL}"
50613 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
50614 echo "                                       gnomevfs           ${wxUSE_LIBGNOMEVFS-none}"
50615 echo "                                       hildon             ${wxUSE_LIBHILDON-none}"
50616
50617 echo ""
50618